blob: f972061ad81f91432df34b19e1ff84bee6ffd6e1 [file] [log] [blame]
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001/*
2 * Qualcomm Atheros OUI and vendor specific assignments
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08003 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
Hai Shalom899fcc72020-10-19 14:38:18 -07004 * Copyright (c) 2018-2020, The Linux Foundation
Sunil Ravi89eba102022-09-13 21:04:37 -07005 * Copyright (c) 2021-2022, Qualcomm Innovation Center, Inc.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08006 *
7 * This software may be distributed under the terms of the BSD license.
8 * See README for more details.
9 */
10
11#ifndef QCA_VENDOR_H
12#define QCA_VENDOR_H
13
14/*
15 * This file is a registry of identifier assignments from the Qualcomm Atheros
16 * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
17 * can be assigned through normal review process for changes to the upstream
18 * hostap.git repository.
19 */
20
21#define OUI_QCA 0x001374
22
Hai Shalomfdcde762020-04-02 11:19:20 -070023#ifndef BIT
24#define BIT(x) (1U << (x))
25#endif
26
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080027/**
Dmitry Shmidtf9bdef92014-04-25 10:46:36 -070028 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
29 */
30enum qca_radiotap_vendor_ids {
31 QCA_RADIOTAP_VID_WLANTEST = 0,
32};
33
34/**
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080035 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
36 *
37 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
38 *
39 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
40 *
Dmitry Shmidt661b4f72014-09-29 14:58:27 -070041 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
42 * internal BSS-selection. This command uses
43 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
44 * for the current connection (i.e., changes policy set by the nl80211
45 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
46 * included to indicate which BSS to use in case roaming is disabled.
47 *
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080048 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
49 * ranges to avoid to reduce issues due to interference or internal
Hai Shalom74f70d42019-02-11 14:42:39 -080050 * co-existence information in the driver. These frequencies aim to
51 * minimize the traffic but not to totally avoid the traffic. That said
52 * for a P2P use case, these frequencies are allowed for the P2P
53 * discovery/negotiation but avoid the group to get formed on these
54 * frequencies. The event data structure is defined in
55 * struct qca_avoid_freq_list.
Dmitry Shmidtd11f0192014-03-24 12:09:47 -070056 *
57 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
58 * for DFS offloading.
Dmitry Shmidt21de2142014-04-08 10:50:52 -070059 *
60 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
61 * NAN Request/Response and NAN Indication messages. These messages are
Hai Shalomce48b4a2018-09-05 11:41:35 -070062 * interpreted between the framework and the firmware component. While
63 * sending the command from userspace to the driver, payload is not
64 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
65 * is used when receiving vendor events in userspace from the driver.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080066 *
67 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
68 * used to configure PMK to the driver even when not connected. This can
69 * be used to request offloading of key management operations. Only used
70 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
71 *
72 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
73 * NL80211_CMD_ROAM event with optional attributes including information
74 * from offloaded key management operation. Uses
75 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
76 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
77 *
78 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
79 * invoke the ACS function in device and pass selected channels to
Hai Shalomc3565922019-10-28 11:58:20 -070080 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080081 *
82 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
83 * supported by the driver. enum qca_wlan_vendor_features defines
84 * the possible features.
Dmitry Shmidt7f656022015-02-25 14:36:37 -080085 *
86 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
87 * which supports DFS offloading, to indicate a channel availability check
88 * start.
89 *
90 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
91 * which supports DFS offloading, to indicate a channel availability check
92 * completion.
93 *
94 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
95 * which supports DFS offloading, to indicate that the channel availability
96 * check aborted, no change to the channel status.
97 *
98 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
99 * driver, which supports DFS offloading, to indicate that the
100 * Non-Occupancy Period for this channel is over, channel becomes usable.
101 *
102 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
103 * which supports DFS offloading, to indicate a radar pattern has been
104 * detected. The channel is now unusable.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700105 *
Hai Shalom81f62d82019-07-22 12:10:00 -0700106 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
107 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
108 *
Roshan Pius3a1667e2018-07-03 15:17:14 -0700109 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
110 * based on enum wifi_logger_supported_features. Attributes defined in
111 * enum qca_wlan_vendor_attr_get_logger_features.
112 *
113 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
114 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
115 * attribute for this command. Attributes defined in
116 * enum qca_wlan_vendor_attr_wifi_logger_start.
117 *
118 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
119 * capabilities of the driver, parameters includes the attributes defined
120 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
121 *
122 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
123 * sending of certain periodic IP packet to firmware, attributes defined in
124 * enum qca_wlan_vendor_attr_offloaded_packets.
125 *
126 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
127 * monitoring, defines min and max RSSI which are configured for RSSI
128 * monitoring. Also used to notify the RSSI breach and provides the BSSID
129 * and RSSI value that was breached. Attributes defined in
130 * enum qca_wlan_vendor_attr_rssi_monitoring.
131 *
132 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
133 * Data Path (NDP) related operations, attributes defined in
134 * enum qca_wlan_vendor_attr_ndp_params.
135 *
136 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
137 * Neighbour Discovery offload, attributes defined in
138 * enum qca_wlan_vendor_attr_nd_offload.
139 *
140 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
141 * configuration parameter for BPF packet filter, attributes defined in
142 * enum qca_wlan_vendor_attr_packet_filter.
143 *
144 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
145 * maximum supported size, attributes defined in
146 * enum qca_wlan_vendor_drv_info.
147 *
148 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
149 * data about wake reasons and datapath IP statistics, attributes defined
150 * in enum qca_wlan_vendor_attr_wake_stats.
151 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700152 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
153 * for IEEE 802.11 communicating outside the context of a basic service
154 * set, called OCB command. Uses the attributes defines in
155 * enum qca_wlan_vendor_attr_ocb_set_config.
156 *
157 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
158 * UTC time. Use the attributes defines in
159 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
160 *
161 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
162 * sending OCB timing advert frames. Uses the attributes defines in
163 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
164 *
165 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
166 * OCB timing advert. Uses the attributes defines in
167 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
168 *
169 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
170 * timer value. Uses the attributes defines in
171 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
172 *
Hai Shalom74f70d42019-02-11 14:42:39 -0800173 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
174 * link properties of the respective interface. As an event, is used
175 * to notify the connected station's status. The attributes for this
176 * command are defined in enum qca_wlan_vendor_attr_link_properties.
177 *
Hai Shalom899fcc72020-10-19 14:38:18 -0700178 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
179 * to the driver. This command sets the band(s) through either the
180 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
181 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
182 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
183 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
184 * bit unsigned bitmask values. The allowed values for
185 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
186 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
187 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
188 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
189 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes
190 * are included for backwards compatibility, the configurations through
191 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
192 * that support both attributes.
193 *
Hai Shalomc3565922019-10-28 11:58:20 -0700194 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
195 * DFS policy and channel hint for ACS operation. This command uses the
196 * attributes defined in enum qca_wlan_vendor_attr_acs_config and
197 * enum qca_acs_dfs_mode.
198 *
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700199 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
200 * start the P2P Listen offload function in device and pass the listen
201 * channel, period, interval, count, device types, and vendor specific
202 * information elements to the device driver and firmware.
203 * Uses the attributes defines in
204 * enum qca_wlan_vendor_attr_p2p_listen_offload.
205 *
206 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
207 * indicate stop request/response of the P2P Listen offload function in
208 * device. As an event, it indicates either the feature stopped after it
209 * was already running or feature has actually failed to start. Uses the
210 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
211 *
212 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
213 * beaconing, this sub command provides the driver, the frequencies on the
214 * 5 GHz band to check for any radar activity. Driver selects one channel
215 * from this priority list provided through
216 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
217 * to check for radar activity on it. If no radar activity is detected
218 * during the channel availability check period, driver internally switches
219 * to the selected frequency of operation. If the frequency is zero, driver
220 * internally selects a channel. The status of this conditional switch is
221 * indicated through an event using the same sub command through
222 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
223 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700224 *
225 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
226 * attributes defined in enum qca_wlan_gpio_attr.
227 *
228 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
229 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
230 * capabilities are to be fetched and other
231 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
232 * requested capabilities.
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700233 *
234 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
235 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
236 * command and event.
237 *
238 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
239 * indoor location features. Capabilities are reported in
240 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
241 *
242 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
243 * (fine timing measurement) session with one or more peers.
244 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
245 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
246 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
247 * events will be reported, followed by
248 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
249 * end of session.
250 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
251 *
252 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
253 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
254 * status code indicating session was aborted.
255 *
256 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
257 * results for one peer. Results are reported in
258 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
259 *
260 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
261 * FTM session is finished, either successfully or aborted by
262 * request.
263 *
264 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
265 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
266 * to enable or disable the responder. LCI/LCR reports can be
267 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
268 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
269 * times to update the LCI/LCR reports.
270 *
271 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
272 * arrival) measurement with a single peer. Specify peer MAC address in
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800273 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
274 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
275 * scan results cache and use the frequency from there).
276 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
277 * Measurement result is reported in
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700278 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
279 *
280 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
281 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
282 *
283 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
284 * the AOA measurement result.
285 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
286 * success/failure status is reported in
287 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
288 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
289 * The antenna array(s) used in the measurement are reported in
290 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700291 *
292 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
293 * data as per the given parameters.
294 *
295 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
296 * specific chain.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800297 *
298 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
299 * configuration for a DMG RF sector. Specify sector index in
300 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
301 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
302 * to return sector information for in
303 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
304 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
305 * exact time where information was captured in
306 * QCA_WLAN_VENDOR_ATTR_TSF.
307 *
308 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
309 * configuration for a DMG RF sector. Specify sector index in
310 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
311 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
312 * for one or more DMG RF modules in
313 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
314 *
315 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
316 * DMG RF sector for a station. This is the sector that the HW
317 * will use to communicate with the station. Specify the MAC address
318 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
319 * needed for unassociated station). Specify sector type to return in
320 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
321 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
322 * Also return the exact time where the information was captured
323 * in QCA_WLAN_VENDOR_ATTR_TSF.
324 *
325 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
326 * selected DMG RF sector for a station. This is the sector that
327 * the HW will use to communicate with the station.
328 * Specify the MAC address of associated station/AP/PCP in
329 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
330 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
331 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
332 * The selected sector will be locked such that it will not be
333 * modified like it normally does (for example when station
334 * moves around). To unlock the selected sector for a station
335 * pass the special value 0xFFFF in the sector index. To unlock
336 * all connected stations also pass a broadcast MAC address.
337 *
338 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
339 * in the host driver. The different TDLS configurations are defined
340 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800341 *
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800342 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
343 * capabilities. The response uses the attributes defined in
344 * enum qca_wlan_vendor_attr_get_he_capabilities.
345 *
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800346 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
347 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
348 * carries the scan cookie of the corresponding scan request. The scan
349 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
Dmitry Shmidt29333592017-01-09 12:27:11 -0800350 *
351 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
352 * Absorption Rate (SAR) power limits. A critical regulation for
353 * FCC compliance, OEMs require methods to set SAR limits on TX
354 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
355 * attributes are used with this command.
Paul Stewart092955c2017-02-06 09:13:09 -0800356 *
357 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
358 * host driver for offloading the implementation of Auto Channel Selection
359 * (ACS) to an external user space entity. This interface is used as the
360 * event from the host driver to the user space entity and also as the
361 * request from the user space entity to the host driver. The event from
362 * the host driver is used by the user space entity as an indication to
363 * start the ACS functionality. The attributes used by this event are
364 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
365 * User space entity uses the same interface to inform the host driver with
366 * selected channels after the ACS operation using the attributes defined
367 * by enum qca_wlan_vendor_attr_external_acs_channels.
368 *
369 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
370 * requisite information leading to a power save failure. The information
371 * carried as part of this event is represented by the
372 * enum qca_attr_chip_power_save_failure attributes.
373 *
374 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
375 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
376 *
377 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
378 * statistics are represented by the enum qca_attr_nud_stats_get
379 * attributes.
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800380 *
381 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
382 * the BSS transition status, whether accept or reject, for a list of
383 * candidate BSSIDs provided by the userspace. This uses the vendor
384 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
385 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
386 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
387 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
388 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
389 * the driver shall specify array of
390 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
391 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
392 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
393 *
394 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
395 * specific QCA module. The trace levels are represented by
396 * enum qca_attr_trace_level attributes.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700397 *
398 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
399 * Protocol antenna limit in different modes. See enum
400 * qca_wlan_vendor_attr_brp_ant_limit_mode.
401 *
402 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
403 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
404 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
Hai Shalom81f62d82019-07-22 12:10:00 -0700405 * identifying the operation in success case. In failure cases an
406 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
407 * describing the reason for the failure is returned.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700408 *
409 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
410 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
411 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
412 * be stopped.
413 *
414 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
415 * specific interface. This can be used to modify some of the low level
416 * scan parameters (off channel dwell time, home channel time) in the
417 * driver/firmware. These parameters are maintained within the host driver.
418 * This command is valid only when the interface is in the connected state.
419 * These scan parameters shall be reset by the driver/firmware once
420 * disconnected. The attributes used with this command are defined in
421 * enum qca_wlan_vendor_attr_active_tos.
422 *
423 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
424 * driver has detected an internal failure. This event carries the
425 * information indicating the reason that triggered this detection. The
426 * attributes for this command are defined in
427 * enum qca_wlan_vendor_attr_hang.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700428 *
429 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
430 * of spectral parameters used. The spectral scan parameters are specified
431 * by enum qca_wlan_vendor_attr_spectral_scan.
432 *
433 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
434 * for spectral scan functionality. The debug stats are specified by
435 * enum qca_wlan_vendor_attr_spectral_diag_stats.
436 *
437 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
438 * scan system capabilities. The capabilities are specified
439 * by enum qca_wlan_vendor_attr_spectral_cap.
440 *
441 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
442 * status of spectral scan. The status values are specified
443 * by enum qca_wlan_vendor_attr_spectral_scan_status.
444 *
445 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
446 * peer pending packets. Specify the peer MAC address in
447 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
448 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
449 * in enum qca_wlan_vendor_attr_flush_pending.
450 *
451 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
452 * RF Operating Parameter (RROP) information. The attributes for this
453 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
454 * intended for use by external Auto Channel Selection applications.
455 *
456 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
457 * (SAR) power limits. This is a companion to the command
458 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
459 * settings currently in use. The attributes returned by this command are
460 * defined by enum qca_vendor_attr_sar_limits.
461 *
462 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
463 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
464 * information attached to the respective MAC.
465 * This works both as a query (user space asks the current mode) or event
466 * interface (driver advertising the current mode to the user space).
467 * Driver does not trigger this event for temporary hardware mode changes.
468 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
469 * channel change, etc.) are updated with this event. Attributes for this
470 * interface are defined in enum qca_wlan_vendor_attr_mac.
471 *
472 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
473 * per peer per TID. Attributes for this command are define in
474 * enum qca_wlan_set_qdepth_thresh_attr.
475 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
476 * guide for WLAN driver. Request to suspend of driver and FW if the
477 * temperature is higher than the suspend threshold; resume action is
478 * requested to driver if the temperature is lower than the resume
479 * threshold. In user poll mode, request temperature data by user. For test
480 * purpose, getting thermal shutdown configuration parameters is needed.
481 * Attributes for this interface are defined in
482 * enum qca_wlan_vendor_attr_thermal_cmd.
483 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
484 * driver. Thermal temperature and indication of resume completion are
485 * reported as thermal events. The attributes for this command are defined
486 * in enum qca_wlan_vendor_attr_thermal_event.
487 *
488 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
489 * test configuration. Attributes for this command are defined in
490 * enum qca_wlan_vendor_attr_wifi_test_config.
491 *
492 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
493 * RX filter to receive frames from stations that are active on the
494 * operating channel, but not associated with the local device (e.g., STAs
495 * associated with other APs). Filtering is done based on a list of BSSIDs
496 * and STA MAC addresses added by the user. This command is also used to
497 * fetch the statistics of unassociated stations. The attributes used with
498 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
Hai Shalomce48b4a2018-09-05 11:41:35 -0700499 *
500 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
501 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
502 * carried a payload which was a binary blob of data. The command was not
503 * extendable to send more information. The newer version carries the
504 * legacy blob encapsulated within an attribute and can be extended with
505 * additional vendor attributes that can enhance the NAN command interface.
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800506 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
507 * or stopped within driver/firmware in order to initiate roaming. The
508 * attributes used with this event are defined in enum
509 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
510 * in few cases, e.g., if the host processor is sleeping when this event
511 * is generated in firmware.
512 *
513 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
514 * configure parameters per peer to capture Channel Frequency Response
515 * (CFR) and enable Periodic CFR capture. The attributes for this command
Hai Shaloma20dcd72022-02-04 13:43:00 -0800516 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
517 * can also be used to send CFR data from the driver to userspace when
518 * netlink events are used to send CFR data.
Hai Shalom74f70d42019-02-11 14:42:39 -0800519 *
520 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
521 * in throughput dynamically. The driver estimates the throughput based on
522 * number of packets being transmitted/received per second and indicates
523 * the changes in throughput to user space. Userspace tools can use this
524 * information to configure kernel's TCP parameters in order to achieve
525 * peak throughput. Optionally, the driver will also send guidance on
526 * modifications to kernel's TCP parameters which can be referred by
527 * userspace tools. The attributes used with this event are defined in enum
528 * qca_wlan_vendor_attr_throughput_change.
529 *
530 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
531 * priorities among different types of traffic during coex scenarios.
532 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
533 * profiles mentioned in enum qca_coex_config_profiles. The associated
534 * attributes used with this command are defined in enum
535 * qca_vendor_attr_coex_config.
536 *
537 * Based on the config provided, FW will boost the weight and prioritize
538 * the traffic for that subsystem (WLAN/BT/Zigbee).
539 *
540 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
541 * the supported AKM suite selectorss from the driver. It returns the list
542 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
Hai Shalom021b0b52019-04-10 11:17:58 -0700543 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
544 * state from the driver. It returns the firmware state in the attribute
545 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
546 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
547 * is used by the driver to flush per-peer cached statistics to user space
548 * application. This interface is used as an event from the driver to
549 * user space application. Attributes for this event are specified in
550 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
551 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
552 * sent in the event.
553 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
554 * improve the success rate of Zigbee joining network.
555 * Due to PTA master limitation, Zigbee joining network success rate is
556 * low while WLAN is working. The WLAN driver needs to configure some
557 * parameters including Zigbee state and specific WLAN periods to enhance
558 * PTA master. All these parameters are delivered by the attributes
559 * defined in enum qca_mpta_helper_vendor_attr.
Hai Shalom81f62d82019-07-22 12:10:00 -0700560 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
561 * implement Beacon frame reporting feature.
562 *
563 * Userspace can request the driver/firmware to periodically report
564 * received Beacon frames whose BSSID is same as the current connected
565 * BSS's MAC address.
566 *
567 * In case the STA seamlessly (without sending disconnect indication to
568 * userspace) roams to a different BSS, Beacon frame reporting will be
569 * automatically enabled for the Beacon frames whose BSSID is same as the
570 * MAC address of the new BSS. Beacon reporting will be stopped when the
571 * STA is disconnected (when the disconnect indication is sent to
572 * userspace) and need to be explicitly enabled by userspace for next
573 * connection.
574 *
575 * When a Beacon frame matching configured conditions is received, and if
576 * userspace has requested to send asynchronous beacon reports, the
577 * driver/firmware will encapsulate the details of the Beacon frame in an
578 * event and send it to userspace along with updating the BSS information
579 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
580 * scan cache with the information from the received Beacon frame but will
581 * not send any active report to userspace.
582 *
583 * The userspace can request the driver/firmware to stop reporting Beacon
584 * frames. If the driver/firmware is not able to receive Beacon frames due
585 * to other Wi-Fi operations such as off-channel activities, etc., the
586 * driver/firmware will send a pause event to userspace and stop reporting
587 * Beacon frames. Whether the beacon reporting will be automatically
588 * resumed or not by the driver/firmware later will be reported to
589 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
590 * flag. The beacon reporting shall be resumed for all the cases except
591 * either when userspace sets
592 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
593 * which triggered the current beacon reporting or during any disconnection
594 * case as indicated by setting
595 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
596 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
597 * driver.
598 *
599 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
600 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
601 * flag not set, the next first
602 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
603 * shall be considered as un-pause event.
604 *
605 * All the attributes used with this command are defined in
606 * enum qca_wlan_vendor_attr_beacon_reporting_params.
607 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
608 * interop issues with the DUT. This sub command is used to transfer the
609 * AP info between the driver and user space. This works both as a command
610 * and an event. As a command, it configures the stored list of APs from
611 * user space to firmware; as an event, it indicates the AP info detected
612 * by the firmware to user space for persistent storage. The attributes
613 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
614 * the parameters.
Hai Shalomc3565922019-10-28 11:58:20 -0700615 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
616 * send/receive OEM data binary blobs to/from application/service to/from
617 * firmware. The attributes defined in enum
618 * qca_wlan_vendor_attr_oem_data_params are used to deliver the
619 * parameters.
620 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
621 * to send/receive avoid frequency data using
622 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
623 * This new command is alternative to existing command
624 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
625 * is using stream of bytes instead of structured data using vendor
Hai Shaloma20dcd72022-02-04 13:43:00 -0800626 * attributes. User space sends unsafe frequency ranges to the driver using
627 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
628 * reception of this command, the driver shall check if an interface is
629 * operating on an unsafe frequency and the driver shall try to move to a
630 * safe channel when needed. If the driver is not able to find a safe
631 * channel the interface can keep operating on an unsafe channel with the
632 * TX power limit derived based on internal configurations like
633 * regulatory/SAR rules.
Hai Shalomc3565922019-10-28 11:58:20 -0700634 *
635 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
636 * add the STA node details in driver/firmware. Attributes for this event
637 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
638 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
639 * coex chain mode from application/service.
640 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
641 * to deliver the parameters.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800642 *
643 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
644 * get information of a station from driver to userspace. This command can
645 * be used in both STA and AP modes. For STA mode, it provides information
646 * of the current association when in connected state or the last
647 * association when in disconnected state. For AP mode, only information
648 * of the currently connected stations is available. This command uses
649 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
Hai Shalomfdcde762020-04-02 11:19:20 -0700650 *
651 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
652 * Host drivers can request the user space entity to set the SAR power
653 * limits with this event. Accordingly, the user space entity is expected
654 * to set the SAR power limits. Host drivers can retry this event to the
655 * user space for the SAR power limits configuration from user space. If
656 * the driver does not get the SAR power limits from user space for all
657 * the retried attempts, it can configure a default SAR power limit.
658 *
659 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
660 * is used to update the information about the station from the driver to
661 * userspace. Uses attributes from enum
662 * qca_wlan_vendor_attr_update_sta_info.
663 *
664 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
665 * The host driver initiates the disconnection for scenarios such as beacon
666 * miss, NUD failure, peer kick out, etc. The disconnection indication
667 * through cfg80211_disconnected() expects the reason codes from enum
668 * ieee80211_reasoncode which does not signify these various reasons why
669 * the driver has triggered the disconnection. This event will be used to
670 * send the driver specific reason codes by the host driver to userspace.
671 * Host drivers should trigger this event and pass the respective reason
672 * code immediately prior to triggering cfg80211_disconnected(). The
673 * attributes used with this event are defined in enum
674 * qca_wlan_vendor_attr_driver_disconnect_reason.
Hai Shalom899fcc72020-10-19 14:38:18 -0700675 *
676 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
677 * add/delete TSPEC for each AC. One command is for one specific AC only.
678 * This command can only be used in STA mode and the STA must be
679 * associated with an AP when the command is issued. Uses attributes
680 * defined in enum qca_wlan_vendor_attr_config_tspec.
681 *
682 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
683 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
684 *
685 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
686 * the driver. The band configurations obtained are referred through
687 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
688 *
689 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
690 * assessment.
691 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
692 *
693 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
694 * used to update SSID information in hostapd when it is updated in the
695 * driver. Uses the attribute NL80211_ATTR_SSID.
696 *
697 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
698 * the driver to send opaque data from the firmware to userspace. The
699 * driver sends an event to userspace whenever such data is received from
700 * the firmware.
701 *
702 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
703 * send this opaque data for this event.
704 *
705 * The format of the opaque data is specific to the particular firmware
706 * version and there is no guarantee of the format remaining same.
707 *
708 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
709 * The host driver selects Tx VDEV, and notifies user. The attributes
710 * used with this event are defined in enum
711 * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800712 * This event contains Tx VDEV group information, other VDEVs
713 * interface index, and status information.
Hai Shalom899fcc72020-10-19 14:38:18 -0700714 *
Sunil8cd6f4d2022-06-28 18:40:46 +0000715 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
716 * configure the concurrent session policies when multiple interfaces
Hai Shaloma20dcd72022-02-04 13:43:00 -0800717 * are (getting) active. The attributes used by this command are defined
Sunil8cd6f4d2022-06-28 18:40:46 +0000718 * in enum qca_wlan_vendor_attr_concurrent_policy.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800719 *
720 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
721 * to query usable channels for different interface types such as STA,
722 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
723 * channels in the response based on country code, different static
724 * configurations, concurrency combinations, etc. The attributes used
725 * with this command are defined in
726 * enum qca_wlan_vendor_attr_usable_channels.
727 *
728 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
729 * to get DFS radar history from the driver to userspace. The driver
730 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
731 * array of nested entries.
732 *
733 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
734 * enable/disable mDNS offload to the firmware. The attributes used with
735 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
736 *
737 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
738 * to set packet monitor mode that aims to send the specified set of TX and
739 * RX frames on the current client interface to an active monitor
740 * interface. If this monitor mode is set, the driver will send the
741 * configured frames, from the interface on which the command is issued, to
742 * an active monitor interface. The attributes used with this command are
743 * defined in enum qca_wlan_vendor_attr_set_monitor_mode.
744 *
745 * Though the monitor mode is configured for the respective
746 * Data/Management/Control frames, it is up to the respective WLAN
747 * driver/firmware/hardware designs to consider the possibility of sending
748 * these frames over the monitor interface. For example, the Control frames
749 * are handled within the hardware and thus passing such frames over the
750 * monitor interface is left to the respective designs.
751 *
752 * Also, this monitor mode is governed to behave accordingly in
753 * suspend/resume states. If the firmware handles any of such frames in
754 * suspend state without waking up the host and if the monitor mode is
755 * configured to notify all such frames, the firmware is expected to resume
756 * the host and forward the respective frames to the monitor interface.
757 * Please note that such a request to get the frames over the monitor
758 * interface will have a definite power implication.
759 *
760 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
761 * as a request to set the driver/firmware with the parameters to trigger
762 * the roaming events, and also used by the driver/firmware to pass on the
763 * various roam events to userspace.
764 * Applicable only for the STA mode. The attributes used with this command
765 * are defined in enum qca_wlan_vendor_attr_roam_events.
766 *
767 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the
768 * rate mask config for a list of PHY types. Userspace shall provide an
769 * array of the vendor attributes defined in
770 * enum qca_wlan_vendor_attr_ratemask_params.
771 *
772 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
773 * when two interfaces are active on the same band, using two different
774 * home channels, and only supported by a single radio. In this scenario
775 * the device must split the use of the radio between the two interfaces.
776 * The percentage of time allocated to a given interface is the quota.
777 * Depending on the configuration, the quota can either be fixed or
778 * dynamic.
779 *
780 * When used as an event, the device will report the quota type, and for
781 * all interfaces operating in MCC it will report the current quota.
782 * When used as a command, the device can be configured for a specific
783 * quota type, and in the case of a fixed quota, the quota to apply to one
784 * of the interfaces.
785 *
786 * Applications can use the event to do TX bitrate control based on the
787 * information, and can use the command to explicitly set the quota to
788 * enhance performance in specific scenarios.
789 *
790 * The attributes used with this command are defined in
791 * enum qca_wlan_vendor_attr_mcc_quota.
Sunil8cd6f4d2022-06-28 18:40:46 +0000792 *
793 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
794 * get the WLAN radio combinations matrix supported by the device which
795 * provides the device simultaneous radio configurations such as
796 * standalone, dual band simultaneous, and single band simultaneous.
797 *
798 * The attributes used with this command are defined in
799 * enum qca_wlan_vendor_attr_radio_combination_matrix.
800 *
801 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space
802 * that the driver is ready for operations again after recovering from
803 * internal failures. This occurs following a failure that was indicated by
804 * @QCA_NL80211_VENDOR_SUBCMD_HANG.
805 *
806 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
807 * security negotiation and key generation to user space.
808 *
809 * When used as an event, the driver requests userspace to trigger the PASN
810 * authentication or dropping of a PTKSA for the indicated peer devices.
811 * When used as a command response, userspace indicates a consolidated
812 * status report for all the peers that were requested for.
813 *
814 * The attributes used with this command are defined in
815 * enum qca_wlan_vendor_attr_pasn.
816 *
817 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
818 * secure ranging context such as TK and LTF keyseed for each peer
819 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
820 *
821 * The attributes used with this command are defined in
822 * enum qca_wlan_vendor_attr_secure_ranging_ctx.
Sunil Ravi89eba102022-09-13 21:04:37 -0700823 *
824 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
825 * enable/disable offload processing in firmware during system/runtime
826 * suspend for CoAP messages (see RFC7252: The Constrained Application
827 * Protocol) and fetch information of the CoAP messages cached during
828 * offload processing.
829 *
830 * The attributes used with this command are defined in
831 * enum qca_wlan_vendor_attr_coap_offload.
832 *
833 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
834 * (add, remove, or change) a Stream Classification Service (SCS) rule.
835 *
836 * The attributes used with this event are defined in
837 * enum qca_wlan_vendor_attr_scs_rule_config.
838 *
839 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
840 * supported by the WLAN firmware.
841 *
842 * The attributes used with this command are defined in
843 * enum qca_wlan_vendor_attr_sar_capability.
844 *
845 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
846 * (SR) feature. This command is used by userspace to configure SR
847 * parameters to the driver and to get the SR related parameters and
848 * statistics with synchronous responses from the driver.
849 * The driver also uses this command to send asynchronous events to
850 * userspace to indicate suspend/resume of SR feature and changes
851 * in SR parameters.
852 *
853 * The attributes used with this command are defined in
854 * enum qca_wlan_vendor_attr_sr.
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.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800897 */
898enum qca_nl80211_vendor_subcmds {
899 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
900 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700901 /* subcmds 2..8 not yet allocated */
902 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800903 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700904 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700905 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800906 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800907 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
908 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
909 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
910 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
911 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
912 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
913 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
914 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
915 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
916 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
917 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
918 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
919 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
920 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
921 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
922 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
923 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
924 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
925 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
926 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
927 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
928 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
929 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
930 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
931 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
932 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
933 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
934 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
935 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
936 /* 43..49 - reserved for QCA */
937 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
938 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
939 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700940 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800941 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
942 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800943 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
944 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
945 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
946 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
947 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800948 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
949 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
950 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
951 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
952 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
953 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
954 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
955 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
956 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
957 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
958 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
959 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
960 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700961 /* Wi-Fi configuration subcommands */
962 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
963 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700964 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
965 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
966 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
967 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
968 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
969 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
970 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
971 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
972 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
973 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
974 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -0700975 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700976 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
977 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
978 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
979 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
980 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
981 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
982 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
983 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
984 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -0700985 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700986 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
987 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
988 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
989 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800990 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
991 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
992 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
993 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
994 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800995 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -0700996 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
997 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700998 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -0700999 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
1000 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001001 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001002 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
1003 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1004 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001005 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
1006 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001007 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
1008 /* FTM/indoor location subcommands */
1009 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
1010 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
1011 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
1012 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
1013 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
1014 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
1015 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
1016 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
1017 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001018 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
1019 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001020 /* DMG low level RF sector operations */
1021 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
1022 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
1023 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
1024 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1025 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001026 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -08001027 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001028 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -08001029 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1030 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1031 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1032 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001033 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1034 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001035 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1036 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1037 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1038 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1039 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001040 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1041 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1042 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1043 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1044 /* Flush peer pending data */
1045 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1046 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1047 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1048 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1049 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1050 /* Thermal shutdown commands to protect wifi chip */
1051 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1052 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1053 /* Wi-Fi test configuration subcommand */
1054 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1055 /* Frame filter operations for other BSSs/unassociated STAs */
1056 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001057 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08001058 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
1059 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -08001060 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1061 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1062 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -07001063 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1064 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1065 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -07001066 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1067 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -07001068 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1069 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1070 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1071 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08001072 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -07001073 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1074 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1075 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -07001076 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1077 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1078 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1079 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1080 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1081 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1082 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Sunil8cd6f4d2022-06-28 18:40:46 +00001083 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001084 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1085 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1086 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1087 /* 201 - reserved for QCA */
1088 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1089 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1090 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1091 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
Sunil8cd6f4d2022-06-28 18:40:46 +00001092 /* 206..212 - reserved for QCA */
1093 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1094 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1095 QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1096 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
Sunil Ravi89eba102022-09-13 21:04:37 -07001097 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1098 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1099 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1100 QCA_NL80211_VENDOR_SUBCMD_SR = 220,
Sunil Ravi77d572f2023-01-17 23:58:31 +00001101 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1102 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1103 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1104 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1105 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
1106 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001107};
1108
Sunil8cd6f4d2022-06-28 18:40:46 +00001109/* Compatibility defines for previously used subcmd names.
1110 * These values should not be used in any new implementation.
1111 */
1112#define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1113 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1114
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001115enum qca_wlan_vendor_attr {
1116 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1117 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1118 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001119 /* Used only when driver sends vendor events to the userspace under the
1120 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1121 * commands to the driver.
1122 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001123 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -07001124 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1125 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -07001126 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1127 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001128 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -07001129 * by enum qca_roaming_policy.
1130 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001131 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1132 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001133 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1134 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001135 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001136 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1137 /* Unsigned 32-bit value. */
1138 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1139 /* Unsigned 32-bit value */
1140 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1141 /* Unsigned 32-bit value */
1142 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07001143 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1144 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1145 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1146 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1147 */
Ravi Joshie6ccb162015-07-16 17:45:41 -07001148 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001149 /* Dummy (NOP) attribute for 64 bit padding */
1150 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1151 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
1152 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1153 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1154 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1155 */
1156 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1157 /* Indoor location capabilities, returned by
1158 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1159 * see enum qca_wlan_vendor_attr_loc_capa.
1160 */
1161 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1162 /* Array of nested attributes containing information about each peer
1163 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1164 * for supported attributes for each peer.
1165 */
1166 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1167 /* Array of nested attributes containing measurement results for
1168 * one or more peers, reported by the
1169 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1170 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1171 * attributes.
1172 */
1173 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1174 /* Flag attribute for enabling or disabling responder functionality. */
1175 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1176 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1177 * command to specify the LCI report that will be sent by
1178 * the responder during a measurement exchange. The format is
1179 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1180 */
1181 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1182 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1183 * command to specify the location civic report that will
1184 * be sent by the responder during a measurement exchange.
1185 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1186 */
1187 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1188 /* Session/measurement completion status code,
1189 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1190 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1191 * see enum qca_vendor_attr_loc_session_status.
1192 */
1193 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1194 /* Initial dialog token used by responder (0 if not specified),
1195 * unsigned 8 bit value.
1196 */
1197 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1198 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1199 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1200 * AOA measurements are needed as part of an FTM session.
1201 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1202 * enum qca_wlan_vendor_attr_aoa_type.
1203 */
1204 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1205 /* A bit mask (unsigned 32 bit value) of antenna arrays used
1206 * by indoor location measurements. Refers to the antenna
1207 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1208 */
1209 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1210 /* AOA measurement data. Its contents depends on the AOA measurement
1211 * type and antenna array mask:
1212 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1213 * phase of the strongest CIR path for each antenna in the measured
1214 * array(s).
1215 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1216 * values, phase and amplitude of the strongest CIR path for each
1217 * antenna in the measured array(s).
1218 */
1219 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001220 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1221 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -07001222 * the corresponding antenna RSSI value
1223 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001224 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1225 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001226 * to report the specific antenna RSSI value (unsigned 32 bit value)
1227 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001228 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001229 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1230 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1231 /* TSF timer value, unsigned 64 bit value.
1232 * May be returned by various commands.
1233 */
1234 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1235 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1236 * 0..127 for sector indices or 65535 as special value used to
1237 * unlock sector selection in
1238 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1239 */
1240 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1241 /* DMG RF sector type, unsigned 8 bit value. One of the values
1242 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1243 */
1244 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1245 /* Bitmask of DMG RF modules for which information is requested. Each
1246 * bit corresponds to an RF module with the same index as the bit
1247 * number. Unsigned 32 bit number but only low 8 bits can be set since
1248 * all DMG chips currently have up to 8 RF modules.
1249 */
1250 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1251 /* Array of nested attributes where each entry is DMG RF sector
1252 * configuration for a single RF module.
1253 * Attributes for each entry are taken from enum
1254 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1255 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1256 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1257 */
1258 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1259 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1260 * to report frame aggregation statistics to userspace.
1261 */
1262 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1263 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001264 /* Unsigned 8-bit value representing MBO transition reason code as
1265 * provided by the AP used by subcommand
1266 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1267 * specified by the userspace in the request to the driver.
1268 */
1269 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1270 /* Array of nested attributes, BSSID and status code, used by subcommand
1271 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1272 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1273 * The userspace space specifies the list/array of candidate BSSIDs in
1274 * the order of preference in the request. The driver specifies the
1275 * status code, for each BSSID in the list, in the response. The
1276 * acceptable candidates are listed in the order preferred by the
1277 * driver.
1278 */
1279 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001280 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1281 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1282 */
1283 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1284 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1285 * to define the number of antennas to use for BRP.
1286 * different purpose in each ANT_LIMIT_MODE:
1287 * DISABLE - ignored
1288 * EFFECTIVE - upper limit to number of antennas to be used
1289 * FORCE - exact number of antennas to be used
1290 * unsigned 8 bit value
1291 */
1292 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1293 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001294 * to report the corresponding antenna index to the chain RSSI value
1295 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001296 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001297 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1298 * the specific antenna EVM value (unsigned 32 bit value). With a
1299 * determinate group of antennas, the driver specifies the EVM value
1300 * for each antenna ID, and application extract them in user space.
1301 */
1302 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001303 /*
1304 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1305 * wlan firmware current state. FW state is an unsigned 8 bit value,
1306 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1307 */
1308 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001309
Hai Shalom899fcc72020-10-19 14:38:18 -07001310 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1311 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1312 * of single values from enum qca_set_band are valid. This attribute
1313 * uses bitmask combinations to define the respective allowed band
1314 * combinations and this attributes takes precedence over
1315 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1316 */
1317 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1318
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001319 /* keep last */
1320 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1321 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1322};
1323
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001324enum qca_roaming_policy {
1325 QCA_ROAMING_NOT_ALLOWED,
1326 QCA_ROAMING_ALLOWED_WITHIN_ESS,
1327};
1328
Hai Shalom021b0b52019-04-10 11:17:58 -07001329/**
1330 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1331 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1332 *
1333 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1334 * reasons.
1335 *
1336 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1337 * the configured threshold.
1338 *
1339 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1340 * beacon misses from the then connected AP.
1341 *
1342 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1343 * by the connected AP.
1344 *
1345 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1346 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1347 *
1348 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1349 * or environment being very noisy or congested.
1350 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08001351 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
Hai Shalom021b0b52019-04-10 11:17:58 -07001352 * from the user (user space).
1353 *
1354 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1355 * the connected AP.
1356 *
1357 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1358 * breaching out the configured threshold.
Hai Shaloma20dcd72022-02-04 13:43:00 -08001359 *
1360 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1361 * transition request.
1362 *
1363 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1364 * data activity with the AP and the current RSSI falls below a certain
1365 * threshold.
1366 *
1367 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1368 * Disassociation frames received from the connected AP.
1369 *
1370 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1371 * that happens when there is no candidate AP found during the poor RSSI scan
1372 * trigger.
1373 *
1374 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1375 * obtained from an external scan (not aimed at roaming).
1376 *
1377 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1378 * established when the station is connected in the 2.4 GHz band.
Hai Shalom021b0b52019-04-10 11:17:58 -07001379 */
1380enum qca_roam_reason {
1381 QCA_ROAM_REASON_UNKNOWN,
1382 QCA_ROAM_REASON_PER,
1383 QCA_ROAM_REASON_BEACON_MISS,
1384 QCA_ROAM_REASON_POOR_RSSI,
1385 QCA_ROAM_REASON_BETTER_RSSI,
1386 QCA_ROAM_REASON_CONGESTION,
1387 QCA_ROAM_REASON_USER_TRIGGER,
1388 QCA_ROAM_REASON_BTM,
1389 QCA_ROAM_REASON_BSS_LOAD,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001390 QCA_ROAM_REASON_WTC,
1391 QCA_ROAM_REASON_IDLE,
1392 QCA_ROAM_REASON_DISCONNECTION,
1393 QCA_ROAM_REASON_PERIODIC_TIMER,
1394 QCA_ROAM_REASON_BACKGROUND_SCAN,
1395 QCA_ROAM_REASON_BT_ACTIVITY,
Hai Shalom021b0b52019-04-10 11:17:58 -07001396};
1397
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001398enum qca_wlan_vendor_attr_roam_auth {
1399 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -07001400 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
1401 * of the roamed AP for MLO roaming.
1402 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001403 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1404 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1405 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1406 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1407 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1408 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1409 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001410 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001411 /* Indicates the status of re-association requested by user space for
1412 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1413 * Type u16.
1414 * Represents the status code from AP. Use
1415 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1416 * real status code for failures.
1417 */
1418 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1419 /* This attribute indicates that the old association was maintained when
1420 * a re-association is requested by user space and that re-association
1421 * attempt fails (i.e., cannot connect to the requested BSS, but can
1422 * remain associated with the BSS with which the association was in
1423 * place when being requested to roam). Used along with
1424 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1425 * re-association status. Type flag.
1426 * This attribute is applicable only for re-association failure cases.
1427 */
1428 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1429 /* This attribute specifies the PMK if one was newly generated during
1430 * FILS roaming. This is added to the PMKSA cache and is used in
1431 * subsequent connections with PMKSA caching.
1432 */
1433 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1434 /* This attribute specifies the PMKID used/generated for the current
1435 * FILS roam. This is used in subsequent connections with PMKSA caching.
1436 */
1437 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1438 /* A 16-bit unsigned value specifying the next sequence number to use
1439 * in ERP message in the currently associated realm. This is used in
1440 * doing subsequent ERP based connections in the same realm.
1441 */
1442 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001443 /* A 16-bit unsigned value representing the reasons for the roaming.
1444 * Defined by enum qca_roam_reason.
1445 */
1446 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
Sunil Ravi89eba102022-09-13 21:04:37 -07001447 /* A nested attribute containing per-link information of all the links
1448 * of MLO connection done while roaming. The attributes used inside this
1449 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
1450 */
1451 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
Hai Shalom021b0b52019-04-10 11:17:58 -07001452
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001453 /* keep last */
1454 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1455 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1456 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1457};
1458
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001459enum qca_wlan_vendor_attr_p2p_listen_offload {
1460 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1461 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1462 * of the social channels.
1463 */
1464 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1465 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1466 */
1467 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1468 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1469 */
1470 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1471 /* A 32-bit unsigned value; number of interval times the firmware needs
1472 * to run the offloaded P2P listen operation before it stops.
1473 */
1474 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1475 /* An array of arbitrary binary data with one or more 8-byte values.
1476 * The device types include both primary and secondary device types.
1477 */
1478 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1479 /* An array of unsigned 8-bit characters; vendor information elements.
1480 */
1481 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1482 /* A 32-bit unsigned value; a control flag to indicate whether listen
1483 * results need to be flushed to wpa_supplicant.
1484 */
1485 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1486 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1487 * event.
1488 */
1489 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1490 /* keep last */
1491 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1492 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1493 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1494};
1495
Hai Shalomc3565922019-10-28 11:58:20 -07001496/**
1497 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1498 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1499 *
1500 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1501 * Used with event to notify the primary channel number selected in ACS
1502 * operation.
1503 * Note: If both the driver and user-space application supports the 6 GHz band,
1504 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1505 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1506 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1507 * is still used if either of the driver or user space application doesn't
1508 * support the 6 GHz band.
1509 *
1510 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1511 * Used with event to notify the secondary 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_SECONDARY_CHANNEL is deprecated; use
1515 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1516 * To maintain backward compatibility,
1517 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1518 * the driver or user space application doesn't support 6 GHz band.
1519 *
1520 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1521 * (a) Used with command to configure hw_mode from
1522 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1523 * (b) Also used with event to notify the hw_mode of selected primary channel
1524 * in ACS operation.
1525 *
1526 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1527 * Used with command to configure ACS operation for HT mode.
1528 * Disable (flag attribute not present) - HT disabled and
1529 * Enable (flag attribute present) - HT enabled.
1530 *
1531 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1532 * Used with command to configure ACS operation for HT40 mode.
1533 * Disable (flag attribute not present) - HT40 disabled and
1534 * Enable (flag attribute present) - HT40 enabled.
1535 *
1536 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1537 * Used with command to configure ACS operation for VHT mode.
1538 * Disable (flag attribute not present) - VHT disabled and
1539 * Enable (flag attribute present) - VHT enabled.
1540 *
1541 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1542 * mandatory with event.
1543 * If specified in command path, ACS operation is configured with the given
1544 * channel width (in MHz).
1545 * In event path, specifies the channel width of the primary channel selected.
1546 *
1547 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1548 * Used with command to configure channel list using an array of
1549 * channel numbers (u8).
1550 * Note: If both the driver and user-space application supports the 6 GHz band,
1551 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1552 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1553 *
1554 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1555 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001556 * ACS operation. The value is the index of the channel center frequency for
1557 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1558 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001559 * Note: If both the driver and user-space application supports the 6 GHz band,
1560 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1561 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1562 * To maintain backward compatibility,
1563 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1564 * the driver or user space application doesn't support the 6 GHz band.
1565 *
1566 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1567 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001568 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1569 * The value is the index of the channel center frequency for 160 MHz channels
1570 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1571 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001572 * Note: If both the driver and user-space application supports the 6 GHz band,
1573 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1574 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1575 * To maintain backward compatibility,
1576 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1577 * the driver or user space application doesn't support the 6 GHz band.
1578 *
1579 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1580 * Used with command to configure the channel list using an array of channel
1581 * center frequencies in MHz (u32).
1582 * Note: If both the driver and user-space application supports the 6 GHz band,
1583 * the driver first parses the frequency list and if it fails to get a frequency
1584 * list, parses the channel list specified using
1585 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1586 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1587 *
1588 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1589 * Used with event to notify the primary channel center frequency (MHz) selected
1590 * in ACS operation.
1591 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1592 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1593 *
1594 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1595 * Used with event to notify the secondary channel center frequency (MHz)
1596 * selected in ACS operation.
1597 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1598 * includes this attribute along with
1599 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1600 *
1601 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1602 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1603 * selected in ACS operation.
1604 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1605 * includes this attribute along with
1606 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1607 *
1608 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1609 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1610 * selected in ACS operation.
1611 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1612 * includes this attribute along with
1613 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07001614 *
1615 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1616 * Used with command to notify the driver of EDMG request for ACS
1617 * operation.
1618 *
1619 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1620 * Used with event to notify the EDMG channel number selected in ACS
1621 * operation.
1622 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shaloma20dcd72022-02-04 13:43:00 -08001623 *
1624 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
1625 * Used with event to notify the puncture pattern selected in ACS operation.
1626 * Encoding for this attribute will follow the convention used in the Disabled
1627 * Subchannel Bitmap field of the EHT Operation IE.
1628 *
1629 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
1630 * Used with command to configure ACS operation for EHT mode.
1631 * Disable (flag attribute not present) - EHT disabled and
1632 * Enable (flag attribute present) - EHT enabled.
Sunil8cd6f4d2022-06-28 18:40:46 +00001633 *
1634 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
1635 * Used with command to configure how older scan can be considered for ACS
1636 * scoring. In case scan was performed on a partial set of channels configured
1637 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
1638 * (in ms), scan only the remaining channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001639 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001640enum qca_wlan_vendor_attr_acs_offload {
1641 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07001642 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1643 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1644 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1645 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1646 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1647 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1648 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1649 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1650 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1651 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1652 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1653 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1654 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1655 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1656 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07001657 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1658 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001659 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
1660 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
Sunil8cd6f4d2022-06-28 18:40:46 +00001661 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
Hai Shalomc3565922019-10-28 11:58:20 -07001662
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001663 /* keep last */
1664 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1665 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1666 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1667};
1668
Hai Shalomc3565922019-10-28 11:58:20 -07001669/**
1670 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1671 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1672 *
1673 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1674 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1675 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1676 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1677 * @QCA_ACS_MODE_IEEE80211ANY: all modes
1678 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1679 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001680enum qca_wlan_vendor_acs_hw_mode {
1681 QCA_ACS_MODE_IEEE80211B,
1682 QCA_ACS_MODE_IEEE80211G,
1683 QCA_ACS_MODE_IEEE80211A,
1684 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001685 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07001686 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001687};
1688
1689/**
1690 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1691 *
1692 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1693 * management offload, a mechanism where the station's firmware
1694 * does the exchange with the AP to establish the temporal keys
1695 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001696 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1697 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001698 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07001699 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001700 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1701 * Listen offload; a mechanism where the station's firmware takes care of
1702 * responding to incoming Probe Request frames received from other P2P
1703 * Devices whilst in Listen state, rather than having the user space
1704 * wpa_supplicant do it. Information from received P2P requests are
1705 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001706 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1707 * specific features.
1708 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1709 * features.
1710 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1711 * specific features only. If a Device sets this bit but not the
1712 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1713 * this Device may not support all OCE AP functionalities but can support
1714 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001715 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1716 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07001717 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07001718 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1719 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07001720 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1721 * and applying thermal configuration through
1722 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1723 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1724 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08001725 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1726 * With Adaptive 11r feature, access points advertise the vendor
1727 * specific IEs and MDE but do not include FT AKM in the RSNE.
1728 * The Adaptive 11r supported stations are expected to identify
1729 * such vendor specific IEs and connect to the AP in FT mode though
1730 * the profile is configured in non-FT mode.
1731 * The driver-based SME cases also need to have this support for
1732 * Adaptive 11r to handle the connection and roaming scenarios.
1733 * This flag indicates the support for the same to the user space.
1734 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1735 * concurrent network sessions on different Wi-Fi bands. This feature
1736 * capability is attributed to the hardware's capability to support
1737 * the same (e.g., DBS).
1738 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1739 * responses for the respective TWT operations are asynchronous (separate
1740 * event message) from the driver. If not specified, the responses are
1741 * synchronous (in vendor command reply) to the request. Each TWT
1742 * operation is specifically mentioned (against its respective
1743 * documentation) to support either of these or both modes.
Sunil Ravia04bd252022-05-02 22:54:18 -07001744 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
Sunil8cd6f4d2022-06-28 18:40:46 +00001745 * that the driver requires add/del virtual interface path using the
Sunil Ravia04bd252022-05-02 22:54:18 -07001746 * generic nl80211 commands for NDP interface create/delete and to
1747 * register/unregister the netdev instead of creating/deleting the NDP
1748 * interface using the vendor commands
1749 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
1750 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
Sunil8cd6f4d2022-06-28 18:40:46 +00001751 * (5.12 version onward), interface creation/deletion is not allowed using
1752 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
1753 * during the register/unregister of netdev. Create and delete NDP
1754 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
1755 * commands respectively if the driver advertises this capability set.
Sunil Ravi89eba102022-09-13 21:04:37 -07001756 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
1757 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
1758 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
1759 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
1760 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
1761 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
1762 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
1763 * station mode supports secure RTT measurement exchange. If
1764 * NL80211_EXT_FEATURE_SECURE_RTT is set,
1765 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
1766 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
1767 * mode supports secure RTT measurement exchange. If
1768 * NL80211_EXT_FEATURE_SECURE_RTT is set,
1769 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
1770 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
1771 * the device in station mode supports protection of range negotiation and
1772 * measurement management frames. If
1773 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1774 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
1775 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
1776 * the device in AP mode supports protection of range negotiation and
1777 * measurement management frames. If
1778 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1779 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001780 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1781 */
1782enum qca_wlan_vendor_features {
1783 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001784 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001785 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001786 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001787 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1788 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
1789 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001790 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Sunil8cd6f4d2022-06-28 18:40:46 +00001791 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07001792 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
1793 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07001794 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08001795 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
1796 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
1797 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07001798 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
Sunil Ravi89eba102022-09-13 21:04:37 -07001799 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
1800 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
1801 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
1802 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
1803 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
1804 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001805 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1806};
1807
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001808/**
1809 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1810 *
1811 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1812 * the offloaded data.
1813 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1814 * data.
1815 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1816 * indication.
1817 */
1818enum qca_wlan_vendor_attr_data_offload_ind {
1819 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1820 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1821 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1822 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1823
1824 /* keep last */
1825 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1826 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1827 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1828};
Ravi Joshie6ccb162015-07-16 17:45:41 -07001829
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001830/**
1831 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1832 * OCB config
1833 *
1834 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1835 * configuration
1836 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1837 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1838 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1839 * scheduled
1840 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1841 * information
1842 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1843 * active state configuration
1844 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1845 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1846 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1847 * use in the case that a packet is sent without a TX control header
1848 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1849 * last TA received that the local time set by TA is synchronous to other
1850 * communicating OCB STAs.
1851 */
1852enum qca_wlan_vendor_attr_ocb_set_config {
1853 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1854 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1855 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1856 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1857 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1858 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1859 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1860 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1861 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1862 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1863 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1864 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1865 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1866};
1867
1868/**
1869 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1870 * UTC time
1871 *
1872 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1873 * 10 bytes
1874 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1875 * 5 bytes
1876 */
1877enum qca_wlan_vendor_attr_ocb_set_utc_time {
1878 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1879 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1880 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1881 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1882 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1883 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1884};
1885
1886/**
1887 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1888 * to start sending timing advert frames
1889 *
1890 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1891 * on which to send the frames
1892 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1893 * the frame is sent in 5 seconds
1894 */
1895enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1896 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1897 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1898 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1899 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1900 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1901 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1902};
1903
1904/**
1905 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1906 * to stop timing advert
1907 *
1908 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1909 * frequency on which to stop the timing advert
1910 */
1911enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1912 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1913 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1914 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1915 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1916 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1917};
1918
1919/**
1920 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1921 * get TSF timer value
1922 *
1923 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1924 * timer
1925 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1926 */
1927enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1928 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1929 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1930 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1931 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1932 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1933 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1934};
1935
Ravi Joshie6ccb162015-07-16 17:45:41 -07001936enum qca_vendor_attr_get_preferred_freq_list {
1937 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1938 /* A 32-unsigned value; the interface type/mode for which the preferred
1939 * frequency list is requested (see enum qca_iface_type for possible
1940 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1941 * kernel and in the kernel response back to user-space.
1942 */
1943 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1944 /* An array of 32-unsigned values; values are frequency (MHz); sent
1945 * from kernel space to user space.
1946 */
1947 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001948 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1949 * attribute. Each element contains frequency (MHz), weight, and flag
1950 * bit mask indicating how the frequency should be used in P2P
1951 * negotiation; sent from kernel space to user space.
1952 */
1953 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001954 /* keep last */
1955 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1956 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1957 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1958};
1959
1960enum qca_vendor_attr_probable_oper_channel {
1961 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1962 /* 32-bit unsigned value; indicates the connection/iface type likely to
1963 * come on this channel (see enum qca_iface_type).
1964 */
1965 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1966 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1967 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1968 /* keep last */
1969 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1970 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1971 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1972};
1973
1974enum qca_iface_type {
1975 QCA_IFACE_TYPE_STA,
1976 QCA_IFACE_TYPE_AP,
1977 QCA_IFACE_TYPE_P2P_CLIENT,
1978 QCA_IFACE_TYPE_P2P_GO,
1979 QCA_IFACE_TYPE_IBSS,
1980 QCA_IFACE_TYPE_TDLS,
1981};
1982
1983enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07001984 QCA_SETBAND_AUTO = 0,
1985 QCA_SETBAND_5G = BIT(0),
1986 QCA_SETBAND_2G = BIT(1),
1987 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07001988};
1989
Dmitry Shmidt17022322016-04-06 13:28:42 -07001990/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001991 * enum qca_access_policy - Access control policy
1992 *
1993 * Access control policy is applied on the configured IE
1994 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1995 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1996 *
1997 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1998 * the specific configuration (IE) set, i.e., allow all the
1999 * connections which do not match the configuration.
2000 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
2001 * the specific configuration (IE) set, i.e., deny all the
2002 * connections which do not match the configuration.
2003 */
2004enum qca_access_policy {
2005 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
2006 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
2007};
2008
2009/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002010 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
2011 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
2012 * Specify the TSF command. Possible values are defined in
2013 * &enum qca_tsf_cmd.
2014 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
2015 * This attribute contains TSF timer value. This attribute is only available
2016 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2017 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
2018 * This attribute contains SOC timer value at TSF capture. This attribute is
2019 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2020 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
2021 * This attribute is used to provide TSF sync interval and only applicable when
2022 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
2023 * driver will use the default value. Time unit is in milliseconds.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002024 */
2025enum qca_vendor_attr_tsf_cmd {
2026 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
2027 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
2028 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
2029 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002030 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002031 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
2032 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
2033 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
2034};
2035
2036/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002037 * enum qca_tsf_cmd: TSF driver commands
Dmitry Shmidt17022322016-04-06 13:28:42 -07002038 * @QCA_TSF_CAPTURE: Initiate TSF Capture
2039 * @QCA_TSF_GET: Get TSF capture value
2040 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
Hai Shaloma20dcd72022-02-04 13:43:00 -08002041 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
2042 * will automatically send TSF report to the host. To query
2043 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
2044 * initiated first.
2045 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
2046 * will not automatically send TSF report to the host. If
2047 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
2048 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
2049 * operation needs to be initiated.
2050 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
2051 * fetches TSF and host time mapping from the firmware with interval configured
2052 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
2053 * interval value is not provided the driver will use the default value. The
2054 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
2055 * command.
2056 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002057 */
2058enum qca_tsf_cmd {
2059 QCA_TSF_CAPTURE,
2060 QCA_TSF_GET,
2061 QCA_TSF_SYNC_GET,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002062 QCA_TSF_AUTO_REPORT_ENABLE,
2063 QCA_TSF_AUTO_REPORT_DISABLE,
2064 QCA_TSF_SYNC_START,
2065 QCA_TSF_SYNC_STOP,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002066};
2067
2068/**
2069 * enum qca_vendor_attr_wisa_cmd
2070 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
2071 * WISA setup vendor commands
2072 */
2073enum qca_vendor_attr_wisa_cmd {
2074 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2075 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2076 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2077 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2078 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2079};
2080
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002081/* IEEE 802.11 Vendor Specific elements */
2082
2083/**
2084 * enum qca_vendor_element_id - QCA Vendor Specific element types
2085 *
2086 * These values are used to identify QCA Vendor Specific elements. The
2087 * payload of the element starts with the three octet OUI (OUI_QCA) and
2088 * is followed by a single octet type which is defined by this enum.
2089 *
2090 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
2091 * This element can be used to specify preference order for supported
2092 * channels. The channels in this list are in preference order (the first
2093 * one has the highest preference) and are described as a pair of
2094 * (global) Operating Class and Channel Number (each one octet) fields.
2095 *
2096 * This extends the standard P2P functionality by providing option to have
2097 * more than one preferred operating channel. When this element is present,
2098 * it replaces the preference indicated in the Operating Channel attribute.
2099 * For supporting other implementations, the Operating Channel attribute is
2100 * expected to be used with the highest preference channel. Similarly, all
2101 * the channels included in this Preferred channel list element are
2102 * expected to be included in the Channel List attribute.
2103 *
2104 * This vendor element may be included in GO Negotiation Request, P2P
2105 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002106 *
2107 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
2108 * This element can be used for pre-standard publication testing of HE
2109 * before P802.11ax draft assigns the element ID. The payload of this
2110 * vendor specific element is defined by the latest P802.11ax draft.
2111 * Please note that the draft is still work in progress and this element
2112 * payload is subject to change.
2113 *
2114 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
2115 * This element can be used for pre-standard publication testing of HE
2116 * before P802.11ax draft assigns the element ID. The payload of this
2117 * vendor specific element is defined by the latest P802.11ax draft.
2118 * Please note that the draft is still work in progress and this element
2119 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08002120 *
2121 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
2122 * element).
2123 * This element can be used for pre-standard publication testing of HE
2124 * before P802.11ax draft assigns the element ID extension. The payload of
2125 * this vendor specific element is defined by the latest P802.11ax draft
2126 * (not including the Element ID Extension field). Please note that the
2127 * draft is still work in progress and this element payload is subject to
2128 * change.
2129 *
2130 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2131 * This element can be used for pre-standard publication testing of HE
2132 * before P802.11ax draft assigns the element ID extension. The payload of
2133 * this vendor specific element is defined by the latest P802.11ax draft
2134 * (not including the Element ID Extension field). Please note that the
2135 * draft is still work in progress and this element payload is subject to
2136 * change.
2137 *
2138 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2139 * This element can be used for pre-standard publication testing of HE
2140 * before P802.11ax draft assigns the element ID extension. The payload of
2141 * this vendor specific element is defined by the latest P802.11ax draft
2142 * (not including the Element ID Extension field). Please note that the
2143 * draft is still work in progress and this element payload is subject to
2144 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07002145 *
2146 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002147 */
2148enum qca_vendor_element_id {
2149 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002150 QCA_VENDOR_ELEM_HE_CAPAB = 1,
2151 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08002152 QCA_VENDOR_ELEM_RAPS = 3,
2153 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2154 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07002155 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002156};
2157
2158/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002159 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2160 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2161 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2162 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2163 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2164 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2165 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2166 */
2167enum qca_wlan_vendor_scan_priority {
2168 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2169 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2170 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2171 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2172 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2173};
2174
2175/**
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002176 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2177 *
2178 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2179 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2180 * with frequencies to be scanned (in MHz)
2181 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2182 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2183 * rates to be included
2184 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07002185 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002186 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2187 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07002188 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002189 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07002190 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002191 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07002192 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002193 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002194 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08002195 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2196 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07002197 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2198 * microseconds. This is a common value which applies across all
2199 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002200 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2201 * other scan requests. It is a u32 attribute and takes values from enum
2202 * qca_wlan_vendor_scan_priority. This is an optional attribute.
2203 * If this attribute is not configured, the driver shall use
2204 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002205 */
2206enum qca_wlan_vendor_attr_scan {
2207 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002208 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2209 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2210 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2211 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2212 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2213 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2214 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2215 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2216 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2217 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2218 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07002219 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002220 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002221 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2222 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2223 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2224};
2225
2226/**
2227 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07002228 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002229 *
2230 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002231 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002232 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2233 */
2234enum scan_status {
2235 VENDOR_SCAN_STATUS_NEW_RESULTS,
2236 VENDOR_SCAN_STATUS_ABORTED,
2237 VENDOR_SCAN_STATUS_MAX,
2238};
2239
2240/**
2241 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2242 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2243 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2244 */
2245enum qca_vendor_attr_ota_test {
2246 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2247 /* 8-bit unsigned value to indicate if OTA test is enabled */
2248 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2249 /* keep last */
2250 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2251 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2252 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2253};
2254
2255/**
2256 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2257 *
2258 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2259 */
2260enum qca_vendor_attr_txpower_scale {
2261 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2262 /* 8-bit unsigned value to indicate the scaling of tx power */
2263 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2264 /* keep last */
2265 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2266 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2267 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2268};
2269
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002270/**
2271 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2272 *
2273 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2274 */
2275enum qca_vendor_attr_txpower_decr_db {
2276 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2277 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002278 * a virtual interface.
2279 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002280 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2281 /* keep last */
2282 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2283 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2284 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2285};
2286
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002287/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002288 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2289 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002290 */
2291enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002292 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002293 /* Unsigned 32-bit value to set the DTIM period.
2294 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2295 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2296 * DTIM beacons.
2297 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002298 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002299 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2300 * used to calculate statistics like average the TSF offset or average
2301 * number of frame leaked.
2302 * For instance, upon Beacon frame reception:
2303 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
2304 * For instance, when evaluating leaky APs:
2305 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
2306 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002307 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002308 /* Unsigned 32-bit value to configure guard time, i.e., when
2309 * implementing IEEE power management based on frame control PM bit, how
2310 * long the driver waits before shutting down the radio and after
2311 * receiving an ACK frame for a Data frame with PM bit set.
2312 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002313 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002314 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002315 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002316 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002317 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002318 /* Unsigned 32-bit value to configure the number of continuous
2319 * Beacon Miss which shall be used by the firmware to penalize
2320 * the RSSI.
2321 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002322 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002323 /* Unsigned 8-bit value to configure the channel avoidance indication
2324 * behavior. Firmware to send only one indication and ignore duplicate
2325 * indications when set to avoid multiple Apps wakeups.
2326 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002327 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002328 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002329 * aggregation.
2330 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002331 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002332 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002333 * aggregation.
2334 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002335 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002336 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002337 * retry threshold (0 disable, 31 max).
2338 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002339 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002340 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002341 * retry threshold (0 disable, 31 max).
2342 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002343 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002344 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002345 * retry threshold (0 disable, 31 max).
2346 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002347 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002348 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002349 * retry threshold (0 disable, 31 max).
2350 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002351 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002352 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002353 * 2G/5G band (0~63, units in us)
2354 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002355 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002356 /* Unsigned 32-bit value to configure the number of unicast TX fail
2357 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07002358 * reached.
2359 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002360 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002361 /* Attribute used to set scan default IEs to the driver.
2362 *
2363 * These IEs can be used by scan operations that will be initiated by
2364 * the driver/firmware.
2365 *
2366 * For further scan requests coming to the driver, these IEs should be
2367 * merged with the IEs received along with scan request coming to the
2368 * driver. If a particular IE is present in the scan default IEs but not
2369 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07002370 * sent in the Probe Request frames for that scan request.
2371 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002372 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002373 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002374 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002375 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002376 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002377 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002378 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002379 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002380 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2381 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002382 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002383 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002384 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2385 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002386 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002387 /* Unsigned 32-bit, defining the access policy.
2388 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002389 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2390 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002391 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002392 /* Sets the list of full set of IEs for which a specific access policy
2393 * has to be applied. Used along with
2394 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002395 * Zero length payload can be used to clear this access constraint.
2396 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002397 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002398 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
2399 * corresponding configurations are applied. If the interface index is
2400 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07002401 * wiphy.
2402 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002403 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002404 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002405 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002406 /* 8-bit unsigned value to configure the driver and below layers to
2407 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07002408 * 1-Ignore, 0-Don't ignore
2409 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002410 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002411 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07002412 * 1-Enable, 0-Disable
2413 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002414 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002415 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002416 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002417 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002418 * 1-Enable, 0-Disable
2419 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002420 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002421 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002422 * the unit is micro-second
2423 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002424 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2425 /* 32-bit unsigned value to set reorder timeout for AC_VO */
2426 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2427 /* 32-bit unsigned value to set reorder timeout for AC_VI */
2428 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2429 /* 32-bit unsigned value to set reorder timeout for AC_BE */
2430 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2431 /* 32-bit unsigned value to set reorder timeout for AC_BK */
2432 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2433 /* 6-byte MAC address to point out the specific peer */
2434 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
2435 /* 32-bit unsigned value to set window size for specific peer */
2436 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002437 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2438 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2439 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2440 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002441 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2442 * station device while in disconnect state. The attribute use the
2443 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2444 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2445 * 10 MHz channel width, the station will not connect to a BSS using 20
2446 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07002447 * clear this constraint.
2448 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002449 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2450 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07002451 * for 2G/5G band (units in us)
2452 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002453 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2454 /* 32-bit unsigned value to set probe period */
2455 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2456 /* 32-bit unsigned value to set stay period */
2457 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2458 /* 32-bit unsigned value to set snr diff */
2459 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2460 /* 32-bit unsigned value to set probe dwell time */
2461 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2462 /* 32-bit unsigned value to set mgmt snr weight */
2463 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2464 /* 32-bit unsigned value to set data snr weight */
2465 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2466 /* 32-bit unsigned value to set ack snr weight */
2467 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2468 /* 32-bit unsigned value to configure the listen interval.
2469 * This is in units of beacon intervals. This configuration alters
2470 * the negotiated listen interval with the AP during the connection.
2471 * It is highly recommended to configure a value less than or equal to
2472 * the one negotiated during the association. Configuring any greater
2473 * value can have adverse effects (frame loss, AP disassociating STA,
2474 * etc.).
2475 */
2476 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2477 /*
2478 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2479 * disable operations that would cause the AP/GO to leave its operating
2480 * channel.
2481 *
2482 * This will restrict the scans to the AP/GO operating channel and the
2483 * channels of the other band, if DBS is supported.A STA/CLI interface
2484 * brought up after this setting is enabled, will be restricted to
2485 * connecting to devices only on the AP/GO interface's operating channel
2486 * or on the other band in DBS case. P2P supported channel list is
2487 * modified, to only include AP interface's operating-channel and the
2488 * channels of the other band if DBS is supported.
2489 *
2490 * These restrictions are only applicable as long as the AP/GO interface
2491 * is alive. If the AP/GO interface is brought down then this
2492 * setting/restriction is forgotten.
2493 *
2494 * If this variable is set on an AP/GO interface while a multi-channel
2495 * concurrent session is active, it has no effect on the operation of
2496 * the current interfaces, other than restricting the scan to the AP/GO
2497 * operating channel and the other band channels if DBS is supported.
2498 * However, if the STA is brought down and restarted then the new STA
2499 * connection will either be formed on the AP/GO channel or on the
2500 * other band in a DBS case. This is because of the scan being
2501 * restricted on these channels as mentioned above.
2502 *
2503 * 1-Restrict / 0-Don't restrict offchannel operations.
2504 */
2505 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2506 /*
2507 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2508 * on an interface.
2509 * 1 - Enable, 0 - Disable.
2510 */
2511 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2512
2513 /*
2514 * 8 bit unsigned value to globally enable/disable scan
2515 * 1 - Enable, 0 - Disable.
2516 */
2517 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2518
2519 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07002520 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002521 */
2522 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2523
2524 /* Unsigned 32-bit value to configure the number of continuous
2525 * Beacon Miss which shall be used by the firmware to penalize
2526 * the RSSI for BTC.
2527 */
2528 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2529
2530 /* 8-bit unsigned value to configure the driver and below layers to
2531 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002532 * 0-enable, 1-disable
2533 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002534 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002535
Roshan Pius3a1667e2018-07-03 15:17:14 -07002536 /* 16-bit unsigned value to configure the level of WLAN latency
2537 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2538 */
2539 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2540
2541 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2542 * the connect interface. Exclusively used for the scenarios where the
2543 * device is used as a test bed device with special functionality and
2544 * not recommended for production. This helps driver to not validate the
2545 * RSNE passed from user space and thus allow arbitrary IE data to be
2546 * used for testing purposes.
2547 * 1-enable, 0-disable.
2548 * Applications set/reset this configuration. If not reset, this
2549 * parameter remains in use until the driver is unloaded.
2550 */
2551 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2552
2553 /* 8-bit unsigned value to trigger green Tx power saving.
2554 * 1-Enable, 0-Disable
2555 */
2556 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2557
Hai Shalomc3565922019-10-28 11:58:20 -07002558 /* Attribute to configure disconnect IEs to the driver.
2559 * This carries an array of unsigned 8-bit characters.
2560 *
2561 * If this is configured, driver shall fill the IEs in disassoc/deauth
2562 * frame.
2563 * These IEs are expected to be considered only for the next
2564 * immediate disconnection (disassoc/deauth frame) originated by
2565 * the DUT, irrespective of the entity (user space/driver/firmware)
2566 * triggering the disconnection.
2567 * The host drivers are not expected to use the IEs set through
2568 * this interface for further disconnections after the first immediate
2569 * disconnection initiated post the configuration.
2570 * If the IEs are also updated through cfg80211 interface (after the
2571 * enhancement to cfg80211_disconnect), host driver is expected to
2572 * take the union of IEs from both of these interfaces and send in
2573 * further disassoc/deauth frames.
2574 */
Hai Shalomfdcde762020-04-02 11:19:20 -07002575 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07002576
2577 /* 8-bit unsigned value for ELNA bypass.
Sunil Ravia04bd252022-05-02 22:54:18 -07002578 * 0 - Disable eLNA bypass.
2579 * 1 - Enable eLNA bypass.
2580 * 2 - Reset eLNA bypass configuration, the driver should
2581 * revert to the default configuration of eLNA bypass.
Hai Shalomc3565922019-10-28 11:58:20 -07002582 */
2583 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2584
Hai Shalomfdcde762020-04-02 11:19:20 -07002585 /* 8-bit unsigned value. This attribute enables/disables the host driver
2586 * to send the Beacon Report Response with failure reason for the
2587 * scenarios where STA cannot honor the Beacon Report Request from AP.
2588 * 1-Enable, 0-Disable.
2589 */
2590 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2591
2592 /* 8-bit unsigned value. This attribute enables/disables the host driver
2593 * to send roam reason information in the Reassociation Request frame to
2594 * the target AP when roaming within the same ESS.
2595 * 1-Enable, 0-Disable.
2596 */
2597 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2598
Hai Shalom899fcc72020-10-19 14:38:18 -07002599 /* 32-bit unsigned value to configure different PHY modes to the
2600 * driver/firmware. The possible values are defined in
2601 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2602 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2603 * the driver.
2604 */
2605 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2606
2607 /* 8-bit unsigned value to configure the maximum supported channel width
2608 * for STA mode. If this value is configured when STA is in connected
2609 * state, it should not exceed the negotiated channel width. If it is
2610 * configured when STA is in disconnected state, the configured value
2611 * will take effect for the next immediate connection.
2612 * Possible values are:
2613 * NL80211_CHAN_WIDTH_20
2614 * NL80211_CHAN_WIDTH_40
2615 * NL80211_CHAN_WIDTH_80
2616 * NL80211_CHAN_WIDTH_80P80
2617 * NL80211_CHAN_WIDTH_160
2618 */
2619 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2620
2621 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2622 * This attribute is only applicable for STA mode. When dynamic
2623 * bandwidth adjustment is disabled, STA will use static channel width
2624 * the value of which is negotiated during connection.
2625 * 1-enable (default), 0-disable
2626 */
2627 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2628
2629 /* 8-bit unsigned value to configure the maximum number of subframes of
2630 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2631 * it is decided by the hardware.
2632 */
2633 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2634
2635 /* 8-bit unsigned value to configure the maximum number of subframes of
2636 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2637 * it is decided by the hardware.
2638 */
2639 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2640
2641 /* 8-bit unsigned value. This attribute is used to dynamically
2642 * enable/disable the LDPC capability of the device. When configured in
2643 * the disconnected state, the updated configuration will be considered
2644 * for the immediately following connection attempt. If this
2645 * configuration is modified while the device is in the connected state,
2646 * the LDPC TX will be updated with this configuration immediately,
2647 * while the LDPC RX configuration update will take place starting from
2648 * the subsequent association attempt.
2649 * 1-Enable, 0-Disable.
2650 */
2651 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2652
2653 /* 8-bit unsigned value. This attribute is used to dynamically
2654 * enable/disable the TX STBC capability of the device. When configured
2655 * in the disconnected state, the updated configuration will be
2656 * considered for the immediately following connection attempt. If the
2657 * connection is formed with TX STBC enabled and if this configuration
2658 * is disabled during that association, the TX will be impacted
2659 * immediately. Further connection attempts will disable TX STBC.
2660 * However, enabling the TX STBC for a connected session with disabled
2661 * capability is not allowed and will fail.
2662 * 1-Enable, 0-Disable.
2663 */
2664 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2665
2666 /* 8-bit unsigned value. This attribute is used to dynamically
2667 * enable/disable the RX STBC capability of the device. When configured
2668 * in the disconnected state, the updated configuration will be
2669 * considered for the immediately following connection attempt. If the
2670 * configuration is modified in the connected state, there will be no
2671 * impact for the current association, but further connection attempts
2672 * will use the updated configuration.
2673 * 1-Enable, 0-Disable.
2674 */
2675 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2676
2677 /* 8-bit unsigned value. This attribute is used to dynamically configure
2678 * the number of spatial streams. When configured in the disconnected
2679 * state, the updated configuration will be considered for the
2680 * immediately following connection attempt. If the NSS is updated after
2681 * the connection, the updated NSS value is notified to the peer using
2682 * the Operating Mode Notification/Spatial Multiplexing Power Save
2683 * frame. The updated NSS value after the connection shall not be
2684 * greater than the one negotiated during the connection. Any such
2685 * higher value configuration shall be returned with a failure.
Hai Shalom60840252021-02-19 19:02:11 -08002686 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2687 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2688 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2689 * configure the asymmetric NSS configuration (such as 1X2).
Hai Shalom899fcc72020-10-19 14:38:18 -07002690 */
2691 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
2692 /* 8-bit unsigned value to trigger Optimized Power Management:
2693 * 1-Enable, 0-Disable
2694 */
2695 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2696
2697 /* 8-bit unsigned value. This attribute takes the QoS/access category
2698 * value represented by the enum qca_wlan_ac_type and expects the driver
2699 * to upgrade the UDP frames to this access category. The value of
2700 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2701 * DSCP value configured in the frame with the intention to only upgrade
2702 * the access category. That said, it is not intended to downgrade the
2703 * access category for the frames.
2704 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2705 * disabled, as BK is of the lowest priority and an upgrade to it does
2706 * not result in any changes for the frames.
Sunil Ravi77d572f2023-01-17 23:58:31 +00002707 *
2708 * If only UDP frames of BE or BK access category needs to be upgraded
2709 * without changing the access category of VO or VI UDP frames, refer to
2710 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
2711 *
2712 * This attribute is not recommended to be used as it blindly forces all
2713 * UDP packets to a higher access category which could impact the
2714 * traffic pattern of all apps using UDP and can cause unknown behavior.
Hai Shalom899fcc72020-10-19 14:38:18 -07002715 */
2716 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2717
2718 /* 8-bit unsigned value. This attribute is used to dynamically configure
2719 * the number of chains to be used for transmitting data. This
2720 * configuration is allowed only when in connected state and will be
2721 * effective until disconnected. The driver rejects this configuration
2722 * if the number of spatial streams being used in the current connection
2723 * cannot be supported by this configuration.
2724 */
2725 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2726 /* 8-bit unsigned value. This attribute is used to dynamically configure
2727 * the number of chains to be used for receiving data. This
2728 * configuration is allowed only when in connected state and will be
2729 * effective until disconnected. The driver rejects this configuration
2730 * if the number of spatial streams being used in the current connection
2731 * cannot be supported by this configuration.
2732 */
2733 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2734
2735 /* 8-bit unsigned value to configure ANI setting type.
2736 * See &enum qca_wlan_ani_setting for possible values.
2737 */
2738 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2739 /* 32-bit signed value to configure ANI level. This is used when
2740 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2741 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2742 * is invalid, the driver will return a failure.
2743 */
2744 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2745
Hai Shalom60840252021-02-19 19:02:11 -08002746 /* 8-bit unsigned value. This attribute is used to dynamically configure
2747 * the number of spatial streams used for transmitting the data. When
2748 * configured in the disconnected state, the configured value will
2749 * be considered for the following connection attempt.
2750 * If the NSS is updated after the connection, the updated NSS value
2751 * is notified to the peer using the Operating Mode Notification/Spatial
2752 * Multiplexing Power Save frame.
2753 * The TX NSS value configured after the connection shall not be greater
2754 * than the value negotiated during the connection. Any such higher
2755 * value configuration shall be treated as invalid configuration by
2756 * the driver. This attribute shall be configured along with
2757 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2758 * configuration (such as 2X2 or 1X1) or the asymmetric
2759 * configuration (such as 1X2).
2760 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2761 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
2762 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
2763 */
2764 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
2765
2766 /* 8-bit unsigned value. This attribute is used to dynamically configure
2767 * the number of spatial streams used for receiving the data. When
2768 * configured in the disconnected state, the configured value will
2769 * be considered for the following connection attempt.
2770 * If the NSS is updated after the connection, the updated NSS value
2771 * is notified to the peer using the Operating Mode Notification/Spatial
2772 * Multiplexing Power Save frame.
2773 * The RX NSS value configured after the connection shall not be greater
2774 * than the value negotiated during the connection. Any such higher
2775 * value configuration shall be treated as invalid configuration by
2776 * the driver. This attribute shall be configured along with
2777 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
2778 * configuration (such as 2X2 or 1X1) or the asymmetric
2779 * configuration (such as 1X2).
2780 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2781 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
2782 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
2783 */
2784 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
2785
Hai Shaloma20dcd72022-02-04 13:43:00 -08002786 /*
2787 * 8-bit unsigned value. This attribute, when set, indicates whether the
2788 * specified interface is the primary STA interface when there are more
2789 * than one STA interfaces concurrently active.
2790 *
2791 * This configuration helps the firmware/hardware to support certain
2792 * features (e.g., roaming) on this primary interface, if the same
2793 * cannot be supported on the concurrent STA interfaces simultaneously.
2794 *
2795 * This configuration is only applicable for a single STA interface on
2796 * a device and gives the priority for it only over other concurrent STA
2797 * interfaces.
2798 *
2799 * If the device is a multi wiphy/soc, this configuration applies to a
2800 * single STA interface across the wiphys.
2801 *
2802 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
2803 */
2804 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
2805
2806 /*
2807 * 8-bit unsigned value. This attribute can be used to configure the
2808 * driver to enable/disable FT-over-DS feature. Possible values for
2809 * this attribute are 1-Enable and 0-Disable.
2810 */
2811 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
2812
2813 /*
2814 * 8-bit unsigned value. This attribute can be used to configure the
2815 * firmware to enable/disable ARP/NS offload feature. Possible values
2816 * for this attribute are 0-Disable and 1-Enable.
2817 *
2818 * This attribute is only applicable for STA/P2P-Client interface,
2819 * and is optional, default behavior is ARP/NS offload enabled.
2820 *
2821 * This attribute can be set in disconnected and connected state, and
2822 * will restore to the default behavior if the interface is closed.
2823 */
2824 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
2825
Sunil8cd6f4d2022-06-28 18:40:46 +00002826 /*
2827 * 8-bit unsigned value. This attribute can be used to configure the
2828 * data path mode to be followed for audio traffic. Possible values
2829 * are defined in enum qca_wlan_audio_data_path.
2830 */
2831 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
2832
Sunil Ravi89eba102022-09-13 21:04:37 -07002833 /*
2834 * 8-bit unsigned value. This attribute can be used to configure the
2835 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
2836 * this attribute are defined in the enum qca_wlan_dbam_config.
2837 */
2838 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
2839
Sunil Ravi77d572f2023-01-17 23:58:31 +00002840 /* 8-bit unsigned value. This attribute takes the QoS/access category
2841 * value represented by the enum qca_wlan_ac_type and expects the driver
2842 * to upgrade the UDP frames of BE or BK access category to this access
2843 * category. This attribute will not modify UDP frames of VO or VI
2844 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
2845 * attribute.
2846 *
2847 * This will override the DSCP value configured in the frame with the
2848 * intention to only upgrade the access category. That said, it is not
2849 * intended to downgrade the access category for the frames.
2850 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2851 * disabled, as BK is of the lowest priority and an upgrade to it does
2852 * not result in any changes for the frames.
2853 *
2854 * This attribute behavior is similar to
2855 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
2856 * only UDP frames of BE or BK access category are upgraded and not
2857 * UDP frames of VI or VO access category.
2858 *
2859 * This attribute is not recommended to be used as it blindly forces all
2860 * UDP packets of BE or BK access category to a higher access category
2861 * which could impact the traffic pattern of all apps using UDP and can
2862 * cause unknown behavior.
2863 */
2864 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
2865
2866 /* 8-bit unsigned value to configure the driver to enable/disable the
2867 * periodic sounding for Tx beamformer functionality. The default
2868 * behavior uses algorithm to do sounding based on packet stats.
2869 *
2870 * 0 - Default behavior.
2871 * 1 - Enable the periodic sounding for Tx beamformer.
2872 */
2873 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
2874
2875 /* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends,
2876 * userspace sends this information to the driver/firmware to configure
2877 * wfc state. The driver/firmware uses this information to
2878 * optimize power savings, rate adaption, roaming, etc.
2879 *
2880 * 1 - wfc is on.
2881 * 0 - wfc is off.
2882 */
2883 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
2884
2885 /* 8-bit unsigned value to configure the driver to enable/disable the
2886 * EHT EML capability in management frame EHT capabilities.
2887 * 1 - Enable, 0 - Disable.
2888 */
2889 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
2890
2891 /* 8-bit unsigned value to configure the driver with EHT MLO max
2892 * simultaneous links to be used for MLO connection.
2893 * The range of the value is 0 to 14.
2894 */
2895 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
2896
2897 /* 8-bit unsigned value to configure the driver with EHT MLO maximum
2898 * number of links to be used for MLO connection.
2899 * The range of the value is 1 to 16.
2900 */
2901 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
2902
2903 /* 8-bit unsigned value to configure the driver with EHT MLO mode.
2904 * Uses enum qca_wlan_eht_mlo_mode values.
2905 */
2906 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
2907
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002908 /* keep last */
2909 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
2910 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
2911 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
2912};
2913
Hai Shalomfdcde762020-04-02 11:19:20 -07002914/* Compatibility defines for previously used incorrect enum
2915 * qca_wlan_vendor_attr_config names. These values should not be used in any
2916 * new implementation. */
2917#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
2918 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
2919#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
2920 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
2921
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002922/**
Sunil Ravi89eba102022-09-13 21:04:37 -07002923 * enum qca_dbam_config - Specifies DBAM config mode
2924 * @QCA_DBAM_DISABLE: Firmware disables DBAM
2925 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
2926 * internal criteria are met.
2927 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
2928 */
2929enum qca_dbam_config {
2930 QCA_DBAM_DISABLE = 0,
2931 QCA_DBAM_ENABLE = 1,
2932 QCA_DBAM_FORCE_ENABLE = 2,
2933};
2934
2935/**
Hai Shalom899fcc72020-10-19 14:38:18 -07002936 * enum qca_wlan_ani_setting - ANI setting type
2937 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
2938 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
2939 */
2940enum qca_wlan_ani_setting {
2941 QCA_WLAN_ANI_SETTING_AUTO = 0,
2942 QCA_WLAN_ANI_SETTING_FIXED = 1,
2943};
2944
2945/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002946 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07002947 *
2948 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
2949 * Channel number on which Access Point should restart.
2950 * Note: If both the driver and user space application supports the 6 GHz band,
2951 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
2952 * should be used.
2953 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
2954 * is still used if either of the driver or user space application doesn't
2955 * support the 6 GHz band.
2956 *
2957 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
2958 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002959 */
2960enum qca_wlan_vendor_attr_sap_config {
2961 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002962 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
2963
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002964 /* List of frequencies on which AP is expected to operate.
2965 * This is irrespective of ACS configuration. This list is a priority
2966 * based one and is looked for before the AP is created to ensure the
2967 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
2968 * the system.
2969 */
2970 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07002971 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002972
2973 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
2974 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
2975 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
2976};
2977
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002978/**
2979 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
2980 * conditional channel switch
2981 */
2982enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
2983 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
2984 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07002985 * order)
2986 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002987 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
2988 /* Status of the conditional switch (u32).
2989 * 0: Success, Non-zero: Failure
2990 */
2991 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
2992
2993 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
2994 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
2995 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
2996};
2997
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002998/**
2999 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07003000 *
3001 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
3002 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
3003 * for the available values.
3004 *
3005 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
3006 * value to specify the GPIO number.
3007 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3008 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3009 *
3010 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
3011 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
3012 * for the available values.
3013 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3014 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3015 *
Hai Shalom60840252021-02-19 19:02:11 -08003016 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003017 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
3018 * for the available values.
3019 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003020 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3021 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3022 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3023 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003024 *
Hai Shalom60840252021-02-19 19:02:11 -08003025 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003026 * value to specify the GPIO interrupt mode. Please refer to enum
3027 * qca_gpio_interrupt_mode for the available values.
3028 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003029 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3030 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3031 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3032 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003033 *
Hai Shalom60840252021-02-19 19:02:11 -08003034 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003035 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
3036 * for the available values.
3037 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003038 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3039 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3040 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3041 * attribute is present.
3042 *
3043 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
3044 * Value to specify the mux config. Meaning of a given value is dependent
3045 * on the target chipset and GPIO pin. Must be of the range 0-15.
3046 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3047 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
3048 *
3049 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
3050 * Value to specify the drive, refer to enum qca_gpio_drive.
3051 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3052 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
3053 *
3054 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
3055 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3056 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
3057 * other parameters for the given GPIO will be obtained from internal
3058 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
3059 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003060 */
3061enum qca_wlan_gpio_attr {
3062 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
3063 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07003064 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003065 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07003066 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003067 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07003068 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003069 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07003070 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003071 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07003072 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
3073 /* Unsigned 32-bit attribute for GPIO direction to configure */
3074 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08003075 /* Unsigned 32-bit attribute for GPIO mux config */
3076 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
3077 /* Unsigned 32-bit attribute for GPIO drive */
3078 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
3079 /* Flag attribute for using internal GPIO configuration */
3080 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003081
3082 /* keep last */
3083 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
3084 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
3085 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
3086};
3087
3088/**
Hai Shalom899fcc72020-10-19 14:38:18 -07003089 * enum gpio_cmd_type - GPIO configuration command type
3090 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
3091 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
3092 */
3093enum qca_gpio_cmd_type {
3094 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
3095 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
3096};
3097
3098/**
3099 * enum qca_gpio_pull_type - GPIO pull type
3100 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
3101 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
3102 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
3103 */
3104enum qca_gpio_pull_type {
3105 QCA_WLAN_GPIO_PULL_NONE = 0,
3106 QCA_WLAN_GPIO_PULL_UP = 1,
3107 QCA_WLAN_GPIO_PULL_DOWN = 2,
3108 QCA_WLAN_GPIO_PULL_MAX,
3109};
3110
3111/**
3112 * enum qca_gpio_direction - GPIO direction
3113 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
3114 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
3115 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
3116 */
3117enum qca_gpio_direction {
3118 QCA_WLAN_GPIO_INPUT = 0,
3119 QCA_WLAN_GPIO_OUTPUT = 1,
3120 QCA_WLAN_GPIO_DIR_MAX,
3121};
3122
3123/**
3124 * enum qca_gpio_value - GPIO Value
3125 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
3126 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
3127 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
3128 */
3129enum qca_gpio_value {
3130 QCA_WLAN_GPIO_LEVEL_LOW = 0,
3131 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
3132 QCA_WLAN_GPIO_LEVEL_MAX,
3133};
3134
3135/**
3136 * enum gpio_interrupt_mode - GPIO interrupt mode
3137 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
3138 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
3139 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
3140 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
3141 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
3142 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
3143 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
3144 */
3145enum qca_gpio_interrupt_mode {
3146 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
3147 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
3148 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
3149 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
3150 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
3151 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
3152 QCA_WLAN_GPIO_INTMODE_MAX,
3153};
3154
3155/**
Hai Shalom60840252021-02-19 19:02:11 -08003156 * enum qca_gpio_drive - GPIO drive
3157 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
3158 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
3159 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
3160 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
3161 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
3162 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
3163 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
3164 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
3165 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
3166 */
3167enum qca_gpio_drive {
3168 QCA_WLAN_GPIO_DRIVE_2MA = 0,
3169 QCA_WLAN_GPIO_DRIVE_4MA = 1,
3170 QCA_WLAN_GPIO_DRIVE_6MA = 2,
3171 QCA_WLAN_GPIO_DRIVE_8MA = 3,
3172 QCA_WLAN_GPIO_DRIVE_10MA = 4,
3173 QCA_WLAN_GPIO_DRIVE_12MA = 5,
3174 QCA_WLAN_GPIO_DRIVE_14MA = 6,
3175 QCA_WLAN_GPIO_DRIVE_16MA = 7,
3176 QCA_WLAN_GPIO_DRIVE_MAX,
3177};
3178
3179/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07003180 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
3181 * MSDUQ depth threshold per peer per tid in the target
3182 *
3183 * Associated Vendor Command:
3184 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
3185 */
3186enum qca_wlan_set_qdepth_thresh_attr {
3187 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
3188 /* 6-byte MAC address */
3189 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
3190 /* Unsigned 32-bit attribute for holding the TID */
3191 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
3192 /* Unsigned 32-bit attribute for holding the update mask
3193 * bit 0 - Update high priority msdu qdepth threshold
3194 * bit 1 - Update low priority msdu qdepth threshold
3195 * bit 2 - Update UDP msdu qdepth threshold
3196 * bit 3 - Update Non UDP msdu qdepth threshold
3197 * rest of bits are reserved
3198 */
3199 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
3200 /* Unsigned 32-bit attribute for holding the threshold value */
3201 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
3202
3203 /* keep last */
3204 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
3205 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
3206 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
3207};
3208
3209/**
Hai Shalomc3565922019-10-28 11:58:20 -07003210 * enum qca_acs_dfs_mode - Defines different types of DFS channel
3211 * configurations for ACS operation.
3212 *
3213 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
3214 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
3215 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
3216 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
3217 */
3218enum qca_acs_dfs_mode {
3219 QCA_ACS_DFS_MODE_NONE = 0,
3220 QCA_ACS_DFS_MODE_ENABLE = 1,
3221 QCA_ACS_DFS_MODE_DISABLE = 2,
3222 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
3223};
3224
3225/**
3226 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
3227 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
3228 *
3229 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
3230 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
3231 *
3232 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
3233 * channel number hint for ACS operation, if valid channel is specified then
3234 * ACS operation gives priority to this channel.
3235 * Note: If both the driver and user space application supports the 6 GHz band,
3236 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
3237 * should be used.
3238 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
3239 * is still used if either of the driver or user space application doesn't
3240 * support the 6 GHz band.
3241 *
3242 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
3243 * Channel center frequency (MHz) hint for ACS operation, if a valid center
3244 * frequency is specified, ACS operation gives priority to this channel.
3245 */
3246enum qca_wlan_vendor_attr_acs_config {
3247 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
3248 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
3249 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
3250 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
3251
3252 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
3253 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
3254 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
3255};
3256
3257/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003258 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
3259 */
3260enum qca_wlan_vendor_attr_get_hw_capability {
3261 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
3262 /* Antenna isolation
3263 * An attribute used in the response.
3264 * The content of this attribute is encoded in a byte array. Each byte
3265 * value is an antenna isolation value. The array length is the number
3266 * of antennas.
3267 */
3268 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
3269 /* Request HW capability
3270 * An attribute used in the request.
3271 * The content of this attribute is a u32 array for one or more of
3272 * hardware capabilities (attribute IDs) that are being requested. Each
3273 * u32 value has a value from this
3274 * enum qca_wlan_vendor_attr_get_hw_capability
3275 * identifying which capabilities are requested.
3276 */
3277 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
3278
3279 /* keep last */
3280 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
3281 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
3282 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
3283};
3284
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003285/**
3286 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
3287 * offload which is an extension for LL_STATS.
3288 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
3289 * If MAC counters do not exceed the threshold, FW will report monitored
3290 * link layer counters periodically as this setting. The first report is
3291 * always triggered by this timer.
3292 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
3293 * For each MAC layer counter, FW holds two copies. One is the current value.
3294 * The other is the last report. Once a current counter's increment is larger
3295 * than the threshold, FW will indicate that counter to host even if the
3296 * monitoring timer does not expire.
3297 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
3298 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
3299 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
3300 * failure code.
3301 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
3302 * 1: TX packet discarded
3303 * 2: No ACK
3304 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003305 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
3306 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
3307 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
3308 * Threshold for all monitored parameters. If per counter dedicated threshold
3309 * is not enabled, this threshold will take effect.
3310 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
3311 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
3312 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
3313 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
3314 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
3315 * Bit0: TX counter unit in MSDU
3316 * Bit1: TX counter unit in MPDU
3317 * Bit2: TX counter unit in PPDU
3318 * Bit3: TX counter unit in byte
3319 * Bit4: Dropped MSDUs
3320 * Bit5: Dropped Bytes
3321 * Bit6: MPDU retry counter
3322 * Bit7: MPDU failure counter
3323 * Bit8: PPDU failure counter
3324 * Bit9: MPDU aggregation counter
3325 * Bit10: MCS counter for ACKed MPDUs
3326 * Bit11: MCS counter for Failed MPDUs
3327 * Bit12: TX Delay counter
3328 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
3329 * Bit0: MAC RX counter unit in MPDU
3330 * Bit1: MAC RX counter unit in byte
3331 * Bit2: PHY RX counter unit in PPDU
3332 * Bit3: PHY RX counter unit in byte
3333 * Bit4: Disorder counter
3334 * Bit5: Retry counter
3335 * Bit6: Duplication counter
3336 * Bit7: Discard counter
3337 * Bit8: MPDU aggregation size counter
3338 * Bit9: MCS counter
3339 * Bit10: Peer STA power state change (wake to sleep) counter
3340 * Bit11: Peer STA power save counter, total time in PS mode
3341 * Bit12: Probe request counter
3342 * Bit13: Other management frames counter
3343 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
3344 * Bit0: Idle time
3345 * Bit1: TX time
3346 * Bit2: time RX in current bss
3347 * Bit3: Out of current bss time
3348 * Bit4: Wireless medium busy time
3349 * Bit5: RX in bad condition time
3350 * Bit6: TX in bad condition time
3351 * Bit7: time wlan card not available
3352 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
3353 * Bit0: Per channel SNR counter
3354 * Bit1: Per channel noise floor counter
3355 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
3356 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
3357 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
3358 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
3359 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
3360 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
3361 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
3362 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
3363 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
3364 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
3365 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
3366 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
3367 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
3368 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
3369 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
3370 * aggregation stats buffer length
3371 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
3372 * buffer for ACKed MPDUs.
3373 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
3374 * buffer for failed MPDUs.
3375 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
3376 * length of delay stats array.
3377 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
3378 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
3379 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
3380 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
3381 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
3382 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
3383 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
3384 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
3385 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
3386 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
3387 * flagged as retransmissions
3388 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
3389 * flagged as duplicated
3390 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
3391 * packets discarded
3392 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
3393 * stats buffer.
3394 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
3395 * stats buffer.
3396 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
3397 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
3398 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
3399 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
3400 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
3401 * requests received
3402 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
3403 * frames received
3404 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
3405 * there is no TX, nor RX, nor interference.
3406 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
3407 * transmitting packets.
3408 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
3409 * for receiving.
3410 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
3411 * interference detected.
3412 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
3413 * receiving packets with errors.
3414 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
3415 * TX no-ACK.
3416 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
3417 * the chip is unable to work in normal conditions.
3418 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
3419 * receiving packets in current BSS.
3420 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
3421 * receiving packets not in current BSS.
3422 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
3423 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
3424 * This is a container for per antenna signal stats.
3425 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
3426 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
3427 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
3428 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07003429 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
3430 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
3431 * message, user layer APP could call gettimeofday to get another
3432 * timestamp and calculate transfer delay for the message.
3433 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
3434 * Real period for this measurement, unit in us.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003435 */
3436enum qca_wlan_vendor_attr_ll_stats_ext {
3437 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
3438
3439 /* Attributes for configurations */
3440 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
3441 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
3442
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003443 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003444 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
3445
3446 /* TX failure event */
3447 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
3448 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
3449 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
3450
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003451 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
3452 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
3453
3454 /* MAC counters */
3455 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
3456 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
3457 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
3458 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
3459 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
3460 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
3461 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
3462 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
3463 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
3464 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
3465 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
3466 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
3467
3468 /* Sub-attributes for PEER_AC_TX */
3469 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
3470 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
3471 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
3472 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
3473 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
3474 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
3475 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
3476 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
3477 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
3478 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
3479 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
3480 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
3481 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
3482 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
3483 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
3484 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
3485 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
3486
3487 /* Sub-attributes for PEER_AC_RX */
3488 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
3489 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
3490 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
3491 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
3492 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
3493 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
3494 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
3495 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
3496 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
3497 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
3498 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
3499 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
3500 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
3501 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
3502 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
3503 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
3504
3505 /* Sub-attributes for CCA_BSS */
3506 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
3507 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
3508 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
3509 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
3510 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
3511 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
3512 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
3513
3514 /* sub-attribute for BSS_RX_TIME */
3515 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
3516 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
3517
3518 /* Sub-attributes for PEER_SIGNAL */
3519 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
3520 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
3521 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
3522 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
3523
3524 /* Sub-attributes for IFACE_BSS */
3525 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
3526 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
3527
Roshan Pius3a1667e2018-07-03 15:17:14 -07003528 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
3529 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
3530
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003531 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
3532 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
3533 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
3534};
3535
3536/* Attributes for FTM commands and events */
3537
3538/**
3539 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
3540 *
3541 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
3542 * enum qca_wlan_vendor_attr_loc_capa_flags.
3543 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
3544 * of measurement sessions that can run concurrently.
3545 * Default is one session (no session concurrency).
3546 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
3547 * peers that are supported in running sessions. For example,
3548 * if the value is 8 and maximum number of sessions is 2, you can
3549 * have one session with 8 unique peers, or 2 sessions with 4 unique
3550 * peers each, and so on.
3551 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
3552 * of bursts per peer, as an exponent (2^value). Default is 0,
3553 * meaning no multi-burst support.
3554 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
3555 * of measurement exchanges allowed in a single burst.
3556 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
3557 * types. A bit mask (unsigned 32 bit value), each bit corresponds
3558 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
3559 */
3560enum qca_wlan_vendor_attr_loc_capa {
3561 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
3562 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
3563 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
3564 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
3565 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
3566 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
3567 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
3568 /* keep last */
3569 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
3570 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
3571 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
3572};
3573
3574/**
3575 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
3576 *
3577 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
3578 * can be configured as an FTM responder (for example, an AP that
3579 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
3580 * will be supported if set.
3581 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
3582 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
3583 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003584 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003585 * supports immediate (ASAP) response.
3586 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
3587 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
3588 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
3589 * requesting AOA measurements as part of an FTM session.
3590 */
3591enum qca_wlan_vendor_attr_loc_capa_flags {
3592 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
3593 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
3594 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
3595 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
3596 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
3597};
3598
3599/**
3600 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
3601 * a single peer in a measurement session.
3602 *
3603 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
3604 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
3605 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003606 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003607 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
3608 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
3609 * list of supported attributes.
3610 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
3611 * secure measurement.
3612 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
3613 * measurement every <value> bursts. If 0 or not specified,
3614 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003615 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
3616 * the measurement frames are exchanged. Optional; if not
3617 * specified, try to locate the peer in the kernel scan
3618 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003619 */
3620enum qca_wlan_vendor_attr_ftm_peer_info {
3621 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
3622 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
3623 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003624 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003625 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
3626 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003627 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003628 /* keep last */
3629 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
3630 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
3631 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
3632};
3633
3634/**
3635 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
3636 * per-peer
3637 *
3638 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
3639 * immediate (ASAP) response from peer.
3640 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
3641 * LCI report from peer. The LCI report includes the absolute
3642 * location of the peer in "official" coordinates (similar to GPS).
3643 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
3644 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
3645 * Location civic report from peer. The LCR includes the location
3646 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
3647 * 11.24.6.7 for more information.
3648 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
3649 * request a secure measurement.
3650 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
3651 */
3652enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
3653 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
3654 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
3655 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
3656 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
3657};
3658
3659/**
3660 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
3661 *
3662 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
3663 * to perform in a single burst.
3664 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
3665 * perform, specified as an exponent (2^value).
3666 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
3667 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
3668 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
3669 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
3670 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
3671 */
3672enum qca_wlan_vendor_attr_ftm_meas_param {
3673 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
3674 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
3675 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
3676 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
3677 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
3678 /* keep last */
3679 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
3680 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
3681 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
3682};
3683
3684/**
3685 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
3686 *
3687 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
3688 * peer.
3689 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
3690 * request for this peer.
3691 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
3692 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
3693 * to measurement results for this peer.
3694 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
3695 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
3696 * request failed and peer requested not to send an additional request
3697 * for this number of seconds.
3698 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
3699 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3700 * 9.4.2.22.10.
3701 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
3702 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3703 * 9.4.2.22.13.
3704 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
3705 * overridden some measurement request parameters. See
3706 * enum qca_wlan_vendor_attr_ftm_meas_param.
3707 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
3708 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
3709 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
3710 * results. Each entry is a nested attribute defined
3711 * by enum qca_wlan_vendor_attr_ftm_meas.
3712 */
3713enum qca_wlan_vendor_attr_ftm_peer_result {
3714 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
3715 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
3716 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
3717 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
3718 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
3719 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
3720 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
3721 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
3722 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
3723 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
3724 /* keep last */
3725 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
3726 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
3727 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
3728};
3729
3730/**
3731 * enum qca_wlan_vendor_attr_ftm_peer_result_status
3732 *
3733 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
3734 * will be provided. Peer may have overridden some measurement parameters,
3735 * in which case overridden parameters will be report by
3736 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
3737 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
3738 * of performing the measurement request. No more results will be sent
3739 * for this peer in this session.
3740 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
3741 * failed, and requested not to send an additional request for number
3742 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
3743 * attribute.
3744 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
3745 * failed. Request was not sent over the air.
3746 */
3747enum qca_wlan_vendor_attr_ftm_peer_result_status {
3748 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
3749 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
3750 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
3751 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
3752};
3753
3754/**
3755 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
3756 * for measurement result, per-peer
3757 *
3758 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
3759 * measurement completed for this peer. No more results will be reported
3760 * for this peer in this session.
3761 */
3762enum qca_wlan_vendor_attr_ftm_peer_result_flags {
3763 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
3764};
3765
3766/**
3767 * enum qca_vendor_attr_loc_session_status: Session completion status code
3768 *
3769 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
3770 * successfully.
3771 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
3772 * by request.
3773 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
3774 * was invalid and was not started.
3775 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
3776 * and did not complete normally (for example out of resources).
3777 */
3778enum qca_vendor_attr_loc_session_status {
3779 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
3780 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
3781 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
3782 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
3783};
3784
3785/**
3786 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
3787 *
3788 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
3789 * recorded by responder, in picoseconds.
3790 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3791 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
3792 * initiator, in picoseconds.
3793 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3794 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
3795 * initiator, in picoseconds.
3796 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3797 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
3798 * responder, in picoseconds.
3799 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3800 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
3801 * during this measurement exchange. Optional and will be provided if
3802 * the hardware can measure it.
3803 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
3804 * responder. Not always provided.
3805 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3806 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
3807 * responder. Not always provided.
3808 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3809 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
3810 * initiator. Not always provided.
3811 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3812 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
3813 * initiator. Not always provided.
3814 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3815 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
3816 */
3817enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003818 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003819 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
3820 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
3821 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
3822 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
3823 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
3824 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
3825 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
3826 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
3827 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
3828 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
3829 /* keep last */
3830 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
3831 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
3832 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
3833};
3834
3835/**
3836 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
3837 *
3838 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
3839 * CIR (channel impulse response) path for each antenna.
3840 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
3841 * of the strongest CIR path for each antenna.
3842 */
3843enum qca_wlan_vendor_attr_aoa_type {
3844 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
3845 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
3846 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
3847};
3848
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003849/**
3850 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
3851 * validate encryption engine
3852 *
3853 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
3854 * This will be included if the request is for decryption; if not included,
3855 * the request is treated as a request for encryption by default.
3856 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
3857 * indicating the key cipher suite. Takes same values as
3858 * NL80211_ATTR_KEY_CIPHER.
3859 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
3860 * Key Id to be used for encryption
3861 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
3862 * Key (TK) to be used for encryption/decryption
3863 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
3864 * Packet number to be specified for encryption/decryption
3865 * 6 bytes for TKIP/CCMP/GCMP.
3866 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
3867 * representing the 802.11 packet (header + payload + FCS) that
3868 * needs to be encrypted/decrypted.
3869 * Encrypted/decrypted response from the driver will also be sent
3870 * to userspace with the same attribute.
3871 */
3872enum qca_wlan_vendor_attr_encryption_test {
3873 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
3874 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
3875 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
3876 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
3877 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
3878 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
3879 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
3880
3881 /* keep last */
3882 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
3883 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
3884 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
3885};
3886
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003887/**
3888 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
3889 * sector for DMG RF sector operations.
3890 *
3891 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
3892 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
3893 */
3894enum qca_wlan_vendor_attr_dmg_rf_sector_type {
3895 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
3896 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
3897 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
3898};
3899
3900/**
Hai Shalom021b0b52019-04-10 11:17:58 -07003901 * enum qca_wlan_vendor_attr_fw_state - State of firmware
3902 *
3903 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
3904 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
3905 */
3906enum qca_wlan_vendor_attr_fw_state {
3907 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
3908 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
3909 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
3910};
3911
3912/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003913 * BRP antenna limit mode
3914 *
3915 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
3916 * antenna limit, BRP will be performed as usual.
3917 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
3918 * antennas limit. the hardware may use less antennas than the
3919 * maximum limit.
3920 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
3921 * use exactly the specified number of antennas for BRP.
3922 */
3923enum qca_wlan_vendor_attr_brp_ant_limit_mode {
3924 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
3925 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
3926 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
3927 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
3928};
3929
3930/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003931 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
3932 * DMG RF sector configuration for a single RF module.
3933 * The values are defined in a compact way which closely matches
3934 * the way it is stored in HW registers.
3935 * The configuration provides values for 32 antennas and 8 distribution
3936 * amplifiers, and together describes the characteristics of the RF
3937 * sector - such as a beam in some direction with some gain.
3938 *
3939 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
3940 * of RF module for this configuration.
3941 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
3942 * amplifier gain index. Unsigned 32 bit number containing
3943 * bits for all 32 antennas.
3944 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
3945 * amplifier gain index. Unsigned 32 bit number containing
3946 * bits for all 32 antennas.
3947 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
3948 * amplifier gain index. Unsigned 32 bit number containing
3949 * bits for all 32 antennas.
3950 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
3951 * for first 16 antennas, 2 bits per antenna.
3952 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
3953 * for last 16 antennas, 2 bits per antenna.
3954 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
3955 * DTYPE values (3 bits) for each distribution amplifier, followed
3956 * by X16 switch bits for each distribution amplifier. There are
3957 * total of 8 distribution amplifiers.
3958 */
3959enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
3960 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
3961 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
3962 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
3963 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
3964 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
3965 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
3966 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
3967 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
3968
3969 /* keep last */
3970 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
3971 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
3972 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
3973};
3974
3975enum qca_wlan_vendor_attr_ll_stats_set {
3976 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
3977 /* Unsigned 32-bit value */
3978 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
3979 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
3980 /* keep last */
3981 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
3982 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
3983 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
3984};
3985
3986enum qca_wlan_vendor_attr_ll_stats_clr {
3987 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
3988 /* Unsigned 32bit bitmap for clearing statistics
3989 * All radio statistics 0x00000001
3990 * cca_busy_time (within radio statistics) 0x00000002
3991 * All channel stats (within radio statistics) 0x00000004
3992 * All scan statistics (within radio statistics) 0x00000008
3993 * All interface statistics 0x00000010
3994 * All tx rate statistics (within interface statistics) 0x00000020
3995 * All ac statistics (with in interface statistics) 0x00000040
3996 * All contention (min, max, avg) statistics (within ac statisctics)
3997 * 0x00000080.
3998 */
3999 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
4000 /* Unsigned 8 bit value: Request to stop statistics collection */
4001 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
4002
4003 /* Unsigned 32 bit bitmap: Response from the driver
4004 * for the cleared statistics
4005 */
4006 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
4007 /* Unsigned 8 bit value: Response from driver/firmware
4008 * for the stop request
4009 */
4010 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
4011 /* keep last */
4012 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
4013 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
4014 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
4015};
4016
4017enum qca_wlan_vendor_attr_ll_stats_get {
4018 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
4019 /* Unsigned 32 bit value provided by the caller issuing the GET stats
4020 * command. When reporting the stats results, the driver uses the same
4021 * value to indicate which GET request the results correspond to.
4022 */
4023 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
4024 /* Unsigned 32 bit value - bit mask to identify what statistics are
4025 * requested for retrieval.
4026 * Radio Statistics 0x00000001
4027 * Interface Statistics 0x00000020
4028 * All Peer Statistics 0x00000040
4029 * Peer Statistics 0x00000080
4030 */
4031 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
4032 /* keep last */
4033 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
4034 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
4035 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
4036};
4037
4038enum qca_wlan_vendor_attr_ll_stats_results {
4039 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
4040 /* Unsigned 32bit value. Used by the driver; must match the request id
4041 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
4042 */
4043 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
4044
4045 /* Unsigned 32 bit value */
4046 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
4047 /* Unsigned 32 bit value */
4048 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
4049 /* Unsigned 32 bit value */
4050 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
4051 /* Unsigned 32 bit value */
4052 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
4053 /* Signed 32 bit value */
4054 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
4055 /* Signed 32 bit value */
4056 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
4057 /* Signed 32 bit value */
4058 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
4059
4060 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
4061 * nested within the interface stats.
4062 */
4063
4064 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
4065 * Type = enum wifi_interface_mode.
4066 */
4067 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
4068 /* Interface MAC address. An array of 6 Unsigned int8 */
4069 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
4070 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
4071 * AUTHENTICATING, etc. valid for STA, CLI only.
4072 */
4073 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
4074 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
4075 */
4076 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
4077 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
4078 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
4079 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
4080 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
4081 /* BSSID. An array of 6 unsigned 8 bit values */
4082 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
4083 /* Country string advertised by AP. An array of 3 unsigned 8 bit
4084 * values.
4085 */
4086 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
4087 /* Country string for this association. An array of 3 unsigned 8 bit
4088 * values.
4089 */
4090 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
4091
4092 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
4093 * be nested within the interface stats.
4094 */
4095
4096 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
4097 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
4098 /* Unsigned int 32 value corresponding to respective AC */
4099 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
4100 /* Unsigned int 32 value corresponding to respective AC */
4101 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
4102 /* Unsigned int 32 value corresponding to respective AC */
4103 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
4104 /* Unsigned int 32 value corresponding to respective AC */
4105 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
4106 /* Unsigned int 32 value corresponding to respective AC */
4107 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
4108 /* Unsigned int 32 value corresponding to respective AC */
4109 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
4110 /* Unsigned int 32 value corresponding to respective AC */
4111 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
4112 /* Unsigned int 32 value corresponding to respective AC */
4113 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
4114 /* Unsigned int 32 value corresponding to respective AC */
4115 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
4116 /* Unsigned int 32 values corresponding to respective AC */
4117 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
4118 /* Unsigned int 32 values corresponding to respective AC */
4119 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
4120 /* Unsigned int 32 values corresponding to respective AC */
4121 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
4122 /* Unsigned int 32 values corresponding to respective AC */
4123 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
4124 /* Unsigned int 32 values corresponding to respective AC */
4125 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
4126 /* Unsigned 32 bit value. Number of peers */
4127 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
4128
4129 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
4130 * nested within the interface stats.
4131 */
4132
4133 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
4134 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
4135 /* MAC addr corresponding to respective peer. An array of 6 unsigned
4136 * 8 bit values.
4137 */
4138 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
4139 /* Unsigned int 32 bit value representing capabilities corresponding
4140 * to respective peer.
4141 */
4142 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
4143 /* Unsigned 32 bit value. Number of rates */
4144 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
4145
4146 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4147 * are nested within the rate stat.
4148 */
4149
4150 /* Wi-Fi Rate - separate attributes defined for individual fields */
4151
4152 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
4153 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
4154 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
4155 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
4156 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
4157 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
4158 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07004159 * in the units of 0.5 Mbps HT/VHT it would be MCS index
4160 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004161 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
4162
4163 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
4164 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
4165
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004166 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
4167 * nested within the peer info stats.
4168 */
4169
4170 /* Unsigned int 32 bit value. Number of successfully transmitted data
4171 * packets, i.e., with ACK received corresponding to the respective
4172 * rate.
4173 */
4174 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
4175 /* Unsigned int 32 bit value. Number of received data packets
4176 * corresponding to the respective rate.
4177 */
4178 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
4179 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
4180 * received corresponding to the respective rate.
4181 */
4182 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
4183 /* Unsigned int 32 bit value. Total number of data packet retries for
4184 * the respective rate.
4185 */
4186 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
4187 /* Unsigned int 32 bit value. Total number of short data packet retries
4188 * for the respective rate.
4189 */
4190 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
4191 /* Unsigned int 32 bit value. Total number of long data packet retries
4192 * for the respective rate.
4193 */
4194 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
4195
4196 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
4197 /* Unsigned 32 bit value. Total number of msecs the radio is awake
4198 * accruing over time.
4199 */
4200 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
4201 /* Unsigned 32 bit value. Total number of msecs the radio is
4202 * transmitting accruing over time.
4203 */
4204 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
4205 /* Unsigned 32 bit value. Total number of msecs the radio is in active
4206 * receive accruing over time.
4207 */
4208 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
4209 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4210 * to all scan accruing over time.
4211 */
4212 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
4213 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4214 * to NAN accruing over time.
4215 */
4216 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
4217 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4218 * to GSCAN accruing over time.
4219 */
4220 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
4221 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4222 * to roam scan accruing over time.
4223 */
4224 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
4225 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4226 * to PNO scan accruing over time.
4227 */
4228 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
4229 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4230 * to Hotspot 2.0 scans and GAS exchange accruing over time.
4231 */
4232 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
4233 /* Unsigned 32 bit value. Number of channels. */
4234 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
4235
4236 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
4237 * be nested within the channel stats.
4238 */
4239
4240 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
4241 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
4242 /* Unsigned 32 bit value. Primary 20 MHz channel. */
4243 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
4244 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
4245 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
4246 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
4247 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
4248
4249 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
4250 * nested within the radio stats.
4251 */
4252
4253 /* Unsigned int 32 bit value representing total number of msecs the
4254 * radio is awake on that channel accruing over time, corresponding to
4255 * the respective channel.
4256 */
4257 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
4258 /* Unsigned int 32 bit value representing total number of msecs the CCA
4259 * register is busy accruing over time corresponding to the respective
4260 * channel.
4261 */
4262 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
4263
4264 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
4265
4266 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07004267 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004268 */
4269 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
4270
4271 /* Signifies the nested list of peer info attributes
4272 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
4273 */
4274 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
4275
4276 /* Signifies the nested list of rate info attributes
4277 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4278 */
4279 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
4280
4281 /* Signifies the nested list of wmm info attributes
4282 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4283 */
4284 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
4285
4286 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
4287 * that more stats, e.g., peers or radio, are to follow in the next
4288 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
4289 * Otherwise, it is set to 0.
4290 */
4291 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
4292
4293 /* Unsigned 64 bit value */
4294 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
4295
4296 /* Unsigned 32 bit value */
4297 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
4298
4299 /* Unsigned 32 bit value */
4300 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
4301
4302 /* Unsigned 32 bit value */
4303 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
4304
4305 /* Unsigned 32 bit value */
4306 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
4307
4308 /* Unsigned 32 bit value */
4309 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
4310
4311 /* Number of msecs the radio spent in transmitting for each power level
4312 */
4313 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
4314
4315 /* Unsigned 32 bit value */
4316 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
4317 /* Unsigned 32 bit value */
4318 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
4319 /* Unsigned 32 bit value */
4320 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
4321 /* Unsigned 32 bit value */
4322 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
4323
Roshan Pius3a1667e2018-07-03 15:17:14 -07004324 /* Unsigned int 32 value.
4325 * Pending MSDUs corresponding to respective AC.
4326 */
4327 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
4328
Hai Shalom899fcc72020-10-19 14:38:18 -07004329 /* u32 value representing total time in milliseconds for which the radio
4330 * is transmitting on this channel. This attribute will be nested
4331 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4332 */
4333 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
4334 /* u32 value representing total time in milliseconds for which the radio
4335 * is receiving all 802.11 frames intended for this device on this
4336 * channel. This attribute will be nested within
4337 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4338 */
4339 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Hai Shaloma20dcd72022-02-04 13:43:00 -08004340 /* u8 value representing the channel load percentage. Possible values
4341 * are 0-100.
4342 */
4343 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
4344 /* u8 value representing the time slicing duty cycle percentage.
4345 * Possible values are 0-100.
4346 */
4347 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
Sunil Ravi89eba102022-09-13 21:04:37 -07004348 /* Unsigned 32 bit value. The number of Beacon frames which are received
4349 * from the associated AP and indicate buffered unicast frame(s) for us
4350 * in the TIM element.
4351 */
4352 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
4353 /* Unsigned 32 bit value. The total number of Beacon frames received
4354 * from the associated AP that have wrongly indicated buffered unicast
4355 * traffic in the TIM element for us.
4356 * Below scenarios will be considered as wrong TIM element beacon:
4357 * 1) The related TIM element is set in the beacon for STA but STA
4358 * doesn’t receive any unicast data after this beacon.
4359 * 2) The related TIM element is still set in the beacon for STA
4360 * after STA has indicated power save exit by QoS Null Data frame.
4361 */
4362 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
4363
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004364 /* keep last */
4365 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
4366 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
4367 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
4368};
4369
Roshan Pius3a1667e2018-07-03 15:17:14 -07004370enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004371 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
4372 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
4373 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
4374 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
4375
4376 /* keep last */
4377 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
4378 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
4379 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
4380};
4381
4382/**
4383 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
4384 * TDLS configuration to the host driver.
4385 *
4386 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
4387 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
4388 * represents the different TDLS trigger modes.
4389 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
4390 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
4391 * of packets shall meet the criteria for implicit TDLS setup.
4392 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
4393 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
4394 * to initiate a TDLS setup.
4395 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
4396 * a TDLS Discovery to the peer.
4397 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
4398 * discovery attempts to know the TDLS capability of the peer. A peer is
4399 * marked as TDLS not capable if there is no response for all the attempts.
4400 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
4401 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
4402 * number of TX / RX frames meet the criteria for TDLS teardown.
4403 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
4404 * of Tx/Rx packets within a duration
4405 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
4406 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
4407 * corresponding to the RSSI of the peer below which a TDLS setup is
4408 * triggered.
4409 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
4410 * corresponding to the RSSI of the peer above which a TDLS teardown is
4411 * triggered.
4412 */
4413enum qca_wlan_vendor_attr_tdls_configuration {
4414 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
4415 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
4416
4417 /* Attributes configuring the TDLS Implicit Trigger */
4418 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
4419 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
4420 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
4421 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
4422 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
4423 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
4424 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
4425 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
4426
4427 /* keep last */
4428 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
4429 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
4430 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
4431};
4432
4433/**
4434 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
4435 * the driver
4436 *
4437 * The following are the different values for
4438 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
4439 *
4440 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
4441 * the TDLS connection to a respective peer comes from the user space.
4442 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
4443 * TDLS_DISCOVER to do this.
4444 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
4445 * setup/teardown to the eligible peer once the configured criteria
4446 * (such as TX/RX threshold, RSSI) is met. The attributes
4447 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
4448 * the different configuration criteria for the TDLS trigger from the
4449 * host driver.
4450 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
4451 * the TDLS setup / teardown through the implicit mode only to the
4452 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
4453 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
4454 * External mode works on top of the implicit mode. Thus the host driver
4455 * is expected to configure in TDLS Implicit mode too to operate in
4456 * External mode.
4457 * Configuring External mode alone without Implicit mode is invalid.
4458 *
4459 * All the above implementations work as expected only when the host driver
4460 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
4461 * that the TDLS message exchange is not internal to the host driver, but
4462 * depends on wpa_supplicant to do the message exchange.
4463 */
4464enum qca_wlan_vendor_tdls_trigger_mode {
4465 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
4466 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
4467 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
4468};
4469
Dmitry Shmidt29333592017-01-09 12:27:11 -08004470/**
4471 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
4472 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
4473 * that is hard-coded in the Board Data File (BDF).
4474 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
4475 * that is hard-coded in the Board Data File (BDF).
4476 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
4477 * that is hard-coded in the Board Data File (BDF).
4478 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
4479 * that is hard-coded in the Board Data File (BDF).
4480 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
4481 * that is hard-coded in the Board Data File (BDF).
4482 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
4483 * source of SAR power limits, thereby disabling the SAR power
4484 * limit feature.
4485 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
4486 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004487 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
4488 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004489 *
4490 * This enumerates the valid set of values that may be supplied for
4491 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07004492 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
4493 * the response to an instance of the
4494 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004495 */
4496enum qca_vendor_attr_sar_limits_selections {
4497 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
4498 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
4499 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
4500 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
4501 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
4502 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
4503 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004504 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004505};
4506
4507/**
4508 * enum qca_vendor_attr_sar_limits_spec_modulations -
4509 * SAR limits specification modulation
4510 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
4511 * CCK modulation
4512 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
4513 * OFDM modulation
4514 *
4515 * This enumerates the valid set of values that may be supplied for
4516 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
4517 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
4518 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07004519 * command or in the response to an instance of the
4520 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004521 */
4522enum qca_vendor_attr_sar_limits_spec_modulations {
4523 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
4524 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
4525};
4526
4527/**
4528 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
4529 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004530 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08004531 * select which SAR power limit table should be used. Valid
4532 * values are enumerated in enum
4533 * %qca_vendor_attr_sar_limits_selections. The existing SAR
4534 * power limit selection is unchanged if this attribute is not
4535 * present.
4536 *
4537 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
4538 * which specifies the number of SAR power limit specifications
4539 * which will follow.
4540 *
4541 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
4542 * limit specifications. The number of specifications is
4543 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
4544 * specification contains a set of
4545 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
4546 * specification is uniquely identified by the attributes
4547 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
4548 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
4549 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
4550 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07004551 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
4552 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
4553 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
4554 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
4555 * needed based upon the value of
4556 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004557 *
4558 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
4559 * indicate for which band this specification applies. Valid
4560 * values are enumerated in enum %nl80211_band (although not all
4561 * bands may be supported by a given device). If the attribute is
4562 * not supplied then the specification will be applied to all
4563 * supported bands.
4564 *
4565 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
4566 * to indicate for which antenna chain this specification
4567 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
4568 * attribute is not supplied then the specification will be
4569 * applied to all chains.
4570 *
4571 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
4572 * value to indicate for which modulation scheme this
4573 * specification applies. Valid values are enumerated in enum
4574 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
4575 * is not supplied then the specification will be applied to all
4576 * modulation schemes.
4577 *
4578 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
4579 * value to specify the actual power limit value in units of 0.5
4580 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07004581 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4582 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004583 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07004584 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
4585 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
4586 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4587 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
4588 *
4589 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
4590 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004591 */
4592enum qca_vendor_attr_sar_limits {
4593 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
4594 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
4595 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
4596 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
4597 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
4598 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
4599 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
4600 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004601 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004602
4603 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
4604 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
4605 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
4606};
4607
4608/**
4609 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
4610 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07004611 *
4612 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
4613 * should be set to any U8 value to indicate that the driver version
4614 * should be returned. When enabled in this manner, in a response this
4615 * attribute will contain a string representation of the driver version.
4616 *
4617 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
4618 * should be set to any U8 value to indicate that the firmware version
4619 * should be returned. When enabled in this manner, in a response this
4620 * attribute will contain a string representation of the firmware version.
4621 *
4622 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
4623 * should be set to any U32 value to indicate that the current radio
4624 * index should be returned. When enabled in this manner, in a response
4625 * this attribute will contain a U32 radio index value.
4626 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08004627 */
4628enum qca_wlan_vendor_attr_get_wifi_info {
4629 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4630 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
4631 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07004632 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004633
4634 /* keep last */
4635 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4636 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
4637 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4638};
4639
4640/*
4641 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
4642 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
4643 */
4644enum qca_wlan_vendor_attr_wifi_logger_start {
4645 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4646 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4647 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4648 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4649
4650 /* keep last */
4651 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4652 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
4653 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4654};
4655
4656enum qca_wlan_vendor_attr_logger_results {
4657 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4658
4659 /* Unsigned 32-bit value; must match the request Id supplied by
4660 * Wi-Fi HAL in the corresponding subcmd NL msg.
4661 */
4662 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4663
4664 /* Unsigned 32-bit value; used to indicate the size of memory
4665 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004666 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08004667 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4668
4669 /* keep last */
4670 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
4671 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
4672 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
4673};
4674
Hai Shalomc3565922019-10-28 11:58:20 -07004675/**
4676 * enum qca_scan_freq_list_type: Frequency list types
4677 *
4678 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
4679 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4680 * a preferred frequency list for roaming.
4681 *
4682 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
4683 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4684 * a specific frequency list for roaming.
4685 */
4686enum qca_scan_freq_list_type {
4687 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
4688 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
4689};
4690
4691/**
4692 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
4693 *
4694 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
4695 * List of frequencies in MHz to be considered for a roam scan.
4696 *
4697 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
4698 * Type of frequency list scheme being configured/gotten as defined by the
4699 * enum qca_scan_freq_list_type.
4700 */
4701enum qca_vendor_attr_scan_freq_list_scheme {
4702 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
4703 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
4704
4705 /* keep last */
4706 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
4707 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
4708 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
4709};
4710
Hai Shalom899fcc72020-10-19 14:38:18 -07004711/**
4712 * enum qca_roam_scan_scheme: Scan scheme
4713 *
4714 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
4715 * Indicates the driver to not scan on a Roam Trigger scenario, but
4716 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
4717 * disconnect from the current connected AP by notifying a failure
4718 * code in the BTM response.
4719 *
4720 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
4721 * trigger partial frequency scans. These frequencies are the ones learned
4722 * or maintained by the driver based on the probability of finding the
4723 * BSSIDs in the ESS for which the roaming is triggered.
4724 *
4725 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
4726 * trigger the scan on all the valid frequencies to find better
4727 * candidates to roam.
4728 */
4729enum qca_roam_scan_scheme {
4730 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
4731 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
4732 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
4733};
4734
Hai Shalomc3565922019-10-28 11:58:20 -07004735/*
4736 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
4737 *
4738 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
4739 * a bad packet error rates (PER).
4740 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
4741 * based on beacon misses from the connected AP.
4742 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
4743 * due to poor RSSI of the connected AP.
4744 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
4745 * upon finding a BSSID with a better RSSI than the connected BSSID.
4746 * Here the RSSI of the current BSSID need not be poor.
4747 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
4748 * by triggering a periodic scan to find a better AP to roam.
4749 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
4750 * when the connected channel environment is too noisy/congested.
4751 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
4752 * when BTM Request frame is received from the connected AP.
4753 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
4754 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07004755 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
4756 * based on the request from the user (space).
4757 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
4758 * device receives Deauthentication/Disassociation frame from connected AP.
4759 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
4760 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
4761 * is determined to be a poor one.
4762 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
4763 * based on continuous TX Data frame failures to the connected AP.
4764 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
4765 * based on the scan results obtained from an external scan (not triggered
4766 * to aim roaming).
Hai Shalomc3565922019-10-28 11:58:20 -07004767 *
4768 * Set the corresponding roam trigger reason bit to consider it for roam
4769 * trigger.
4770 * Userspace can set multiple bits and send to the driver. The driver shall
4771 * consider all of them to trigger/initiate a roam scan.
4772 */
4773enum qca_vendor_roam_triggers {
4774 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
4775 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
4776 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
4777 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
4778 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
4779 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
4780 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
4781 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07004782 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
4783 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
4784 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
4785 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
4786 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Hai Shalomc3565922019-10-28 11:58:20 -07004787};
4788
Hai Shalom60840252021-02-19 19:02:11 -08004789/*
4790 * enum qca_vendor_roam_fail_reasons: Defines the various roam
4791 * fail reasons. This enum value is used in
4792 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
4793 *
4794 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
4795 * able to trigger the scan.
4796 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
4797 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
4798 * scan.
4799 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
4800 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
4801 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
4802 * status code.
4803 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
4804 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
4805 * frame.
4806 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
4807 * with error status code.
4808 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
4809 * received.
4810 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
4811 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
4812 * frame.
4813 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
4814 * internally before transmission.
4815 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
4816 * Request frame.
4817 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
4818 * dropped internally.
4819 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
4820 * times out.
4821 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
4822 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
4823 * internally.
4824 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
4825 * M2 frame.
4826 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
4827 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
4828 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
4829 * internally.
4830 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
4831 * frame.
4832 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
4833 * started for final beacon miss case.
4834 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
4835 * received from the AP during roaming handoff.
4836 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
4837 * or host is suspended and gives the indication of the last roamed AP only
4838 * when the Apps is resumed. If the Apps is resumed while the roaming is in
4839 * progress, this ongoing roaming is aborted and the last roamed AP is
4840 * indicated to host.
4841 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
4842 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
4843 * out.
4844 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
4845 */
4846enum qca_vendor_roam_fail_reasons {
4847 QCA_ROAM_FAIL_REASON_NONE = 0,
4848 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
4849 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
4850 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
4851 QCA_ROAM_FAIL_REASON_HOST = 4,
4852 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
4853 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
4854 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
4855 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
4856 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
4857 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
4858 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
4859 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
4860 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
4861 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
4862 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
4863 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
4864 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
4865 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
4866 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
4867 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
4868 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
4869 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
4870 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
4871 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
4872 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
4873 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
4874 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
4875 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
4876 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
4877};
4878
4879/*
4880 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
4881 * invoke fail reasons. This enum value is used in
4882 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
4883 *
4884 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
4885 * in roam invoke command.
4886 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
4887 * enabled.
4888 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
4889 * length is invalid.
4890 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
4891 * in progress.
4892 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
4893 * of the AP in the roam invoke command to firmware. This reason is sent by the
4894 * firmware when the given AP is configured to be ignored or SSID/security
4895 * does not match.
4896 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
4897 * firmware internal reasons.
4898 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
4899 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
4900 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
4901 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
4902 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
4903 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
4904 */
4905enum qca_vendor_roam_invoke_fail_reasons {
4906 QCA_ROAM_INVOKE_STATUS_NONE = 0,
4907 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
4908 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
4909 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
4910 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
4911 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
4912 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
4913 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
4914 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
4915 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
4916 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
4917 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
4918 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
4919
4920};
4921
Hai Shalomc3565922019-10-28 11:58:20 -07004922/**
4923 * enum qca_vendor_attr_roam_candidate_selection_criteria:
4924 *
4925 * Each attribute carries a weightage in percentage (%).
4926 *
4927 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
4928 * Represents the weightage to be given for the RSSI selection
4929 * criteria among other parameters.
4930 *
4931 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
4932 * Represents the weightage to be given for the rate selection
4933 * criteria among other parameters.
4934 *
4935 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
4936 * Represents the weightage to be given for the band width selection
4937 * criteria among other parameters.
4938 *
4939 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
4940 * Represents the weightage to be given for the band selection
4941 * criteria among other parameters.
4942 *
4943 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
4944 * Represents the weightage to be given for the NSS selection
4945 * criteria among other parameters.
4946 *
4947 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
4948 * Represents the weightage to be given for the channel congestion
4949 * selection criteria among other parameters.
4950 *
4951 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
4952 * Represents the weightage to be given for the beamforming selection
4953 * criteria among other parameters.
4954 *
4955 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
4956 * Represents the weightage to be given for the OCE selection
4957 * criteria among other parameters.
4958 */
4959enum qca_vendor_attr_roam_candidate_selection_criteria {
4960 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
4961 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
4962 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
4963 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
4964 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
4965 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
4966 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
4967 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
4968
4969 /* keep last */
4970 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
4971 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
4972 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
4973};
4974
4975/**
4976 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
Sunil8cd6f4d2022-06-28 18:40:46 +00004977 * The following attributes are used to set/get/clear the respective
Hai Shalomc3565922019-10-28 11:58:20 -07004978 * configurations to/from the driver.
4979 * For the get, the attribute for the configuration to be queried shall
4980 * carry any of its acceptable values to the driver. In return, the driver
4981 * shall send the configured values within the same attribute to the user
4982 * space.
4983 *
4984 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
4985 * Signifies to enable/disable roam control in driver.
4986 * 1-enable, 0-disable
4987 * Enable: Mandates the driver to do the further roams using the
4988 * configuration parameters set through
4989 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
4990 * Disable: Disables the driver/firmware roaming triggered through
4991 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
4992 * expected to continue with the default configurations.
4993 *
4994 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
4995 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
4996 * Roam control status is obtained through this attribute.
4997 *
4998 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
4999 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
5000 * is to be cleared in the driver.
5001 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
5002 * and shall be ignored if used with other sub commands.
5003 * If this attribute is specified along with subcmd
5004 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
5005 * all other attributes, if there are any.
5006 * If this attribute is not specified when the subcmd
5007 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
5008 * clear the data corresponding to the attributes specified.
5009 *
5010 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
5011 * list of frequencies and its type, represented by
5012 * enum qca_vendor_attr_scan_freq_list_scheme.
5013 * Frequency list and its type are mandatory for this attribute to set
5014 * the frequencies.
5015 * Frequency type is mandatory for this attribute to get the frequencies
5016 * and the frequency list is obtained through
5017 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
5018 * Frequency list type is mandatory for this attribute to clear the
5019 * frequencies.
5020 *
5021 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
5022 * Carries the value of scan period in seconds to set.
5023 * The value of scan period is obtained with the same attribute for get.
5024 * Clears the scan period in the driver when specified with clear command.
5025 * Scan period is the idle time in seconds between each subsequent
5026 * channel scans.
5027 *
5028 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
5029 * Carries the value of full scan period in seconds to set.
5030 * The value of full scan period is obtained with the same attribute for
5031 * get.
5032 * Clears the full scan period in the driver when specified with clear
5033 * command. Full scan period is the idle period in seconds between two
5034 * successive full channel roam scans.
5035 *
5036 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
5037 * Carries a bitmap of the roam triggers specified in
5038 * enum qca_vendor_roam_triggers.
5039 * The driver shall enable roaming by enabling corresponding roam triggers
5040 * based on the trigger bits sent with this attribute.
5041 * If this attribute is not configured, the driver shall proceed with
5042 * default behavior.
5043 * The bitmap configured is obtained with the same attribute for get.
5044 * Clears the bitmap configured in driver when specified with clear
5045 * command.
5046 *
5047 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
5048 * weightage in percentage (%) to be given for each selection criteria.
5049 * Different roam candidate selection criteria are represented by
5050 * enum qca_vendor_attr_roam_candidate_selection_criteria.
5051 * The driver shall select the roam candidate based on corresponding
5052 * candidate selection scores sent.
5053 *
5054 * An empty nested attribute is used to indicate that no specific
5055 * preference score/criteria is configured (i.e., to disable this mechanism
5056 * in the set case and to show that the mechanism is disabled in the get
5057 * case).
5058 *
5059 * Userspace can send multiple attributes out of this enum to the driver.
5060 * Since this attribute represents the weight/percentage of preference for
5061 * the respective selection criteria, it is preferred to configure 100%
5062 * total weightage. The value in each attribute or cumulative weight of the
5063 * values in all the nested attributes should not exceed 100%. The driver
5064 * shall reject such configuration.
5065 *
5066 * If the weights configured through this attribute are less than 100%,
5067 * the driver shall honor the weights (x%) passed for the corresponding
5068 * selection criteria and choose/distribute rest of the weight (100-x)%
5069 * for the other selection criteria, based on its internal logic.
5070 *
5071 * The selection criteria configured is obtained with the same
5072 * attribute for get.
5073 *
5074 * Clears the selection criteria configured in the driver when specified
5075 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07005076 *
5077 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
5078 * Represents value of the scan frequency scheme from enum
5079 * qca_roam_scan_scheme.
5080 * It's an optional attribute. If this attribute is not configured, the
5081 * driver shall proceed with default behavior.
5082 *
5083 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5084 * signifying the RSSI threshold of the current connected AP, indicating
5085 * the driver to trigger roam only when the current connected AP's RSSI
5086 * is less than this threshold.
5087 *
5088 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5089 * signifying the RSSI threshold of the candidate AP, indicating
5090 * the driver to trigger roam only to the candidate AP with RSSI
Hai Shaloma20dcd72022-02-04 13:43:00 -08005091 * better than this threshold. If RSSI thresholds for candidate APs found
5092 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
5093 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
5094 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
5095 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
5096 * take precedence over the value configured using the
5097 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -07005098 *
5099 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
5100 * user defined reason code to be sent to the AP in response to AP's
5101 * request to trigger the roam if the roaming cannot be triggered.
5102 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
5103 *
5104 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
5105 * Carries a bitmap of the roam triggers specified in
5106 * enum qca_vendor_roam_triggers.
5107 * Represents the roam triggers for which the specific scan scheme from
5108 * enum qca_roam_scan_scheme has to be applied.
5109 * It's an optional attribute. If this attribute is not configured, but
5110 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
5111 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
5112 * all the roams.
5113 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
5114 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
5115 * driver shall proceed with the default behavior.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005116 *
5117 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
5118 * in dBm, signifying the RSSI threshold of the candidate AP found in the
5119 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
5120 * AP found in the 2.4 GHz band only if its RSSI value is better than this
5121 * threshold. Optional attribute. If this attribute is not included, the
5122 * threshold value specified by the
5123 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5124 *
5125 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
5126 * dBm, signifying the RSSI threshold of the candidate AP found in the 5
5127 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
5128 * found in the 5 GHz band only if its RSSI value is better than this
5129 * threshold. Optional attribute. If this attribute is not included, the
5130 * threshold value specified by tge
5131 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5132 *
5133 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
5134 * dBm, signifying the RSSI threshold of the candidate AP found in the 6
5135 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
5136 * found in the 6 GHz band only if its RSSI value is better than this
5137 * threshold. Optional attribute. If this attribute is not included, the
5138 * threshold value specified by the
5139 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5140 *
5141 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
5142 * Carries bitmask value of bits from &enum qca_set_band and represents
5143 * all the bands in which roaming is allowed. The configuration is valid
5144 * until next disconnection. If this attribute is not present, the
5145 * existing configuration shall be used. By default, roaming is allowed on
5146 * all bands supported by the local device. When the value is set to
5147 * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
5148 *
5149 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
5150 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
5151 * bands. If this attribute is not configured, the driver shall proceed
5152 * with default behavior.
5153 *
5154 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
5155 * Optional parameter. Scan dwell time for passive channels in the 5 GHz
5156 * band. If this attribute is not configured, the driver shall proceed with
5157 * default behavior.
5158 *
5159 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
5160 * Optional parameter. The minimum duration to stay on the connected AP
5161 * channel during the channel scanning. If this attribute is not
5162 * configured, the driver shall proceed with default behavior.
5163 *
5164 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
5165 * Optional parameter. The maximum duration for which the radio can scan
5166 * foreign channels consecutively without coming back to home channel. If
5167 * this attribute is not configured, the driver shall proceed with default
5168 * behavior.
5169 *
5170 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
5171 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
5172 * If this attribute is not configured, the driver shall proceed with
5173 * default behavior.
5174 *
5175 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
5176 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning
5177 * Channels. If this attribute is not configured, the driver shall proceed
5178 * with default behavior.
Sunil8cd6f4d2022-06-28 18:40:46 +00005179 *
5180 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
5181 * Optional parameter. RX link speed threshold to disable roaming.
5182 * If the current RX link speed is above the threshold, roaming is not
5183 * needed. If this attribute is not configured, or if it is set to 0, the
5184 * driver will not consider the RX link speed in the roaming decision.
Sunil Ravi77d572f2023-01-17 23:58:31 +00005185 *
5186 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
5187 * Optional parameter. This configuration delays hand-off by the
5188 * specified duration to receive pending RX frames from the current BSS.
5189 *
5190 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
5191 * value.
5192 * During the roam scan, if there are no desired APs found in the partial
5193 * frequency list, an immediate full scan on all the supported frequencies
5194 * is initiated as a fallback. This flag controls the frequency list
5195 * creation for the full scan on the following lines.
5196 * 1 - Full scan to exclude the frequencies that were already scanned by
5197 * the previous partial scan.
5198 * 0 - Full scan to include all the supported frequencies irrespective of
5199 * the ones part of the earlier partial scan.
5200 * If this flag is not specified, a full scan shall include all the
5201 * supported frequencies irrespective of the ones part of an earlier
5202 * partial scan.
5203 *
5204 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
5205 * value.
5206 * During the roam scan, if there are no desired APs found in the partial
5207 * frequency list, an immediate full scan on all the supported frequencies
5208 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
5209 * frequencies, including all PSC frequencies by default. This attribute
5210 * controls the inclusion of the 6 GHz PSC frequencies for the full scan
5211 * as following.
5212 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
5213 * prior discovery of any 6 GHz frequency support in the environment.
5214 * This discovery can happen through a prior RNR, 11k neighbor
5215 * request, 11v BTM request, host scan, etc.
5216 * 0 - Default behavior. Full scan to include all the supported 6 GHz
5217 * PSC frequencies regardless of whether 6 GHz BSSs have been
5218 * discovered.
5219 * The default behavior if this flag is not specified is to include all
5220 * the supported 6 GHz PSC frequencies in the roam full scan.
Hai Shalomc3565922019-10-28 11:58:20 -07005221 */
5222enum qca_vendor_attr_roam_control {
5223 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
5224 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
5225 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
5226 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
5227 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
5228 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
5229 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
5230 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07005231 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
5232 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
5233 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
5234 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
5235 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005236 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
5237 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
5238 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
5239 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
5240 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
5241 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
5242 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
5243 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
5244 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
5245 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
Sunil8cd6f4d2022-06-28 18:40:46 +00005246 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
Sunil Ravi77d572f2023-01-17 23:58:31 +00005247 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
5248 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
5249 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
Hai Shalomc3565922019-10-28 11:58:20 -07005250
5251 /* keep last */
5252 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
5253 QCA_ATTR_ROAM_CONTROL_MAX =
5254 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
5255};
5256
5257/*
5258 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
5259 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
5260 *
5261 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
5262 * Represents the different roam sub commands referred by
5263 * enum qca_wlan_vendor_roaming_subcmd.
5264 *
5265 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
5266 * Represents the Request ID for the specific set of commands.
5267 * This also helps to map specific set of commands to the respective
5268 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07005269 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07005270 * matching ID.
5271 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005272 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
5273 * 32-bit value. Represents the number of allowlist SSIDs configured.
Hai Shalomc3565922019-10-28 11:58:20 -07005274 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005275 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
5276 * to carry the list of allowlist SSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07005277 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005278 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
5279 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs
Hai Shalomc3565922019-10-28 11:58:20 -07005280 * represent the list of SSIDs to which the firmware/driver can consider
5281 * to roam to.
5282 *
5283 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
5284 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
5285 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
5286 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
5287 *
5288 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
5289 * value, RSSI threshold above which 5GHz RSSI is favored.
5290 *
5291 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
5292 * value, RSSI threshold below which 5GHz RSSI is penalized.
5293 *
5294 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
5295 * value, factor by which 5GHz RSSI is boosted.
5296 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
5297 *
5298 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
5299 * value, factor by which 5GHz RSSI is penalized.
5300 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
5301 *
5302 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
5303 * value, maximum boost that can be applied to a 5GHz RSSI.
5304 *
5305 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
5306 * value, boost applied to current BSSID to ensure the currently
5307 * associated BSSID is favored so as to prevent ping-pong situations.
5308 *
5309 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
5310 * value, RSSI below which "Alert" roam is enabled.
5311 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
5312 * because the RSSI is low, or because many successive beacons have been
5313 * lost or other bad link conditions.
5314 *
5315 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
5316 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
Hai Shaloma20dcd72022-02-04 13:43:00 -08005317 * firmware is hunting for a better BSSID or allow listed SSID even though
Hai Shalomc3565922019-10-28 11:58:20 -07005318 * the RSSI of the link is good. The parameters enabling the roaming are
5319 * configured through the PARAM_A_BAND_XX attrbutes.
5320 *
5321 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
5322 * represents the BSSIDs preferred over others while evaluating them
5323 * for the roaming.
5324 *
5325 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
5326 * 32-bit value. Represents the number of preferred BSSIDs set.
5327 *
5328 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
5329 * address representing the BSSID to be preferred.
5330 *
5331 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
5332 * 32-bit value, representing the modifier to be applied to the RSSI of
5333 * the BSSID for the purpose of comparing it with other roam candidate.
5334 *
5335 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07005336 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07005337 *
5338 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07005339 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07005340 *
5341 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07005342 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07005343 *
5344 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07005345 * indicates this request to ignore the BSSID as a hint to the driver. The
5346 * driver can select this BSSID in the worst case (when no other BSSIDs are
5347 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07005348 *
5349 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
5350 * set/get/clear the roam control config as
5351 * defined @enum qca_vendor_attr_roam_control.
5352 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005353enum qca_wlan_vendor_attr_roaming_config_params {
5354 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
5355
5356 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
5357 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
5358
Hai Shaloma20dcd72022-02-04 13:43:00 -08005359 /* Attributes for wifi_set_ssid_allow_list */
5360 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
5361 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
5362 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005363
5364 /* Attributes for set_roam_params */
5365 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
5366 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
5367 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
5368 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
5369 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
5370 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
5371 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
5372
5373 /* Attribute for set_lazy_roam */
5374 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
5375
5376 /* Attribute for set_lazy_roam with preferences */
5377 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
5378 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
5379 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
5380 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
5381
Hai Shalom899fcc72020-10-19 14:38:18 -07005382 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005383 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
5384 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
5385 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07005386 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07005387 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005388
Hai Shalomc3565922019-10-28 11:58:20 -07005389 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
5390
Dmitry Shmidt29333592017-01-09 12:27:11 -08005391 /* keep last */
5392 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
5393 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
5394 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
5395};
5396
Hai Shaloma20dcd72022-02-04 13:43:00 -08005397/* old names for API compatibility */
5398#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
5399 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
5400#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
5401 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
5402#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
5403 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
5404
Dmitry Shmidt29333592017-01-09 12:27:11 -08005405/*
Hai Shalomc3565922019-10-28 11:58:20 -07005406 * enum qca_wlan_vendor_roaming_subcmd: Referred by
5407 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
5408 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005409 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
5410 * configure the allow list SSIDs. These are configured through
Hai Shalomc3565922019-10-28 11:58:20 -07005411 * the following attributes.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005412 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
5413 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
5414 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
Hai Shalomc3565922019-10-28 11:58:20 -07005415 *
5416 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
5417 * configure the Roam params. These parameters are evaluated on the GScan
5418 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
5419 * params.
5420 *
5421 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
5422 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
5423 * to enable/disable Lazy roam.
5424 *
5425 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
5426 * preference. Contains the attribute
5427 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
5428 * preference.
5429 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005430 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
Hai Shalom899fcc72020-10-19 14:38:18 -07005431 * to ignore in roaming decision. Uses
5432 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07005433 *
5434 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
5435 * roam control config to the driver with the attribute
5436 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5437 *
5438 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
5439 * roam control config from driver with the attribute
5440 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5441 * For the get, the attribute for the configuration to be queried shall
5442 * carry any of its acceptable value to the driver. In return, the driver
5443 * shall send the configured values within the same attribute to the user
5444 * space.
5445 *
5446 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
5447 * roam control config in the driver with the attribute
5448 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5449 * The driver shall continue with its default roaming behavior when data
5450 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005451 */
Hai Shalomc3565922019-10-28 11:58:20 -07005452enum qca_wlan_vendor_roaming_subcmd {
5453 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005454 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
Hai Shalomc3565922019-10-28 11:58:20 -07005455 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
5456 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
5457 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
5458 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005459 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
Hai Shalomc3565922019-10-28 11:58:20 -07005460 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
5461 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
5462 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005463};
5464
Hai Shaloma20dcd72022-02-04 13:43:00 -08005465/* old names for API compatibility */
5466#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
5467 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
5468#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
5469 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
5470
Dmitry Shmidt29333592017-01-09 12:27:11 -08005471enum qca_wlan_vendor_attr_gscan_config_params {
5472 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
5473
5474 /* Unsigned 32-bit value */
5475 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
5476
5477 /* Attributes for data used by
5478 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
5479 */
5480 /* Unsigned 32-bit value */
5481 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
5482 = 2,
5483 /* Unsigned 32-bit value */
5484 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
5485 = 3,
5486
5487 /* Attributes for input params used by
5488 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
5489 */
5490
5491 /* Unsigned 32-bit value; channel frequency */
5492 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
5493 /* Unsigned 32-bit value; dwell time in ms. */
5494 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
5495 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
5496 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
5497 /* Unsigned 8-bit value; channel class */
5498 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
5499
5500 /* Unsigned 8-bit value; bucket index, 0 based */
5501 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
5502 /* Unsigned 8-bit value; band. */
5503 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
5504 /* Unsigned 32-bit value; desired period, in ms. */
5505 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
5506 /* Unsigned 8-bit value; report events semantics. */
5507 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
5508 /* Unsigned 32-bit value. Followed by a nested array of
5509 * GSCAN_CHANNEL_SPEC_* attributes.
5510 */
5511 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
5512
5513 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
5514 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5515 */
5516 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
5517
5518 /* Unsigned 32-bit value; base timer period in ms. */
5519 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
5520 /* Unsigned 32-bit value; number of APs to store in each scan in the
5521 * BSSID/RSSI history buffer (keep the highest RSSI APs).
5522 */
5523 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
5524 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
5525 * up AP.
5526 */
5527 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
5528 = 16,
5529
5530 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
5531 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
5532 * of the array is determined by NUM_BUCKETS.
5533 */
5534 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
5535
5536 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
5537 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
5538 */
5539 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
5540
5541 /* Unsigned 8-bit value */
5542 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
5543 = 19,
5544 /* Unsigned 32-bit value; maximum number of results to be returned. */
5545 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
5546 = 20,
5547
5548 /* An array of 6 x unsigned 8-bit value */
5549 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
5550 /* Signed 32-bit value */
5551 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
5552 /* Signed 32-bit value */
5553 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
5554 /* Unsigned 32-bit value */
5555 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
5556
5557 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
5558 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
5559 * array is determined by NUM_AP.
5560 */
5561 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
5562
5563 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
5564 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5565 */
5566 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
5567
5568 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
5569 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
5570 = 27,
5571 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
5572 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
5573 = 28,
5574 /* Unsigned 32-bit value; number of APs breaching threshold. */
5575 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
5576 /* Unsigned 32-bit value; number of APs. Followed by an array of
5577 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
5578 */
5579 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
5580 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
5581 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
5582 = 31,
5583 /* Unsigned 32-bit value. If max_period is non zero or different than
5584 * period, then this bucket is an exponential backoff bucket.
5585 */
5586 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
5587 /* Unsigned 32-bit value. */
5588 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
5589 /* Unsigned 32-bit value. For exponential back off bucket, number of
5590 * scans to perform for a given period.
5591 */
5592 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
5593 /* Unsigned 8-bit value; in number of scans, wake up AP after these
5594 * many scans.
5595 */
5596 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
5597 = 35,
5598
5599 /* Attributes for data used by
5600 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
5601 */
5602 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
5603 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
5604 = 36,
5605 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
5606 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
5607 * size of the array is determined by NUM_SSID.
5608 */
5609 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
5610 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
5611 * attributes.
5612 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
5613 */
5614 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
5615
5616 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5617 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
5618 /* Unsigned 8-bit value */
5619 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
5620 /* Signed 32-bit value */
5621 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
5622 /* Signed 32-bit value */
5623 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
5624 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
5625 */
5626 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
5627
5628 /* keep last */
5629 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
5630 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
5631 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
5632};
5633
5634enum qca_wlan_vendor_attr_gscan_results {
5635 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
5636
5637 /* Unsigned 32-bit value; must match the request Id supplied by
5638 * Wi-Fi HAL in the corresponding subcmd NL msg.
5639 */
5640 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
5641
5642 /* Unsigned 32-bit value; used to indicate the status response from
5643 * firmware/driver for the vendor sub-command.
5644 */
5645 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
5646
5647 /* GSCAN Valid Channels attributes */
5648 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
5649 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
5650 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
5651 * representing channel numbers.
5652 */
5653 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
5654
5655 /* GSCAN Capabilities attributes */
5656 /* Unsigned 32-bit value */
5657 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
5658 /* Unsigned 32-bit value */
5659 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
5660 /* Unsigned 32-bit value */
5661 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
5662 = 7,
5663 /* Unsigned 32-bit value */
5664 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
5665 = 8,
5666 /* Signed 32-bit value */
5667 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
5668 = 9,
5669 /* Unsigned 32-bit value */
5670 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
5671 /* Unsigned 32-bit value */
5672 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
5673 = 11,
5674 /* Unsigned 32-bit value */
5675 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
5676 = 12,
5677
5678 /* GSCAN Attributes used with
5679 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
5680 */
5681
5682 /* Unsigned 32-bit value */
5683 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
5684
5685 /* GSCAN attributes used with
5686 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
5687 */
5688
5689 /* An array of NUM_RESULTS_AVAILABLE x
5690 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
5691 */
5692 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
5693
5694 /* Unsigned 64-bit value; age of sample at the time of retrieval */
5695 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
5696 /* 33 x unsigned 8-bit value; NULL terminated SSID */
5697 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
5698 /* An array of 6 x unsigned 8-bit value */
5699 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
5700 /* Unsigned 32-bit value; channel frequency in MHz */
5701 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
5702 /* Signed 32-bit value */
5703 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
5704 /* Unsigned 32-bit value */
5705 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
5706 /* Unsigned 32-bit value */
5707 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
5708 /* Unsigned 16-bit value */
5709 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
5710 /* Unsigned 16-bit value */
5711 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
5712 /* Unsigned 32-bit value; size of the IE DATA blob */
5713 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
5714 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
5715 * information elements found in the beacon; this data should be a
5716 * packed list of wifi_information_element objects, one after the
5717 * other.
5718 */
5719 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
5720
5721 /* Unsigned 8-bit value; set by driver to indicate more scan results are
5722 * available.
5723 */
5724 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
5725
5726 /* GSCAN attributes for
5727 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
5728 */
5729 /* Unsigned 8-bit value */
5730 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
5731 /* Unsigned 32-bit value */
5732 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
5733
5734 /* GSCAN attributes for
5735 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
5736 */
5737 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5738 * to indicate number of results.
5739 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5740 * list of results.
5741 */
5742
5743 /* GSCAN attributes for
5744 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
5745 */
5746 /* An array of 6 x unsigned 8-bit value */
5747 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
5748 /* Unsigned 32-bit value */
5749 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
5750 = 30,
5751 /* Unsigned 32-bit value. */
5752 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
5753 = 31,
5754 /* A nested array of signed 32-bit RSSI values. Size of the array is
5755 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
5756 */
5757 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
5758 = 32,
5759
5760 /* GSCAN attributes used with
5761 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
5762 */
5763 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5764 * to indicate number of gscan cached results returned.
5765 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
5766 * the list of gscan cached results.
5767 */
5768
5769 /* An array of NUM_RESULTS_AVAILABLE x
5770 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
5771 */
5772 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
5773 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
5774 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
5775 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
5776 */
5777 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
5778 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5779 * to indicate number of wifi scan results/bssids retrieved by the scan.
5780 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5781 * list of wifi scan results returned for each cached result block.
5782 */
5783
5784 /* GSCAN attributes for
5785 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
5786 */
5787 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
5788 * number of results.
5789 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5790 * list of wifi scan results returned for each
5791 * wifi_passpoint_match_result block.
5792 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
5793 */
5794
5795 /* GSCAN attributes for
5796 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
5797 */
5798 /* Unsigned 32-bit value */
5799 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
5800 = 36,
5801 /* A nested array of
5802 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
5803 * attributes. Array size =
5804 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
5805 */
5806 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
5807
5808 /* Unsigned 32-bit value; network block id for the matched network */
5809 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
5810 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5811 * list of wifi scan results returned for each
5812 * wifi_passpoint_match_result block.
5813 */
5814 /* Unsigned 32-bit value */
5815 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
5816 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
5817 * ANQP data in the information_element format.
5818 */
5819 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
5820
5821 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5822 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
5823 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5824 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
5825 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5826 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
5827 = 43,
5828 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
Hai Shaloma20dcd72022-02-04 13:43:00 -08005829 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
Dmitry Shmidt29333592017-01-09 12:27:11 -08005830 = 44,
5831
5832 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
5833
Hai Shalomce48b4a2018-09-05 11:41:35 -07005834 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
5835 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07005836 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
Hai Shaloma20dcd72022-02-04 13:43:00 -08005837 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07005838 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
5839 */
Hai Shaloma20dcd72022-02-04 13:43:00 -08005840 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
Hai Shalomce48b4a2018-09-05 11:41:35 -07005841
Dmitry Shmidt29333592017-01-09 12:27:11 -08005842 /* keep last */
5843 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
5844 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
5845 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
5846};
5847
Hai Shaloma20dcd72022-02-04 13:43:00 -08005848/* old names for API compatibility */
5849#define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
5850 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
5851#define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
5852 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
5853
Dmitry Shmidt29333592017-01-09 12:27:11 -08005854enum qca_wlan_vendor_attr_pno_config_params {
5855 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
5856 /* Attributes for data used by
5857 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
5858 */
5859 /* Unsigned 32-bit value */
5860 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
5861 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
5862 * attributes. Array size =
5863 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
5864 */
5865 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
5866
5867 /* Unsigned 32-bit value */
5868 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
5869 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
5870 * realm, 0 if unspecified.
5871 */
5872 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
5873 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
5874 * match, 0 if unspecified.
5875 */
5876 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
5877 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
5878 * unspecified.
5879 */
5880 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
5881
5882 /* Attributes for data used by
5883 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
5884 */
5885 /* Unsigned 32-bit value */
5886 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
5887 /* Array of nested
5888 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
5889 * attributes. Array size =
5890 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
5891 */
5892 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
5893 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5894 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
5895 /* Signed 8-bit value; threshold for considering this SSID as found,
5896 * required granularity for this threshold is 4 dBm to 8 dBm.
5897 */
5898 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
5899 = 10,
5900 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
5901 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
5902 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
5903 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
5904 /* Unsigned 8-bit to indicate ePNO type;
5905 * It takes values from qca_wlan_epno_type
5906 */
5907 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
5908
5909 /* Nested attribute to send the channel list */
5910 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
5911
5912 /* Unsigned 32-bit value; indicates the interval between PNO scan
5913 * cycles in msec.
5914 */
5915 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
5916 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
5917 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
5918 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
5919 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
5920 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
5921 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
5922 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005923 /* Unsigned 32-bit value, representing the PNO Request ID */
5924 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005925
5926 /* keep last */
5927 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
5928 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
5929 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
5930};
5931
Paul Stewart092955c2017-02-06 09:13:09 -08005932/**
5933 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
5934 * the ACS has to be triggered. These values are used by
5935 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
5936 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
5937 */
5938enum qca_wlan_vendor_acs_select_reason {
5939 /* Represents the reason that the ACS triggered during the AP start */
5940 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
5941 /* Represents the reason that DFS found with the current channel */
5942 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
5943 /* Represents the reason that LTE co-exist in the current band. */
5944 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07005945 /* Represents the reason that generic, uncategorized interference has
5946 * been found in the current channel.
5947 */
5948 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
5949 /* Represents the reason that excessive 802.11 interference has been
5950 * found in the current channel.
5951 */
5952 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
5953 /* Represents the reason that generic Continuous Wave (CW) interference
5954 * has been found in the current channel.
5955 */
5956 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
5957 /* Represents the reason that Microwave Oven (MWO) interference has been
5958 * found in the current channel.
5959 */
5960 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
5961 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
5962 * (FHSS) interference has been found in the current channel. This may
5963 * include 802.11 waveforms.
5964 */
5965 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
5966 /* Represents the reason that non-802.11 generic Frequency-Hopping
5967 * Spread Spectrum (FHSS) interference has been found in the current
5968 * channel.
5969 */
5970 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
5971 /* Represents the reason that generic Wideband (WB) interference has
5972 * been found in the current channel. This may include 802.11 waveforms.
5973 */
5974 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
5975 /* Represents the reason that non-802.11 generic Wideband (WB)
5976 * interference has been found in the current channel.
5977 */
5978 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
5979 /* Represents the reason that Jammer interference has been found in the
5980 * current channel.
5981 */
5982 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Sunil Ravia04bd252022-05-02 22:54:18 -07005983 /* Represents the reason that ACS triggered by AFC */
5984 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
Paul Stewart092955c2017-02-06 09:13:09 -08005985};
5986
5987/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005988 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
5989 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
5990 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
5991 * external ACS policies to select the channels w.r.t. the PCL weights.
5992 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
5993 * their PCL weights.)
5994 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
5995 * select a channel with non-zero PCL weight.
5996 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
5997 * channel with non-zero PCL weight.
5998 *
5999 */
6000enum qca_wlan_vendor_attr_external_acs_policy {
6001 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
6002 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
6003};
6004
6005/**
Paul Stewart092955c2017-02-06 09:13:09 -08006006 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
6007 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
6008 */
6009enum qca_wlan_vendor_channel_prop_flags {
6010 /* Bits 0, 1, 2, and 3 are reserved */
6011
6012 /* Turbo channel */
6013 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
6014 /* CCK channel */
6015 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
6016 /* OFDM channel */
6017 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
6018 /* 2.4 GHz spectrum channel. */
6019 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
6020 /* 5 GHz spectrum channel */
6021 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
6022 /* Only passive scan allowed */
6023 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
6024 /* Dynamic CCK-OFDM channel */
6025 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
6026 /* GFSK channel (FHSS PHY) */
6027 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
6028 /* Radar found on channel */
6029 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
6030 /* 11a static turbo channel only */
6031 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
6032 /* Half rate channel */
6033 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
6034 /* Quarter rate channel */
6035 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
6036 /* HT 20 channel */
6037 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
6038 /* HT 40 with extension channel above */
6039 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
6040 /* HT 40 with extension channel below */
6041 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
6042 /* HT 40 intolerant */
6043 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
6044 /* VHT 20 channel */
6045 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
6046 /* VHT 40 with extension channel above */
6047 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
6048 /* VHT 40 with extension channel below */
6049 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
6050 /* VHT 80 channel */
6051 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
6052 /* HT 40 intolerant mark bit for ACS use */
6053 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
6054 /* Channel temporarily blocked due to noise */
6055 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
6056 /* VHT 160 channel */
6057 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
6058 /* VHT 80+80 channel */
6059 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006060 /* HE 20 channel */
6061 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
6062 /* HE 40 with extension channel above */
6063 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
6064 /* HE 40 with extension channel below */
6065 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
6066 /* HE 40 intolerant */
Sunil Ravi89eba102022-09-13 21:04:37 -07006067 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006068};
6069
6070/**
6071 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
6072 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
6073 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
6074 */
6075enum qca_wlan_vendor_channel_prop_flags_2 {
6076 /* HE 40 intolerant mark bit for ACS use */
6077 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
6078 /* HE 80 channel */
6079 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
6080 /* HE 160 channel */
6081 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
6082 /* HE 80+80 channel */
6083 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08006084};
6085
6086/**
6087 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
6088 * each channel. This is used by
6089 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
6090 */
6091enum qca_wlan_vendor_channel_prop_flags_ext {
6092 /* Radar found on channel */
6093 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
6094 /* DFS required on channel */
6095 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
6096 /* DFS required on channel for 2nd band of 80+80 */
6097 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
6098 /* If channel has been checked for DFS */
6099 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
6100 /* Excluded in 802.11d */
6101 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
6102 /* Channel Switch Announcement received on this channel */
6103 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
6104 /* Ad-hoc is not allowed */
6105 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
6106 /* Station only channel */
6107 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07006108 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08006109 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07006110 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08006111 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
6112};
6113
6114/**
6115 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
6116 * information. These attributes are sent as part of
6117 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
6118 * attributes correspond to a single channel.
6119 */
6120enum qca_wlan_vendor_external_acs_event_chan_info_attr {
6121 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
6122
6123 /* A bitmask (u32) with flags specified in
6124 * enum qca_wlan_vendor_channel_prop_flags.
6125 */
6126 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
6127 /* A bitmask (u32) with flags specified in
6128 * enum qca_wlan_vendor_channel_prop_flags_ext.
6129 */
6130 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
6131 /* frequency in MHz (u32) */
6132 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
6133 /* maximum regulatory transmission power (u32) */
6134 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
6135 /* maximum transmission power (u32) */
6136 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
6137 /* minimum transmission power (u32) */
6138 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
6139 /* regulatory class id (u8) */
6140 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
6141 /* maximum antenna gain in (u8) */
6142 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
6143 /* VHT segment 0 (u8) */
6144 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
6145 /* VHT segment 1 (u8) */
6146 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006147 /* A bitmask (u32) with flags specified in
6148 * enum qca_wlan_vendor_channel_prop_flags_2.
6149 */
6150 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08006151
Hai Shalomc3565922019-10-28 11:58:20 -07006152 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00006153 * Segment 0 in MHz (u32).
6154 *
6155 * For 20/40/80 MHz bandwidth, this indicates the channel center
6156 * frequency index for the 20/40/80 MHz operating channel.
6157 * For 160 MHz bandwidth, this indicates the channel center
6158 * frequency of the primary 80 MHz channel.
6159 * For 320 MHz bandwidth, indicates the channel center frequency
6160 * of the primary 160 MHz channel.
6161 *
6162 * To maintain backward compatibility,
6163 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6164 * is also maintained.
6165 */
6166 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
6167 /* Legacy alias for the Segment 0 attribute.
6168 *
Hai Shalomc3565922019-10-28 11:58:20 -07006169 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
6170 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6171 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6172 * along with
6173 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
6174 *
6175 * If both the driver and user-space application supports the 6 GHz
6176 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
6177 * is deprecated and
6178 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6179 * should be used.
6180 *
6181 * To maintain backward compatibility,
6182 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6183 * is still used if either of the driver or user space application
6184 * doesn't support the 6 GHz band.
6185 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00006186 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
6187 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
Hai Shalomc3565922019-10-28 11:58:20 -07006188
6189 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00006190 * Segment 1 in MHz (u32).
6191 *
6192 * For 20/40/80 MHz bandwidth, this is set to 0.
6193 * For 160 MHz bandwidth, indicates the channel center frequency of the
6194 * 160 MHz channel.
6195 * For 320 MHz bandwidth, indicates the channel center frequency of the
6196 * 320 MHz channel.
6197 *
6198 * To maintain backward compatibility,
6199 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6200 * is also maintained.
6201 */
6202 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
6203 /* Legacy alias for the Segment 1 attribute.
6204 *
Hai Shalomc3565922019-10-28 11:58:20 -07006205 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
6206 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6207 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6208 * along with
6209 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
6210 *
6211 * If both the driver and user-space application supports the 6 GHz
6212 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
6213 * is deprecated and
6214 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6215 * should be considered.
6216 *
6217 * To maintain backward compatibility,
6218 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6219 * is still used if either of the driver or user space application
6220 * doesn't support the 6 GHz band.
6221 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00006222 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
6223 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
Hai Shalomc3565922019-10-28 11:58:20 -07006224
Sunil Ravia04bd252022-05-02 22:54:18 -07006225 /*
6226 * 16-bit attribute of bits indicating the AP power modes supported by
6227 * the channel (u16).
6228 * Note: Currently, only 3 bits are used in the attribute and each bit
6229 * corresponds to the power mode mentioned in enum
6230 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
6231 * set if the associated mode is supported.
6232 */
6233 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
6234 = 14,
6235 /* Array of nested attributes for each power mode. It takes attr as
6236 * defined in enum
6237 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6238 */
6239 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
Sunil Ravi77d572f2023-01-17 23:58:31 +00006240 /*
6241 * This indicates the overlapping 320 MHz center frequency in MHz
6242 * (u32), if the given primary channel supports more than one
6243 * 320 MHz channel bonding.
6244 *
6245 * Example:
6246 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
6247 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
6248 * possible segment 2 frequencies for this (320 MHz center
6249 * frequencies):
6250 *
6251 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
6252 * from frequency 5945 MHz - 6265 MHz
6253 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
6254 * from frequency 6105 MHz - 6425 MHz
6255 *
6256 * In this case,
6257 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
6258 * return 6185 MHz.
6259 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
6260 * return 6105 MHz.
6261 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6262 * will return 6265 MHz.
6263 */
6264 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6265 = 16,
6266
Paul Stewart092955c2017-02-06 09:13:09 -08006267 /* keep last */
6268 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
6269 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
6270 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
6271};
6272
6273/**
Sunil Ravia04bd252022-05-02 22:54:18 -07006274 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
6275 * values that the vendor external ACS channel power attribute
6276 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
6277 * take.
6278 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
6279 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
6280 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
6281 */
6282enum qca_wlan_vendor_external_acs_chan_power_level {
6283 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
6284 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
6285 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
6286};
6287
6288/**
6289 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
6290 * attributes for power mode type and power values corresponding to that.
6291 * These attributes are sent as part of
6292 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
6293 */
6294enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
6295 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
6296 /*
6297 * Power mode (u8) takes the values defined in enum
6298 * qca_wlan_vendor_external_acs_chan_power_mode
6299 */
6300 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
6301 = 1,
6302 /*
6303 * Indicates if power value is a PSD/EIRP value (flag). If flag is
6304 * present, it indicates a PSD value.
6305 */
6306 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
6307 /*
6308 * Power value (u32) PSD/EIRP as indicated by
6309 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
6310 * for power mode corresponding to the
6311 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
6312 * Units for PSD - dBm/MHz
6313 * Units for EIRP - dBm
6314 */
6315 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
6316 = 3,
6317 /* keep last */
6318 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
6319 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
6320 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
6321};
6322
6323/**
Paul Stewart092955c2017-02-06 09:13:09 -08006324 * qca_wlan_vendor_attr_pcl: Represents attributes for
6325 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07006326 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
6327 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08006328 */
6329enum qca_wlan_vendor_attr_pcl {
6330 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
6331
6332 /* Channel number (u8) */
6333 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
6334 /* Channel weightage (u8) */
6335 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006336 /* Channel frequency (u32) in MHz */
6337 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
6338 /* Channel flags (u32)
6339 * bit 0 set: channel to be used for GO role,
6340 * bit 1 set: channel to be used on CLI role,
6341 * bit 2 set: channel must be considered for operating channel
6342 * selection & peer chosen operating channel should be
6343 * one of the channels with this flag set,
6344 * bit 3 set: channel should be excluded in GO negotiation
6345 */
6346 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Sunil Ravia04bd252022-05-02 22:54:18 -07006347
6348 /* Keep last */
6349 QCA_WLAN_VENDOR_ATTR_PCL_LAST,
6350 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
Paul Stewart092955c2017-02-06 09:13:09 -08006351};
6352
6353/**
6354 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
6355 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
6356 * host driver.
6357 */
6358enum qca_wlan_vendor_attr_external_acs_event {
6359 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
6360
6361 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
6362 * This helps ACS module to understand why ACS needs to be started.
6363 */
6364 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
6365 /* Flag attribute to indicate if driver supports spectral scanning */
6366 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
6367 /* Flag attribute to indicate if 11ac is offloaded to firmware */
6368 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
6369 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07006370 * capability as part of scan operation
6371 */
Paul Stewart092955c2017-02-06 09:13:09 -08006372 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
6373 /* Flag attribute to indicate interface status is UP */
6374 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
6375 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07006376 * values.
6377 */
Paul Stewart092955c2017-02-06 09:13:09 -08006378 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
6379 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
6380 * This is the upper bound of channel width. ACS logic should try to get
6381 * a channel with the specified width and if not found, look for lower
6382 * values.
6383 */
6384 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
6385 /* This (u8) will hold values of one of enum nl80211_bands */
6386 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
6387 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07006388 * values
6389 */
Paul Stewart092955c2017-02-06 09:13:09 -08006390 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
6391 /* Array of (u32) supported frequency list among which ACS should choose
6392 * best frequency.
6393 */
6394 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
6395 /* Preferred channel list by the driver which will have array of nested
6396 * values as per enum qca_wlan_vendor_attr_pcl attribute.
6397 */
6398 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
6399 /* Array of nested attribute for each channel. It takes attr as defined
6400 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
6401 */
6402 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006403 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
6404 * It uses values defined in enum
6405 * qca_wlan_vendor_attr_external_acs_policy.
6406 */
6407 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006408 /* Reference RF Operating Parameter (RROP) availability information
6409 * (u16). It uses values defined in enum
6410 * qca_wlan_vendor_attr_rropavail_info.
6411 */
6412 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07006413 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger
6414 * for External ACS
6415 */
6416 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
Paul Stewart092955c2017-02-06 09:13:09 -08006417
6418 /* keep last */
6419 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
6420 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
6421 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
6422};
6423
6424/**
Hai Shalomc3565922019-10-28 11:58:20 -07006425 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08006426 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
6427 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07006428 *
6429 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
6430 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
6431 *
6432 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
6433 * Array of nested values for each channel with following attributes:
6434 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6435 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6436 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6437 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6438 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6439 * Note: If both the driver and user-space application supports the 6 GHz band,
6440 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
6441 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
6442 * To maintain backward compatibility,
6443 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
6444 * is still used if either of the driver or user space application doesn't
6445 * support the 6 GHz band.
6446 *
6447 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
6448 * Primary channel number
6449 * Note: If both the driver and user-space application supports the 6 GHz band,
6450 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
6451 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
6452 * To maintain backward compatibility,
6453 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
6454 * is still used if either of the driver or user space application doesn't
6455 * support the 6 GHz band.
6456 *
6457 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
6458 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
6459 * Note: If both the driver and user-space application supports the 6 GHz band,
6460 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
6461 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
6462 * To maintain backward compatibility,
6463 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
6464 * is still used if either of the driver or user space application
6465 * doesn't support the 6 GHz band.
6466 *
6467 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
6468 * VHT seg0 channel number
6469 * Note: If both the driver and user-space application supports the 6 GHz band,
6470 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
6471 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
6472 * To maintain backward compatibility,
6473 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
6474 * is still used if either of the driver or user space application
6475 * doesn't support the 6 GHz band.
6476 *
6477 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
6478 * VHT seg1 channel number
6479 * Note: If both the driver and user-space application supports the 6 GHz band,
6480 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
6481 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
6482 * To maintain backward compatibility,
6483 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
6484 * is still used if either of the driver or user space application
6485 * doesn't support the 6 GHz band.
6486 *
6487 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
6488 * Takes one of enum nl80211_chan_width values.
6489 *
6490 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
6491 * Array of nested values for each channel with following attributes:
6492 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
6493 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
6494 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
6495 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
6496 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6497 * Note: If user-space application has no support of the 6 GHz band, this
6498 * attribute is optional.
6499 *
6500 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
6501 * Primary channel frequency in MHz
6502 * Note: If user-space application has no support of the 6 GHz band, this
6503 * attribute is optional.
6504 *
6505 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
6506 * Secondary channel frequency in MHz used for HT 40 MHz channels.
6507 * Note: If user-space application has no support of the 6 GHz band, this
6508 * attribute is optional.
6509 *
6510 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
6511 * VHT seg0 channel frequency in MHz
6512 * Note: If user-space application has no support of the 6GHz band, this
6513 * attribute is optional.
6514 *
6515 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
6516 * VHT seg1 channel frequency in MHz
6517 * Note: If user-space application has no support of the 6 GHz band, this
6518 * attribute is optional.
Sunil Ravi77d572f2023-01-17 23:58:31 +00006519 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
6520 * Puncture Bitmap for selected primary channel. Optional if no support
6521 * for EHT (IEEE 802.11be). Encoding for this attribute follows the
6522 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
6523 * element.
Paul Stewart092955c2017-02-06 09:13:09 -08006524 */
6525enum qca_wlan_vendor_attr_external_acs_channels {
6526 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
6527
6528 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
6529 */
6530 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
6531
6532 /* Array of nested values for each channel with following attributes:
6533 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
6534 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6535 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6536 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6537 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6538 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6539 */
6540 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
6541 /* This (u8) will hold values of one of enum nl80211_bands */
6542 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
6543 /* Primary channel (u8) */
6544 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
6545 /* Secondary channel (u8) used for HT 40 MHz channels */
6546 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
6547 /* VHT seg0 channel (u8) */
6548 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
6549 /* VHT seg1 channel (u8) */
6550 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
6551 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
6552 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
6553
Hai Shalomc3565922019-10-28 11:58:20 -07006554 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
6555 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
6556 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
6557 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
6558 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
Sunil Ravi77d572f2023-01-17 23:58:31 +00006559 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
Hai Shalomc3565922019-10-28 11:58:20 -07006560
Paul Stewart092955c2017-02-06 09:13:09 -08006561 /* keep last */
6562 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
6563 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
6564 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
6565};
6566
6567enum qca_chip_power_save_failure_reason {
6568 /* Indicates if the reason for the failure is due to a protocol
6569 * layer/module.
6570 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006571 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08006572 /* Indicates if the reason for the failure is due to a hardware issue.
6573 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006574 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006575};
6576
6577/**
6578 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
6579 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
6580 * information leading to the power save failure.
6581 */
6582enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07006583 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
6584 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08006585 * These reasons are represented by
6586 * enum qca_chip_power_save_failure_reason.
6587 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006588 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006589
Roshan Pius3a1667e2018-07-03 15:17:14 -07006590 /* keep last */
6591 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
6592 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
6593 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
6594};
6595
6596/**
6597 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
6598 * data types for which the stats have to get collected.
6599 */
6600enum qca_wlan_vendor_nud_stats_data_pkt_flags {
6601 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
6602 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
6603 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
6604 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
6605 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
6606 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
6607 * to represent the stats of respective data type.
6608 */
6609 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
6610 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
6611 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
6612};
6613
6614enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
6615 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
6616 /* Represents the data packet type to be monitored (u32).
6617 * Host driver tracks the stats corresponding to each data frame
6618 * represented by these flags.
6619 * These data packets are represented by
6620 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
6621 */
6622 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
6623 /* Name corresponding to the DNS frame for which the respective DNS
6624 * stats have to get monitored (string). Max string length 255.
6625 */
6626 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
6627 /* source port on which the respective proto stats have to get
6628 * collected (u32).
6629 */
6630 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
6631 /* destination port on which the respective proto stats have to get
6632 * collected (u32).
6633 */
6634 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
6635 /* IPv4 address for which the destined data packets have to be
6636 * monitored. (in network byte order), u32.
6637 */
6638 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
6639 /* IPv6 address for which the destined data packets have to be
6640 * monitored. (in network byte order), 16 bytes array.
6641 */
6642 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
6643
6644 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
6645 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
6646 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006647};
6648
6649/**
6650 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
6651 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
6652 * information to start/stop the NUD statistics collection.
6653 */
6654enum qca_attr_nud_stats_set {
6655 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
6656
6657 /* Flag to start/stop the NUD statistics collection.
6658 * Start - If included, Stop - If not included
6659 */
6660 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006661 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08006662 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006663 /* Represents the list of data packet types to be monitored.
6664 * Host driver tracks the stats corresponding to each data frame
6665 * represented by these flags.
6666 * These data packets are represented by
6667 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
6668 */
6669 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08006670
6671 /* keep last */
6672 QCA_ATTR_NUD_STATS_SET_LAST,
6673 QCA_ATTR_NUD_STATS_SET_MAX =
6674 QCA_ATTR_NUD_STATS_SET_LAST - 1,
6675};
6676
Roshan Pius3a1667e2018-07-03 15:17:14 -07006677enum qca_attr_nud_data_stats {
6678 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
6679 /* Data packet type for which the stats are collected (u32).
6680 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
6681 */
6682 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
6683 /* Name corresponding to the DNS frame for which the respective DNS
6684 * stats are monitored (string). Max string length 255.
6685 */
6686 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
6687 /* source port on which the respective proto stats are collected (u32).
6688 */
6689 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
6690 /* destination port on which the respective proto stats are collected
6691 * (u32).
6692 */
6693 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
6694 /* IPv4 address for which the destined data packets have to be
6695 * monitored. (in network byte order), u32.
6696 */
6697 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
6698 /* IPv6 address for which the destined data packets have to be
6699 * monitored. (in network byte order), 16 bytes array.
6700 */
6701 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
6702 /* Data packet Request count received from netdev (u32). */
6703 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
6704 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
6705 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
6706 /* Data packet Request count received by lower MAC from upper MAC
6707 * (u32)
6708 */
6709 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
6710 /* Data packet Request count successfully transmitted by the device
6711 * (u32)
6712 */
6713 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
6714 /* Data packet Response count received by lower MAC (u32) */
6715 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
6716 /* Data packet Response count received by upper MAC (u32) */
6717 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
6718 /* Data packet Response count delivered to netdev (u32) */
6719 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
6720 /* Data Packet Response count that are dropped out of order (u32) */
6721 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
6722
6723 /* keep last */
6724 QCA_ATTR_NUD_DATA_STATS_LAST,
6725 QCA_ATTR_NUD_DATA_STATS_MAX =
6726 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
6727};
6728
Paul Stewart092955c2017-02-06 09:13:09 -08006729/**
6730 * qca_attr_nud_stats_get: Attributes to vendor subcmd
6731 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
6732 * NUD statistics collected when queried.
6733 */
6734enum qca_attr_nud_stats_get {
6735 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006736 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006737 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006738 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006739 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006740 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006741 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006742 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006743 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006744 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006745 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006746 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006747 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006748 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006749 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006750 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006751 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
6752 /* Flag indicating if the station's link to the AP is active.
6753 * Active Link - If included, Inactive link - If not included
6754 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006755 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08006756 /* Flag indicating if there is any duplicate address detected (DAD).
6757 * Yes - If detected, No - If not detected.
6758 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006759 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006760 /* List of Data packet types for which the stats are requested.
6761 * This list does not carry ARP stats as they are done by the
6762 * above attributes. Represented by enum qca_attr_nud_data_stats.
6763 */
6764 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08006765
6766 /* keep last */
6767 QCA_ATTR_NUD_STATS_GET_LAST,
6768 QCA_ATTR_NUD_STATS_GET_MAX =
6769 QCA_ATTR_NUD_STATS_GET_LAST - 1,
6770};
6771
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006772enum qca_wlan_btm_candidate_status {
6773 QCA_STATUS_ACCEPT = 0,
6774 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
6775 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
6776 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
6777 QCA_STATUS_REJECT_LOW_RSSI = 4,
6778 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
6779 QCA_STATUS_REJECT_UNKNOWN = 6,
6780};
6781
6782enum qca_wlan_vendor_attr_btm_candidate_info {
6783 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
6784
6785 /* 6-byte MAC address representing the BSSID of transition candidate */
6786 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
6787 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
6788 * returned by the driver. It says whether the BSSID provided in
6789 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
6790 * the driver, if not it specifies the reason for rejection.
6791 * Note that the user-space can overwrite the transition reject reason
6792 * codes provided by driver based on more information.
6793 */
6794 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
6795
6796 /* keep last */
6797 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
6798 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
6799 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
6800};
6801
6802enum qca_attr_trace_level {
6803 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
6804 /*
6805 * Nested array of the following attributes:
6806 * QCA_ATTR_TRACE_LEVEL_MODULE,
6807 * QCA_ATTR_TRACE_LEVEL_MASK.
6808 */
6809 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
6810 /*
6811 * Specific QCA host driver module. Please refer to the QCA host
6812 * driver implementation to get the specific module ID.
6813 */
6814 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
6815 /* Different trace level masks represented in the QCA host driver. */
6816 QCA_ATTR_TRACE_LEVEL_MASK = 3,
6817
6818 /* keep last */
6819 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
6820 QCA_ATTR_TRACE_LEVEL_MAX =
6821 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
6822};
6823
6824/**
6825 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
6826 */
6827enum qca_wlan_vendor_attr_get_he_capabilities {
6828 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
6829 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07006830 * (u8 attribute: 0 = not supported, 1 = supported)
6831 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006832 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
6833 /* HE PHY capabilities, array of 3 u32 values */
6834 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
6835 /* HE MAC capabilities (u32 attribute) */
6836 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
6837 /* HE MCS map (u32 attribute) */
6838 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
6839 /* Number of SS (u32 attribute) */
6840 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
6841 /* RU count (u32 attribute) */
6842 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
6843 /* PPE threshold data, array of 8 u32 values */
6844 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
6845
6846 /* keep last */
6847 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
6848 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
6849 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
6850};
6851
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006852/**
6853 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6854 */
6855enum qca_wlan_vendor_attr_spectral_scan {
6856 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6857 /* Number of times the chip enters spectral scan mode before
6858 * deactivating spectral scans. When set to 0, chip will enter spectral
6859 * scan mode continuously. u32 attribute.
6860 */
6861 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6862 /* Spectral scan period. Period increment resolution is 256*Tclk,
6863 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6864 */
6865 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6866 /* Spectral scan priority. u32 attribute. */
6867 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6868 /* Number of FFT data points to compute. u32 attribute. */
6869 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6870 /* Enable targeted gain change before starting the spectral scan FFT.
6871 * u32 attribute.
6872 */
6873 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6874 /* Restart a queued spectral scan. u32 attribute. */
6875 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6876 /* Noise floor reference number for the calculation of bin power.
6877 * u32 attribute.
6878 */
6879 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6880 /* Disallow spectral scan triggers after TX/RX packets by setting
6881 * this delay value to roughly SIFS time period or greater.
6882 * u32 attribute.
6883 */
6884 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6885 /* Number of strong bins (inclusive) per sub-channel, below
6886 * which a signal is declared a narrow band tone. u32 attribute.
6887 */
6888 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6889 /* Specify the threshold over which a bin is declared strong (for
6890 * scan bandwidth analysis). u32 attribute.
6891 */
6892 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6893 /* Spectral scan report mode. u32 attribute. */
6894 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6895 /* RSSI report mode, if the ADC RSSI is below
6896 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6897 * then FFTs will not trigger, but timestamps and summaries get
6898 * reported. u32 attribute.
6899 */
6900 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6901 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
6902 * to ensure spectral scan reporting with normal error code.
6903 * u32 attribute.
6904 */
6905 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6906 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
6907 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6908 * u32 attribute.
6909 */
6910 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6911 /* Format of FFT report to software for spectral scan triggered FFTs.
6912 * 0: No FFT report (only spectral scan summary report)
6913 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6914 * report
6915 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6916 * bins (in-band) per FFT + spectral scan summary report
6917 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6918 * bins (all) per FFT + spectral scan summary report
6919 * u32 attribute.
6920 */
6921 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6922 /* Number of LSBs to shift out in order to scale the FFT bins.
6923 * u32 attribute.
6924 */
6925 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6926 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6927 * in dBm power. u32 attribute.
6928 */
6929 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6930 /* Per chain enable mask to select input ADC for search FFT.
6931 * u32 attribute.
6932 */
6933 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6934 /* An unsigned 64-bit integer provided by host driver to identify the
6935 * spectral scan request. This attribute is included in the scan
6936 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6937 * and used as an attribute in
6938 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6939 * specific scan to be stopped.
6940 */
6941 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006942 /* Skip interval for FFT reports. u32 attribute */
6943 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6944 /* Set to report only one set of FFT results.
6945 * u32 attribute.
6946 */
6947 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6948 /* Debug level for spectral module in driver.
6949 * 0 : Verbosity level 0
6950 * 1 : Verbosity level 1
6951 * 2 : Verbosity level 2
6952 * 3 : Matched filterID display
6953 * 4 : One time dump of FFT report
6954 * u32 attribute.
6955 */
6956 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6957 /* Type of spectral scan request. u32 attribute.
6958 * It uses values defined in enum
6959 * qca_wlan_vendor_attr_spectral_scan_request_type.
6960 */
6961 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07006962 /* This specifies the frequency span over which spectral
6963 * scan would be carried out. Its value depends on the
6964 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6965 * the relation is as follows.
6966 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6967 * Not applicable. Spectral scan would happen in the
6968 * operating span.
6969 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6970 * Center frequency (in MHz) of the span of interest or
6971 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07006972 * in the span of interest. For 80+80 MHz agile spectral scan
6973 * request it represents center frequency (in MHz) of the primary
6974 * 80 MHz span or for convenience, center frequency (in MHz) of any
6975 * channel in the primary 80 MHz span. If agile spectral scan is
6976 * initiated without setting a valid frequency it returns the
6977 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07006978 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
6979 * u32 attribute.
6980 */
6981 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
6982 /* Spectral scan mode. u32 attribute.
6983 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6984 * If this attribute is not present, it is assumed to be
6985 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
6986 */
6987 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
6988 /* Spectral scan error code. u32 attribute.
6989 * It uses values defined in enum
6990 * qca_wlan_vendor_spectral_scan_error_code.
6991 * This attribute is included only in failure scenarios.
6992 */
6993 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
6994 /* 8-bit unsigned value to enable/disable debug of the
6995 * Spectral DMA ring.
6996 * 1-enable, 0-disable
6997 */
6998 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
6999 /* 8-bit unsigned value to enable/disable debug of the
7000 * Spectral DMA buffers.
7001 * 1-enable, 0-disable
7002 */
7003 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07007004 /* This specifies the frequency span over which spectral scan would be
7005 * carried out. Its value depends on the value of
7006 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
7007 * follows.
7008 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7009 * Not applicable. Spectral scan would happen in the operating span.
7010 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7011 * This attribute is applicable only for agile spectral scan
7012 * requests in 80+80 MHz mode. It represents center frequency (in
7013 * MHz) of the secondary 80 MHz span or for convenience, center
7014 * frequency (in MHz) of any channel in the secondary 80 MHz span.
7015 * u32 attribute.
7016 */
7017 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007018 /* This attribute specifies the bandwidth to be used for spectral scan
7019 * operation. This is an u8 attribute and uses the values in enum
7020 * nl80211_chan_width. This is an optional attribute.
7021 * If this attribute is not populated, the driver should configure the
7022 * spectral scan bandwidth to the maximum value supported by the target
7023 * for the current operating bandwidth.
7024 */
7025 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07007026 /* Spectral FFT recapture flag attribute, to enable FFT recapture.
7027 * Recapture can only be enabled for scan period greater than 52 us.
7028 * If this attribute is enabled, re-triggers will be enabled when AGC
7029 * gain changes.
7030 */
7031 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007032
7033 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
7034 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
7035 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
7036};
7037
Roshan Pius3a1667e2018-07-03 15:17:14 -07007038/**
7039 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
7040 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
7041 */
7042enum qca_wlan_vendor_attr_spectral_diag_stats {
7043 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
7044 /* Number of spectral TLV signature mismatches.
7045 * u64 attribute.
7046 */
7047 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
7048 /* Number of spectral phyerror events with insufficient length when
7049 * parsing for secondary 80 search FFT report. u64 attribute.
7050 */
7051 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
7052 /* Number of spectral phyerror events without secondary 80
7053 * search FFT report. u64 attribute.
7054 */
7055 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
7056 /* Number of spectral phyerror events with vht operation segment 1 id
7057 * mismatches in search fft report. u64 attribute.
7058 */
7059 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
7060 /* Number of spectral phyerror events with vht operation segment 2 id
7061 * mismatches in search fft report. u64 attribute.
7062 */
7063 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
7064
7065 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
7066 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
7067 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
7068};
7069
7070/**
7071 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
7072 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
7073 */
7074enum qca_wlan_vendor_attr_spectral_cap {
7075 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
7076 /* Flag attribute to indicate phydiag capability */
7077 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
7078 /* Flag attribute to indicate radar detection capability */
7079 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
7080 /* Flag attribute to indicate spectral capability */
7081 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
7082 /* Flag attribute to indicate advanced spectral capability */
7083 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
7084 /* Spectral hardware generation. u32 attribute.
7085 * It uses values defined in enum
7086 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
7087 */
7088 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08007089 /* Spectral bin scaling formula ID. u16 attribute.
7090 * It uses values defined in enum
7091 * qca_wlan_vendor_spectral_scan_cap_formula_id.
7092 */
7093 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
7094 /* Spectral bin scaling param - low level offset.
7095 * s16 attribute.
7096 */
7097 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
7098 /* Spectral bin scaling param - high level offset.
7099 * s16 attribute.
7100 */
7101 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
7102 /* Spectral bin scaling param - RSSI threshold.
7103 * s16 attribute.
7104 */
7105 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
7106 /* Spectral bin scaling param - default AGC max gain.
7107 * u8 attribute.
7108 */
7109 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07007110 /* Flag attribute to indicate agile spectral scan capability
7111 * for 20/40/80 MHz modes.
7112 */
Hai Shalom81f62d82019-07-22 12:10:00 -07007113 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07007114 /* Flag attribute to indicate agile spectral scan capability
7115 * for 160 MHz mode.
7116 */
7117 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
7118 /* Flag attribute to indicate agile spectral scan capability
7119 * for 80+80 MHz mode.
7120 */
7121 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07007122 /* Number of spectral detectors used for scan in 20 MHz.
7123 * u32 attribute.
7124 */
7125 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
7126 /* Number of spectral detectors used for scan in 40 MHz.
7127 * u32 attribute.
7128 */
7129 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
7130 /* Number of spectral detectors used for scan in 80 MHz.
7131 * u32 attribute.
7132 */
7133 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
7134 /* Number of spectral detectors used for scan in 160 MHz.
7135 * u32 attribute.
7136 */
7137 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
7138 /* Number of spectral detectors used for scan in 80+80 MHz.
7139 * u32 attribute.
7140 */
7141 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007142 /* Flag attribute to indicate agile spectral scan capability
7143 * for 320 MHz mode.
7144 */
7145 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
7146 /* Number of spectral detectors used for scan in 320 MHz.
7147 * u32 attribute.
7148 */
7149 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007150
7151 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
7152 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
7153 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
7154};
7155
7156/**
7157 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
7158 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
7159 */
7160enum qca_wlan_vendor_attr_spectral_scan_status {
7161 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
7162 /* Flag attribute to indicate whether spectral scan is enabled */
7163 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
7164 /* Flag attribute to indicate whether spectral scan is in progress*/
7165 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07007166 /* Spectral scan mode. u32 attribute.
7167 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7168 * If this attribute is not present, normal mode
7169 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
7170 * requested.
7171 */
7172 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007173
7174 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
7175 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
7176 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
7177};
7178
7179/**
7180 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
7181 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
7182 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
7183 * spectral scan request types.
7184 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
7185 * set the spectral parameters and start scan.
7186 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
7187 * only set the spectral parameters.
7188 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
7189 * only start the spectral scan.
7190 */
7191enum qca_wlan_vendor_attr_spectral_scan_request_type {
7192 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
7193 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
7194 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
7195};
7196
7197/**
Hai Shalom81f62d82019-07-22 12:10:00 -07007198 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
7199 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
7200 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
7201 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
7202 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
7203 * spectral scan modes.
7204 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
7205 * spectral scan in the current operating span.
7206 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
7207 * spectral scan in the configured agile span.
7208 */
7209enum qca_wlan_vendor_spectral_scan_mode {
7210 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
7211 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
7212};
7213
7214/**
7215 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
7216 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
7217 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
7218 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
7219 * of a parameter is not supported.
7220 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
7221 * mode is not supported.
7222 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
7223 * has invalid value.
7224 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
7225 * is not initialized.
7226 */
7227enum qca_wlan_vendor_spectral_scan_error_code {
7228 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
7229 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
7230 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
7231 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
7232};
7233
7234/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007235 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
7236 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
7237 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7238 * spectral hardware generation.
7239 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
7240 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
7241 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
7242 */
7243enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
7244 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
7245 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
7246 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
7247};
7248
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007249enum qca_wlan_vendor_tos {
7250 QCA_WLAN_VENDOR_TOS_BK = 0,
7251 QCA_WLAN_VENDOR_TOS_BE = 1,
7252 QCA_WLAN_VENDOR_TOS_VI = 2,
7253 QCA_WLAN_VENDOR_TOS_VO = 3,
7254};
7255
7256/**
7257 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
7258 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
7259 */
7260enum qca_wlan_vendor_attr_active_tos {
7261 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
7262 /* Type Of Service - Represented by qca_wlan_vendor_tos */
7263 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
7264 /* Flag attribute representing the start (attribute included) or stop
7265 * (attribute not included) of the respective TOS.
7266 */
7267 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
7268};
7269
7270enum qca_wlan_vendor_hang_reason {
7271 /* Unspecified reason */
7272 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
7273 /* No Map for the MAC entry for the received frame */
7274 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
7275 /* Peer deletion timeout happened */
7276 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
7277 /* Peer unmap timeout */
7278 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
7279 /* Scan request timed out */
7280 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
7281 /* Consecutive Scan attempt failures */
7282 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
7283 /* Unable to get the message buffer */
7284 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
7285 /* Current command processing is timedout */
7286 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
7287 /* Timeout for an ACK from FW for suspend request */
7288 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
7289 /* Timeout for an ACK from FW for resume request */
7290 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
7291 /* Transmission timeout for consecutive data frames */
7292 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
7293 /* Timeout for the TX completion status of data frame */
7294 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
7295 /* DXE failure for TX/RX, DXE resource unavailability */
7296 QCA_WLAN_HANG_DXE_FAILURE = 12,
7297 /* WMI pending commands exceed the maximum count */
7298 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07007299 /* Timeout for peer STA connection accept command's response from the
7300 * FW in AP mode. This command is triggered when a STA (peer) connects
7301 * to AP (DUT).
7302 */
7303 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
7304 /* Timeout for the AP connection accept command's response from the FW
7305 * in STA mode. This command is triggered when the STA (DUT) connects
7306 * to an AP (peer).
7307 */
7308 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
7309 /* Timeout waiting for the response to the MAC HW mode change command
7310 * sent to FW as a part of MAC mode switch among DBS (Dual Band
7311 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
7312 * Channel Concurrency) mode.
7313 */
7314 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
7315 /* Timeout waiting for the response from FW to configure the MAC HW's
7316 * mode. This operation is to configure the single/two MACs in either
7317 * SCC/MCC/DBS mode.
7318 */
7319 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
7320 /* Timeout waiting for response of VDEV start command from the FW */
7321 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
7322 /* Timeout waiting for response of VDEV restart command from the FW */
7323 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
7324 /* Timeout waiting for response of VDEV stop command from the FW */
7325 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
7326 /* Timeout waiting for response of VDEV delete command from the FW */
7327 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
7328 /* Timeout waiting for response of peer all delete request command to
7329 * the FW on a specific VDEV.
7330 */
7331 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08007332 /* WMI sequence mismatch between WMI command and Tx completion */
7333 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
7334 /* Write to Device HAL register failed */
7335 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
7336 /* No credit left to send the wow_wakeup_from_sleep to firmware */
7337 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
7338 /* Bus failure */
7339 QCA_WLAN_HANG_BUS_FAILURE = 26,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007340 /* tasklet/credit latency found */
7341 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
Sunil Ravi77d572f2023-01-17 23:58:31 +00007342 /* MSDU buffers received in REO error ring, exceeding certain
7343 * threshold
7344 */
7345 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
7346 /* Vdev SM is out of sync and connect req received
7347 * when already connected
7348 */
7349 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
7350 /* Stats request timeout */
7351 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
7352 /* Leak in TX descriptor for a packet */
7353 QCA_WLAN_HANG_TX_DESC_LEAK = 31,
7354 /* Scheduler watchdog timeout */
7355 QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
7356 /* Failed to send self peer deletion cmd to firmware */
7357 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
7358 /* Received del self sta without del bss */
7359 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
7360 /* Recovery needed when sending flush completion to userspace */
7361 QCA_WLAN_HANG_FLUSH_LOGS = 35,
7362 /* Host wakeup because of page fault */
7363 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007364};
7365
7366/**
7367 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
7368 * QCA_NL80211_VENDOR_SUBCMD_HANG.
7369 */
7370enum qca_wlan_vendor_attr_hang {
7371 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
7372 /* Reason for the hang - u32 attribute with a value from enum
7373 * qca_wlan_vendor_hang_reason.
7374 */
7375 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07007376 /* The binary blob data associated with the hang reason specified by
7377 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
7378 * contain the required dump to analyze the reason for the hang.
7379 * NLA_BINARY attribute, the max size is 1024 bytes.
7380 */
7381 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007382
7383 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
7384 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
7385 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
7386};
7387
Roshan Pius3a1667e2018-07-03 15:17:14 -07007388/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08007389 * enum qca_wlan_vendor_flush_pending_policy: Represents values for
7390 * the policy to flush pending frames, configured via
7391 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
7392 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
7393 *
7394 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
7395 * the flush policy configured before. This command basically disables the
7396 * flush config set by the user.
7397 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
7398 * the flush policy to be immediate. All pending packets for the peer/TID are
7399 * flushed when this command/policy is received.
7400 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
7401 * the flush policy to the end of TWT SP. All pending packets for the peer/TID
7402 * are flushed when the end of TWT SP is reached.
7403 */
7404enum qca_wlan_vendor_flush_pending_policy {
7405 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
7406 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
7407 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
7408};
7409
7410/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007411 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
7412 * flushing pending traffic in firmware.
7413 *
7414 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
7415 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
7416 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
7417 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
Hai Shaloma20dcd72022-02-04 13:43:00 -08007418 * flush packets with access category. This is optional. See below.
7419 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
7420 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
7421 * bit to 1 to act upon the TID. This is optional. Either this attribute or
7422 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
7423 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
7424 * it is an error.
7425 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
7426 * packets corresponding to the peer/TID provided. It is a u32 value,
7427 * represented by %enum qca_wlan_vendor_flush_pending_policy. This
7428 * value is honored only when TID mask is provided. This is not honored when AC
7429 * mask is provided.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007430 */
7431enum qca_wlan_vendor_attr_flush_pending {
7432 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
7433 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
7434 QCA_WLAN_VENDOR_ATTR_AC = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007435 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
7436 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007437
7438 /* keep last */
7439 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
7440 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
7441 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
7442};
7443
7444/**
Hai Shalom74f70d42019-02-11 14:42:39 -08007445 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
7446 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
7447 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7448 * Spectral bin scaling formula ID.
7449 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
7450 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
7451 * and RSSI threshold based formula.
7452 */
7453enum qca_wlan_vendor_spectral_scan_cap_formula_id {
7454 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
7455 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
7456};
7457
7458/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007459 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
7460 * RF Operating Parameter (RROP) information is available, and if so, at which
7461 * point in the application-driver interaction sequence it can be retrieved by
7462 * the application from the driver. This point may vary by architecture and
7463 * other factors. This is a u16 value.
7464 */
7465enum qca_wlan_vendor_attr_rropavail_info {
7466 /* RROP information is unavailable. */
7467 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
7468 /* RROP information is available and the application can retrieve the
7469 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
7470 * event from the driver.
7471 */
7472 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
7473 /* RROP information is available only after a vendor specific scan
7474 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
7475 * successfully completed. The application can retrieve the information
7476 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
7477 * the driver.
7478 */
7479 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
7480};
7481
7482/**
7483 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
7484 * Representative RF Operating Parameter (RROP) information. It is sent for the
7485 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
7486 * intended for use by external Auto Channel Selection applications. It provides
7487 * guidance values for some RF parameters that are used by the system during
7488 * operation. These values could vary by channel, band, radio, and so on.
7489 */
7490enum qca_wlan_vendor_attr_rrop_info {
7491 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
7492
7493 /* Representative Tx Power List (RTPL) which has an array of nested
7494 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
7495 */
7496 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
7497
7498 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
7499 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
7500 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
7501};
7502
7503/**
7504 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
7505 * entry instances in the Representative Tx Power List (RTPL). It provides
7506 * simplified power values intended for helping external Auto channel Selection
7507 * applications compare potential Tx power performance between channels, other
7508 * operating conditions remaining identical. These values are not necessarily
7509 * the actual Tx power values that will be used by the system. They are also not
7510 * necessarily the max or average values that will be used. Instead, they are
7511 * relative, summarized keys for algorithmic use computed by the driver or
7512 * underlying firmware considering a number of vendor specific factors.
7513 */
7514enum qca_wlan_vendor_attr_rtplinst {
7515 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
7516
Hai Shalomfdcde762020-04-02 11:19:20 -07007517 /* Primary channel number (u8).
7518 * Note: If both the driver and user space application support the
7519 * 6 GHz band, this attribute is deprecated and
7520 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
7521 * maintain backward compatibility,
7522 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
7523 * driver or user space application or both do not support the 6 GHz
7524 * band.
7525 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007526 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
7527 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
7528 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
7529 /* Representative Tx power in dBm (s32) with emphasis on range. */
7530 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07007531 /* Primary channel center frequency (u32) in MHz */
7532 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007533
7534 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
7535 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
7536 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
7537};
7538
7539/**
7540 * enum qca_wlan_vendor_attr_config_latency_level - Level for
7541 * wlan latency module.
7542 *
7543 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
7544 * power saving which would causing data exchange out of service, this
7545 * would be a big impact on latency. For latency sensitive applications over
7546 * Wi-Fi are intolerant to such operations and thus would configure them
7547 * to meet their respective needs. It is well understood by such applications
7548 * that altering the default behavior would degrade the Wi-Fi functionality
7549 * w.r.t the above pointed WLAN operations.
7550 *
7551 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
7552 * Default WLAN operation level which throughput orientated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08007553 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
7554 * Use XR level to benefit XR (extended reality) application to achieve
7555 * latency and power by via constraint scan/roaming/adaptive PS.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007556 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
Sunil Ravia04bd252022-05-02 22:54:18 -07007557 * Use low latency level to benefit application like concurrent
Roshan Pius3a1667e2018-07-03 15:17:14 -07007558 * downloading or video streaming via constraint scan/adaptive PS.
7559 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
7560 * Use ultra low latency level to benefit for gaming/voice
7561 * application via constraint scan/roaming/adaptive PS.
7562 */
7563enum qca_wlan_vendor_attr_config_latency_level {
7564 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
7565 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007566 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
7567 /* legacy name */
7568 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
7569 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007570 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
7571 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
7572
7573 /* keep last */
7574 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
7575 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
7576 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
7577};
7578
7579/**
7580 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
7581 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7582 */
7583enum qca_wlan_vendor_attr_mac {
7584 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
7585
7586 /* MAC mode info list which has an array of nested values as
7587 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
7588 */
7589 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
7590
7591 /* keep last */
7592 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
7593 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
7594 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
7595};
7596
7597/**
7598 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
7599 * Wi-Fi netdev interface on a respective MAC.
7600 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
7601 */
7602enum qca_wlan_vendor_attr_mac_iface_info {
7603 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
7604 /* Wi-Fi netdev's interface index (u32) */
7605 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
7606 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
7607 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
7608
7609 /* keep last */
7610 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
7611 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
7612 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
7613};
7614
7615/**
7616 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
7617 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
7618 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7619 */
7620enum qca_wlan_vendor_attr_mac_info {
7621 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
7622 /* Hardware MAC ID associated for the MAC (u32) */
7623 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
7624 /* Band supported by the MAC at a given point.
7625 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
7626 * nl80211_band.
7627 */
7628 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
7629 /* Refers to list of WLAN netdev interfaces associated with this MAC.
7630 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
7631 */
7632 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
7633
7634 /* keep last */
7635 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
7636 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
7637 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
7638};
7639
7640/**
7641 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
7642 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
7643 */
7644enum qca_wlan_vendor_attr_get_logger_features {
7645 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
7646 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
7647 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
7648 /* keep last */
7649 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
7650 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
7651 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
7652};
7653
7654/**
7655 * enum wifi_logger_supported_features - Values for supported logger features
7656 */
7657enum wifi_logger_supported_features {
7658 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
7659 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
7660 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
7661 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
7662 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
7663 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
7664 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
7665 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
7666 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
7667};
7668
7669/**
7670 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
7671 * capabilities features
7672 */
7673enum qca_wlan_tdls_caps_features_supported {
7674 WIFI_TDLS_SUPPORT = (1 << (0)),
7675 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
7676 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
7677};
7678
7679/**
7680 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
7681 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
7682 */
7683enum qca_wlan_vendor_attr_tdls_get_capabilities {
7684 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
7685 /* Indicates the max concurrent sessions */
7686 /* Unsigned 32-bit value */
7687 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
7688 /* Indicates the support for features */
7689 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
7690 */
7691 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
7692
7693 /* keep last */
7694 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
7695 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
7696 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
7697};
7698
7699/**
7700 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
7701 * command used as value for the attribute
7702 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
7703 */
7704enum qca_wlan_offloaded_packets_sending_control {
7705 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
7706 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
7707 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
7708};
7709
7710/**
7711 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
7712 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
7713 */
7714enum qca_wlan_vendor_attr_offloaded_packets {
7715 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
7716 /* Takes valid value from the enum
7717 * qca_wlan_offloaded_packets_sending_control
7718 * Unsigned 32-bit value
7719 */
7720 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
7721 /* Unsigned 32-bit value */
7722 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
7723 /* array of u8 len: Max packet size */
7724 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
7725 /* 6-byte MAC address used to represent source MAC address */
7726 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
7727 /* 6-byte MAC address used to represent destination MAC address */
7728 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
7729 /* Unsigned 32-bit value, in milli seconds */
7730 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07007731 /* This optional unsigned 16-bit attribute is used for specifying
7732 * ethernet protocol type. If not specified ethertype defaults to IPv4.
7733 */
7734 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007735
7736 /* keep last */
7737 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
7738 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
7739 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
7740};
7741
7742/**
7743 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
7744 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
7745 */
7746enum qca_wlan_rssi_monitoring_control {
7747 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
7748 QCA_WLAN_RSSI_MONITORING_START,
7749 QCA_WLAN_RSSI_MONITORING_STOP,
7750};
7751
7752/**
7753 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
7754 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
7755 */
7756enum qca_wlan_vendor_attr_rssi_monitoring {
7757 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
7758 /* Takes valid value from the enum
7759 * qca_wlan_rssi_monitoring_control
7760 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
7761 */
7762 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
7763 /* Unsigned 32-bit value */
7764 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
7765 /* Signed 8-bit value in dBm */
7766 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
7767 /* Signed 8-bit value in dBm */
7768 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
7769 /* attributes to be used/received in callback */
7770 /* 6-byte MAC address used to represent current BSSID MAC address */
7771 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
7772 /* Signed 8-bit value indicating the current RSSI */
7773 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
7774 /* keep last */
7775 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
7776 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
7777 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
7778};
7779
7780/**
7781 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
7782 * QCA_NL80211_VENDOR_SUBCMD_NDP.
7783 */
7784enum qca_wlan_vendor_attr_ndp_params {
7785 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
7786 /* Unsigned 32-bit value
7787 * enum of sub commands values in qca_wlan_ndp_sub_cmd
7788 */
7789 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
7790 /* Unsigned 16-bit value */
7791 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
7792 /* NL attributes for data used NDP SUB cmds */
7793 /* Unsigned 32-bit value indicating a service info */
7794 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
7795 /* Unsigned 32-bit value; channel frequency in MHz */
7796 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
7797 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
7798 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
7799 /* Interface name on which NDP is being created */
7800 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
7801 /* Unsigned 32-bit value for security */
7802 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
7803 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
7804 /* Unsigned 32-bit value for QoS */
7805 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
7806 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
7807 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
7808 /* Unsigned 32-bit value for NDP instance Id */
7809 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
7810 /* Array of instance Ids */
7811 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
7812 /* Unsigned 32-bit value for initiator/responder NDP response code
7813 * accept/reject
7814 */
7815 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
7816 /* NDI MAC address. An array of 6 Unsigned int8 */
7817 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
7818 /* Unsigned 32-bit value errors types returned by driver
7819 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7820 * NanStatusType includes these values.
7821 */
7822 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
7823 /* Unsigned 32-bit value error values returned by driver
7824 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
7825 * NanInternalStatusType includes these values.
7826 */
7827 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
7828 /* Unsigned 32-bit value for Channel setup configuration
7829 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7830 * NanDataPathChannelCfg includes these values.
7831 */
7832 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
7833 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
7834 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
7835 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
7836 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
7837 /* Security Context Identifier that contains the PMKID
7838 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
7839 */
7840 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
7841 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
7842 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
7843 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
7844 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
7845 /* Unsigned 32-bit bitmap indicating schedule update
7846 * BIT_0: NSS Update
7847 * BIT_1: Channel list update
7848 */
7849 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
7850 /* Unsigned 32-bit value for NSS */
7851 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
7852 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
7853 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
7854 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
7855 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
7856 */
7857 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
7858 /* Array of channel/band width */
7859 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
7860 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
7861 * This attribute is used and optional for ndp request, ndp response,
7862 * ndp indication, and ndp confirm.
7863 */
7864 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
7865 /* Unsigned 16-bit value indicating transport port used by NDP.
7866 * This attribute is used and optional for ndp response, ndp indication,
7867 * and ndp confirm.
7868 */
7869 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
7870 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
7871 * the Internet Assigned Numbers Authority (IANA) as per:
7872 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
7873 * This attribute is used and optional for ndp response, ndp indication,
7874 * and ndp confirm.
7875 */
7876 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08007877 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
7878 * 1:support 0:not support
7879 */
7880 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07007881 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first
7882 * 48 bits of the SHA-256 hash of the Service Name.
7883 * A lower-case representation of the Service Name shall be used to
7884 * calculate the Service ID.
7885 * Array of u8: length is 6 bytes
7886 * This attribute is used and optional for ndp indication.
7887 */
7888 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007889
7890 /* keep last */
7891 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
7892 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
7893 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
7894};
7895
7896enum qca_wlan_ndp_sub_cmd {
7897 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
Sunil Ravia04bd252022-05-02 22:54:18 -07007898 /* Command to create a NAN data path interface.
7899 * This command was initially designed to both create and start a NAN
7900 * data path interface. However, changes to Linux 5.12 no longer allow
7901 * interface creation via vendor commands. When the driver advertises
7902 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
7903 * userspace must explicitly first create the interface using
7904 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
7905 * to start the interface.
7906 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007907 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
Sunil Ravia04bd252022-05-02 22:54:18 -07007908 /* Command to delete a NAN data path interface.
7909 * This command was initially designed to both stop and delete a NAN
7910 * data path interface. However, changes to Linux 5.12 no longer allow
7911 * interface deletion via vendor commands. When the driver advertises
7912 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
7913 * userspace must explicitly delete the interface using
7914 * NL80211_CMD_DEL_INTERFACE after calling this command.
7915 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007916 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
7917 /* Command to initiate a NAN data path session */
7918 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
7919 /* Command to notify if the NAN data path session was sent */
7920 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
7921 /* Command to respond to NAN data path session */
7922 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
7923 /* Command to notify on the responder about the response */
7924 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
7925 /* Command to initiate a NAN data path end */
7926 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
7927 /* Command to notify the if end request was sent */
7928 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
7929 /* Command to notify the peer about the end request */
7930 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
7931 /* Command to confirm the NAN data path session is complete */
7932 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
7933 /* Command to indicate the peer about the end request being received */
7934 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
7935 /* Command to indicate the peer of schedule update */
7936 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
7937};
7938
7939/**
7940 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
7941 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
7942 */
7943enum qca_wlan_vendor_attr_nd_offload {
7944 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
7945 /* Flag to set Neighbour Discovery offload */
7946 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
7947 /* Keep last */
7948 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
7949 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
7950 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
7951};
7952
7953/**
7954 * enum packet_filter_sub_cmd - Packet filter sub commands
7955 */
7956enum packet_filter_sub_cmd {
7957 /**
7958 * Write packet filter program and/or data. The driver/firmware should
7959 * disable APF before writing into local buffer and re-enable APF after
7960 * writing is done.
7961 */
7962 QCA_WLAN_SET_PACKET_FILTER = 1,
7963 /* Get packet filter feature capabilities from driver */
7964 QCA_WLAN_GET_PACKET_FILTER = 2,
7965 /**
7966 * Write packet filter program and/or data. User space will send the
7967 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
7968 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
7969 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
7970 * enable/disable is given to user space with this command. Also,
7971 * user space sends the length of program portion in the buffer within
7972 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
7973 */
7974 QCA_WLAN_WRITE_PACKET_FILTER = 3,
7975 /* Read packet filter program and/or data */
7976 QCA_WLAN_READ_PACKET_FILTER = 4,
7977 /* Enable APF feature */
7978 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
7979 /* Disable APF feature */
7980 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
7981};
7982
7983/**
7984 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
7985 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
7986 */
7987enum qca_wlan_vendor_attr_packet_filter {
7988 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
7989 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
7990 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
7991 /* Unsigned 32-bit value indicating the packet filter version */
7992 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
7993 /* Unsigned 32-bit value indicating the packet filter id */
7994 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
7995 /**
7996 * Unsigned 32-bit value indicating the packet filter size including
7997 * program + data.
7998 */
7999 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
8000 /* Unsigned 32-bit value indicating the packet filter current offset */
8001 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
8002 /* Program and/or data in bytes */
8003 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
8004 /* Unsigned 32-bit value of the length of the program section in packet
8005 * filter buffer.
8006 */
8007 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
8008
8009 /* keep last */
8010 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
8011 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
8012 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
8013};
8014
8015/**
8016 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
8017 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
8018 */
8019enum qca_wlan_vendor_drv_info {
8020 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
8021 /* Maximum Message size info between firmware & HOST
8022 * Unsigned 32-bit value
8023 */
8024 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
8025 /* keep last */
8026 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
8027 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
8028 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
8029};
8030
8031/**
8032 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
8033 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
8034 */
8035enum qca_wlan_vendor_attr_wake_stats {
8036 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
8037 /* Unsigned 32-bit value indicating the total count of wake event */
8038 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
8039 /* Array of individual wake count, each index representing wake reason
8040 */
8041 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
8042 /* Unsigned 32-bit value representing wake count array */
8043 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
8044 /* Unsigned 32-bit total wake count value of driver/fw */
8045 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
8046 /* Array of wake stats of driver/fw */
8047 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
8048 /* Unsigned 32-bit total wake count value of driver/fw */
8049 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
8050 /* Unsigned 32-bit total wake count value of packets received */
8051 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
8052 /* Unsigned 32-bit wake count value unicast packets received */
8053 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
8054 /* Unsigned 32-bit wake count value multicast packets received */
8055 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
8056 /* Unsigned 32-bit wake count value broadcast packets received */
8057 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
8058 /* Unsigned 32-bit wake count value of ICMP packets */
8059 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
8060 /* Unsigned 32-bit wake count value of ICMP6 packets */
8061 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
8062 /* Unsigned 32-bit value ICMP6 router advertisement */
8063 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
8064 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
8065 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
8066 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
8067 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
8068 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
8069 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
8070 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
8071 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
8072 /* Unsigned 32-bit wake count value of receive side multicast */
8073 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
8074 /* Unsigned 32-bit wake count value of a given RSSI breach */
8075 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
8076 /* Unsigned 32-bit wake count value of low RSSI */
8077 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
8078 /* Unsigned 32-bit value GSCAN count */
8079 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
8080 /* Unsigned 32-bit value PNO complete count */
8081 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
8082 /* Unsigned 32-bit value PNO match count */
8083 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
8084 /* keep last */
8085 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
8086 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
8087 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
8088};
8089
8090/**
Hai Shalomfdcde762020-04-02 11:19:20 -07008091 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07008092 * configured by userspace to the driver/firmware.
8093 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
8094 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07008095 * The driver/firmware takes actions requested by userspace such as throttling
8096 * wifi TX etc. in order to mitigate high temperature.
8097 *
8098 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
8099 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
8100 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
8101 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
8102 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
8103 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
8104 */
8105enum qca_wlan_vendor_thermal_level {
8106 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
8107 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
8108 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
8109 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
8110 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
8111 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
8112};
8113
8114/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008115 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
8116 * cmd value. Used for NL attributes for data used by
8117 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8118 */
8119enum qca_wlan_vendor_attr_thermal_cmd {
8120 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
8121 /* The value of command, driver will implement different operations
8122 * according to this value. It uses values defined in
8123 * enum qca_wlan_vendor_attr_thermal_cmd_type.
8124 * u32 attribute.
8125 */
8126 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07008127 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07008128 * driver/firmware, or get thermal level from the driver/firmware.
8129 * Used in request or response, u32 attribute,
8130 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07008131 */
8132 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
8133 /* Userspace uses this attribute to configure the time in which the
8134 * driver/firmware should complete applying settings it received from
8135 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
8136 * command type. Used in request, u32 attribute, value is in
8137 * milliseconds. A value of zero indicates to apply the settings
8138 * immediately. The driver/firmware can delay applying the configured
8139 * thermal settings within the time specified in this attribute if
8140 * there is any critical ongoing operation.
8141 */
8142 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008143 /* Nested attribute, the driver/firmware uses this attribute to report
8144 * thermal statistics of different thermal levels to userspace when
8145 * requested using the
8146 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
8147 * type. This attribute contains a nested array of records of thermal
8148 * statistics of multiple levels. The attributes used inside this nested
8149 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
8150 */
8151 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008152
8153 /* keep last */
8154 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
8155 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
8156 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
8157};
8158
8159/**
8160 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
8161 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
8162 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
8163 * thermal command types sent to driver.
8164 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
8165 * get thermal shutdown configuration parameters for display. Parameters
8166 * responded from driver are defined in
8167 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
8168 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
8169 * get temperature. Host should respond with a temperature data. It is defined
8170 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
8171 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
8172 * suspend action.
8173 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
8174 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07008175 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
8176 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07008177 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
8178 * thermal level from the driver/firmware. The driver should respond with a
8179 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008180 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
8181 * current thermal statistics from the driver/firmware. The driver should
8182 * respond with statistics of all thermal levels encapsulated in the attribute
8183 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
8184 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
8185 * the current thermal statistics for all thermal levels maintained in the
8186 * driver/firmware and start counting from zero again.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008187 */
8188enum qca_wlan_vendor_attr_thermal_cmd_type {
8189 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
8190 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
8191 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
8192 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07008193 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07008194 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008195 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
8196 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008197};
8198
8199/**
8200 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
8201 * to get chip temperature by user.
8202 * enum values are used for NL attributes for data used by
8203 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
8204 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8205 */
8206enum qca_wlan_vendor_attr_thermal_get_temperature {
8207 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
8208 /* Temperature value (degree Celsius) from driver.
8209 * u32 attribute.
8210 */
8211 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
8212
8213 /* keep last */
8214 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
8215 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
8216 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
8217};
8218
8219/**
8220 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
8221 * to get configuration parameters of thermal shutdown feature. Enum values are
8222 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
8223 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8224 */
8225enum qca_wlan_vendor_attr_get_thermal_params_rsp {
8226 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
8227 /* Indicate if the thermal shutdown feature is enabled.
8228 * NLA_FLAG attribute.
8229 */
8230 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
8231 /* Indicate if the auto mode is enabled.
8232 * Enable: Driver triggers the suspend/resume action.
8233 * Disable: User space triggers the suspend/resume action.
8234 * NLA_FLAG attribute.
8235 */
8236 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
8237 /* Thermal resume threshold (degree Celsius). Issue the resume command
8238 * if the temperature value is lower than this threshold.
8239 * u16 attribute.
8240 */
8241 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
8242 /* Thermal warning threshold (degree Celsius). FW reports temperature
8243 * to driver if it's higher than this threshold.
8244 * u16 attribute.
8245 */
8246 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
8247 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
8248 * if the temperature value is higher than this threshold.
8249 * u16 attribute.
8250 */
8251 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
8252 /* FW reports temperature data periodically at this interval (ms).
8253 * u16 attribute.
8254 */
8255 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
8256
8257 /* keep last */
8258 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
8259 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
8260 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
8261};
8262
8263/**
8264 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
8265 * report thermal events from driver to user space.
8266 * enum values are used for NL attributes for data used by
8267 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
8268 */
8269enum qca_wlan_vendor_attr_thermal_event {
8270 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
8271 /* Temperature value (degree Celsius) from driver.
8272 * u32 attribute.
8273 */
8274 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
8275 /* Indication of resume completion from power save mode.
8276 * NLA_FLAG attribute.
8277 */
8278 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07008279 /* Thermal level from the driver.
8280 * u32 attribute. Possible values are defined in
8281 * enum qca_wlan_vendor_thermal_level.
8282 */
8283 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008284
8285 /* keep last */
8286 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
8287 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
8288 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
8289};
8290
8291/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008292 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8293 * to get thermal status from the driver/firmware.
8294 * enum values are used for NL attributes encapsulated inside the
8295 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8296 *
8297 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8298 * of a thermal level in Celsius. u32 size.
8299 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8300 * of a thermal level in Celsius. u32 size.
8301 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8302 * thermal level in milliseconds. u32 size.
8303 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8304 * of times the temperature crossed into the temperature range defined by the
8305 * thermal level from both higher and lower directions. u32 size.
8306 */
8307enum qca_wlan_vendor_attr_thermal_stats {
8308 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8309 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8310 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8311 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8312 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8313
8314 /* keep last */
8315 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8316 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8317 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8318};
8319
8320/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008321 * enum he_fragmentation_val - HE fragmentation support values
8322 * Indicates level of dynamic fragmentation that is supported by
8323 * a STA as a recipient.
8324 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
8325 * (HE MAC Capabilities Information field) and are used in HE Capabilities
8326 * element to advertise the support. These values are validated in the driver
8327 * to check the device capability and advertised in the HE Capabilities
8328 * element. These values are used to configure testbed device to allow the
8329 * advertised hardware capabilities to be downgraded for testing purposes.
8330 *
8331 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8332 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8333 * contained within an MPDU or S-MPDU, no support for dynamic fragments
8334 * within an A-MPDU that is not an S-MPDU.
8335 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8336 * contained within an MPDU or S-MPDU and support for up to one dynamic
8337 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
8338 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8339 * MPDU or S-MPDU.
8340 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8341 * contained within an MPDU or S-MPDU and support for multiple dynamic
8342 * fragments for each MSDU and for each A-MSDU if supported by the
8343 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8344 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8345 */
8346enum he_fragmentation_val {
8347 HE_FRAG_DISABLE,
8348 HE_FRAG_LEVEL1,
8349 HE_FRAG_LEVEL2,
8350 HE_FRAG_LEVEL3,
8351};
8352
8353/**
8354 * enum he_mcs_config - HE MCS support configuration
8355 *
8356 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8357 * These values are used in driver to configure the HE MCS map to advertise
8358 * Tx/Rx MCS map in HE capability and these values are applied for all the
8359 * streams supported by the device. To configure MCS for different bandwidths,
8360 * vendor command needs to be sent using this attribute with appropriate value.
8361 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8362 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
8363 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
8364 * These values are used to configure testbed device to allow the advertised
8365 * hardware capabilities to be downgraded for testing purposes. The enum values
8366 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
8367 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
8368 * These values are validated in the driver before setting the MCS map and
8369 * driver returns error if the input is other than these enum values.
8370 *
8371 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
8372 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
8373 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
8374 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
8375 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
8376 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
8377 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
8378 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
8379 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
8380 */
8381enum he_mcs_config {
8382 HE_80_MCS0_7 = 0,
8383 HE_80_MCS0_9 = 1,
8384 HE_80_MCS0_11 = 2,
8385 HE_160_MCS0_7 = 4,
8386 HE_160_MCS0_9 = 5,
8387 HE_160_MCS0_11 = 6,
8388 HE_80P80_MCS0_7 = 8,
8389 HE_80P80_MCS0_9 = 9,
8390 HE_80P80_MCS0_11 = 10,
8391};
8392
8393/**
8394 * enum qca_wlan_ba_session_config - BA session configuration
8395 *
8396 * Indicates the configuration values for BA session configuration attribute.
8397 *
8398 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8399 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8400 */
8401enum qca_wlan_ba_session_config {
8402 QCA_WLAN_ADD_BA = 1,
8403 QCA_WLAN_DELETE_BA = 2,
8404};
8405
8406/**
8407 * enum qca_wlan_ac_type - Access category type
8408 *
8409 * Indicates the access category type value.
8410 *
8411 * @QCA_WLAN_AC_BE: BE access category
8412 * @QCA_WLAN_AC_BK: BK access category
8413 * @QCA_WLAN_AC_VI: VI access category
8414 * @QCA_WLAN_AC_VO: VO access category
8415 * @QCA_WLAN_AC_ALL: All ACs
8416 */
8417enum qca_wlan_ac_type {
8418 QCA_WLAN_AC_BE = 0,
8419 QCA_WLAN_AC_BK = 1,
8420 QCA_WLAN_AC_VI = 2,
8421 QCA_WLAN_AC_VO = 3,
8422 QCA_WLAN_AC_ALL = 4,
8423};
8424
8425/**
8426 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8427 *
8428 * Indicates the HE LTF configuration value.
8429 *
8430 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
8431 * based on the GI setting
8432 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8433 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8434 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8435 */
8436enum qca_wlan_he_ltf_cfg {
8437 QCA_WLAN_HE_LTF_AUTO = 0,
8438 QCA_WLAN_HE_LTF_1X = 1,
8439 QCA_WLAN_HE_LTF_2X = 2,
8440 QCA_WLAN_HE_LTF_4X = 3,
8441};
8442
Hai Shalomc9e41a12018-07-31 14:41:42 -07008443/**
8444 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8445 *
8446 * Indicates the HE trigger frame MAC padding duration value.
8447 *
8448 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8449 * process the trigger frame.
8450 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8451 * trigger frame.
8452 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8453 * trigger frame.
8454 */
8455enum qca_wlan_he_mac_padding_dur {
8456 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8457 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8458 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8459};
8460
Hai Shalom74f70d42019-02-11 14:42:39 -08008461/**
8462 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8463 *
8464 * Indicates the HE Operating mode control channel width setting value.
8465 *
8466 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8467 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8468 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8469 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8470 */
8471enum qca_wlan_he_om_ctrl_ch_bw {
8472 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8473 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8474 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8475 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8476};
8477
8478/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008479 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8480 *
8481 * Indicates the frame types to use for keep alive data.
8482 *
8483 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8484 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8485 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8486 */
8487enum qca_wlan_keep_alive_data_type {
8488 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8489 QCA_WLAN_KEEP_ALIVE_DATA = 1,
8490 QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8491};
8492
8493/**
Sunil Ravi77d572f2023-01-17 23:58:31 +00008494 * enum eht_mcs_config - EHT MCS support configuration
8495 *
8496 * Configures the EHT Tx/Rx MCS map in EHT Capability element.
8497 * These values are used in the driver to configure the EHT MCS map to advertise
8498 * Tx/Rx MCS map in EHT capability and these values are applied for all the
8499 * streams supported by the device.
8500 * @EHT_MCS0_7: EHT MCS 0 to 7 support
8501 * @EHT_MCS0_9: EHT MCS 0 to 9 support
8502 * @EHT_MCS0_11: EHT MCS 0 to 11 support
8503 * @EHT_MCS0_13: EHT MCS 0 to 13 support
8504 */
8505enum eht_mcs_config {
8506 EHT_MCS0_7 = 0,
8507 EHT_MCS0_9 = 1,
8508 EHT_MCS0_11 = 2,
8509 EHT_MCS0_13 = 3,
8510};
8511
8512/**
8513 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
8514 * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
8515 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
8516 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
8517 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
8518 * multi-link multi radio mode.
8519 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
8520 * multi-link multi radio mode.
8521 */
8522enum qca_wlan_eht_mlo_mode {
8523 QCA_WLAN_EHT_MODE_INVALID = 0,
8524 QCA_WLAN_EHT_MLSR = 1,
8525 QCA_WLAN_EHT_EMLSR = 2,
8526 QCA_WLAN_EHT_NON_STR_MLMR = 3,
8527 QCA_WLAN_EHT_STR_MLMR = 4,
8528};
8529
8530/**
Hai Shalom74f70d42019-02-11 14:42:39 -08008531 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8532 * HE operating mode control transmit request. These attributes are
8533 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8534 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8535 *
8536 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8537 * indicates the maximum number of spatial streams, NSS, that the STA
8538 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8539 * and is set to NSS - 1.
8540 *
8541 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8542 * indicates the operating channel width supported by the STA for both
8543 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8544 *
8545 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8546 * indicates the all trigger based UL MU operations by the STA.
8547 * 0 - UL MU operations are enabled by the STA.
8548 * 1 - All triggered UL MU transmissions are suspended by the STA.
8549 *
8550 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8551 * indicates the maximum number of space-time streams, NSTS, that
8552 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07008553 *
8554 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8555 * combined with the UL MU Disable subfield and the recipient's setting
8556 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8557 * capabilities to determine which HE TB PPDUs are possible by the
8558 * STA to transmit.
8559 * 0 - UL MU data operations are enabled by the STA.
8560 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8561 * bit is not set, else UL MU Tx is suspended.
8562 *
Hai Shalom74f70d42019-02-11 14:42:39 -08008563 */
8564enum qca_wlan_vendor_attr_he_omi_tx {
8565 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8566 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8567 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8568 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8569 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07008570 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08008571
8572 /* keep last */
8573 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8574 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8575 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8576};
8577
Hai Shalom899fcc72020-10-19 14:38:18 -07008578 /**
8579 * enum qca_wlan_vendor_phy_mode - Different PHY modes
8580 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8581 *
8582 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8583 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8584 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8585 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8586 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8587 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8588 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8589 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8590 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8591 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8592 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8593 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8594 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8595 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8596 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8597 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8598 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8599 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8600 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8601 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8602 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8603 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8604 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8605 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8606 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8607 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8608 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8609 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8610 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8611 */
8612enum qca_wlan_vendor_phy_mode {
8613 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8614 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8615 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8616 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8617 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8618 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8619 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8620 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8621 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8622 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8623 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8624 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8625 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8626 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8627 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8628 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8629 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8630 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8631 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8632 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8633 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8634 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8635 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8636 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8637 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8638 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8639 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8640 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8641 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8642};
8643
Roshan Pius3a1667e2018-07-03 15:17:14 -07008644/* Attributes for data used by
8645 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8646 */
8647enum qca_wlan_vendor_attr_wifi_test_config {
8648 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8649 /* 8-bit unsigned value to configure the driver to enable/disable
8650 * WMM feature. This attribute is used to configure testbed device.
8651 * 1-enable, 0-disable
8652 */
8653 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8654
8655 /* 8-bit unsigned value to configure the driver to accept/reject
8656 * the addba request from peer. This attribute is used to configure
8657 * the testbed device.
8658 * 1-accept addba, 0-reject addba
8659 */
8660 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8661
8662 /* 8-bit unsigned value to configure the driver to send or not to
8663 * send the addba request to peer.
8664 * This attribute is used to configure the testbed device.
8665 * 1-send addba, 0-do not send addba
8666 */
8667 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8668
8669 /* 8-bit unsigned value to indicate the HE fragmentation support.
8670 * Uses enum he_fragmentation_val values.
8671 * This attribute is used to configure the testbed device to
8672 * allow the advertised hardware capabilities to be downgraded
8673 * for testing purposes.
8674 */
8675 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8676
8677 /* 8-bit unsigned value to indicate the HE MCS support.
8678 * Uses enum he_mcs_config values.
8679 * This attribute is used to configure the testbed device to
8680 * allow the advertised hardware capabilities to be downgraded
8681 * for testing purposes.
8682 */
8683 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8684
8685 /* 8-bit unsigned value to configure the driver to allow or not to
8686 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8687 * This attribute is used to configure the testbed device.
8688 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
8689 */
8690 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8691
8692 /* 8-bit unsigned value to configure the driver to add a
8693 * new BA session or delete the existing BA session for
8694 * given TID. ADDBA command uses the buffer size and TID
8695 * configuration if user specifies the values else default
8696 * value for buffer size is used for all TIDs if the TID
8697 * also not specified. For DEL_BA command TID value is
8698 * required to process the command.
8699 * Uses enum qca_wlan_ba_session_config values.
8700 * This attribute is used to configure the testbed device.
8701 */
8702 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
8703
Hai Shalomce48b4a2018-09-05 11:41:35 -07008704 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07008705 * request and response frames.
8706 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07008707 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008708 */
8709 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
8710
8711 /* 8-bit unsigned value to configure the buffer size in addba
8712 * request and response frames.
8713 * This attribute is used to configure the testbed device.
8714 */
8715 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
8716
8717 /* 8-bit unsigned value to configure the no ack policy.
8718 * To configure no ack policy, access category value is
8719 * required to process the command.
8720 * This attribute is used to configure the testbed device.
8721 * 1 - enable no ack, 0 - disable no ack.
8722 */
8723 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
8724
8725 /* 8-bit unsigned value to configure the AC for no ack policy
8726 * This attribute is used to configure the testbed device.
8727 * Uses the enum qca_wlan_ac_type values.
8728 */
8729 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
8730
8731 /* 8-bit unsigned value to configure the HE LTF
8732 * This attribute is used to configure the testbed device.
8733 * Uses the enum qca_wlan_he_ltf_cfg values.
8734 */
8735 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
8736
8737 /* 8-bit unsigned value to configure the tx beamformee.
8738 * This attribute is used to configure the testbed device.
8739 * 1-enable, 0-disable.
8740 */
8741 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
8742
8743 /* 8-bit unsigned value to configure the tx beamformee number
8744 * of space-time streams.
8745 * This attribute is used to configure the testbed device.
8746 * The range of the value is 0 to 8.
8747 */
8748 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
8749
8750 /* 8-bit unsigned value to configure the MU EDCA params for given AC
8751 * This attribute is used to configure the testbed device.
8752 * Uses the enum qca_wlan_ac_type values.
8753 */
8754 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
8755
8756 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
8757 * To configure MU EDCA AIFSN value, MU EDCA access category value
8758 * is required to process the command.
8759 * This attribute is used to configure the testbed device.
8760 */
8761 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
8762
8763 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
8764 * given AC.
8765 * To configure MU EDCA ECW min value, MU EDCA access category value
8766 * is required to process the command.
8767 * This attribute is used to configure the testbed device.
8768 */
8769 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
8770
8771 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
8772 * given AC.
8773 * To configure MU EDCA ECW max value, MU EDCA access category value
8774 * is required to process the command.
8775 * This attribute is used to configure the testbed device.
8776 */
8777 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
8778
8779 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
8780 * To configure MU EDCA timer value, MU EDCA access category value
8781 * is required to process the command.
8782 * This attribute is used to configure the testbed device.
8783 */
8784 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
8785
Hai Shalomc9e41a12018-07-31 14:41:42 -07008786 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
8787 * duration.
8788 * This attribute is used to configure the testbed device.
8789 * Uses the enum qca_wlan_he_mac_padding_dur values.
8790 */
8791 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
8792
Hai Shalomce48b4a2018-09-05 11:41:35 -07008793 /* 8-bit unsigned value to override the MU EDCA params to defaults
8794 * regardless of the AP beacon MU EDCA params. If it is enabled use
8795 * the default values else use the MU EDCA params from AP beacon.
8796 * This attribute is used to configure the testbed device.
8797 * 1-enable, 0-disable.
8798 */
8799 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
8800
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008801 /* 8-bit unsigned value to configure the support for receiving
8802 * an MPDU that contains an operating mode control subfield.
8803 * This attribute is used to configure the testbed device.
8804 * 1-enable, 0-disable.
8805 */
8806 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
8807
8808 /* Nested attribute values required to setup the TWT session.
8809 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
8810 * information to set up the session. It contains broadcast flags,
8811 * set_up flags, trigger value, flow type, flow ID, wake interval
8812 * exponent, protection, target wake time, wake duration, wake interval
8813 * mantissa. These nested attributes are used to setup a host triggered
8814 * TWT session.
8815 */
8816 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
8817
8818 /* This nested attribute is used to terminate the current TWT session.
8819 * It does not currently carry any attributes.
8820 */
8821 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
8822
8823 /* This nested attribute is used to suspend the current TWT session.
8824 * It does not currently carry any attributes.
8825 */
8826 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
8827
8828 /* Nested attribute values to indicate the request for resume.
8829 * This attribute is used to resume the TWT session.
8830 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
8831 * parameters required to resume the TWT session.
8832 */
8833 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
8834
Hai Shalom74f70d42019-02-11 14:42:39 -08008835 /* 8-bit unsigned value to set the HE operating mode control
8836 * (OM CTRL) Channel Width subfield.
8837 * The Channel Width subfield indicates the operating channel width
8838 * supported by the STA for both reception and transmission.
8839 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
8840 * This setting is cleared with the
8841 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8842 * flag attribute to reset defaults.
8843 * This attribute is used to configure the testbed device.
8844 */
8845 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
8846
8847 /* 8-bit unsigned value to configure the number of spatial
8848 * streams in HE operating mode control field.
8849 * This setting is cleared with the
8850 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8851 * flag attribute to reset defaults.
8852 * This attribute is used to configure the testbed device.
8853 */
8854 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
8855
8856 /* Flag attribute to configure the UL MU disable bit in
8857 * HE operating mode control field.
8858 * This setting is cleared with the
8859 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8860 * flag attribute to reset defaults.
8861 * This attribute is used to configure the testbed device.
8862 */
8863 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
8864
8865 /* Flag attribute to clear the previously set HE operating mode
8866 * control field configuration.
8867 * This attribute is used to configure the testbed device to reset
8868 * defaults to clear any previously set HE operating mode control
8869 * field configuration.
8870 */
8871 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
8872
8873 /* 8-bit unsigned value to configure HE single user PPDU
8874 * transmission. By default this setting is disabled and it
8875 * is disabled in the reset defaults of the device configuration.
8876 * This attribute is used to configure the testbed device.
8877 * 1-enable, 0-disable
8878 */
8879 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
8880
8881 /* 8-bit unsigned value to configure action frame transmission
8882 * in HE trigger based PPDU transmission.
8883 * By default this setting is disabled and it is disabled in
8884 * the reset defaults of the device configuration.
8885 * This attribute is used to configure the testbed device.
8886 * 1-enable, 0-disable
8887 */
8888 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
8889
8890 /* Nested attribute to indicate HE operating mode control field
8891 * transmission. It contains operating mode control field Nss,
8892 * channel bandwidth, Tx Nsts and UL MU disable attributes.
8893 * These nested attributes are used to send HE operating mode control
8894 * with configured values.
8895 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
8896 * This attribute is used to configure the testbed device.
8897 */
8898 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
8899
8900 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
8901 * support for the reception of a frame that carries an HE variant
8902 * HT Control field.
8903 * This attribute is used to configure the testbed device.
8904 * 1-enable, 0-disable
8905 */
8906 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
8907
Hai Shalom021b0b52019-04-10 11:17:58 -07008908 /* 8-bit unsigned value to configure VHT support in 2.4G band.
8909 * This attribute is used to configure the testbed device.
8910 * 1-enable, 0-disable
8911 */
8912 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
8913
8914 /* 8-bit unsigned value to configure HE testbed defaults.
8915 * This attribute is used to configure the testbed device.
8916 * 1-set the device HE capabilities to testbed defaults.
8917 * 0-reset the device HE capabilities to supported config.
8918 */
8919 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
8920
8921 /* 8-bit unsigned value to configure TWT request support.
8922 * This attribute is used to configure the testbed device.
8923 * 1-enable, 0-disable.
8924 */
8925 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
8926
Hai Shalom899fcc72020-10-19 14:38:18 -07008927 /* 8-bit unsigned value to configure protection for Management
8928 * frames when PMF is enabled for the association.
8929 * This attribute is used to configure the testbed device.
8930 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
8931 */
8932 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
8933
8934 /* Flag attribute to inject Disassociation frame to the connected AP.
8935 * This attribute is used to configure the testbed device.
8936 */
8937 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
8938
8939 /* 8-bit unsigned value to configure an override for the RSNXE Used
8940 * subfield in the MIC control field of the FTE in FT Reassociation
8941 * Request frame.
8942 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
8943 * This attribute is used to configure the testbed device.
8944 * This attribute can be configured only when STA is in associated state
8945 * and the configuration is valid until the disconnection.
8946 */
8947 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
8948
8949 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
8950 * Switch Announcement) when STA is in connected state.
8951 * 0 - Default behavior, 1 - Ignore CSA.
8952 * This attribute is used to configure the testbed device.
8953 * This attribute can be configured only when STA is in associated state
8954 * and the configuration is valid until the disconnection.
8955 */
8956 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
8957
8958 /* Nested attribute values required to configure OCI (Operating Channel
8959 * Information). Attributes defined in enum
8960 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
8961 * This attribute is used to configure the testbed device.
8962 * This attribute can be configured only when STA is in associated state
8963 * and the configuration is valid until the disconnection.
8964 */
8965 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
8966
8967 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
8968 * Query timeout. If this configuration is enabled STA shall not send
8969 * Deauthentication frmae when SA Query times out (mainly, after a
8970 * channel switch when OCV is enabled).
8971 * 0 - Default behavior, 1 - Ignore SA Query timeout.
8972 * This attribute is used to configure the testbed device.
8973 * This attribute can be configured only when STA is in associated state
8974 * and the configuration is valid until the disconnection.
8975 */
8976 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
8977
8978 /* 8-bit unsigned value to configure the driver/firmware to start or
8979 * stop transmitting FILS discovery frames.
8980 * 0 - Stop transmitting FILS discovery frames
8981 * 1 - Start transmitting FILS discovery frames
8982 * This attribute is used to configure the testbed device.
8983 * This attribute can be configured only in AP mode and the
8984 * configuration is valid until AP restart.
8985 */
8986 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
8987
Hai Shalom60840252021-02-19 19:02:11 -08008988 /* 8-bit unsigned value to configure the driver/firmware to enable or
8989 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
8990 * information field.
8991 * 0 - Disable full bandwidth UL MU-MIMO subfield
8992 * 1 - Enable full bandwidth UL MU-MIMO subfield
8993 * This attribute is used to configure the testbed device.
8994 */
8995 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
8996
8997 /* 16-bit unsigned value to configure the driver with a specific BSS
8998 * max idle period to advertise in the BSS Max Idle Period element
8999 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9000 * This attribute is used to configure the testbed device.
9001 */
9002 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9003
9004 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
9005 * for data transmission.
9006 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9007 * This attribute is used to configure the testbed device.
9008 */
9009 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9010
9011 /* 8-bit unsigned value to configure the driver to disable data and
9012 * management response frame transmission to test the BSS max idle
9013 * feature.
9014 * 0 - Default behavior, 1 - Disable data and management response Tx.
9015 * This attribute is used to configure the testbed device.
9016 */
9017 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9018
9019 /* 8-bit unsigned value to configure the driver/firmware to enable or
9020 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9021 * information field.
9022 * 0 - Disable Punctured Preamble Rx subfield
9023 * 1 - Enable Punctured Preamble Rx subfield
9024 * This attribute is used to configure the testbed device.
9025 */
9026 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9027
Hai Shaloma20dcd72022-02-04 13:43:00 -08009028 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9029 * requirement mismatch for 6 GHz connection.
9030 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9031 * This attribute is used to configure the testbed device.
9032 */
9033 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9034
9035 /* 8-bit unsigned value to configure the driver to allow 6 GHz
9036 * connection with all security modes.
9037 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9038 * modes.
9039 * This attribute is used for testing purposes.
9040 */
9041 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9042
9043 /* 8-bit unsigned value to configure the driver to transmit data with
9044 * ER SU PPDU type.
9045 *
9046 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9047 * This attribute is used for testing purposes.
9048 */
9049 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9050
9051 /* 8-bit unsigned value to configure the driver to use Data or
9052 * Management frame type for keep alive data.
9053 * Uses enum qca_wlan_keep_alive_data_type values.
9054 *
9055 * This attribute is used for testing purposes.
9056 */
9057 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9058
9059 /* 8-bit unsigned value to configure the driver to use scan request
9060 * BSSID value in Probe Request frame RA(A1) during the scan. The
9061 * driver saves this configuration and applies this setting to all user
9062 * space scan requests until the setting is cleared. If this
9063 * configuration is set, the driver uses the BSSID value from the scan
9064 * request to set the RA(A1) in the Probe Request frames during the
9065 * scan.
9066 *
9067 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9068 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9069 * This attribute is used for testing purposes.
9070 */
9071 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9072
9073 /* 8-bit unsigned value to configure the driver to enable/disable the
9074 * BSS max idle period support.
9075 *
9076 * 0 - Disable the BSS max idle support.
9077 * 1 - Enable the BSS max idle support.
9078 * This attribute is used for testing purposes.
9079 */
9080 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9081
9082 /* 8-bit unsigned value to configure the driver/firmware to enable or
9083 * disable Rx control frame to MultiBSS subfield in the HE MAC
9084 * capabilities information field.
9085 * 0 - Disable Rx control frame to MultiBSS subfield
9086 * 1 - Enable Rx control frame to MultiBSS subfield
9087 * This attribute is used to configure the testbed device.
9088 */
9089 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9090
9091 /* 8-bit unsigned value to configure the driver/firmware to enable or
9092 * disable Broadcast TWT support subfield in the HE MAC capabilities
9093 * information field.
9094 * 0 - Disable Broadcast TWT support subfield
9095 * 1 - Enable Broadcast TWT support subfield
9096 * This attribute is used to configure the testbed device.
9097 */
9098 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9099
Sunil Ravia04bd252022-05-02 22:54:18 -07009100 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9101 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
9102 * to 1, and if the firmware supports this capability too, the STA
9103 * advertises this capability to the AP over Association Request frame.
9104 * This attribute will not have any effect on legacy devices with no
9105 * IEEE 802.11be support.
9106 * 0 - Default behavior
9107 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9108 * This attribute is used to configure the testbed device.
9109 */
9110 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9111
Sunil Ravi89eba102022-09-13 21:04:37 -07009112 /* 8-bit unsigned value to configure the driver to enable/disable the
9113 * periodic sounding for Tx beamformer functionality. The default
9114 * behavior uses algorithm to do sounding based on packet stats.
9115 *
9116 * 0 - Default behavior.
9117 * 1 - Enable the periodic sounding for Tx beamformer.
9118 * This attribute is used for testing purposes.
9119 */
9120 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9121
Sunil Ravi77d572f2023-01-17 23:58:31 +00009122 /* 8-bit unsigned value to configure beamformee SS EHT capability
9123 * to indicate the maximum number of spatial streams that the STA
9124 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
9125 * The range of the value is 3 to 7.
9126 * This attribute is used to configure the testbed device.
9127 */
9128 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
9129
9130 /* 8-bit unsigned value to configure beamformee SS EHT capability
9131 * to indicate the maximum number of spatial streams that the STA
9132 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
9133 * The range of the value is 3 to 7.
9134 * This attribute is used to configure the testbed device.
9135 */
9136 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
9137
9138 /* 8-bit unsigned value to configure beamformee SS EHT capability
9139 * to indicate the maximum number of spatial streams that the STA
9140 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
9141 * The range of the value is 3 to 7.
9142 * This attribute is used to configure the testbed device.
9143 */
9144 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
9145
9146 /* 8-bit unsigned value to configure the driver to exclude station
9147 * profile in Probe Request frame Multi-Link element.
9148 * 0 - Default behavior, sends the Probe Request frame with station
9149 * profile data included in the Multi-Link element.
9150 * 1 - Exclude station profile in Probe Request frame Multi-Link
9151 * element.
9152 * This attribute is used to configure the testbed device.
9153 */
9154 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
9155
9156 /* 8-bit unsigned value to configure EHT testbed defaults.
9157 * This attribute is used to configure the testbed device.
9158 * 1 - Set the device EHT capabilities to testbed defaults.
9159 * 0 - Reset the device EHT capabilities to supported config.
9160 */
9161 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
9162
9163 /* 8-bit unsigned value to indicate the EHT MCS support.
9164 * Uses enum eht_mcs_config values.
9165 * This attribute is used to configure the testbed device to
9166 * allow the advertised hardware capabilities to be downgraded
9167 * for testing purposes.
9168 */
9169 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
9170
9171 /* 8-bit unsigned value to configure EHT TB Sounding Feedback
9172 * Rate Limit capability.
9173 * This attribute is used to configure the testbed device.
9174 * 0 - Indicates no maximum supported data rate limitation.
9175 * 1 - Indicates the maximum supported data rate is the lower of
9176 * the 1500 Mb/s and the maximum supported data rate.
9177 */
9178 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
9179
Roshan Pius3a1667e2018-07-03 15:17:14 -07009180 /* keep last */
9181 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
9182 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
9183 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
9184};
9185
9186/**
Hai Shalom899fcc72020-10-19 14:38:18 -07009187 * enum qca_wlan_twt_operation - Operation of the config TWT request
9188 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -08009189 * The response for the respective operations can be either synchronous or
9190 * asynchronous (wherever specified). If synchronous, the response to this
9191 * operation is obtained in the corresponding vendor command reply to the user
9192 * space. For the asynchronous case the response is obtained as an event with
9193 * the same operation type.
9194 *
9195 * Drivers shall support either of these modes but not both simultaneously.
9196 * This support for asynchronous mode is advertised through the flag
9197 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
9198 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -07009199 *
9200 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
9201 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08009202 * qca_wlan_vendor_attr_twt_setup. Depending upon the
9203 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
9204 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07009205 *
9206 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
9207 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08009208 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07009209 *
9210 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
9211 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9212 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08009213 * This terminate can either get triggered by the user space or can as well be
9214 * a notification from the firmware if it initiates a terminate.
9215 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9216 * the request from user space can either be a synchronous or asynchronous
9217 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07009218 *
9219 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
9220 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9221 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08009222 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9223 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07009224 *
9225 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
9226 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9227 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08009228 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
9229 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9230 * capability, this is either a synchronous or asynchronous operation.
9231 *
9232 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
9233 * combination of suspend and resume in a single request. Required parameters
9234 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
9235 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
9236 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9237 * capability, this is either a synchronous or asynchronous operation.
9238 *
9239 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
9240 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
9241 * session is setup. It's a synchronous operation.
9242 *
9243 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
9244 * Valid only after the TWT session is setup. It's a synchronous operation.
9245 *
9246 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
9247 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
9248 * operation.
9249 *
Sunil Ravia04bd252022-05-02 22:54:18 -07009250 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
Hai Shalom60840252021-02-19 19:02:11 -08009251 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009252 *
9253 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
9254 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
9255 * the enum qca_wlan_vendor_attr_twt_set_param.
Sunil Ravia04bd252022-05-02 22:54:18 -07009256 *
9257 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
9258 * related information for example TWT required bit in AP capabilities etc.
9259 * The reason for the notification is sent using
9260 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
Hai Shalom899fcc72020-10-19 14:38:18 -07009261 */
9262enum qca_wlan_twt_operation {
9263 QCA_WLAN_TWT_SET = 0,
9264 QCA_WLAN_TWT_GET = 1,
9265 QCA_WLAN_TWT_TERMINATE = 2,
9266 QCA_WLAN_TWT_SUSPEND = 3,
9267 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -08009268 QCA_WLAN_TWT_NUDGE = 5,
9269 QCA_WLAN_TWT_GET_STATS = 6,
9270 QCA_WLAN_TWT_CLEAR_STATS = 7,
9271 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
9272 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009273 QCA_WLAN_TWT_SET_PARAM = 10,
Sunil Ravia04bd252022-05-02 22:54:18 -07009274 QCA_WLAN_TWT_NOTIFY = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07009275};
9276
9277/**
9278 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
9279 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9280 *
9281 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
9282 * operation of this request. Possible values are defined in enum
9283 * qca_wlan_twt_operation. The parameters for the respective operation is
9284 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
9285 *
9286 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
9287 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -08009288 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009289 * enum qca_wlan_vendor_attr_twt_set_param, or
9290 * enum qca_wlan_vendor_attr_twt_stats based on the operation.
Sunil Ravia04bd252022-05-02 22:54:18 -07009291 *
9292 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
9293 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
9294 * The values used by this attribute are defined in
9295 * enum qca_wlan_vendor_twt_status.
Hai Shalom899fcc72020-10-19 14:38:18 -07009296 */
9297enum qca_wlan_vendor_attr_config_twt {
9298 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
9299 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
9300 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
Sunil Ravia04bd252022-05-02 22:54:18 -07009301 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
Hai Shalom899fcc72020-10-19 14:38:18 -07009302
9303 /* keep last */
9304 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
9305 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
9306 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
9307};
9308
9309/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07009310 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
9311 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9312 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
9313 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
9314 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
9315 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
9316 * statistics of an unassociated station by specifying the MAC address in
9317 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
9318 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
9319 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
9320 * the statistics of all unassociated stations by specifying the Broadcast MAC
9321 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
9322 * above procedure. In the response, driver shall specify statistics
9323 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
9324 */
9325enum qca_wlan_vendor_attr_bss_filter {
9326 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
9327 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
9328 /* Other BSS filter type, unsigned 8 bit value. One of the values
9329 * in enum qca_wlan_vendor_bss_filter_type.
9330 */
9331 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
9332 /* Other BSS filter action, unsigned 8 bit value. One of the values
9333 * in enum qca_wlan_vendor_bss_filter_action.
9334 */
9335 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
9336 /* Array of nested attributes where each entry is the statistics
9337 * information of the specified station that belong to another BSS.
9338 * Attributes for each entry are taken from enum
9339 * qca_wlan_vendor_bss_filter_sta_stats.
9340 * Other BSS station configured in
9341 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
9342 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
9343 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
9344 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
9345 */
9346 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
9347
9348 /* keep last */
9349 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
9350 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
9351 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
9352};
9353
9354/**
9355 * enum qca_wlan_vendor_bss_filter_type - Type of
9356 * filter used in other BSS filter operations. Used by the vendor command
9357 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9358 *
9359 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
9360 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
9361 */
9362enum qca_wlan_vendor_bss_filter_type {
9363 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
9364 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
9365};
9366
9367/**
9368 * enum qca_wlan_vendor_bss_filter_action - Type of
9369 * action in other BSS filter operations. Used by the vendor command
9370 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9371 *
9372 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
9373 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
9374 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
9375 */
9376enum qca_wlan_vendor_bss_filter_action {
9377 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
9378 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
9379 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
9380};
9381
9382/**
9383 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
9384 * the statistics of a specific unassociated station belonging to another BSS.
9385 * The statistics provides information of the unassociated station
9386 * filtered by other BSS operation - such as MAC, signal value.
9387 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9388 *
9389 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
9390 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
9391 * of the station. Unsigned 8 bit number containing RSSI.
9392 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
9393 * driver for the last received RSSI. Unsigned 64 bit number containing
9394 * nanoseconds from the boottime.
9395 */
9396enum qca_wlan_vendor_bss_filter_sta_stats {
9397 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
9398 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
9399 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
9400 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
9401
9402 /* keep last */
9403 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
9404 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
9405 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
9406};
9407
Hai Shalomce48b4a2018-09-05 11:41:35 -07009408/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
9409 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
9410 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9411 */
9412enum qca_wlan_nan_ext_subcmd_type {
9413 /* Subcmd of type NAN Enable Request */
9414 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
9415 /* Subcmd of type NAN Disable Request */
9416 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
9417};
9418
9419/**
9420 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
9421 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9422 */
9423enum qca_wlan_vendor_attr_nan_params {
9424 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
9425 /* Carries NAN command for firmware component. Every vendor command
9426 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
9427 * payload containing the NAN command. NLA_BINARY attribute.
9428 */
9429 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
9430 /* Indicates the type of NAN command sent with
9431 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
9432 * describes the possible range of values. This attribute is mandatory
9433 * if the command being issued is either
9434 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
9435 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
9436 */
9437 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
9438 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
9439 * band. This attribute is mandatory when command type is
9440 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
9441 */
9442 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
9443 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
9444 * band. This attribute is optional and should be included when command
9445 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
9446 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
9447 */
9448 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
9449
9450 /* keep last */
9451 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
9452 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
9453 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
9454};
9455
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009456/**
Hai Shalom60840252021-02-19 19:02:11 -08009457 * qca_wlan_twt_setup_state: Represents the TWT session states.
9458 *
9459 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9460 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9461 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9462 */
9463enum qca_wlan_twt_setup_state {
9464 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9465 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9466 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9467};
9468
9469/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009470 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9471 * TWT (Target Wake Time) setup request. These attributes are sent as part of
9472 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -07009473 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9474 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009475 *
9476 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9477 * Disable (flag attribute not present) - Individual TWT
9478 * Enable (flag attribute present) - Broadcast TWT.
9479 * Individual means the session is between the STA and the AP.
9480 * This session is established using a separate negotiation between
9481 * STA and AP.
9482 * Broadcast means the session is across multiple STAs and an AP. The
9483 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009484 * This is used in
9485 * 1. TWT SET Request and Response
9486 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009487 *
9488 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9489 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -07009490 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009491 *
9492 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9493 * Enable (flag attribute present) - TWT with trigger support.
9494 * Disable (flag attribute not present) - TWT without trigger support.
9495 * Trigger means the AP will send the trigger frame to allow STA to send data.
9496 * Without trigger, the STA will wait for the MU EDCA timer before
9497 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -07009498 * This is used in
9499 * 1. TWT SET Request and Response
9500 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009501 *
9502 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9503 * 0 - Announced TWT - In this mode, STA may skip few service periods to
9504 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9505 * NULL frame to AP.
9506 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009507 * This is a required parameter for
9508 * 1. TWT SET Request and Response
9509 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009510 *
9511 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9512 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -07009513 * If not provided then dialog ID will be set to zero.
9514 * This is an optional parameter for
9515 * 1. TWT SET Request and Response
9516 * 2. TWT GET Request and Response
9517 * 3. TWT TERMINATE Request and Response
9518 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -08009519 * Flow ID values from 0 to 254 represent a single TWT session
9520 * Flow ID value of 255 represents all TWT sessions for the following
9521 * 1. TWT TERMINATE Request and Response
9522 * 2. TWT SUSPEND Request and Response
9523 * 4. TWT CLEAR STATISTICS request
9524 * 5. TWT GET STATISTICS request and response
9525 * If an invalid dialog ID is provided, status
9526 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009527 *
9528 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9529 * This attribute (exp) is used along with the mantissa to derive the
9530 * wake interval using the following formula:
9531 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9532 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009533 * This is a required parameter for
9534 * 1. TWT SET Request and Response
9535 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009536 *
9537 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9538 * Enable (flag attribute present) - Protection required.
9539 * Disable (flag attribute not present) - Protection not required.
9540 * If protection is enabled, then the AP will use protection
9541 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -07009542 * This is used in
9543 * 1. TWT SET Request and Response
9544 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009545 *
9546 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9547 * This attribute is used as the SP offset which is the offset from
9548 * TSF after which the wake happens. The units are in microseconds. If
9549 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -07009550 * This is an optional parameter for
9551 * 1. TWT SET Request and Response
9552 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009553 *
9554 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07009555 * This is the duration of the service period. This is specified as
9556 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9557 * This is a required parameter for
9558 * 1. TWT SET Request and Response
9559 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009560 *
9561 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9562 * This attribute is used to configure wake interval mantissa.
9563 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -07009564 * This is a required parameter for
9565 * 1. TWT SET Request and Response
9566 * 2. TWT GET Response
9567 *
9568 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9569 * This field is applicable for TWT response only.
9570 * This contains status values in enum qca_wlan_vendor_twt_status
9571 * and is passed to the userspace. This is used in TWT SET operation.
9572 * This is a required parameter for
9573 * 1. TWT SET Response
9574 * 2. TWT TERMINATE Response
9575 * 3. TWT SUSPEND Response
9576 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -08009577 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -07009578 *
9579 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9580 * This field is applicable for TWT response only.
9581 * This field contains response type from the TWT responder and is
9582 * passed to the userspace. The values for this field are defined in
9583 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9584 * response.
9585 *
9586 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
Hai Shaloma20dcd72022-02-04 13:43:00 -08009587 * In TWT setup command this field contains absolute TSF that will
9588 * be used by TWT requester during setup.
9589 * In TWT response this field contains absolute TSF value of the
9590 * wake time received from the TWT responder and is passed to
9591 * the userspace.
9592 * This is an optional parameter for
9593 * 1. TWT SET Request
Hai Shalom899fcc72020-10-19 14:38:18 -07009594 * This is a required parameter for
9595 * 1. TWT SET Response
9596 * 2. TWT GET Response
9597 *
9598 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9599 * Enable (flag attribute present) - Indicates that the TWT responder
9600 * supports reception of TWT information frame from the TWT requestor.
9601 * Disable (flag attribute not present) - Indicates that the responder
9602 * doesn't support reception of TWT information frame from requestor.
9603 * This is used in
9604 * 1. TWT SET Response
9605 * 2. TWT GET Response
9606 *
9607 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9608 * Represents the MAC address of the peer for which the TWT session
9609 * is being configured. This is used in AP mode to represent the respective
Hai Shaloma20dcd72022-02-04 13:43:00 -08009610 * client.
9611 * In AP mode, this is a required parameter in response for
9612 * 1. TWT SET
9613 * 2. TWT GET
9614 * 3. TWT TERMINATE
9615 * 4. TWT SUSPEND
Hai Shalom899fcc72020-10-19 14:38:18 -07009616 * In STA mode, this is an optional parameter in request and response for
9617 * the above four TWT operations.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009618 * In AP mode, this is a required parameter in request for
9619 * 1. TWT GET
9620 * 2. TWT TERMINATE
Hai Shalom60840252021-02-19 19:02:11 -08009621 *
9622 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9623 * Minimum tolerance limit of wake interval parameter in microseconds.
9624 *
9625 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9626 * Maximum tolerance limit of wake interval parameter in microseconds.
9627 *
9628 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9629 * Minimum tolerance limit of wake duration parameter in microseconds.
9630 *
9631 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9632 * Maximum tolerance limit of wake duration parameter in microseconds.
9633 *
9634 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9635 * TWT state for the given dialog id. The values for this are represented
9636 * by enum qca_wlan_twt_setup_state.
9637 * This is obtained through TWT GET operation.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009638 *
9639 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9640 * This attribute is used to configure wake interval mantissa.
9641 * The unit is microseconds. This attribute, when specified, takes
9642 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9643 * This parameter is used for
9644 * 1. TWT SET Request and Response
9645 * 2. TWT GET Response
9646 *
9647 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9648 * This attribute is used to configure Broadcast TWT ID.
9649 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9650 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9651 * This parameter is used for
9652 * 1. TWT SET Request
9653 * 2. TWT TERMINATE Request
9654 *
9655 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9656 * This attribute is used to configure Broadcast TWT recommendation.
9657 * The Broadcast TWT Recommendation subfield contains a value that indicates
9658 * recommendations on the types of frames that are transmitted by TWT
9659 * scheduled STAs and scheduling AP during the broadcast TWT SP.
9660 * The allowed values are 0 - 3.
9661 * This parameter is used for
9662 * 1. TWT SET Request
9663 *
9664 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9665 * This attribute is used to configure Broadcast TWT Persistence.
9666 * The Broadcast TWT Persistence subfield indicates the number of
9667 * TBTTs during which the Broadcast TWT SPs corresponding to this
9668 * broadcast TWT Parameter set are present. The number of beacon intervals
9669 * during which the Broadcast TWT SPs are present is equal to the value in the
9670 * Broadcast TWT Persistence subfield plus 1 except that the value 255
9671 * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9672 * This parameter is used for
9673 * 1. TWT SET Request
9674 *
9675 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9676 * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9677 * from TWT response frame.
9678 * This parameter is used for
9679 * 1. TWT SET Response
9680 * 2. TWT GET Response
9681 *
9682 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9683 * This attribute is used to configure the announce timeout value (in us) in
9684 * the firmware. This timeout value is only applicable for the announced TWT. If
9685 * the timeout value is non-zero the firmware waits up to the timeout value to
9686 * use Data frame as an announcement frame. If the timeout value is 0 the
9687 * firmware sends an explicit QoS NULL frame as the announcement frame on SP
9688 * start. The default value in the firmware is 0.
9689 * This parameter is used for
9690 * 1. TWT SET Request
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009691 */
9692enum qca_wlan_vendor_attr_twt_setup {
9693 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9694 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9695 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9696 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9697 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9698 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9699 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9700 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9701 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9702 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9703 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9704
Hai Shalom899fcc72020-10-19 14:38:18 -07009705 /* TWT Response only attributes */
9706 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9707 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9708 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9709 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9710
9711 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -08009712 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9713 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9714 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9715 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9716 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07009717
Hai Shaloma20dcd72022-02-04 13:43:00 -08009718 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9719
9720 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9721 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9722 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9723
9724 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9725 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9726
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009727 /* keep last */
9728 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9729 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9730 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9731};
9732
9733/**
Hai Shalom899fcc72020-10-19 14:38:18 -07009734 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9735 * TWT operation
9736 *
9737 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9738 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9739 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9740 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9741 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9742 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9743 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9744 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9745 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9746 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9747 * request/response frame
9748 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9749 * frame
9750 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9751 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9752 * unknown reason
9753 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9754 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -08009755 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9756 * invalid IE in the received TWT frame
9757 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9758 * the responder are not in the specified range
9759 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9760 * session due to request from the responder. Used on the TWT_TERMINATE
9761 * notification from the firmware.
9762 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9763 * session due to roaming. Used on the TWT_TERMINATE notification from the
9764 * firmware.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009765 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9766 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
9767 * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9768 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9769 * request due to roaming in progress.
9770 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9771 * setup request due to channel switch in progress.
9772 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9773 * request due to scan in progress.
9774 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9775 * terminate an existing TWT session on power save exit request from userspace.
9776 * Used on the TWT_TERMINATE notification from the driver/firmware.
Sunil Ravia04bd252022-05-02 22:54:18 -07009777 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
9778 * required bit in its capabilities.
9779 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
9780 * the TWT required bit(1->0) in its capabilities.
Hai Shalom899fcc72020-10-19 14:38:18 -07009781 */
9782enum qca_wlan_vendor_twt_status {
9783 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9784 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9785 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9786 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9787 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9788 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9789 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9790 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9791 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9792 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9793 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9794 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9795 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9796 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -08009797 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9798 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9799 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9800 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009801 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9802 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9803 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9804 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9805 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
Sunil Ravia04bd252022-05-02 22:54:18 -07009806 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
9807 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
Hai Shalom899fcc72020-10-19 14:38:18 -07009808};
9809
9810/**
9811 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009812 * TWT (Target Wake Time) resume request. These attributes are sent as part of
9813 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -07009814 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9815 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009816 *
9817 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -07009818 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9819 * These attributes are used as the SP offset which is the offset from TSF after
9820 * which the wake happens. The units are in microseconds. Please note that
9821 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9822 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9823 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9824 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009825 *
9826 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9827 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -07009828 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9829 * and 4 for 64 bits.
9830 *
9831 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9832 * Flow ID is the unique identifier for each TWT session. This attribute
9833 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -08009834 * Flow ID values from 0 to 254 represent a single TWT session
9835 * Flow ID value of 255 represents all TWT sessions.
9836 * If an invalid dialog id is provided, status
9837 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -07009838 *
9839 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9840 * Represents the MAC address of the peer to which TWT Resume is
9841 * being sent. This is used in AP mode to represent the respective
9842 * client and is a required parameter. In STA mode, this is an optional
9843 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009844 */
9845enum qca_wlan_vendor_attr_twt_resume {
9846 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9847 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9848 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -07009849 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9850 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9851 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009852
9853 /* keep last */
9854 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9855 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9856 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9857};
9858
9859/**
Hai Shalom60840252021-02-19 19:02:11 -08009860 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9861 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9862 * and resume in a single request. These attributes are sent as part of
9863 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9864 *
9865 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9866 * Flow ID is the unique identifier for each TWT session. This attribute
9867 * represents the respective TWT session to suspend and resume.
9868 * Flow ID values from 0 to 254 represent a single TWT session
9869 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9870 * and response.
9871 * If an invalid dialog id is provided, status
9872 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9873 *
9874 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9875 * This attribute is used as the SP offset which is the offset from
9876 * TSF after which the wake happens. The units are in microseconds.
9877 *
9878 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9879 * This attribute represents the next TWT subfield size.
9880 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9881 * and 4 for 64 bits.
9882 *
9883 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9884 * Represents the MAC address of the peer to which TWT Suspend and Resume is
9885 * being sent. This is used in AP mode to represent the respective
9886 * client and is a required parameter. In STA mode, this is an optional
9887 * parameter.
9888 *
9889 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9890 * This field contains absolute TSF value of the time at which the TWT
9891 * session will be resumed.
Sunil Ravi89eba102022-09-13 21:04:37 -07009892 *
9893 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
9894 * This field will be used when device supports Flexible TWT.
9895 * This field contains an offset value by which to shift the starting time
9896 * of the next service period. The value of offset can be negative or positive.
9897 * If provided, this attribute will override
9898 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
9899 *
Hai Shalom60840252021-02-19 19:02:11 -08009900 */
9901enum qca_wlan_vendor_attr_twt_nudge {
9902 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
9903 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
9904 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
9905 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
9906 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
9907 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -07009908 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
Hai Shalom60840252021-02-19 19:02:11 -08009909
9910 /* keep last */
9911 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
9912 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
9913 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
9914};
9915
9916/**
9917 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
9918 * TWT (Target Wake Time) get statistics and clear statistics request.
9919 * These attributes are sent as part of
9920 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9921 *
9922 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
9923 * Flow ID is the unique identifier for each TWT session. This attribute
9924 * represents the respective TWT session for get and clear TWT statistics.
9925 * Flow ID values from 0 to 254 represent a single TWT session
9926 * Flow ID value of 255 represents all TWT sessions in
9927 * 1) TWT GET STATISTICS request and response
9928 * 2) TWT CLEAR STATISTICS request
9929 *
9930 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
9931 * Represents the MAC address of the peer for which TWT Statistics
9932 * is required.
9933 * In AP mode this is used to represent the respective
9934 * client and is a required parameter for
9935 * 1) TWT GET STATISTICS request and response
9936 * 2) TWT CLEAR STATISTICS request and response
9937 * In STA mode, this is an optional parameter.
9938 *
9939 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
9940 * This is the duration of the service period in microseconds.
9941 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9942 *
9943 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
9944 * Average of the actual wake duration observed so far. Unit is microseconds.
9945 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9946 *
9947 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
9948 * The number of TWT service periods elapsed so far.
9949 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9950 *
9951 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9952 * This is the minimum value of the wake duration observed across
9953 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9954 * microseconds.
9955 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9956 *
9957 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
9958 * This is the maximum value of wake duration observed across
9959 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9960 * microseconds.
9961 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9962 *
9963 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
9964 * Average number of MPDUs transmitted successfully across
9965 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9966 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9967 *
9968 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
9969 * Average number of MPDUs received successfully across
9970 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9971 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9972 *
9973 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
9974 * Average number of bytes transmitted successfully across
9975 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9976 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9977 *
9978 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
9979 * Average number of bytes received successfully across
9980 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9981 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9982 *
9983 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
9984 * Status of the TWT GET STATISTICS request.
9985 * This contains status values in enum qca_wlan_vendor_twt_status
9986 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9987 */
9988enum qca_wlan_vendor_attr_twt_stats {
9989 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
9990 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
9991 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
9992 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
9993 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
9994 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
9995 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
9996 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
9997 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
9998 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
9999 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
10000 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
10001 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
10002
10003 /* keep last */
10004 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
10005 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
10006 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
10007};
10008
10009/**
10010 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
10011 * supported by the device and the peer.
10012 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
10013 *
10014 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
10015 * TWT non-scheduling STA. This capability is advertised in the HE
10016 * Capability/Extended Capabilities information element in the
10017 * Association Request frame by the device.
10018 *
10019 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
10020 * the TWT scheduling AP. This capability is advertised in the Extended
10021 * Capabilities/HE Capabilities information element.
10022 *
10023 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
10024 * for the broadcast TWT functionality. On the responder side, this indicates
10025 * support for the role of broadcast TWT scheduling functionality. This
10026 * capability is advertised in the HE Capabilities information element.
10027 *
10028 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
10029 * This capability is advertised in the HE Capabilities information element.
10030 *
10031 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
10032 * that it mandates the associated HE STAs to support TWT. This capability is
10033 * advertised by AP in the HE Operation Parameters field of the HE Operation
10034 * information element.
10035 */
10036enum qca_wlan_twt_capa {
10037 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
10038 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
10039 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
10040 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
10041 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
10042};
10043
10044/**
10045 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
10046 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
10047 * operation.
10048 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
10049 * Represents the MAC address of the peer for which the TWT capabilities
10050 * are being queried. This is used in AP mode to represent the respective
10051 * client. In STA mode, this is an optional parameter.
10052 *
10053 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
10054 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
10055 * enum qca_wlan_twt_capa.
10056 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
10057 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
10058 * enum qca_wlan_twt_capa.
10059 */
10060enum qca_wlan_vendor_attr_twt_capability {
10061 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
10062 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
10063 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
10064 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
10065
10066 /* keep last */
10067 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
10068 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
10069 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
10070};
10071
10072/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080010073 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
10074 * TWT (Target Wake Time) related parameters. It is used when
10075 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
10076 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10077 *
10078 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
10079 * This attribute configures AC parameters to be used for all TWT
10080 * sessions in AP mode.
10081 * Uses the enum qca_wlan_ac_type values.
10082 */
10083enum qca_wlan_vendor_attr_twt_set_param {
10084 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
10085 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
10086
10087 /* keep last */
10088 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
10089 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
10090 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
10091};
10092
10093/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010094 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
10095 * the TWT responder
10096 *
10097 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
10098 * parameters that are different from TWT requesting STA suggested
10099 * or demanded TWT parameters
10100 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
10101 * parameters that are different from TWT requesting STA TWT suggested
10102 * or demanded parameters
10103 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
10104 * setup
10105 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
10106 * setup.
10107 */
10108enum qca_wlan_vendor_twt_setup_resp_type {
10109 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
10110 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
10111 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
10112 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
10113};
10114
10115/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010116 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
10117 * Represents the setup type being requested for TWT.
10118 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
10119 * parameters but relying on AP to fill the parameters during the negotiation.
10120 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
10121 * values which the AP may accept or AP may provide alternative parameters
10122 * which the STA may accept.
10123 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
10124 * alternate parameters than the requested ones.
10125 */
10126enum qca_wlan_vendor_twt_setup_req_type {
10127 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
10128 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
10129 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
10130};
10131
10132/**
10133 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
10134 *
10135 * Indicates the type of roam scan event sent by firmware/driver.
10136 *
10137 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
10138 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
10139 */
10140enum qca_wlan_roam_scan_event_type {
10141 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
10142 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
10143};
10144
10145/**
10146 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
10147 *
10148 * Indicates the reason for triggering roam scan by firmware/driver.
10149 *
10150 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
10151 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
10152 */
10153enum qca_wlan_roam_scan_trigger_reason {
10154 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
10155 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
10156};
10157
10158/**
10159 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
10160 * roam scan related details from driver/firmware to user space. enum values
10161 * are used for NL attributes sent with
10162 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
10163 */
10164enum qca_wlan_vendor_attr_roam_scan {
10165 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
10166 /* Encapsulates type of roam scan event being reported. enum
10167 * qca_wlan_roam_scan_event_type describes the possible range of
10168 * values. u32 attribute.
10169 */
10170 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
10171 /* Encapsulates reason for triggering roam scan. enum
10172 * qca_wlan_roam_scan_trigger_reason describes the possible range of
10173 * values. u32 attribute.
10174 */
10175 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
10176
10177 /* keep last */
10178 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
10179 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
10180 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
10181};
10182
10183/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080010184 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
10185 * transport modes and is used by the attribute
10186 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
10187 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10188 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
10189 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
10190 * data. The data shall be encapsulated within
10191 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
10192 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
10193 */
10194enum qca_wlan_vendor_cfr_data_transport_modes {
10195 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
10196 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
10197};
10198
10199/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010200 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
10201 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
10202 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -070010203 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
10204 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
10205 * with phase
10206 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010207 */
10208enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010209 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -070010210 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
10211 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
10212};
10213
10214/**
10215 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
10216 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
10217 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
10218 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
10219 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
10220 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
10221 * is provided by one or more of below attributes:
10222 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
10223 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
10224 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
10225 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
10226 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
10227 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
10228 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10229 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
10230 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
10231 */
10232enum qca_wlan_vendor_cfr_capture_type {
10233 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
10234 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
10235 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
10236 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
10237 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
10238 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010239};
10240
10241/**
10242 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
10243 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
10244 * Channel Frequency Response capture parameters and enable periodic CFR
10245 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -070010246 *
10247 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
10248 * MAC address of peer. This is for CFR version 1 only.
10249 *
10250 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
10251 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
10252 * capture. If this attribute is not present, peer CFR capture is disabled.
10253 *
10254 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
10255 * BW of measurement, attribute uses the values in enum nl80211_chan_width
10256 * Supported values: 20, 40, 80, 80+80, 160.
10257 * Note that all targets may not support all bandwidths.
10258 * This attribute is mandatory for version 1 if attribute
10259 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10260 *
10261 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
10262 * Periodicity of CFR measurement in milliseconds.
10263 * Periodicity should be a multiple of Base timer.
10264 * Current Base timer value supported is 10 milliseconds (default).
10265 * 0 for one shot capture.
10266 * This attribute is mandatory for version 1 if attribute
10267 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10268 *
10269 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
10270 * Method used to capture Channel Frequency Response.
10271 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
10272 * This attribute is mandatory for version 1 if attribute
10273 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10274 *
10275 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
10276 * Enable periodic CFR capture.
10277 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
10278 * If this attribute is not present, periodic CFR capture is disabled.
10279 *
10280 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
10281 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
10282 * can't be enabled at same time. This attribute is mandatory if target
10283 * support both versions and use one of them.
10284 *
10285 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
10286 * This attribute is mandatory for version 2 if
10287 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
10288 * Bits 15:0 bitfield indicates which group is to be enabled.
10289 * Bits 31:16 Reserved for future use.
10290 *
10291 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
10292 * CFR capture duration in microsecond. This attribute is mandatory for
10293 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
10294 *
10295 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
10296 * CFR capture interval in microsecond. This attribute is mandatory for
10297 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
10298 *
10299 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
10300 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
10301 * This attribute is mandatory for version 2.
10302 *
10303 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
10304 * Bitfield indicating which user in the current UL MU transmissions are
10305 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
10306 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
10307 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
10308 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
10309 * reserved for future use. This is for CFR version 2 only.
10310 *
10311 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
10312 * Indicates the number of consecutive RX frames to be skipped before CFR
10313 * capture is enabled again. This is for CFR version 2 only.
10314 *
10315 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
10316 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
10317 *
10318 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
10319 * the following group attributes:
10320 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
10321 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
10322 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
10323 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
10324 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
10325 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
10326 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
10327 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
10328 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
10329 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10330 *
10331 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
10332 * Target supports multiple groups for some configurations. The group number
10333 * can be any value between 0 and 15. This is for CFR version 2 only.
10334 *
10335 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
10336 * Transmitter address which is used to filter frames. This MAC address takes
10337 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
10338 * version 2 only.
10339 *
10340 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
10341 * Receiver address which is used to filter frames. This MAC address takes
10342 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
10343 * version 2 only.
10344 *
10345 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10346 * Mask of transmitter address which is used to filter frames. This is for CFR
10347 * version 2 only.
10348 *
10349 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10350 * Mask of receiver address which is used to filter frames. This is for CFR
10351 * version 2 only.
10352 *
10353 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10354 * Indicates frames with a specific NSS will be filtered for CFR capture.
10355 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
10356 * capture to be done for frames matching the NSS specified within this bitmask.
10357 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
10358 * bit 0 : NSS 1
10359 * bit 1 : NSS 2
10360 * ...
10361 * bit 7 : NSS 8
10362 *
10363 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10364 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
10365 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
10366 * capture to be done for frames matching the bandwidths specified within this
10367 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
10368 * numerated in enum nl80211_band (although not all bands may be supported
10369 * by a given device).
10370 *
10371 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10372 * Management frames matching the subtype filter categories will be filtered in
10373 * by MAC for CFR capture. This is a bitmask in which each bit represents the
10374 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
10375 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
10376 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
10377 *
10378 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10379 * Control frames matching the subtype filter categories will be filtered in by
10380 * MAC for CFR capture. This is a bitmask in which each bit represents the
10381 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
10382 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
10383 *
10384 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10385 * Data frames matching the subtype filter categories will be filtered in by
10386 * MAC for CFR capture. This is a bitmask in which each bit represents the
10387 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
10388 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010389 *
10390 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
10391 * Userspace can use this attribute to specify the driver about which transport
10392 * mode shall be used by the driver to send CFR data to userspace. Uses values
10393 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10394 * not present, the driver shall use the default transport mechanism which is
10395 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10396 *
10397 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10398 * Userspace can use this attribute to specify the nl port id of the application
10399 * which receives the CFR data and processes it further so that the drivers can
10400 * unicast the netlink events to a specific application. Optionally included
10401 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10402 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10403 * shall multicast the netlink events when this attribute is not included.
10404 *
10405 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10406 * This attribute will be used by the driver to encapsulate and send CFR data
10407 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10408 * asynchronous event when the driver is configured to send CFR data using
10409 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010410 */
10411enum qca_wlan_vendor_peer_cfr_capture_attr {
10412 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010413 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010414 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010415 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010416 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010417 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010418 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -070010419 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10420 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10421 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10422 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10423 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10424 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10425 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10426 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10427 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10428 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10429 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10430 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10431 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10432 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10433 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10434 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10435 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10436 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10437 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010438 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10439 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10440 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010441
10442 /* Keep last */
10443 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10444 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10445 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10446};
10447
Hai Shalom74f70d42019-02-11 14:42:39 -080010448/**
10449 * enum qca_wlan_throughput_level - Current throughput level
10450 *
10451 * Indicates the current level of throughput calculated by the driver. The
10452 * driver may choose different thresholds to decide whether the throughput level
10453 * is low or medium or high based on variety of parameters like physical link
10454 * capacity of the current connection, the number of packets being dispatched
10455 * per second, etc. The throughput level events might not be consistent with the
10456 * actual current throughput value being observed.
10457 *
10458 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10459 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10460 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10461 */
10462enum qca_wlan_throughput_level {
10463 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
10464 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
10465 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
10466};
10467
10468/**
10469 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
10470 * report throughput changes from the driver to user space. enum values are used
10471 * for netlink attributes sent with
10472 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
10473 */
10474enum qca_wlan_vendor_attr_throughput_change {
10475 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10476 /* Indicates the direction of throughput in which the change is being
10477 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10478 */
10479 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10480 /* Indicates the newly observed throughput level. enum
10481 * qca_wlan_throughput_level describes the possible range of values.
10482 * u8 attribute.
10483 */
10484 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10485 /* Indicates the driver's guidance on the new value to be set to
10486 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
10487 * driver may optionally include this attribute.
10488 */
10489 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10490 /* Indicates the driver's guidance on the new value to be set to
10491 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
10492 * values are from -31 to 31. The driver may optionally include this
10493 * attribute.
10494 */
10495 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10496 /* Indicates the driver's guidance on the new value to be set to
10497 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
10498 * optionally include this attribute.
10499 */
10500 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10501
10502 /* keep last */
10503 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10504 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10505 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10506};
10507
10508/**
10509 * enum qca_coex_config_profiles - This enum defines different types of
10510 * traffic streams that can be prioritized one over the other during coex
10511 * scenarios.
10512 * The types defined in this enum are categorized in the below manner.
10513 * 0 - 31 values corresponds to WLAN
10514 * 32 - 63 values corresponds to BT
10515 * 64 - 95 values corresponds to Zigbee
10516 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10517 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10518 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10519 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10520 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10521 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10522 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10523 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10524 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10525 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10526 * @QCA_BT_A2DP: Prioritize BT A2DP
10527 * @QCA_BT_BLE: Prioritize BT BLE
10528 * @QCA_BT_SCO: Prioritize BT SCO
10529 * @QCA_ZB_LOW: Prioritize Zigbee Low
10530 * @QCA_ZB_HIGH: Prioritize Zigbee High
10531 */
10532enum qca_coex_config_profiles {
10533 /* 0 - 31 corresponds to WLAN */
10534 QCA_WIFI_STA_DISCOVERY = 0,
10535 QCA_WIFI_STA_CONNECTION = 1,
10536 QCA_WIFI_STA_CLASS_3_MGMT = 2,
10537 QCA_WIFI_STA_DATA = 3,
10538 QCA_WIFI_STA_ALL = 4,
10539 QCA_WIFI_SAP_DISCOVERY = 5,
10540 QCA_WIFI_SAP_CONNECTION = 6,
10541 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10542 QCA_WIFI_SAP_DATA = 8,
10543 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -070010544 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -080010545 /* 32 - 63 corresponds to BT */
10546 QCA_BT_A2DP = 32,
10547 QCA_BT_BLE = 33,
10548 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -070010549 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -080010550 /* 64 - 95 corresponds to Zigbee */
10551 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -070010552 QCA_ZB_HIGH = 65,
10553 QCA_ZB_CASE_MAX = 95,
10554 /* 0xff is default value if the u8 profile value is not set. */
10555 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
10556};
10557
10558/**
10559 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10560 * This enum defines the valid set of values of coex configuration types. These
10561 * values may used by attribute
10562 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10563 *
10564 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10565 * weights to default values.
10566 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10567 * weights with configurability value.
10568 */
10569enum qca_vendor_attr_coex_config_types {
10570 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10571 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10572 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -080010573};
10574
10575/**
10576 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
10577 *
10578 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
10579 * length array of 8-bit values from enum qca_coex_config_profiles.
10580 * FW will prioritize the profiles in the order given in the array encapsulated
10581 * in this attribute.
10582 * For example:
10583 * -----------------------------------------------------------------------
10584 * | 1 | 34 | 32 | 65 |
10585 * -----------------------------------------------------------------------
10586 * If the attribute contains the values defined in above array then it means
10587 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
10588 * 2) BT_SCO has priority over BT_A2DP.
10589 * 3) BT_A2DP has priority over ZIGBEE HIGH.
10590 * Profiles which are not listed in this array shall not be preferred over the
10591 * profiles which are listed in the array as a part of this attribute.
10592 */
10593enum qca_vendor_attr_coex_config {
10594 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10595 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
10596
10597 /* Keep last */
10598 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
10599 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
10600 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
10601};
10602
10603/**
Hai Shalom021b0b52019-04-10 11:17:58 -070010604 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10605 * attributes
10606 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10607 *
10608 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10609 * Indicate config type.
10610 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
10611 *
10612 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10613 * Indicate the Priority 1 profiles.
10614 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10615 * In same priority level, maximum to 4 profiles can be set here.
10616 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10617 * Indicate the Priority 2 profiles.
10618 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10619 * In same priority level, maximum to 4 profiles can be set here.
10620 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10621 * Indicate the Priority 3 profiles.
10622 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10623 * In same priority level, maximum to 4 profiles can be set here.
10624 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10625 * Indicate the Priority 4 profiles.
10626 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10627 * In same priority level, maximum to 4 profiles can be set here.
10628 * NOTE:
10629 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10630 * arrangement:
10631 * 1: In the same u32 attribute (priority x), the profiles enum values own
10632 * same priority level.
10633 * 2: 0xff is default value if the u8 profile value is not set.
10634 * 3: max to 4 rules/profiles in same priority level.
10635 * 4: max to 4 priority level (priority 1 - priority 4)
10636 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
10637 * hybrid rules not support.
10638 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10639 * remain blank to reset all parameters.
10640 * For example:
10641 *
10642 * If the attributes as follow:
10643 * priority 1:
10644 * ------------------------------------
10645 * | 0xff | 0 | 1 | 2 |
10646 * ------------------------------------
10647 * priority 2:
10648 * -------------------------------------
10649 * | 0xff | 0xff | 0xff | 32 |
10650 * -------------------------------------
10651 * priority 3:
10652 * -------------------------------------
10653 * | 0xff | 0xff | 0xff | 65 |
10654 * -------------------------------------
10655 * then it means:
10656 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10657 * owns same priority level.
10658 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10659 * has priority over BT_A2DP and ZB_HIGH.
10660 * 3: BT_A2DP has priority over ZB_HIGH.
10661 */
Hai Shalom021b0b52019-04-10 11:17:58 -070010662enum qca_vendor_attr_coex_config_three_way {
10663 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10664 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10665 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10666 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10667 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10668 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10669
10670 /* Keep last */
10671 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10672 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10673 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10674};
10675
10676/**
Hai Shalom74f70d42019-02-11 14:42:39 -080010677 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
10678 *
10679 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
10680 * (STA/AP) for the connected link.
10681 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
10682 * &struct nl80211_sta_flag_update for the respective connected link. MAC
10683 * address of the peer represented by
10684 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
10685 */
10686enum qca_wlan_vendor_attr_link_properties {
10687 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
10688 /* 1 - 3 are reserved */
10689 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
10690 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
10691
10692 /* Keep last */
10693 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
10694 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
10695 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
10696};
10697
Hai Shalom021b0b52019-04-10 11:17:58 -070010698/**
10699 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10700 * This enum defines the valid set of values of peer stats cache types. These
10701 * values are used by attribute
10702 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
10703 *
10704 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
10705 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
10706 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
10707 * statistics
10708 */
10709enum qca_vendor_attr_peer_stats_cache_type {
10710 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10711
10712 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10713 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10714 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10715};
10716
10717/**
10718 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10719 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10720 * Information in these attributes is used to flush peer rate statistics from
10721 * the driver to user application.
10722 *
10723 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10724 * Indicate peer statistics cache type.
10725 * The statistics types are 32-bit values from
10726 * enum qca_vendor_attr_peer_stats_cache_type.
10727 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10728 * of size 6 octets, representing the peer MAC address.
10729 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10730 * containing buffer of statistics to send to application layer entity.
10731 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10732 * representing a cookie for peer unique session.
10733 */
10734enum qca_wlan_vendor_attr_peer_stats_cache_params {
10735 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10736
10737 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10738 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10739 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10740 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10741
10742 /* Keep last */
10743 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10744 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10745 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10746};
10747
10748/**
10749 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
10750 * This enum defines all the possible states of Zigbee, which can be
10751 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
10752 *
10753 * @ZIGBEE_IDLE: Zigbee in idle state
10754 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
10755 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
10756 * @ZIGBEE_JOIN: Zigbee joining network
10757 * @ZIGBEE_NETWORK_UP: Zigbee network is up
10758 * @ZIGBEE_HMI: Zigbee in HMI mode
10759 */
10760enum qca_mpta_helper_attr_zigbee_state {
10761 ZIGBEE_IDLE = 0,
10762 ZIGBEE_FORM_NETWORK = 1,
10763 ZIGBEE_WAIT_JOIN = 2,
10764 ZIGBEE_JOIN = 3,
10765 ZIGBEE_NETWORK_UP = 4,
10766 ZIGBEE_HMI = 5,
10767};
10768
10769/*
10770 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
10771 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10772 */
10773enum qca_mpta_helper_vendor_attr {
10774 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10775 /* Optional attribute used to update Zigbee state.
10776 * enum qca_mpta_helper_attr_zigbee_state.
10777 * NLA_U32 attribute.
10778 */
10779 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10780 /* Optional attribute used to configure WLAN duration for Shape-OCS
10781 * during interrupt.
10782 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10783 * Value range 0 ~ 300 (ms).
10784 * NLA_U32 attribute.
10785 */
10786 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10787 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
10788 * during interrupt.
10789 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10790 * Value range 0 ~ 300 (ms).
10791 * NLA_U32 attribute.
10792 */
10793 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10794 /* Optional attribute used to configure WLAN duration for Shape-OCS
10795 * monitor period.
10796 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10797 * Value range 0 ~ 300 (ms)
10798 * NLA_U32 attribute
10799 */
10800 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10801 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
10802 * monitor period.
10803 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10804 * Value range 0 ~ 300 (ms)
10805 * NLA_U32 attribute
10806 */
10807 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10808 /* Optional attribute used to configure OCS interrupt duration.
10809 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10810 * Value range 1000 ~ 20000 (ms)
10811 * NLA_U32 attribute
10812 */
10813 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10814 /* Optional attribute used to configure OCS monitor duration.
10815 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10816 * Value range 1000 ~ 20000 (ms)
10817 * NLA_U32 attribute
10818 */
10819 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10820 /* Optional attribute used to notify WLAN firmware the current Zigbee
10821 * channel.
10822 * Value range 11 ~ 26
10823 * NLA_U32 attribute
10824 */
10825 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10826 /* Optional attribute used to configure WLAN mute duration.
10827 * Value range 0 ~ 400 (ms)
10828 * NLA_U32 attribute
10829 */
10830 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10831
10832 /* keep last */
10833 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10834 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10835 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10836};
10837
Hai Shalom81f62d82019-07-22 12:10:00 -070010838/**
10839 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10840 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
10841 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10842 *
10843 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10844 * to request the driver to start reporting Beacon frames.
10845 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
10846 * request the driver to stop reporting Beacon frames.
10847 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10848 * userspace to report received Beacon frames.
10849 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10850 * to indicate that the driver is going to pause reporting Beacon frames.
10851 */
10852enum qca_wlan_vendor_beacon_reporting_op_types {
10853 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10854 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10855 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10856 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10857};
10858
10859/**
10860 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
10861 * of reasons for which the driver is pausing reporting Beacon frames. Will be
10862 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10863 *
10864 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10865 * reasons.
10866 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10867 * driver/firmware is starting a scan.
10868 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10869 * driver/firmware disconnects from the ESS and indicates the disconnection to
10870 * userspace (non-seamless roaming case). This reason code will be used by the
10871 * driver/firmware to indicate stopping of beacon report events. Userspace will
10872 * need to start beacon reporting again (if desired) by sending vendor command
10873 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10874 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10875 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10876 * completed.
10877 */
10878enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10879 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10880 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10881 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10882};
10883
10884/*
10885 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10886 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10887 */
10888enum qca_wlan_vendor_attr_beacon_reporting_params {
10889 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10890 /* Specifies the type of operation that the vendor command/event is
10891 * intended for. Possible values for this attribute are defined in
10892 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10893 */
10894 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10895 /* Optionally set by userspace to request the driver to report Beacon
10896 * frames using asynchronous vendor events when the
10897 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10898 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10899 * If this flag is not set, the driver will only update Beacon frames in
10900 * cfg80211 scan cache but not send any vendor events.
10901 */
10902 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10903 /* Optionally used by userspace to request the driver/firmware to report
10904 * Beacon frames periodically when the
10905 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10906 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10907 * u32 attribute, indicates the period of Beacon frames to be reported
10908 * and in the units of beacon interval.
10909 * If this attribute is missing in the command, then the default value
10910 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10911 * Zero is an invalid value.
10912 * If a valid value is received for this attribute, the driver will
10913 * update the cfg80211 scan cache periodically as per the value received
10914 * in this attribute in addition to updating the cfg80211 scan cache
10915 * when there is significant change in Beacon frame IEs.
10916 */
10917 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10918 /* Used by the driver to encapsulate the SSID when the
10919 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10920 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10921 * u8 array with a maximum size of 32.
10922 *
10923 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10924 * will be taken from the SSID element of the received Beacon frame.
10925 *
10926 * When generating beacon report from Multiple BSSID Beacon frame and if
10927 * the BSSID of the current connected BSS matches the BSSID of the
10928 * transmitting BSS, the SSID will be taken from the SSID element of the
10929 * received Beacon frame.
10930 *
10931 * When generating beacon report from Multiple BSSID Beacon frame and if
10932 * the BSSID of the current connected BSS matches the BSSID of one of
10933 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
10934 * included in the nontransmitted BSS profile whose derived BSSID is
10935 * same as the BSSID of the current connected BSS. When there is no
10936 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
10937 * of current connected* BSS, this attribute will not be present.
10938 */
10939 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
10940 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
10941 * currently connected to when the
10942 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10943 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
10944 * fixed size of 6 bytes.
10945 *
10946 * When generating beacon report from a Multiple BSSID beacon and the
10947 * current connected BSSID matches one of the nontransmitted BSSIDs in a
10948 * Multiple BSSID set, this BSSID will be that particular nontransmitted
10949 * BSSID and not the transmitted BSSID (i.e., the transmitting address
10950 * of the Beacon frame).
10951 */
10952 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
10953 /* Used by the driver to encapsulate the frequency in MHz on which
10954 * the Beacon frame was received when the
10955 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
10956 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10957 * u32 attribute.
10958 */
10959 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
10960 /* Used by the driver to encapsulate the Beacon interval
10961 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10962 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10963 * u16 attribute. The value will be copied from the Beacon frame and the
10964 * units are TUs.
10965 */
10966 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
10967 /* Used by the driver to encapsulate the Timestamp field from the Beacon
10968 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
10969 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10970 * u64 attribute.
10971 */
10972 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
10973 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
10974 * Beacon frame is received in the driver when the
10975 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10976 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
10977 * the units of nanoseconds. This value is expected to have accuracy of
10978 * about 10 ms.
10979 */
10980 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
10981 /* Used by the driver to encapsulate the IEs of the Beacon frame from
10982 * which this event is generated when the
10983 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10984 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
10985 */
10986 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
10987 /* Used by the driver to specify the reason for the driver/firmware to
10988 * pause sending beacons to userspace when the
10989 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10990 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
10991 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
10992 * attribute.
10993 */
10994 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
10995 /* Used by the driver to specify whether the driver will automatically
10996 * resume reporting beacon events to userspace later (for example after
10997 * the ongoing off-channel activity is completed etc.) when the
10998 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10999 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
11000 */
11001 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
11002 /* Optionally set by userspace to request the driver not to resume
11003 * beacon reporting after a pause is completed, when the
11004 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11005 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11006 * If this flag is set, the driver will not resume beacon reporting
11007 * after any pause in beacon reporting is completed. Userspace has to
11008 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
11009 * to initiate beacon reporting again. If this flag is set in the recent
11010 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
11011 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
11012 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
11013 * set by the driver. Setting this flag until and unless there is a
11014 * specific need is not recommended as there is a chance of some beacons
11015 * received after pause command and next start command being not
11016 * reported.
11017 */
11018 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
11019
11020 /* Keep last */
11021 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
11022 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
11023 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
11024};
11025
11026/**
11027 * enum qca_vendor_interop_issues_ap_type - Interop issue types
11028 * This enum defines the valid set of values of interop issue types. These
11029 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
11030 *
11031 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
11032 * when the STA's Qpower feature is enabled.
11033 */
11034enum qca_vendor_interop_issues_ap_type {
11035 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
11036 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
11037};
11038
11039/**
11040 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
11041 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
11042 *
11043 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
11044 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
11045 * 32-bit unsigned value. The values defined in enum
11046 * qca_vendor_interop_issues_ap_type are used.
11047 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
11048 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
11049 * It is present and mandatory for the command but is not used for the event
11050 * since only a single BSSID is reported in an event.
11051 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
11052 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
11053 * attribute in command case and without such encapsulation in the event case.
11054 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
11055 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
11056 */
11057enum qca_vendor_attr_interop_issues_ap {
11058 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
11059 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
11060 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
11061 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
11062 /* keep last */
11063 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
11064 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
11065 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
11066};
11067
Hai Shalomc3565922019-10-28 11:58:20 -070011068/**
11069 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
11070 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
11071 *
11072 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
11073 * a virtual device.
11074 *
11075 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
11076 * a physical device.
11077 */
11078enum qca_vendor_oem_device_type {
11079 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
11080 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
11081};
11082
11083/**
11084 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
11085 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
11086 *
Hai Shalom899fcc72020-10-19 14:38:18 -070011087 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
11088 * used to set/query the data to/from the firmware. On query, the same
11089 * attribute is used to carry the respective data in the reply sent by the
11090 * driver to userspace. The request to set/query the data and the format of the
11091 * respective data from the firmware are embedded in the attribute. The
11092 * maximum size of the attribute payload is 1024 bytes.
11093 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
11094 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070011095 *
11096 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
11097 * based on this field. This optional attribute is included to specify whether
11098 * the device type is a virtual device or a physical device for the
11099 * command/event. This attribute can be omitted for a virtual device (default)
11100 * command/event.
11101 * This u8 attribute is used to carry information for the device type using
11102 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -070011103 *
11104 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
11105 * is set when the userspace queries data from the firmware. This attribute
11106 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070011107 */
11108enum qca_wlan_vendor_attr_oem_data_params {
11109 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
11110 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
11111 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070011112 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -070011113
11114 /* keep last */
11115 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
11116 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
11117 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
11118};
11119
11120/**
11121 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
11122 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
11123 *
11124 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
11125 * Nested attribute containing multiple ranges with following attributes:
Hai Shaloma20dcd72022-02-04 13:43:00 -080011126 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
11127 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
11128 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
Hai Shalomc3565922019-10-28 11:58:20 -070011129 *
11130 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
11131 * Starting center frequency in MHz.
11132 *
11133 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
11134 * Ending center frequency in MHz.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011135 *
11136 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
11137 * s32 attribute, optional. It is a per frequency range attribute.
11138 * The maximum TX power limit from user space is to be applied on an
11139 * unrestricted interface for corresponding frequency range. It is also
11140 * possible that the actual TX power may be even lower than this cap due to
11141 * other considerations such as regulatory compliance, SAR, etc. In absence of
11142 * this attribute the driver shall follow current behavior which means
11143 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
11144 * power derived by the driver based on regulatory/SAR during interface up.
11145 *
11146 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
11147 * u32 attribute, optional. Indicates all the interface types which are
11148 * restricted for all frequency ranges provided in
11149 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
11150 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
11151 * This attribute encapsulates bitmasks of interface types defined in
11152 * enum nl80211_iftype. If an interface is marked as restricted the driver must
11153 * move to a safe channel and if no safe channel is available the driver shall
11154 * terminate that interface functionality. In absence of this attribute,
11155 * interface (SAP/P2P) can still continue operating on an unsafe channel with
11156 * TX power limit derived from either
11157 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
11158 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
11159 * is not provided.
Hai Shalomc3565922019-10-28 11:58:20 -070011160 */
11161enum qca_wlan_vendor_attr_avoid_frequency_ext {
11162 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
11163 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
11164 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
11165 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011166 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
11167 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
Hai Shalomc3565922019-10-28 11:58:20 -070011168
11169 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
11170 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
11171 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
11172};
11173
11174/*
11175 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
11176 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
11177 */
11178enum qca_wlan_vendor_attr_add_sta_node_params {
11179 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
11180 /* 6 byte MAC address of STA */
11181 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
11182 /* Authentication algorithm used by the station of size u16;
11183 * defined in enum nl80211_auth_type.
11184 */
11185 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
11186
11187 /* keep last */
11188 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
11189 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
11190 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
11191};
11192
11193/**
11194 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
11195 * This enum defines the valid set of values of BT coex chain mode.
11196 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
11197 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11198 *
Sunil Ravi89eba102022-09-13 21:04:37 -070011199 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
11200 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
11201 * separated, hybrid mode.
11202 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
11203 * separated, fixed FDD mode.
Hai Shalomc3565922019-10-28 11:58:20 -070011204 */
11205enum qca_btc_chain_mode {
11206 QCA_BTC_CHAIN_SHARED = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -070011207 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
11208 QCA_BTC_CHAIN_SEPARATED_FDD = 2,
Hai Shalomc3565922019-10-28 11:58:20 -070011209};
11210
Sunil Ravi89eba102022-09-13 21:04:37 -070011211/* deprecated legacy name */
11212#define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
11213
Hai Shalomc3565922019-10-28 11:58:20 -070011214/**
11215 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
11216 * chain mode.
11217 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11218 *
11219 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
11220 * Indicates the BT coex chain mode, are 32-bit values from
11221 * enum qca_btc_chain_mode. This attribute is mandatory.
11222 *
11223 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
11224 * If set, vdev should be restarted when BT coex chain mode is updated.
11225 * This attribute is optional.
11226 */
11227enum qca_vendor_attr_btc_chain_mode {
11228 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
11229 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
11230 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
11231
11232 /* Keep last */
11233 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
11234 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
11235 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
11236};
11237
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011238/**
11239 * enum qca_vendor_wlan_sta_flags - Station feature flags
11240 * Bits will be set to 1 if the corresponding features are enabled.
11241 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
11242 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
11243 for the station
11244 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
11245 for the station
11246 */
11247enum qca_vendor_wlan_sta_flags {
11248 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
11249 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
11250 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
11251};
11252
11253/**
11254 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
11255 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
11256 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
11257 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
11258 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
11259 */
11260enum qca_vendor_wlan_sta_guard_interval {
11261 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
11262 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
11263 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
11264 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
11265};
11266
11267/**
11268 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
11269 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
11270 *
11271 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -070011272 * Required attribute in request for AP mode only, 6-byte MAC address,
11273 * corresponding to the station's MAC address for which information is
11274 * requested. For STA mode this is not required as the info always correspond
11275 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011276 *
11277 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
11278 * Optionally used in response, u32 attribute, contains a bitmap of different
11279 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
11280 *
11281 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
11282 * Optionally used in response, u32 attribute, possible values are defined in
11283 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
11284 * Guard interval used by the station.
11285 *
11286 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
11287 * Optionally used in response, u32 attribute, used in AP mode only.
11288 * Value indicates the number of data frames received from station with retry
11289 * bit set to 1 in FC.
11290 *
11291 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
11292 * Optionally used in response, u32 attribute, used in AP mode only.
11293 * Counter for number of data frames with broadcast or multicast address in
11294 * the destination address received from the station.
11295 *
11296 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
11297 * Optionally used in response, u32 attribute, used in both STA and AP modes.
11298 * Value indicates the number of data frames successfully transmitted only
11299 * after retrying the packets and for which the TX status has been updated
11300 * back to host from target.
11301 *
11302 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070011303 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011304 * Value indicates the number of data frames not transmitted successfully even
11305 * after retrying the packets for the number of times equal to the total number
11306 * of retries allowed for that packet and for which the TX status has been
11307 * updated back to host from target.
11308 *
11309 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
11310 * Optionally used in response, u32 attribute, used in AP mode only.
11311 * Counter in the target for the number of data frames successfully transmitted
11312 * to the station.
11313 *
11314 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
11315 * Optionally used in response, u32 attribute, used in AP mode only.
11316 * Value indicates the number of data frames successfully transmitted only
11317 * after retrying the packets.
11318 *
11319 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070011320 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011321 * Value indicates the number of data frames not transmitted successfully even
11322 * after retrying the packets for the number of times equal to the total number
11323 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -070011324 *
11325 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
11326 * the STA mode only. Represent the number of probe requests sent by the STA
11327 * while attempting to roam on missing certain number of beacons from the
11328 * connected AP. If queried in the disconnected state, this represents the
11329 * count for the last connected state.
11330 *
11331 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
11332 * the STA mode. Represent the number of probe responses received by the station
11333 * while attempting to roam on missing certain number of beacons from the
11334 * connected AP. When queried in the disconnected state, this represents the
11335 * count when in last connected state.
11336 *
11337 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
11338 * STA mode only. Represents the total number of frames sent out by STA
11339 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
11340 * only for the connect session. Represents the count of last connected session,
11341 * when queried in the disconnected state.
11342 *
11343 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
11344 * Total number of RTS sent out by the STA. This data is maintained per connect
11345 * session. Represents the count of last connected session, when queried in the
11346 * disconnected state.
11347 *
11348 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11349 * STA mode.Represent the number of RTS transmission failure that reach retry
11350 * limit. This data is maintained per connect session. Represents the count of
11351 * last connected session, when queried in the disconnected state.
11352 *
11353 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11354 * the STA mode. Represent the total number of non aggregated frames transmitted
11355 * by the STA. This data is maintained per connect session. Represents the count
11356 * of last connected session, when queried in the disconnected state.
11357 *
11358 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11359 * STA mode. Represent the total number of aggregated frames transmitted by the
11360 * STA. This data is maintained per connect session. Represents the count of
11361 * last connected session, when queried in the disconnected state.
11362 *
11363 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11364 * the STA mode. Represents the number of received frames with a good PLCP. This
11365 * data is maintained per connect session. Represents the count of last
11366 * connected session, when queried in the disconnected state.
11367 *
11368 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11369 * used in the STA mode. Represents the number of occasions that no valid
11370 * delimiter is detected by A-MPDU parser. This data is maintained per connect
11371 * session. Represents the count of last connected session, when queried in the
11372 * disconnected state.
11373 *
11374 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11375 * STA mode. Represents the number of frames for which CRC check failed in the
11376 * MAC. This data is maintained per connect session. Represents the count of
11377 * last connected session, when queried in the disconnected state.
11378 *
11379 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11380 * STA mode. Represents the number of unicast ACKs received with good FCS. This
11381 * data is maintained per connect session. Represents the count of last
11382 * connected session, when queried in the disconnected state.
11383 *
11384 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11385 * mode. Represents the number of received Block Acks. This data is maintained
11386 * per connect session. Represents the count of last connected session, when
11387 * queried in the disconnected state.
11388 *
11389 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11390 * mode. Represents the number of beacons received from the connected BSS. This
11391 * data is maintained per connect session. Represents the count of last
11392 * connected session, when queried in the disconnected state.
11393 *
11394 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11395 * STA mode. Represents the number of beacons received by the other BSS when in
11396 * connected state (through the probes done by the STA). This data is maintained
11397 * per connect session. Represents the count of last connected session, when
11398 * queried in the disconnected state.
11399 *
11400 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11401 * the STA mode. Represents the number of received DATA frames with good FCS and
11402 * matching Receiver Address when in connected state. This data is maintained
11403 * per connect session. Represents the count of last connected session, when
11404 * queried in the disconnected state.
11405 *
11406 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11407 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11408 * when in the connected state. This data is maintained per connect session.
11409 * Represents the count of last connected session, when queried in the
11410 * disconnected state.
11411 *
11412 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11413 * STA mode. This represents the target power in dBm for the transmissions done
11414 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11415 * connect session. Represents the count of last connected session, when
11416 * queried in the disconnected state.
11417 *
11418 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11419 * STA mode. This represents the Target power in dBm for transmissions done to
11420 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. 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_TARGET_POWER_24G_MCS0: u32, used in the
11425 * STA mode. This represents the Target power in dBm for transmissions done to
11426 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11427 * Represents the count of last connected session, when queried in the
11428 * disconnected state.
11429 *
11430 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11431 * STA mode. This represents the Target power in dBm for transmissions done to
11432 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11433 * session. Represents the count of last connected session, when queried in
11434 * the disconnected state.
11435 *
11436 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11437 * STA mode. This represents the Target power in dBm for for transmissions done
11438 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11439 * Represents the count of last connected session, when queried in the
11440 * disconnected state.
11441 *
11442 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11443 * in the STA mode. This represents the Nested attribute representing the
11444 * overflow counts of each receive buffer allocated to the hardware during the
11445 * STA's connection. The number of hw buffers might vary for each WLAN
11446 * solution and hence this attribute represents the nested array of all such
11447 * HW buffer count. This data is maintained per connect session. Represents
11448 * the count of last connected session, when queried in the disconnected state.
11449 *
11450 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11451 * allowed as per the regulatory requirements for the current or last connected
11452 * session. Used in the STA mode.
11453 *
11454 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11455 * (dBm) used by the station in its latest unicast frame while communicating
11456 * to the AP in the connected state. When queried in the disconnected state,
11457 * this represents the TX power used by the STA with last AP communication
11458 * when in connected state.
11459 *
11460 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11461 * level used to adjust the RX sensitivity. Represents the current ANI level
11462 * when queried in the connected state. When queried in the disconnected
11463 * state, this corresponds to the latest ANI level at the instance of
11464 * disconnection.
11465 *
11466 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
11467 * the raw information elements from Beacon frames. Represents the Beacon frames
11468 * of the current BSS in the connected state. When queried in the disconnected
11469 * state, these IEs correspond to the last connected BSSID.
11470 *
11471 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
11472 * containing the raw information elements from Probe Response frames.
11473 * Represents the Probe Response frames of the current BSS in the connected
11474 * state. When queried in the disconnected state, these IEs correspond to the
11475 * last connected BSSID.
11476 *
11477 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
11478 * disconnect reason for the last disconnection if the disconnection is
11479 * triggered from the host driver. The values are referred from
11480 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070011481 *
11482 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11483 * only. This represents the number of group addressed robust management frames
11484 * received from this station with an invalid MIC or a missing MME when PMF is
11485 * enabled.
11486 *
11487 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11488 * only. This represents the number of group addressed robust management frames
11489 * received from this station with the packet number less than or equal to the
11490 * last received packet number when PMF is enabled.
11491 *
11492 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11493 * mode only. This represents the number of Beacon frames received from this
11494 * station with an invalid MIC or a missing MME when beacon protection is
11495 * enabled.
11496 *
11497 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11498 * only. This represents number of Beacon frames received from this station with
11499 * the packet number less than or equal to the last received packet number when
11500 * beacon protection is enabled.
11501 *
11502 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11503 * STA mode only. The driver uses this attribute to populate the connection
11504 * failure reason codes and the values are defined in
11505 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11506 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11507 * a connection failure indication from the driver. The driver shall not
11508 * include this attribute in response to the
11509 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
11510 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080011511 *
11512 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11513 * used by the station in its last TX frame while communicating to the AP in the
11514 * connected state. When queried in the disconnected state, this represents the
11515 * rate used by the STA in the last TX frame to the AP when it was connected.
11516 * This attribute is used for STA mode only.
11517 *
11518 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11519 * This represents the rate index used by the STA for the last TX frame to the
11520 * AP. When queried in the disconnected state, this gives the last RIX used by
11521 * the STA in the last TX frame to the AP when it was connected.
11522 *
11523 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11524 * mode only. This represents the number of times the STA TSF goes out of sync
11525 * from the AP after the connection. If queried in the disconnected state, this
11526 * gives the count of TSF out of sync for the last connection.
11527 *
11528 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11529 * mode only. This represents the roam trigger reason for the last roaming
11530 * attempted by the firmware. This can be queried either in connected state or
11531 * disconnected state. Each bit of this attribute represents the different
11532 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11533 *
11534 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11535 * only. This represents the roam fail reason for the last failed roaming
11536 * attempt by the firmware. Different roam failure reason codes are specified
11537 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11538 * connected state or disconnected state.
11539 *
11540 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11541 * STA mode only. This represents the roam invoke fail reason for the last
11542 * failed roam invoke. Different roam invoke failure reason codes
11543 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11544 * queried either in connected state or disconnected state.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011545 *
11546 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11547 * This represents the average congestion duration of uplink frames in MAC
11548 * queue in unit of ms. This can be queried either in connected state or
11549 * disconnected state.
Sunil Ravi89eba102022-09-13 21:04:37 -070011550 *
11551 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
11552 * values, used in AP mode. This represents the MPDU packet count per MCS
11553 * rate value of TX packets. Every index of this nested attribute corresponds
11554 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
11555 * queried in connected state.
11556 *
11557 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
11558 * values, used in AP mode. This represents the MPDU packet count per MCS
11559 * rate value of RX packets. Every index of this nested attribute corresponds
11560 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
11561 * queried in connected state.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011562 */
11563enum qca_wlan_vendor_attr_get_sta_info {
11564 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11565 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11566 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11567 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11568 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11569 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11570 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11571 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11572 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11573 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11574 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070011575 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11576 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11577 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11578 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11579 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11580 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11581 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11582 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11583 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11584 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11585 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11586 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11587 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11588 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11589 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11590 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11591 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11592 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11593 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11594 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11595 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11596 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11597 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11598 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11599 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11600 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
11601 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
11602 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070011603 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11604 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11605 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11606 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11607 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080011608 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11609 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11610 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11611 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11612 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11613 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011614 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
Sunil Ravi89eba102022-09-13 21:04:37 -070011615 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
11616 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011617
11618 /* keep last */
11619 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11620 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11621 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11622};
11623
Hai Shalomfdcde762020-04-02 11:19:20 -070011624/**
11625 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
11626 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
11627 *
11628 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
11629 * Used in STA mode. This attribute represents the list of channel center
11630 * frequencies in MHz (u32) the station has learnt during the last connection
11631 * or roaming attempt. This information shall not signify the channels for
11632 * an explicit scan request from the user space. Host drivers can update this
11633 * information to the user space in both connected and disconnected state.
11634 * In the disconnected state this information shall signify the channels
11635 * scanned in the last connection/roam attempt that lead to the disconnection.
11636 */
11637enum qca_wlan_vendor_attr_update_sta_info {
11638 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
11639 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
11640
11641 /* keep last */
11642 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
11643 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
11644 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
11645};
11646
11647/**
11648 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11649 * Used when the driver triggers the STA to disconnect from the AP.
11650 *
11651 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11652 * disconnection with the AP due to unspecified reasons.
11653 *
11654 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11655 * disconnection with the AP due to a roaming failure. This roaming is triggered
11656 * internally (host driver/firmware).
11657 *
11658 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11659 * the AP when the user/external triggered roaming fails.
11660 *
11661 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11662 * by the host driver whenever gateway reachability failure is detected and the
11663 * driver disconnects with AP.
11664 *
11665 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11666 * the AP on a channel switch announcement from it with an unsupported channel.
11667 *
11668 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11669 * with indoor channels disabled and if the STA is connected on one of these
11670 * disabled channels, the host driver disconnected the STA with this reason
11671 * code.
11672 *
11673 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11674 * explicit request from the user to disable the current operating channel.
11675 *
11676 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11677 * the internal host driver/firmware recovery.
11678 *
11679 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11680 * a timeout for the key installations from the user space.
11681 *
11682 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11683 * STA on a band change request from the user space to a different band from the
11684 * current operation channel/band.
11685 *
11686 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11687 * interface down trigger from the user space.
11688 *
11689 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11690 * STA on getting continuous transmission failures for multiple Data frames.
11691 *
11692 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11693 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11694 * represents inactivity from AP on such transmissions.
11695
11696 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11697 * disconnection when SA Query times out (AP does not respond to SA Query).
11698 *
11699 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11700 * STA on missing the beacons continuously from the AP.
11701 *
11702 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11703 * able to move to the channel mentioned by the AP in CSA.
11704 *
11705 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11706 */
11707enum qca_disconnect_reason_codes {
11708 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11709 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11710 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11711 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11712 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11713 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11714 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11715 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11716 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11717 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11718 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11719 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11720 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11721 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11722 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11723 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11724 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11725};
11726
11727/**
11728 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11729 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11730 *
11731 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11732 * This attribute represents the driver specific reason codes (local
11733 * driver/firmware initiated reasons for disconnection) defined
11734 * in enum qca_disconnect_reason_codes.
11735 */
11736enum qca_wlan_vendor_attr_driver_disconnect_reason {
11737 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11738 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11739
11740 /* keep last */
11741 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11742 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11743 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11744};
11745
Hai Shalom899fcc72020-10-19 14:38:18 -070011746/**
11747 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11748 *
11749 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11750 */
11751enum qca_wlan_tspec_operation {
11752 QCA_WLAN_TSPEC_ADD = 0,
11753 QCA_WLAN_TSPEC_DEL = 1,
11754 QCA_WLAN_TSPEC_GET = 2,
11755};
11756
11757/**
11758 * enum qca_wlan_tspec_direction - Direction in TSPEC
11759 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11760 *
11761 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11762 */
11763enum qca_wlan_tspec_direction {
11764 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11765 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11766 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11767 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11768};
11769
11770/**
11771 * enum qca_wlan_tspec_ack_policy - MAC acknowledgement policy in TSPEC
11772 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11773 *
11774 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11775 */
11776enum qca_wlan_tspec_ack_policy {
11777 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11778 QCA_WLAN_TSPEC_NO_ACK = 1,
11779 /* Reserved */
11780 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11781};
11782
11783/**
11784 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11785 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11786 *
11787 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11788 * u8 attribute. Specify the TSPEC operation of this request. Possible values
11789 * are defined in enum qca_wlan_tspec_operation.
11790 * Mandatory attribute for all kinds of config TSPEC requests.
11791 *
11792 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11793 * u8 attribute. TS ID. Possible values are 0-7.
11794 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11795 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11796 *
11797 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11798 * u8 attribute. Direction of data carried by the TS. Possible values are
11799 * defined in enum qca_wlan_tspec_direction.
11800 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11801 *
11802 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11803 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11804 * with the TS. set - enabled, not set - disabled.
11805 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11806 *
11807 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11808 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
11809 * belonging to this TS. Possible values are 0-7.
11810 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11811 *
11812 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11813 * u8 attribute. Indicate whether MAC acknowledgements are required for
11814 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11815 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11816 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11817 *
11818 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11819 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11820 * belonging to this TS.
11821 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11822 *
11823 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11824 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11825 * belonging to this TS.
11826 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11827 *
11828 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11829 * u32 attribute. Specify the minimum interval in microseconds between the
11830 * start of two successive SPs.
11831 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11832 *
11833 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11834 * u32 attribute. Specify the maximum interval in microseconds between the
11835 * start of two successive SPs.
11836 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11837 *
11838 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11839 * u32 attribute. Specify the minimum interval in microseconds that can elapse
11840 * without arrival or transfer of an MPDU belonging to the TS before this TS
11841 * is deleted by the MAC entity at the HC.
11842 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11843 *
11844 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11845 * u32 attribute. Specify the minimum interval in microseconds that can elapse
11846 * without arrival or transfer of an MSDU belonging to the TS before the
11847 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11848 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11849 * interval is always less than or equal to the inactivity interval.
11850 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11851 *
11852 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11853 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11854 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11855 * bounds of this TSPEC.
11856 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11857 *
11858 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11859 * u32 attribute. Indicate the average data rate in bps specified at the MAC
11860 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11861 * bounds of this TSPEC.
11862 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11863 *
11864 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11865 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11866 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11867 * the bounds of this TSPEC.
11868 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11869 *
11870 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11871 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11872 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11873 * value of 0 indicates that there are no bursts.
11874 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11875 *
11876 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11877 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11878 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11879 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11880 *
11881 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11882 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11883 * and above the stated application rates required to transport an MSDU/A-MSDU
11884 * belonging to the TS in this TSPEC.
11885 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11886 */
11887enum qca_wlan_vendor_attr_config_tspec {
11888 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11889 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11890 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11891 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11892 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11893 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11894 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11895 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11896 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11897 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11898 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11899 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11900 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11901 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11902 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11903 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11904 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11905 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11906 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11907
11908 /* keep last */
11909 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11910 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11911 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11912};
11913
11914/**
11915 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
11916 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
11917 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
11918 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
11919 * frame
11920 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
11921 * Request frame.
11922 */
11923enum qca_wlan_vendor_oci_override_frame_type {
11924 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
11925 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
11926 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
11927 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
11928};
11929
11930/**
11931 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
11932 * OCI override request. These attributes are used inside nested attribute
11933 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
11934 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
11935 *
11936 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
11937 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
11938 * attribute to specify the frame type in which the OCI is to be overridden.
11939 *
11940 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
11941 * OCI frequency (in MHz) to override in the specified frame type.
11942 */
11943enum qca_wlan_vendor_attr_oci_override {
11944 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
11945 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
11946 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
11947
11948 /* keep last */
11949 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
11950 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
11951 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
11952};
11953
11954/**
11955 * enum qca_wlan_medium_assess_type - Type of medium assess request
11956 *
11957 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11958 */
11959enum qca_wlan_medium_assess_type {
11960 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11961 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11962};
11963
11964/**
11965 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11966 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11967 *
11968 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11969 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11970 * Specify the type of medium assess request and indicate its type in response.
11971 * Possible values are defined in enum qca_wlan_medium_assess_type.
11972 *
11973 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11974 * u32 attribute. Mandatory in CCA request.
11975 * Specify the assessment period in terms of seconds. Assessment result will be
11976 * sent as the response to the CCA request after the assessment period.
11977 *
11978 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11979 * u32 attribute. Mandatory in response to CCA request.
11980 * Total timer tick count of the assessment cycle.
11981 *
11982 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11983 * u32 attribute. Mandatory in response to CCA request.
11984 * Timer tick count of idle time in the assessment cycle.
11985 *
11986 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11987 * u32 attribute. Mandatory in response to CCA request.
11988 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11989 *
11990 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11991 * u32 attribute. Mandatory in response to CCA request.
11992 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11993 *
11994 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11995 * s32 attribute. Mandatory in response to CCA request.
11996 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11997 *
11998 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11999 * s32 attribute. Mandatory in response to CCA request.
12000 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
12001 *
12002 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
12003 * u8 attribute. Mandatory in congestion report request.
12004 * 1-enable 0-disable.
12005 *
12006 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
12007 * u8 attribute. Mandatory in congestion report enable request and will be
12008 * ignored if present in congestion report disable request. Possible values are
12009 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
12010 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
12011 * congestion percentage reaches the configured threshold.
12012 *
12013 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
12014 * u8 attribute. Optional in congestion report enable request and will be
12015 * ignored if present in congestion report disable request.
12016 * Specify the interval of congestion report event in terms of seconds. Possible
12017 * values are 1-255. Default value 1 will be used if this attribute is omitted
12018 * or using invalid values.
12019 *
12020 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
12021 * u8 attribute. Mandatory in congestion report event.
12022 * Indicate the actual congestion percentage. Possible values are 0-100.
12023 */
12024enum qca_wlan_vendor_attr_medium_assess {
12025 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
12026 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
12027
12028 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
12029 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
12030 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
12031 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
12032 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
12033 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
12034 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
12035
12036 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
12037 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
12038 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
12039 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
12040
12041 /* keep last */
12042 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
12043 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
12044 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
12045};
12046
12047/**
12048 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
12049 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
12050 *
12051 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
12052 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
12053 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
12054 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012055 *
12056 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
12057 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
12058 *
12059 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
12060 * u8 attribute, required. Indicates group id of Tx VDEV.
12061 *
12062 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
12063 * Nested attribute. This attribute shall be used by the driver to send
12064 * group information. The attributes defined in enum
12065 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
12066 * are nested in this attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -070012067 */
12068enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
12069 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
12070 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012071 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
12072 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
12073 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
Hai Shalom899fcc72020-10-19 14:38:18 -070012074
12075 /* keep last */
12076 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
12077 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
12078 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
12079};
12080
12081/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080012082 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
12083 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
12084 *
12085 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
12086 * u32 attribute, required. Contains interface index.
12087 *
12088 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
12089 * u8 attribute, required. 0 - means vdev is in down state.
12090 * 1 - means vdev is in up state.
12091 */
12092enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
12093 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
12094 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
12095 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
12096
12097 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
12098 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
12099 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
12100};
12101
12102/**
12103 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
12104 *
12105 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
12106 * STA interface has to be given while selecting the connection policies
12107 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
12108 * An interface is set as primary through the attribute
12109 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
12110 * applicable if the primary interface has not been set earlier.
12111 *
12112 * The intention is not to downgrade the primary STA performance, such as:
12113 * - Do not reduce the number of TX/RX chains of primary connection.
12114 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
12115 * chains.
12116 * - If using MCC, should set the MCC duty cycle of the primary connection to
12117 * be higher than the secondary connection.
12118 *
12119 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
12120 * subsequent STA connection shall be chosen to balance with the existing
12121 * concurrent STA's performance.
12122 * Such as
12123 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
12124 * capability.
12125 * - If using MCC, set the MCC duty cycle of the primary connection to be equal
12126 * to the secondary.
12127 * - Prefer BSSID candidates which will help provide the best "overall"
12128 * performance for all the STA connections.
12129 */
12130enum qca_wlan_concurrent_sta_policy_config {
12131 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
12132 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
12133};
12134
12135/**
Sunil8cd6f4d2022-06-28 18:40:46 +000012136 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
Hai Shaloma20dcd72022-02-04 13:43:00 -080012137 *
Sunil8cd6f4d2022-06-28 18:40:46 +000012138 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
12139 * interface.
12140 *
12141 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
12142 * to meet gaming audio latency requirements.
12143 *
12144 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
12145 * concurrencies to meet lossless audio streaming requirements.
Sunil Ravi77d572f2023-01-17 23:58:31 +000012146 *
12147 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
12148 * XR (eXtended Reality) requirements.
Sunil8cd6f4d2022-06-28 18:40:46 +000012149 */
12150enum qca_wlan_concurrent_ap_policy_config {
12151 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
12152 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
12153 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000012154 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
Sunil8cd6f4d2022-06-28 18:40:46 +000012155};
12156
12157/**
12158 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
12159 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
12160 *
12161 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
Hai Shaloma20dcd72022-02-04 13:43:00 -080012162 * u8 attribute. Configures the concurrent STA policy configuration.
12163 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
Sunil8cd6f4d2022-06-28 18:40:46 +000012164
12165 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
12166 * u8 attribute. Configures the concurrent AP policy configuration.
12167 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012168 */
Sunil8cd6f4d2022-06-28 18:40:46 +000012169enum qca_wlan_vendor_attr_concurrent_policy {
12170 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
12171 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
12172 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012173
12174 /* keep last */
Sunil8cd6f4d2022-06-28 18:40:46 +000012175 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
12176 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
12177 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012178
12179};
12180
Sunil8cd6f4d2022-06-28 18:40:46 +000012181/* Compatibility defines for previously used enum
12182 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
12183 * in any new implementation.
12184 */
12185#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
12186 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
12187#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
12188 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
12189#define qca_wlan_vendor_attr_concurrent_sta_policy \
12190 qca_wlan_vendor_attr_concurrent_policy
12191
Hai Shaloma20dcd72022-02-04 13:43:00 -080012192/**
Hai Shalom899fcc72020-10-19 14:38:18 -070012193 * enum qca_sta_connect_fail_reason_codes - Defines values carried
12194 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
12195 * attribute.
12196 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
12197 * for unicast Probe Request frame.
12198 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
12199 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
12200 * auth request.
12201 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
12202 * received from AP.
12203 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
12204 * Association Request frame.
12205 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
12206 * Association Request frame.
12207 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
12208 * frame is not received from AP.
12209 */
12210enum qca_sta_connect_fail_reason_codes {
12211 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
12212 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
12213 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
12214 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
12215 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
12216 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
12217 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
12218};
12219
Hai Shaloma20dcd72022-02-04 13:43:00 -080012220/**
12221 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
12222 * filters defined in this enum are used in attribute
12223 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
12224 *
12225 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
12226 * shall filter the channels which are not usable because of coexistence with
12227 * cellular radio.
12228 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
12229 * shall filter the channels which are not usable because of existing active
12230 * interfaces in the driver and will result in Multi Channel Concurrency, etc.
12231 *
12232 */
12233enum qca_wlan_vendor_usable_channels_filter {
12234 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
12235 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
12236};
12237
12238/**
12239 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
12240 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
12241 *
12242 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
12243 * u32 attribute, required. Indicates the center frequency of the primary
12244 * channel in MHz.
12245 *
12246 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
12247 * u32 attribute. Indicates the center frequency of the primary segment of the
12248 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
12249 * 160 MHz, and 320 MHz channels.
12250 *
12251 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
12252 * u32 attribute. Indicates the center frequency of the secondary segment of
12253 * 80+80 channel in MHz. This attribute is required only when
12254 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
12255 *
12256 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
12257 * u32 attribute, required. Indicates the bandwidth of the channel, possible
12258 * values are defined in enum nl80211_chan_width.
12259 *
12260 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
12261 * u32 attribute, required. Indicates all the interface types for which this
12262 * channel is usable. This attribute encapsulates bitmasks of interface types
12263 * defined in enum nl80211_iftype.
12264 *
12265 */
12266enum qca_wlan_vendor_attr_chan_info {
12267 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
12268 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
12269 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
12270 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
12271 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
12272 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
12273
12274 /* keep last */
12275 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
12276 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
12277 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
12278};
12279
12280/**
12281 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
12282 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
12283 *
12284 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
12285 * u32 attribute. Indicates the bands from which the channels should be reported
12286 * in response. This attribute encapsulates bit masks of bands defined in enum
12287 * nl80211_band. Optional attribute, if not present in the request the driver
12288 * shall return channels from all supported bands.
12289 *
12290 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
12291 * u32 attribute. Indicates all the interface types for which the usable
12292 * channels information is requested. This attribute encapsulates bitmasks of
12293 * interface types defined in enum nl80211_iftype. Optional attribute, if not
12294 * present in the request the driver shall send information of all supported
12295 * interface modes.
12296 *
12297 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
12298 * u32 attribute. This attribute carries information of all filters that shall
12299 * be applied while populating usable channels information by the driver. This
12300 * attribute carries bit masks of different filters defined in enum
12301 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
12302 * in the request the driver shall send information of channels without applying
12303 * any of the filters that can be configured through this attribute.
12304 *
12305 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
12306 * Nested attribute. This attribute shall be used by the driver to send
12307 * usability information of each channel. The attributes defined in enum
12308 * qca_wlan_vendor_attr_chan_info are used inside this attribute.
12309 */
12310enum qca_wlan_vendor_attr_usable_channels {
12311 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
12312 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
12313 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
12314 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
12315 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
12316
12317 /* keep last */
12318 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
12319 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
12320 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
12321};
12322
12323/**
12324 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
12325 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
12326 *
12327 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
12328 * the list of radar history entries.
12329 * Each entry contains freq, timestamp, and radar signal detect flag.
12330 * The driver shall add an entry when CAC has finished, or radar signal
12331 * has been detected post AP beaconing. The driver shall maintain at least
12332 * 8 entries in order to save CAC result for a 160 MHz channel.
12333 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
12334 * Channel frequency in MHz.
12335 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
12336 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
12337 * or radar detection.
12338 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
12339 * This flag indicates radar signal has been detected.
12340 */
12341enum qca_wlan_vendor_attr_radar_history {
12342 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
12343
12344 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
12345 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
12346 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
12347 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
12348
12349 /* keep last */
12350 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
12351 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
12352 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
12353};
12354
12355/**
12356 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
12357 *
12358 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
12359 * target exited MCC state and cleared the quota information. In the
12360 * command it clears MCC quota setting and restores adaptive scheduling.
12361 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
12362 * will not be changed.
12363 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
12364 * and the target may change the quota based on the data activity.
12365 */
12366enum qca_wlan_vendor_mcc_quota_type {
12367 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12368 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12369 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
12370};
12371
12372/**
12373 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12374 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12375 * quota information or as a command to set the required MCC quota for an
12376 * interface.
12377 *
12378 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12379 * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12380 * In a command this specifies the MCC quota type to be set for the interface.
12381 * In an event this provides the current quota type in force.
12382 * This is required in a command and an event.
12383 *
12384 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12385 * the list of channel quota entries.
12386 * In an event each entry contains the frequency and respective time quota for
12387 * all the MCC interfaces.
12388 * In a command it specifies the interface index and respective time quota.
12389 * In a command only one entry (ifindex, quota pair) may be specified.
12390 *
12391 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12392 * Channel frequency in MHz. This is present only in an event.
12393 *
12394 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12395 * Channel time quota expressed as percentage.
12396 * This is present in an event and a command.
12397 * In an command, the user shall specify the quota to be allocated for the
12398 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12399 * In an event this provides the existing quota for the channel.
12400 *
12401 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12402 * Specifies the interface index (netdev) for which the corresponding
12403 * configurations are applied. This is required in a command only. Only one
12404 * interface index may be specified. If not specified, the configuration is
12405 * rejected.
12406 */
12407enum qca_wlan_vendor_attr_mcc_quota {
12408 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12409 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12410 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12411 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12412 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12413 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
12414
12415 /* keep last */
12416 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12417 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12418 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12419};
12420
12421/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000012422 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
12423 * are used by the attribute
12424 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
12425 *
12426 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
12427 * invoke roam.
12428 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
12429 * detection failed when the roam trigger.
12430 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
12431 */
12432
12433enum qca_wlan_roam_stats_invoke_reason {
12434 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
12435 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
12436 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
12437};
12438
12439/**
12440 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
12441 * values are used by the attribute
12442 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
12443 *
12444 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
12445 * roam by kickout.
12446 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
12447 * trigger by kickout.
12448 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
12449 * roam trigger by kickout.
12450 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
12451 * roam trigger by kickout.
12452 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
12453 * disappeared, and all TX is failing when roam trigger by kickout.
12454 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
12455 * timeout when roam trigger by kickout.
12456 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
12457 * peer has roamed to a repeater.
12458 */
12459enum qca_wlan_roam_stats_tx_failures_reason {
12460 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
12461 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
12462 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
12463 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
12464 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
12465 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
12466 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
12467};
12468
12469/**
12470 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
12471 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
12472 *
12473 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
12474 * detailed reason for roam scan being aborted.
12475 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
12476 * started due to high data RSSI during LOW-RSSI roaming.
12477 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
12478 * started due to good link speed during LOW-RSSI roaming.
12479 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
12480 * due to high data RSSI during background roaming.
12481 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
12482 * started due to high beacon RSSI during background roaming
12483 */
12484enum qca_wlan_roam_stats_abort_reason {
12485 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
12486 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
12487 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
12488 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
12489 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
12490};
12491
12492/**
12493 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
12494 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
12495 */
12496enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
12497 /* 32-bit unsigned value to indicate center frequency of the primary
12498 * channel in MHz for each roam scan channel.
12499 */
12500 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
12501 /* 8-bit unsigned value to indicate channel scan type for each
12502 * roam scan channel. 0-passive, 1-active.
12503 */
12504 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
12505 /* 32-bit unsigned value to indicate maximum scan time in milliseconds
12506 * for each roam scan channel.
12507 */
12508 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
12509
12510 /* keep last */
12511 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
12512 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
12513 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
12514};
12515
12516/**
12517 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
12518 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
12519 *
12520 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
12521 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
12522 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
12523 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
12524 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
12525 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
12526 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
12527 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
12528 */
12529enum qca_wlan_roam_stats_frame_subtype {
12530 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
12531 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
12532 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
12533 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
12534 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
12535 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
12536 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
12537 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
12538};
12539
12540/**
12541 * enum roam_frame_status - Specifies the valid values the vendor roam frame
12542 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
12543 *
12544 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
12545 * sent or received successfully.
12546 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
12547 * receiving failed.
12548 */
12549enum qca_wlan_roam_stats_frame_status {
12550 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
12551 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
12552};
12553
12554/**
12555 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
12556 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
12557 */
12558enum qca_wlan_vendor_attr_roam_stats_frame_info {
12559 /* 8-bit unsigned value to indicate the frame subtype during
12560 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
12561 */
12562 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
12563 /* 8-bit unsigned value to indicate the frame is successful or failed
12564 * during roaming, one of the values in
12565 * qca_wlan_roam_stats_frame_status.
12566 */
12567 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
12568 /* 64-bit unsigned value to indicate the timestamp for frame of
12569 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
12570 * when sent or received during roaming, timestamp in milliseconds
12571 * from system boot.
12572 */
12573 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
12574
12575 /* keep last */
12576 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
12577 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
12578 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
12579};
12580
12581/**
12582 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
12583 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
12584 */
12585enum qca_wlan_vendor_attr_roam_stats_info {
12586 /* 64-bit unsigned value to indicate the timestamp when roam was
12587 * triggered by the firmware, timestamp in milliseconds from system
12588 * boot.
12589 */
12590 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
12591 /* 32-bit unsigned value to indicate the roam trigger reason for the
12592 * last roaming attempted by the firmware. This can be queried either
12593 * in a connected state or disconnected state. The values of this
12594 * attribute represent the roam trigger reason codes, which
12595 * are defined in enum qca_roam_reason.
12596 */
12597 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
12598 /* 8-bit unsigned value to indicate percentage of packets for which
12599 * the RX rate is lower than the RX rate threshold in total RX packets,
12600 * used for roaming trigger by per.
12601 */
12602 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
12603 /* 8-bit unsigned value to indicate percentage of packets for which
12604 * the TX rate is lower than TX rate threshold in total TX packets,
12605 * used for roaming trigger by per.
12606 */
12607 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
12608 /* 32-bit unsigned value to indicate final beacon miss count for
12609 * trigger reason of beacon miss.
12610 */
12611 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
12612 /* 32-bit unsigned value to indicate consecutive beacon miss count
12613 * for trigger reason of beacon miss.
12614 */
12615 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
12616 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
12617 * reason of beacon miss, 0 - success, 1 - fail.
12618 * If QOS-NULL TX status is successful, beacon miss final count and
12619 * consecutive beacon miss count will be reset to zero, and roam will
12620 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
12621 * count and consecutive beacon miss count continue to calculate until
12622 * roaming trigger by beacon miss.
12623 */
12624 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
12625 /* 8-bit unsigned value to indicate connected AP RSSI in dBm
12626 * for trigger reason of poor RSSI.
12627 */
12628 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
12629 /* 8-bit unsigned value to indicate RSSI threshold value in dBm
12630 * for trigger reason of poor RSSI.
12631 */
12632 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
12633 /* 8-bit unsigned value to indicate RX link speed status
12634 * for trigger reason of poor RSSI, 0 - good link speed,
12635 * 1 - bad link speed.
12636 */
12637 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
12638 /* 8-bit unsigned value to indicate connected AP RSSI in dBm
12639 * for trigger reason of better RSSI.
12640 */
12641 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
12642 /* 8-bit unsigned value to indicate RSSI threshold value in dBm
12643 * for trigger reason of better RSSI.
12644 */
12645 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
12646 /* 32-bit unsigned value to indicate RX throughput in bytes per second
12647 * for trigger reason of congestion.
12648 */
12649 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
12650 /* 32-bit unsigned value to indicate TX throughput in bytes per second
12651 * for trigger reason of congestion.
12652 */
12653 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
12654 /* 8-bit unsigned value to indicate roamable AP count
12655 * for trigger reason of congestion.
12656 */
12657 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
12658 /* 8-bit unsigned value to indicate invoke reason, one of the values
12659 * defined in qca_wlan_roam_stats_invoke_reason.
12660 */
12661 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
12662 /* 8-bit unsigned value to indicate request mode for trigger reason
12663 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
12664 */
12665 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
12666 /* 32-bit unsigned value to indicate disassociate time in milliseconds
12667 * for trigger reason of BTM.
12668 */
12669 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
12670 /* 32-bit unsigned value to indicate preferred candidate list valid
12671 * interval in milliseconds for trigger reason of BTM.
12672 */
12673 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
12674 /* 8-bit unsigned value to indicate the number of preferred
12675 * candidates for trigger reason of BTM.
12676 */
12677 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
12678 /* 8-bit unsigned value to indicate response status for trigger
12679 * reason of BTM, values are defined in IEEE Std 802.11-2020,
12680 * Table 9-428 (BTM status code definitions).
12681 */
12682 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
12683 /* 32-bit unsigned value to indicate BSS termination timeout value
12684 * in milliseconds for trigger reason of BTM.
12685 */
12686 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
12687 /* 32-bit unsigned value to indicate MBO associate retry timeout
12688 * value in milliseconds for trigger reason of BTM.
12689 */
12690 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
12691 /* 8-bit unsigned value to indicate dialog token number
12692 * for trigger reason of BTM.
12693 */
12694 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
12695 /* 8-bit unsigned value to indicate percentage of connected AP
12696 * channel congestion utilization for trigger reason of BSS load.
12697 */
12698 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
12699 /* 8-bit unsigned value to indicate disconnection type
12700 * for trigger reason of disconnection. 1 - Deauthentication,
12701 * 2 - Disassociation.
12702 */
12703 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
12704 /* 16-bit unsigned value to indicate deauthentication or disassociation
12705 * reason for trigger reason of disconnection, values are defined
12706 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
12707 */
12708 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
12709 /* 32-bit unsigned value to indicate milliseconds of roam scan
12710 * periodicity when needing to roam to find a better AP for trigger
12711 * reason of periodic timer.
12712 */
12713 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
12714 /* 8-bit unsigned value to indicate connected AP RSSI in dBm for
12715 * trigger reason of background scan.
12716 */
12717 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
12718 /* 8-bit unsigned value to indicate data RSSI in dBm for trigger reason
12719 * of background scan.
12720 */
12721 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
12722 /* 8-bit unsigned value to indicate data RSSI threshold in dBm
12723 * for trigger reason of background scan.
12724 */
12725 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
12726 /* 32-bit unsigned value to indicate consecutive TX failure threshold
12727 * for trigger reason of TX failures.
12728 */
12729 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
12730 /* 8-bit unsigned value to indicate TX failure reason for trigger
12731 * reason of TX failures, one of the values defined in
12732 * qca_wlan_roam_stats_tx_failures_reason.
12733 */
12734 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
12735 /* 8-bit unsigned value to indicate detail abort reason. One of the
12736 * values in enum qca_wlan_roam_stats_abort_reason.
12737 */
12738 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
12739 /* 8-bit unsigned value to indicate data RSSI in dBm when aborting the
12740 * roam scan.
12741 */
12742 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
12743 /* 8-bit unsigned value to indicate data RSSI threshold in dBm when
12744 * aborting the roam scan.
12745 */
12746 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
12747 /* 8-bit unsigned value to indicate data RSSI threshold in RX link
12748 * speed status when aborting the roam scan.
12749 * 0 - good link speed, 1 - bad link speed
12750 */
12751 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
12752 /* 8-bit unsigned value to indicate roaming scan type.
12753 * 0 - Partial roam scan, 1 - Full roam scan
12754 */
12755 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
12756 /* 8-bit unsigned value to indicate roaming result, used in STA mode
12757 * only.
12758 * 0-Roaming is successful, 1-Roaming is failed
12759 */
12760 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
12761 /* 8-bit unsigned value to indicate the roam fail reason for the
12762 * last failed roaming attempt by the firmware. Different roam failure
12763 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
12764 * This can be queried either in connected state or disconnected state.
12765 */
12766 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
12767 /* Nested attribute. Indicate roam scan info for each channel, the
12768 * attributes defined in enum
12769 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
12770 * this attribute.
12771 */
12772 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
12773 /* 32-bit unsigned value to indicate total scan time during roam scan
12774 * all channels, time in milliseconds.
12775 */
12776 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
12777 /* Nested attribute. This attribute shall be used by the driver to
12778 * send roam information of each subtype. The attributes defined in
12779 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
12780 * this attribute.
12781 */
12782 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
12783
12784 /* keep last */
12785 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
12786 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
12787 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
12788};
12789
12790/**
12791 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
12792 * report cached roam info from the driver to user space, enum values are used
12793 * for netlink attributes sent with the
12794 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
12795 */
12796enum qca_wlan_vendor_attr_roam_cached_stats {
12797 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
12798 /* Nested attribute, this attribute contains nested array roam info
12799 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
12800 */
12801 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
12802
12803 /* keep last */
12804 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
12805 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
12806 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
12807};
12808
12809/**
Sunil8cd6f4d2022-06-28 18:40:46 +000012810 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
12811 * radio configurations present in each radio combination.
12812 *
12813 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
12814 * the band info in the radio configuration. Uses the enum qca_set_band values.
12815 *
12816 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
12817 * the number of antennas info in the radio configuration.
12818 */
12819enum qca_wlan_vendor_attr_supported_radio_cfg {
12820 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
12821 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
12822 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
12823
12824 /* keep last */
12825 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
12826 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
12827 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
12828};
12829
12830/**
12831 * enum qca_wlan_vendor_attr_radio_combination - Attributes for
12832 * radio combinations supported by the device.
12833 *
12834 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
12835 * provides the radio configurations present in the radio combination.
12836 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
12837 * This attribute provides the values for radio combination matrix.
12838 * For standalone config, the number of config values is one and the config
12839 * carries the band and antenna information for standalone configuration. For
12840 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
12841 * configuration the number of config values is two and the config carries the
12842 * band and antenna information for each simultaneous radio.
12843 */
12844enum qca_wlan_vendor_attr_radio_combination {
12845 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
12846 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
12847
12848 /* keep last */
12849 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
12850 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
12851 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
12852};
12853
12854/**
12855 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
12856 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
12857 *
12858 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
12859 * provides the radio combinations supported by the device.
12860 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
12861 * For example, in the radio combination matrix for a device which has two
12862 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
12863 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
12864 * combinations is 5 and the radio combinations are
12865 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
12866 * {{5 GHz 2X2}}, //Standalone 5 GHz
12867 * {{6 GHz 2X2}}, //Standalone 6 GHz
12868 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
12869 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
12870 * The band and antenna info together as nested data provides one radio config.
12871 * Standalone configuration has one config with band and antenna nested data.
12872 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
12873 * have two nested band and antenna info data.
12874 */
12875enum qca_wlan_vendor_attr_radio_combination_matrix {
12876 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
12877 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
12878
12879 /* keep last */
12880 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
12881 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
12882 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
12883};
12884
12885/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080012886 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
12887 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
12888 *
12889 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
12890 * Enable mDNS offload. This attribute is mandatory to enable
12891 * mDNS offload feature. If this attribute is not present, mDNS offload
12892 * is disabled.
12893 *
12894 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
12895 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
12896 * attribute is mandatory when enabling the feature, and not required when
12897 * disabling the feature.
12898 *
12899 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
12900 * the following attributes:
12901 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
12902 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
12903 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
12904 *
12905 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
12906 * It consists of a hostname and ".local" as the domain name. The character
12907 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
12908 * It is used to compare the domain in the "QU" query. Only 1 FQDN is
12909 * supported per vdev.
12910 * For example: myphone.local
12911 *
12912 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
12913 * u16 attribute. It specifies the total number of resource records present
12914 * in the answer section of the answer payload. This attribute is needed by the
12915 * firmware to populate the mDNS response frame for mDNS queries without having
12916 * to parse the answer payload.
12917 *
12918 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
12919 * attribute sent by the mdnsResponder from userspace. It contains resource
12920 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
12921 * payload is passed down to the firmware and is transmitted in response to
12922 * mDNS queries.
12923 * The maximum supported size of the answer payload is 512 bytes.
12924 */
12925enum qca_wlan_vendor_attr_mdns_offload {
12926 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
12927 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
12928 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
12929 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
12930 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
12931 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
12932 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
12933
12934 /* keep last */
12935 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
12936 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
12937 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
12938};
12939
12940/**
12941 * qca_wlan_vendor_monitor_data_frame_type - Represent the various
12942 * Data frame types to be sent over the monitor interface.
12943 */
12944enum qca_wlan_vendor_monitor_data_frame_type {
12945 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
12946 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
12947 */
12948 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
12949 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
12950 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
12951 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
12952 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
12953 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
12954 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
12955 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
12956 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
12957 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
12958 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
12959 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
12960 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
12961 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
12962 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
12963 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
12964 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
12965};
12966
12967/**
12968 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
12969 * Management frame types to be sent over the monitor interface.
12970 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
12971 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
12972 * except the Beacon frame.
12973 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
12974 * BSSID Beacon frames. Valid only in the connected state.
12975 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
12976 * the Beacon frames obtained during the scan (off channel and connected
12977 * channel), when in connected state.
12978 */
12979enum qca_wlan_vendor_monitor_mgmt_frame_type {
12980 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
12981 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
12982 */
12983 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
12984 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
12985 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
12986};
12987
12988/**
12989 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
12990 * Control frame types to be sent over the monitor interface.
12991 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
12992 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
12993 */
12994enum qca_wlan_vendor_monitor_ctrl_frame_type {
12995 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
12996 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
12997 */
12998 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
12999};
13000
13001/**
13002 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
13003 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
13004 * monitor mode.
13005 *
13006 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
13007 * Represents the TX Data frame types to be monitored (u32). These Data frames
13008 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13009 *
13010 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
13011 * Represents the RX Data frame types to be monitored (u32). These Data frames
13012 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13013 *
13014 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
13015 * Represents the TX Management frame types to be monitored (u32). These
13016 * Management frames are represented by
13017 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
13018 *
13019 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
13020 * Represents the RX Management frame types to be monitored (u32). These
13021 * Management frames are represented by
13022 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
13023 *
13024 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
13025 * Represents the TX Control frame types to be monitored (u32). These Control
13026 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13027 *
13028 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
13029 * Represents the RX Control frame types to be monitored (u32). These Control
13030 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13031 *
13032 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
13033 * attribute.
13034 * Represents the interval in milliseconds only for the connected Beacon frames,
13035 * expecting the connected BSS's Beacon frames to be sent on the monitor
13036 * interface at this specific interval.
13037 */
13038enum qca_wlan_vendor_attr_set_monitor_mode {
13039 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
13040 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
13041 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
13042 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
13043 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
13044 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
13045 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
13046 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
13047
13048 /* keep last */
13049 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
13050 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
13051 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
13052};
13053
13054/**
13055 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
13056 * Bits will be set to 1 if the corresponding state is enabled.
13057 *
13058 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
13059 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
13060 */
13061enum qca_wlan_vendor_roam_scan_state {
13062 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
13063 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
13064};
13065
13066/**
13067 * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
13068 * Bits will be set to 1 if the corresponding event is notified.
13069 *
13070 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
13071 * carries the trigger reason. When set, it is expected that the roam event
13072 * carries the respective reason via the attribute
13073 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
13074 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
13075 *
13076 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
13077 * carries the roam fail reason. When set, it is expected that the roam event
13078 * carries the respective reason via the attribute
13079 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
13080 * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
13081 *
13082 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
13083 * event carries the roam invoke fail reason. When set, it is expected that
13084 * the roam event carries the respective reason via the attribute
13085 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
13086 *
13087 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
13088 * carries the roam scan state. When set, it is expected that the roam event
13089 * carries the respective scan state via the attribute
13090 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
13091 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
13092 */
13093enum qca_wlan_vendor_roam_event_type {
13094 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
13095 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
13096 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
13097 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
13098};
13099
13100/**
13101 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
13102 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
13103 *
13104 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
13105 * representing the BSSID of the AP to which the roam is attempted.
13106 *
13107 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
13108 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
13109 * attempted.
13110 *
13111 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
13112 * on which the roam is attempted.
13113 *
13114 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
13115 * STA mode only. This represents the roam fail reason for the last failed
13116 * roaming attempt by the firmware for the specific BSSID. Different roam
13117 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
13118 */
13119enum qca_wlan_vendor_attr_roam_events_candidate_info {
13120 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
13121 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
13122 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
13123 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
13124 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
13125
13126 /* keep last */
13127 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
13128 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
13129 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
13130};
13131
13132/**
13133 * enum qca_wlan_vendor_attr_roam_events - Used by the
13134 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
13135 * roam events to the driver or notify these events from the driver.
13136 *
13137 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
13138 * driver/firmware to enable/disable the notification of roam events. It's a
13139 * mandatory attribute and used only in the request from the userspace to the
13140 * host driver. 1-Enable, 0-Disable.
13141 * If the roaming is totally offloaded to the firmware, this request when
13142 * enabled shall mandate the firmware to notify all the relevant roam events
13143 * represented by the below attributes. If the host is in the suspend mode,
13144 * the behavior of the firmware to notify these events is guided by
13145 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
13146 * these events in the suspend state, the firmware is expected to wake up the
13147 * host before the respective events are notified. Please note that such a
13148 * request to get the events in the suspend state will have a definite power
13149 * implication.
13150 *
13151 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
13152 * that the roam events need to be notified in the suspend state too. By
13153 * default, these roam events are notified in the resume state. With this flag,
13154 * the roam events are notified in both resume and suspend states.
13155 * This attribute is used in the request from the userspace to the host driver.
13156 *
13157 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
13158 * Represents the different roam event types, signified by the enum
13159 * qca_wlan_vendor_roam_event_type.
13160 * Each bit of this attribute represents the different roam even types reported
13161 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13162 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13163 *
13164 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
13165 * mode only. This represents the roam trigger reason for the last roaming
13166 * attempted by the firmware. Each bit of this attribute represents the
13167 * different roam trigger reason code which are defined in enum
13168 * qca_vendor_roam_triggers.
13169 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13170 *
13171 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
13172 * STA mode only. This represents the roam invoke fail reason for the last
13173 * failed roam invoke. Different roam invoke failure reason codes
13174 * are specified in enum qca_vendor_roam_invoke_fail_reasons.
13175 *
13176 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
13177 * for which the roam is attempted. Each entry is a nested attribute defined
13178 * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
13179 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13180 *
13181 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
13182 * the scan state on which the roam events need to be notified. The values for
13183 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
13184 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13185 *
13186 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
13187 * u32 values. List of frequencies in MHz considered for a roam scan.
13188 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13189 */
13190enum qca_wlan_vendor_attr_roam_events {
13191 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
13192 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
13193 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
13194 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
13195 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
13196 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
13197 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
13198 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
13199 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
13200
13201 /* keep last */
13202 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
13203 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
13204 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST -1,
13205};
13206
13207/**
13208 * enum qca_wlan_ratemask_params_type - Rate mask config type
13209 *
13210 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
13211 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
13212 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
13213 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
13214 */
13215enum qca_wlan_ratemask_params_type {
13216 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
13217 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
13218 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
13219 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
13220};
13221
13222/**
13223 * enum qca_wlan_vendor_attr_ratemask_params - Used by the
13224 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
13225 * This is used to set the rate mask value to be used in rate selection.
13226 *
13227 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
13228 * Array of nested containing attributes
13229 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
13230 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
13231 *
13232 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
13233 * the different PHY types to which the rate mask config is to be applied.
13234 * The values for this attribute are referred from enum
13235 * qca_wlan_vendor_ratemask_params_type.
13236 *
13237 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
13238 * A bit value of 1 represents rate is enabled and a value of 0
13239 * represents rate is disabled.
13240 * For HE targets, 12 bits correspond to one NSS setting.
13241 * b0-13 => NSS1, MCS 0-13
13242 * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
13243 * For VHT targets, 10 bits correspond to one NSS setting.
13244 * b0-9 => NSS1, MCS 0-9
13245 * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
13246 * For HT targets, 8 bits correspond to one NSS setting.
13247 * b0-7 => NSS1, MCS 0-7
13248 * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
13249 * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
13250 */
13251enum qca_wlan_vendor_attr_ratemask_params {
13252 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
13253 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
13254 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
13255 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
13256
13257 /* keep last */
13258 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
13259 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
13260 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
13261};
13262
Sunil8cd6f4d2022-06-28 18:40:46 +000013263/**
13264 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
13265 * traffic.
13266 *
13267 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
13268 * Send audio traffic through the host processor.
13269 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
13270 * Send audio traffic using the low power DSP to/from the encoder.
13271 */
13272enum qca_wlan_audio_data_path {
13273 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
13274 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
13275};
13276
13277/**
13278 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
13279 * for) or drop existing PASN security association for the listed the
13280 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
13281 * to userspace.
13282 *
13283 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
13284 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
13285 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
13286 * the driver to userspace to inform that the existing PASN keys of the
13287 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
13288 * not valid anymore.
13289 */
13290enum qca_wlan_vendor_pasn_action {
13291 QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
13292 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
13293};
13294
13295/**
13296 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
13297 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
13298 *
13299 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
13300 * event from the driver to userspace and represents the local MAC address
13301 * to be used for PASN handshake. When this attribute is present, userspace
13302 * shall use the source address specified in this attribute by the driver
13303 * for PASN handshake with peer device.
13304 * This attribute is required in a command response from userspace to the
13305 * driver and represents the MAC address that was used in PASN handshake
13306 * with the peer device.
13307 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
13308 * peer device to which PASN handshake is requested in an event from the
13309 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13310 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
13311 * Indicates the MAC address of the peer device for which the keys are to
13312 * be invalidated in an event from the driver to userspace when
13313 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13314 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
13315 * Indicates the MAC address of the peer device for which the status is
13316 * being sent in a status report from userspace to the driver.
13317 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
13318 * in the event from the driver to userspace. When set, userspace is
13319 * required to derive LTF key seed from KDK and set it to the driver.
13320 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
13321 * attribute is used in the command response from userspace to the driver.
13322 * If present, it indicates the successful PASN handshake with the peer. If
13323 * this flag is not present, it indicates that the PASN handshake with the
13324 * peer device failed.
13325 */
13326enum qca_wlan_vendor_attr_pasn_peer {
13327 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
13328 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
13329 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
13330 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
13331 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
13332
13333 /* keep last */
13334 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
13335 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
13336 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
13337};
13338
13339/**
13340 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
13341 * QCA_NL80211_VENDOR_SUBCMD_PASN command.
13342 *
13343 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
13344 * defined in enum qca_wlan_vendor_pasn_action and used only in an event
13345 * from the driver to userspace.
13346 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
13347 * details for each peer and used in both an event and a command response.
13348 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
13349 * defined in enum qca_wlan_vendor_attr_pasn_peer.
13350 */
13351enum qca_wlan_vendor_attr_pasn {
13352 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
13353 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
13354 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
13355
13356 /* keep last */
13357 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
13358 QCA_WLAN_VENDOR_ATTR_PASN_MAX =
13359 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
13360};
13361
13362/**
13363 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
13364 * the ranging security context derived from PASN for each peer. Used in
13365 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
13366 *
13367 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
13368 * context for the peer.
13369 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
13370 * context for the peer.
13371 */
13372enum qca_wlan_vendor_secure_ranging_ctx_action {
13373 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
13374 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
13375};
13376
13377/**
13378 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
13379 * used for deriving PASN keys to the driver. Used in
13380 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
13381 * @QCA_WLAN_VENDOR_SHA_256: SHA-256
13382 * @QCA_WLAN_VENDOR_SHA_384: SHA-384
13383 */
13384enum qca_wlan_vendor_sha_type {
13385 QCA_WLAN_VENDOR_SHA_256,
13386 QCA_WLAN_VENDOR_SHA_384,
13387};
13388
13389/**
13390 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
13391 * to set security context for the PASN peer from userspace to the driver.
13392 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
13393 *
13394 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
13395 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
13396 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
13397 * was used during the PASN handshake.
13398 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
13399 * the peer device for which secure ranging context is being configured.
13400 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
13401 * hash algorithm to be used, possible values are defined in enum
13402 * qca_wlan_vendor_sha_type.
13403 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
13404 * the temporal key generated from the PASN handshake. The length of this
13405 * attribute is dependent on the value of
13406 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
13407 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
13408 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
13409 * (e.g., 0x000FAC04).
13410 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
13411 * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
13412 * The length of this attribute is dependent on the value of
13413 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
13414
13415 */
13416enum qca_wlan_vendor_attr_secure_ranging_ctx {
13417 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
13418 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
13419 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
13420 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
13421 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
13422 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
13423 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
13424 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
13425
13426 /* keep last */
13427 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
13428 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
13429 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
13430};
13431
Sunil Ravi89eba102022-09-13 21:04:37 -070013432/**
13433 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
13434 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
13435 * nested attribute. The packets that match a filter will be replied with
13436 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
13437 *
13438 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
13439 * u32 attribute. Destination IPv4 address in network byte order, the
13440 * IPv4 packets with different address will be filtered out.
13441 * This attribute is optional.
13442 *
13443 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
13444 * Flag attribute. If it's present, indicates that
13445 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
13446 * address; while if not, indicates that the address is a unicast/multicast
13447 * address.
13448 * This attribute is optional.
13449 *
13450 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
13451 * NLA_BINARY attribute, length is 16 bytes.
13452 * Destination IPv6 address in network byte order, the IPv6 packets
13453 * with different destination address will be filtered out.
13454 * This attribute is optional.
13455 *
13456 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
13457 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
13458 * Packets on both IPv4 and IPv6 will be processed if both are configured.
13459 *
13460 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
13461 * u16 attribute. Destination UDP port, the packets with different destination
13462 * UDP port will be filtered out.
13463 * This attribute is mandatory.
13464 *
13465 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
13466 * u32 attribute. Represents the offset (in UDP payload) of the data
13467 * to be matched.
13468 * This attribute is mandatory.
13469 *
13470 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
13471 * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
13472 * Binary data that is compared bit-by-bit against the data (specified
13473 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
13474 * payload, the packets don't match will be filtered out.
13475 * This attribute is mandatory.
13476 */
13477enum qca_wlan_vendor_attr_coap_offload_filter {
13478 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
13479 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
13480 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
13481 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
13482 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
13483 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
13484 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
13485
13486 /* keep last */
13487 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
13488 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
13489 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
13490};
13491
13492/**
13493 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
13494 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
13495 *
13496 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
13497 * u32 attribute. Source address (in network byte order) for replying
13498 * the matching broadcast/multicast IPv4 packets.
13499 * This attribute is optional.
13500 *
13501 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
13502 * NLA_BINARY attribute, length is 16 bytes.
13503 * Source address (in network byte order) for replying the matching
13504 * multicast IPv6 packets.
13505 * This attribute is optional.
13506 *
13507 * For broadcast/multicast offload reply, one of
13508 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
13509 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
13510 * configured according to version of the IP address(es) configured in
13511 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
13512 * while for unicast case, firmware will take the destination IP address
13513 * in the received matching packet as the source address for replying.
13514 *
13515 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
13516 * Nested attribute. Filter for the received UDP packets, only the matching
13517 * packets will be replied and cached.
13518 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
13519 * attributes.
13520 * This attribute is mandatory.
13521 *
13522 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
13523 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13524 * CoAP message (UDP payload) to be sent upon receiving matching packets.
13525 * Firmware is responsible for adding any necessary protocol headers.
13526 * This attribute is mandatory.
13527 *
13528 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
13529 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
13530 * A cached message will be dropped by firmware if it's expired.
13531 * This attribute is optional. A default value of 40000 will be used in the
13532 * absence of it.
13533 */
13534enum qca_wlan_vendor_attr_coap_offload_reply {
13535 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
13536 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
13537 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
13538 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
13539 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
13540 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
13541
13542 /* keep last */
13543 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
13544 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
13545 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
13546};
13547
13548/**
13549 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
13550 * CoAP message (UDP) transmitting on IPv4.
13551 *
13552 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
13553 * u32 attribute. Source address (in network byte order) for transmitting
13554 * packets on IPv4.
13555 * This attribute is mandatory.
13556 *
13557 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
13558 * u16 attribute. Source UDP port.
13559 * This attribute is optional, a random port is taken if it's not present.
13560 *
13561 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
13562 * u32 attribute. Destination IPv4 address (in network byte order).
13563 * This attribute is mandatory.
13564 *
13565 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
13566 * Flag attribute. If it's present, indicates that
13567 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
13568 * address; while if not, indicates that the address is unicast/multicast
13569 * address.
13570 * This attribute is optional.
13571 *
13572 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
13573 * u16 attribute. Destination UDP port.
13574 * This attribute is mandatory.
13575 */
13576enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
13577 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
13578 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
13579 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
13580 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
13581 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
13582 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
13583
13584 /* keep last */
13585 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
13586 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
13587 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
13588};
13589
13590/**
13591 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
13592 * CoAP message (UDP) transmitting on IPv6.
13593 *
13594 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
13595 * NLA_BINARY attribute, length is 16 bytes.
13596 * Source address (in network byte order) for transmitting packets on IPv6.
13597 * This attribute is mandatory.
13598 *
13599 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
13600 * u16 attribute. Source UDP port.
13601 * This attribute is optional, a random port is taken if it's not present.
13602 *
13603 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
13604 * NLA_BINARY attribute, length is 16 bytes.
13605 * Destination IPv6 address (in network byte order).
13606 * This attribute is mandatory.
13607 *
13608 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
13609 * u16 attribute. Destination UDP port.
13610 * This attribute is mandatory.
13611 */
13612enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
13613 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
13614 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
13615 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
13616 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
13617 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
13618
13619 /* keep last */
13620 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
13621 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
13622 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
13623};
13624
13625/**
13626 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
13627 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
13628 *
13629 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
13630 * Nested attribute. The IPv4 source/destination address/port for offload
13631 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
13632 * of supported attributes.
13633 * This attribute is optional.
13634 *
13635 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
13636 * Nested attribute. The IPv6 source/destination address/port for offload
13637 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
13638 * of supported attributes.
13639 * This attribute is optional.
13640 *
13641 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
13642 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
13643 * Firmware will transmit the packets on both IPv4 and IPv6 if both are
13644 * configured.
13645 *
13646 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
13647 * u32 attribute. Period in milliseconds for the periodic transmitting.
13648 * This attribute is mandatory.
13649 *
13650 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
13651 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13652 * CoAP message (UDP payload) to be periodically transmitted. Firmware
13653 * is responsible for adding any necessary protocol headers.
13654 * This attribute is mandatory.
13655 */
13656enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
13657 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
13658 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
13659 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
13660 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
13661 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
13662
13663 /* keep last */
13664 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
13665 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
13666 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
13667};
13668
13669/**
13670 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
13671 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
13672 *
13673 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
13674 * u64 attribute. Received time (since system booted in microseconds) of
13675 * the cached CoAP message.
13676 * This attribute is mandatory.
13677 *
13678 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
13679 * u32 attribute. Source IPv4 address (in network byte order) of the cached
13680 * CoAP message.
13681 * This attribute is optional.
13682 *
13683 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
13684 * NLA_BINARY attribute, length is 16 bytes.
13685 * Source IPv6 address (in network byte order) of the cached CoAP message.
13686 * This attribute is optional.
13687 *
13688 * At most and at least one of
13689 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
13690 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
13691 * an entry.
13692 *
13693 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
13694 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13695 * The cached CoAP message (UDP payload). If the actual message size is
13696 * greater than the maximum size, it will be truncated and leaving only
13697 * the first 1152 bytes.
13698 * This attribute is mandatory.
13699 */
13700enum qca_wlan_vendor_attr_coap_offload_cache_info {
13701 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
13702 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
13703 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
13704 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
13705 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
13706
13707 /* keep last */
13708 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
13709 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
13710 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
13711};
13712
13713/**
13714 * enum qca_wlan_vendor_coap_offload_action - Actions for
13715 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13716 *
13717 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
13718 * Enable CoAP offload reply.
13719 * If it's enabled, firmware will start offload processing on each suspend
13720 * and stop on each resume.
13721 *
13722 * Offload reply on match works as follows:
13723 * Reply the packets that match the filter with the given CoAP
13724 * message (with necessary protocol headers), increase the CoAP message
13725 * ID in the given CoAP message by one for the next use after each successful
13726 * transmission, and try to store the information of the received packet,
13727 * including the received time, source IP address, and CoAP message (UDP
13728 * payload).
13729 *
13730 * Firmware has a limit to the maximum stored entries, it takes the source IP
13731 * address as the key of an entry, and keeps at most one entry for each key.
13732 * A packet won't be stored if no entry for the same key is present and the
13733 * total number of the existing unexpired entries reaches the maximum value.
13734 *
13735 * If any configured item is changed, user space should disable offload reply
13736 * first and then issue a new enable request.
13737 *
13738 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
13739 * Disable CoAP offload reply and return information of any cached CoAP
13740 * messages.
13741 *
13742 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
13743 * Enable CoAP offload periodic transmitting.
13744 * If it's enabled, firmware will start offload periodic transmitting on
13745 * each suspend and stop on each resume.
13746 *
13747 * Offload periodic transmitting works as follows:
13748 * Send the given CoAP message (with necessary protocol headers) with the given
13749 * source/destination IP address/UDP port periodically based on the given
13750 * period and increase the CoAP message ID in the given CoAP message by one
13751 * for the next use after each successful transmission.
13752 *
13753 * If any configured item is changed, user space should disable offload
13754 * periodic transmitting first and then issue a new enable request.
13755 *
13756 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
13757 * Disable CoAP offload periodic transmitting.
13758 *
13759 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
13760 * Get information of the CoAP messages cached during offload reply
13761 * processing. The cache is cleared after retrieval.
13762 */
13763enum qca_wlan_vendor_coap_offload_action {
13764 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
13765 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
13766 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
13767 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
13768 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
13769};
13770
13771/**
13772 * enum qca_wlan_vendor_attr_coap_offload - Used by the
13773 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13774 * This is used to set parameters for CoAP offload processing, or get
13775 * cached CoAP messages from firmware.
13776 *
13777 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
13778 * u32 attribute. Action to take in this vendor command.
13779 * See enum qca_wlan_vendor_coap_offload_action for supported actions.
13780 * This attribute is mandatory.
13781 *
13782 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
13783 * u32 attribute. Represents the Request ID for the CoAP offload
13784 * configuration, which can help to identify the user entity starting
13785 * the CoAP offload processing and accordingly stop the respective
13786 * ones/get the cached CoAP messages with the matching ID.
13787 * This attribute is mandatory.
13788 *
13789 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
13790 * Nested attribute. Parameters for offload reply.
13791 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
13792 * supported attributes.
13793 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13794 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
13795 * otherwise.
13796 *
13797 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
13798 * Nested attribute. Parameters for offload periodic transmitting.
13799 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
13800 * supported attributes.
13801 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
13802 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
13803 * otherwise.
13804 *
13805 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
13806 * Array of nested attributes. Information of the cached CoAP messages,
13807 * where each entry is taken from
13808 * enum qca_wlan_vendor_attr_coap_offload_cache_info.
13809 * This attribute is used for reporting the cached CoAP messages
13810 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13811 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
13812 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
13813 * cached item if this attribute is not present.
13814 */
13815enum qca_wlan_vendor_attr_coap_offload {
13816 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
13817 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
13818 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
13819 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
13820 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
13821 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
13822
13823 /* keep last */
13824 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
13825 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
13826 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
13827};
13828
13829/**
13830 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
13831 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
13832 * Service (SCS) rule.
13833 *
13834 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
13835 * Represents the unique id of SCS rule to be configured.
13836
13837 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
13838 * Represents the request type: add, remove, or change.
13839 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
13840 * Type definitions).
13841 *
13842 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
13843 * in case of add/change request type.
13844 * Represents the output traffic identifier (TID) to be assigned to the flow
13845 * matching the rule.
13846 *
13847 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
13848 * attribute in case of add/change request type.
13849 * Represents type of classifier parameters present in SCS rule.
13850 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
13851 * Only classifier types 4 and 10 are supported for SCS.
13852 *
13853 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
13854 * in case of add/change request type when classifier type is TCLAS4.
13855 * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
13856 *
13857 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
13858 * attribute in case of add/change request type when classifier type is TCLAS4
13859 * and version attribute is IPv4.
13860 * Represents the source IPv4 address in the rule which is to be compared
13861 * against the source IP address in the IPv4 header.
13862 *
13863 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
13864 * attribute in case of add/change request type when classifier type is TCLAS4
13865 * and version attribute is IPv4.
13866 * Represents the destination IPv4 address in the rule which is to be compared
13867 * against the destination IP address in the IPv4 header.
13868 *
13869 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
13870 * attribute in case of add/change request type when classifier type is TCLAS4
13871 * and version attribute is IPv6.
13872 * Represents the source IPv6 address in the rule which is to be compared
13873 * against the source IP address in the IPv6 header.
13874 *
13875 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
13876 * attribute in case of add/change request type when classifier type is TCLAS4
13877 * and version attribute is IPv6.
13878 * Represents the destination IPv6 address in the rule which is to be compared
13879 * against the destination IP address in the IPv6 header.
13880 *
13881 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
13882 * in case of add/change request type when classifier type is TCLAS4.
13883 * Represents the source port number in the rule which is to be compared against
13884 * the source port number in the protocol header.
13885 *
13886 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
13887 * in case of add/change request type when classifier type is TCLAS4.
13888 * Represents the destination port number in the rule which is to be compared
13889 * against the destination port number in the protocol header.
13890 *
13891 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
13892 * in case of add/change request type when classifier type is TCLAS4.
13893 * Represents the DSCP value in the rule which is to be compared against the
13894 * DSCP field present in the IP header.
13895 *
13896 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
13897 * attribute in case of add/change request type when classifier type is TCLAS4.
13898 * Represents the protocol/next header in the rule which is to be compared
13899 * against the protocol/next header field present in the IPv4/IPv6 header.
13900 *
13901 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
13902 * attribute of size 3 bytes present in case of add/change request type
13903 * when classifier type is TCLAS4 and version is IPv6.
13904 * Represents the flow label value in the rule which is to be compared against
13905 * the flow label field present in the IPv6 header.
13906 *
13907 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
13908 * attribute in case of add/change request type when classifier type is TCLAS10.
13909 * Represents the protocol instance number in the rule.
13910 *
13911 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
13912 * attribute in case of add/change request type when classifier type is TCLAS10.
13913 * Represents the protocol/next header in the rule which is to be compared
13914 * against the protocol/next header field present in the IPv4/IPv6 header.
13915 *
13916 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
13917 * attribute of variable length present when request type is add/change and
13918 * classifier type is TCLAS10.
13919 * Represents the mask to be used for masking the header contents of the header
13920 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
13921 * attribute.
13922 *
13923 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
13924 * attribute of variable length present when request type is add/change and
13925 * classifier type is TCLAS10.
13926 * Represents the value to be compared against after masking the header contents
13927 * of the header specified by the
13928 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
13929 * filter mask specified by the
13930 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013931 *
13932 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
13933 * attribute.
13934 * Represents the service class id of the configured SCS rule.
13935 *
13936 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
13937 * MAC address.
13938 * Represents the destination MAC address in the rule.
13939 *
13940 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
13941 * Represents the netdevice interface index in the rule.
Sunil Ravi89eba102022-09-13 21:04:37 -070013942 */
13943enum qca_wlan_vendor_attr_scs_rule_config {
13944 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
13945 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
13946 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
13947 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
13948 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
13949 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
13950 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
13951 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
13952 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
13953 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
13954 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
13955 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
13956 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
13957 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
13958 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
13959 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
13960 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
13961 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
13962 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013963 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
13964 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
13965 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
Sunil Ravi89eba102022-09-13 21:04:37 -070013966
13967 /* Keep last */
13968 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
13969 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
13970 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
13971};
13972
13973/**
13974 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
13975 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
13976 *
13977 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
13978 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
13979 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
13980 */
13981enum qca_wlan_vendor_attr_mlo_links {
13982 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
13983 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
13984 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
13985 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
13986
13987 /* Keep last */
13988 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
13989 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
13990 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
13991};
13992
13993/**
13994 * enum qca_wlan_vendor_sar_version - This describes the current SAR version
13995 * used in the firmware.
13996 *
13997 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
13998 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
13999 *
14000 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
14001 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
14002 * each CTL group. So user can select up to 6 SAR indexes from the current CTL
14003 * groups.
14004 *
14005 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
14006 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
14007 * CTL group but user can choose up to 3 SAR set index only, as the top half
14008 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
14009 * the SAR index (3 to 5) is used for DBS mode.
14010 */
14011enum qca_wlan_vendor_sar_version {
14012 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
14013 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
14014 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
14015 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
14016};
14017
14018/**
14019 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
14020 * CTL grouping is enabled or disabled in the firmware.
14021 *
14022 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
14023 * is enabled in firmware.
14024 *
14025 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
14026 * is disabled in firmware.
14027 *
14028 */
14029enum qca_wlan_vendor_sar_ctl_group_state {
14030 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
14031 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
14032 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
14033};
14034
14035/**
14036 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
14037 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
14038 * supported by the firmware.
14039
14040 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
14041 * u32 attribute. This field describes current SAR version supported by the
14042 * firmware.
14043 * See enum qca_wlan_vendor_sar_version for more information.
14044 * This attribute is mandatory.
14045
14046 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
14047 * u32 attribute. This field describes whether CTL groups are enabled
14048 * or disabled in the firmware.
14049 * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
14050 * This attribute is optional.
14051 */
14052
14053enum qca_wlan_vendor_attr_sar_capability {
14054 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
14055 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
14056 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
14057
14058 /* Keep last */
14059 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
14060 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
14061 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
14062};
14063
14064/**
14065 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
14066 * These statistics are sent from the driver in a response when userspace
14067 * queries to get the statistics using the operation
14068 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
14069 * by the driver when the SR feature is enabled, when the driver receives
14070 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
14071 *
14072 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14073 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14074 * This represents the number of non-SRG TX opportunities.
14075 *
14076 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14077 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14078 * This represents the number of non-SRG PPDUs tried to transmit.
14079 *
14080 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14081 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14082 * This represents the number of non-SRG PPDUs successfully transmitted.
14083 *
14084 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14085 * Mandatory only when SRG is supported by the AP and optional otherwise.
14086 * This represents the number of SRG TX opportunities.
14087 *
14088 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14089 * Mandatory only when SRG is supported by the AP and optional otherwise.
14090 * This represents the number of SRG PPDUs tried to transmit.
14091 *
14092 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14093 * Mandatory only when SRG is supported by the AP and optional otherwise.
14094 * This represents the number of SRG PPDUs successfully transmitted.
14095 */
14096enum qca_wlan_vendor_attr_sr_stats {
14097 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
14098 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
14099 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
14100 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
14101 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
14102 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
14103 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
14104
14105 /* Keep last */
14106 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
14107 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
14108 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
14109};
14110
14111/**
14112 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
14113 * Spatial Reuse feature.
14114 *
14115 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
14116 * roaming to an AP that doesn't support/supports SR feature, respectively.
14117 *
14118 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
14119 * to change in concurrent interfaces that are supported by the driver.
14120 */
14121enum qca_wlan_sr_reason_code {
14122 QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
14123 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
14124};
14125
14126/**
14127 * enum qca_wlan_sr_operation - Defines the different types of SR operations.
14128 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
14129 *
14130 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
14131 * driver to enable the Spatial Reuse feature. Attributes
14132 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14133 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
14134 * operation.
14135 *
14136 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
14137 * driver to disable the Spatial Reuse feature.
14138 *
14139 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
14140 * asynchronous event sent to userspace when the SR feature is disabled.
14141 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
14142 * and sent along with the asynchronous event.
14143 *
14144 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
14145 * asynchronous event when the SR feature is enabled again after the SR feature
14146 * was suspended by the driver earlier. The enable reason is
14147 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
14148 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14149 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
14150 *
14151 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
14152 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14153 * reuse transmissions. Userspace sends this operation to the driver.
14154 * The driver/firmware upon receiving this operation shall prohibit PSR-based
14155 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14156 *
14157 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
14158 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14159 * reuse transmissions. Userspace sends this operation to the driver.
14160 * The driver/firmware upon receiving this operation shall allow PSR-based
14161 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14162 *
14163 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
14164 * driver to get the SR statistics and the driver sends a synchronous response
14165 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
14166 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
14167 *
14168 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
14169 * driver to clear the SR statistics and upon receiving this operation
14170 * the driver/firmware shall clear the SR statistics.
14171 *
14172 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
14173 * driver to get the SR parameters and the driver sends the synchronous response
14174 * with the following required attributes:
14175 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14176 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14177 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14178 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14179 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14180 *
14181 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
14182 * asynchronous event to userspace to update any changes in SR parameters.
14183 * The following attributes are used with this operation:
14184 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14185 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14186 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14187 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14188 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14189 */
14190enum qca_wlan_sr_operation {
14191 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
14192 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
14193 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
14194 QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
14195 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
14196 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
14197 QCA_WLAN_SR_OPERATION_GET_STATS = 6,
14198 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
14199 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
14200 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
14201};
14202
14203/**
14204 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
14205 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
14206 *
14207 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
14208 * This attribute is optionally set in response to
14209 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
14210 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
14211 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
14212 * about HESIGA_Spatial_reuse_value15_allowed.
14213 *
14214 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
14215 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
14216 * operation. This indicates whether non-SRG OBSS PD SR transmissions are
14217 * allowed or not at non-AP STAs that are associated with the AP. If present
14218 * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
14219 *
14220 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
14221 * attribute. This attribute is used in response to
14222 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
14223 * Min Offset field which contains an unsigned integer that is added to -82 dBm
14224 * to generate the value of the SRG OBSS PD Min parameter.
14225 *
14226 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
14227 * attribute. This attribute is used in response to
14228 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
14229 * Max Offset field which contains an unsigned integer that is added to -82 dBm
14230 * to generate the value of the SRG OBSS PD Max parameter.
14231 *
14232 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
14233 * attribute. This attribute is used in response to
14234 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
14235 * PD Max Offset field which contains an unsigned integer that is added to -82
14236 * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
14237 *
14238 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
14239 * Userspace optionally sends this attribute with
14240 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
14241 * preferred SRG PD threshold. The driver shall send this attribute to
14242 * userspace in SR resume event to indicate the PD threshold being used for SR.
14243 * When there is change in SRG PD threshold (for example, due to roaming, etc.)
14244 * the driver shall indicate the userspace the newly configured SRG PD threshold
14245 * using an asynchronous event.
14246 *
14247 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
14248 * Userspace optionally sends this attribute with
14249 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
14250 * preferred non-SRG PD threshold. The driver shall send this attribute to
14251 * userspace in SR resume event to indicate the PD threshold being used for SR.
14252 * When there is change in non-SRG PD threshold (for example, due to roaming,
14253 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
14254 * threshold using an asynchronous event.
14255 *
14256 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
14257 * values are defined in enum qca_wlan_sr_reason_code. This
14258 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
14259 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
14260 */
14261enum qca_wlan_vendor_attr_sr_params {
14262 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
14263 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
14264 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
14265 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
14266 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
14267 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
14268 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
14269 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
14270 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
14271
14272 /* keep last */
14273 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
14274 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
14275 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
14276};
14277
14278/**
14279 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
14280 * command QCA_NL80211_VENDOR_SUBCMD_SR.
14281 *
14282 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
14283 * from userspace to the driver. Possible values are defined in enum
14284 * qca_wlan_sr_operation.
14285 *
14286 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
14287 * configuration parameters. The possible attributes inside this attribute are
14288 * defined in enum qca_wlan_vendor_attr_sr_params.
14289 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
14290 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
14291 * also in response from the driver to userspace when the response is sent for
14292 * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
14293 * The driver uses this attribute in asynchronous events in which the operation
14294 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
14295 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
14296 *
14297 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
14298 * statistics. These attributes used inside this are defined in enum
14299 * qca_wlan_vendor_attr_sr_stats.
14300 * This attribute is used in response from the driver to a command in which
14301 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
14302 * %QCA_WLAN_SR_OPERATION_GET_STATS.
14303 */
14304enum qca_wlan_vendor_attr_sr {
14305 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
14306 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
14307 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
14308 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
14309
14310 /* Keep last */
14311 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
14312 QCA_WLAN_VENDOR_ATTR_SR_MAX =
14313 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
14314};
14315
Sunil Ravi77d572f2023-01-17 23:58:31 +000014316/**
14317 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
14318 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
14319 *
14320 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
14321 * used by the peer on the link that corresponds to the link used for sending
14322 * the event notification.
14323 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
14324 * MLD MAC address of the peer.
14325 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
14326 * used to pass ifindex of the primary netdev.
14327 */
14328enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
14329 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
14330 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
14331 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
14332 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
14333
14334 /* keep last */
14335 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
14336 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
14337 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
14338};
14339
14340/**
14341 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
14342 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
14343 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
14344 * and PSD information.
14345 *
14346 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
14347 * u32. This attribute is used to indicate the start of the queried frequency
14348 * range in MHz.
14349 *
14350 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
14351 * This attribute is used to indicate the end of the queried frequency range
14352 * in MHz.
14353 *
14354 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
14355 * This attribute will contain the PSD information for a single range as
14356 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
14357 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
14358 *
14359 * The PSD power info (dBm/MHz) from user space should be multiplied
14360 * by a factor of 100 when sending to the driver to preserve granularity
14361 * up to 2 decimal places.
14362 * Example:
14363 * PSD power value: 10.21 dBm/MHz
14364 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
14365 *
14366 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
14367 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
14368 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
14369 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14370 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
14371 *
14372 * The following set of attributes will be used to exchange frequency and
14373 * corresponding PSD information for AFC between the user space and the driver.
14374 */
14375enum qca_wlan_vendor_attr_afc_freq_psd_info {
14376 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
14377 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
14378 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
14379 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
14380
14381 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
14382 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
14383 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
14384};
14385
14386/**
14387 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
14388 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
14389 * channel list and corresponding EIRP information.
14390 *
14391 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
14392 * This attribute is used to indicate queried channel from
14393 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
14394 *
14395 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
14396 * This attribute is used to configure the EIRP power info corresponding
14397 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
14398 * The EIRP power info(dBm) from user space should be multiplied
14399 * by a factor of 100 when sending to Driver to preserve granularity up to
14400 * 2 decimal places.
14401 * Example:
14402 * EIRP power value: 34.23 dBm
14403 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
14404 *
14405 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
14406 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14407 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
14408 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14409 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
14410 *
14411 * The following set of attributes will be used to exchange Channel and
14412 * corresponding EIRP information for AFC between the user space and Driver.
14413 */
14414enum qca_wlan_vendor_attr_afc_chan_eirp_info {
14415 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
14416 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
14417 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
14418
14419 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
14420 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
14421 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
14422};
14423
14424/**
14425 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
14426 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14427 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
14428 * channel, and EIRP related information.
14429 *
14430 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
14431 * This attribute is used to indicate the operating class, as listed under
14432 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
14433 *
14434 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
14435 * for updating the channel number and EIRP power information.
14436 * It uses the attributes defined in
14437 * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
14438 *
14439 * Operating class information packing format for
14440 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
14441 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14442 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
14443 *
14444 * m - Total number of operating classes.
14445 * n, j - Number of queried channels for the corresponding operating class.
14446 *
14447 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
14448 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
14449 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14450 * .....
14451 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
14452 * ....
14453 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
14454 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
14455 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14456 * ....
14457 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
14458 *
14459 * Operating class information packing format for
14460 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14461 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
14462 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14463 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
14464 *
14465 * m - Total number of operating classes.
14466 * n, j - Number of channels for the corresponding operating class.
14467 *
14468 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
14469 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
14470 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14471 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
14472 * .....
14473 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
14474 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
14475 * ....
14476 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
14477 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
14478 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14479 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
14480 * ....
14481 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
14482 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
14483 *
14484 * The following set of attributes will be used to exchange operating class
14485 * information for AFC between the user space and the driver.
14486 */
14487enum qca_wlan_vendor_attr_afc_opclass_info {
14488 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
14489 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
14490 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
14491
14492 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
14493 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
14494 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
14495};
14496
14497/**
14498 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
14499 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
14500 *
14501 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
14502 * driver to userspace in order to query the new AFC power values.
14503 *
14504 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
14505 * complete event will be sent from the driver to userspace to indicate
14506 * processing of the AFC response.
14507 *
14508 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
14509 * will be sent from the driver to userspace to indicate last received
14510 * AFC response data has been cleared on the AP due to invalid data
14511 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
14512 *
14513 * The following enum defines the different event types that will be
14514 * used by the driver to help trigger corresponding AFC functionality in user
14515 * space.
14516 */
14517enum qca_wlan_vendor_afc_event_type {
14518 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
14519 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
14520 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
14521};
14522
14523/**
14524 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
14525 * deployment type.
14526 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
14527 *
14528 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
14529 *
14530 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
14531 *
14532 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
14533 *
14534 * The following enum defines different deployment modes that the AP might
14535 * come up in. This information will be essential to retrieve deployment-type
14536 * specific SP power values for AFC operation.
14537 */
14538enum qca_wlan_vendor_afc_ap_deployment_type {
14539 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
14540 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
14541 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
14542};
14543
14544/**
14545 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
14546 * indicate AFC response status.
14547 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
14548 *
14549 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
14550 *
14551 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
14552 * command was not received within the expected time of the AFC expiry event
14553 * being triggered.
14554 *
14555 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
14556 * parsing error by the driver.
14557 *
14558 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
14559 * error.
14560 *
14561 * The following enum defines the status codes that the driver will use to
14562 * indicate whether the AFC data is valid or not.
14563 */
14564enum qca_wlan_vendor_afc_evt_status_code {
14565 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
14566 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
14567 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
14568 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
14569};
14570
14571/**
14572 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
14573 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
14574 * support sending only a single request to the user space at a time.
14575 *
14576 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
14577 * Used with event to notify the type of AFC event received.
14578 * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
14579 *
14580 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
14581 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
14582 * otherwise unused.
14583 *
14584 * This attribute is used to indicate the AP deployment type in the AFC request.
14585 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
14586 *
14587 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
14588 * Unique request identifier generated by the AFC client for every
14589 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
14590 * The user space application is responsible for ensuring no duplicate values
14591 * are in-flight with the server, e.g., by delaying a request, should the same
14592 * value be received from different radios in parallel.
14593 *
14594 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
14595 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14596 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
14597 *
14598 * This attribute indicates the AFC spec version information. This will
14599 * indicate the AFC version AFC client must use to query the AFC data.
14600 * Bits 15:0 - Minor version
14601 * Bits 31:16 - Major version
14602 *
14603 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
14604 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
14605 * otherwise unused.
14606 * This attribute indicates the minimum desired power (in dBm) for
14607 * the queried spectrum.
14608 *
14609 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
14610 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14611 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14612 *
14613 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
14614 * This attribute is used to indicate if there were any errors parsing the
14615 * AFC response.
14616 *
14617 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
14618 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14619 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14620 *
14621 * This attribute indicates the AFC response code. The AFC response codes are
14622 * in the following categories:
14623 * -1: General Failure.
14624 * 0: Success.
14625 * 100 - 199: General errors related to protocol.
14626 * 300 - 399: Error events specific to message exchange
14627 * for the Available Spectrum Inquiry.
14628 *
14629 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
14630 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14631 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14632 *
14633 * This attribute indicates the date until which the current response is
14634 * valid for in UTC format.
14635 * Date format: bits 7:0 - DD (Day 1-31)
14636 * bits 15:8 - MM (Month 1-12)
14637 * bits 31:16 - YYYY (Year)
14638 *
14639 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
14640 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14641 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14642 *
14643 * This attribute indicates the time until which the current response is
14644 * valid for in UTC format.
14645 * Time format: bits 7:0 - SS (Seconds 0-59)
14646 * bits 15:8 - MM (Minutes 0-59)
14647 * bits 23:16 - HH (Hours 0-23)
14648 * bits 31:24 - Reserved
14649 *
14650 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
14651 * for updating the list of frequency ranges to be queried.
14652 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14653 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
14654 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14655 * It uses the attributes defined in
14656 * enum qca_wlan_vendor_attr_afc_freq_psd_info.
14657 *
14658 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
14659 * for updating the list of operating classes and corresponding channels to be
14660 * queried.
14661 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14662 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
14663 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14664 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
14665 */
14666enum qca_wlan_vendor_attr_afc_event {
14667 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
14668 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
14669 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
14670 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
14671 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
14672 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
14673 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
14674 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
14675 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
14676 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
14677 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
14678 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
14679
14680 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
14681 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
14682 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
14683};
14684
14685/**
14686 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
14687 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
14688 * will support sending only a single AFC response to the driver at a time.
14689 *
14690 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
14691 * This attribute will be used to send a single Spectrum Inquiry response object
14692 * from the 'availableSpectrumInquiryResponses' array object from the response
14693 * JSON.
14694 *
14695 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
14696 *
14697 * This attribute indicates the period (in seconds) for which the response
14698 * data received is valid for.
14699 *
14700 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
14701 *
14702 * This attribute indicates the request ID for which the corresponding
14703 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
14704 *
14705 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
14706 *
14707 * This attribute indicates the date until which the current response is
14708 * valid for in UTC format.
14709 * Date format: bits 7:0 - DD (Day 1-31)
14710 * bits 15:8 - MM (Month 1-12)
14711 * bits 31:16 - YYYY (Year)
14712 *
14713 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
14714 *
14715 * This attribute indicates the time until which the current response is
14716 * valid for in UTC format.
14717 * Time format: bits 7:0 - SS (Seconds 0-59)
14718 * bits 15:8 - MM (Minutes 0-59)
14719 * bits 23:16 - HH (Hours 0-23)
14720 * bits 31:24 - Reserved
14721 *
14722 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
14723 *
14724 * This attribute indicates the AFC response code. The AFC response codes are
14725 * in the following categories:
14726 * -1: General Failure.
14727 * 0: Success.
14728 * 100 - 199: General errors related to protocol.
14729 * 300 - 399: Error events specific to message exchange
14730 * for the Available Spectrum Inquiry.
14731 *
14732 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
14733 * for PSD info of all the queried frequency ranges. It uses the attributes
14734 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
14735 *
14736 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
14737 * attributes for EIRP info of all queried operating class/channels. It uses
14738 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
14739 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
14740 *
14741 */
14742enum qca_wlan_vendor_attr_afc_response {
14743 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
14744 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
14745 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
14746 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
14747 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
14748 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
14749 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
14750 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
14751 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
14752
14753 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
14754 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
14755 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
14756};
14757
14758/**
14759 * enum qca_wlan_dozed_ap_state - Doze states for AP interface
14760 *
14761 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
14762 *
14763 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
14764 * beaconing at higher beacon interval with Rx disabled.
14765 */
14766enum qca_wlan_dozed_ap_state {
14767 QCA_WLAN_DOZED_AP_DISABLE = 0,
14768 QCA_WLAN_DOZED_AP_ENABLE = 1,
14769};
14770
14771/**
14772 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
14773 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
14774 * configuration.
14775 *
14776 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
14777 * Configures the doze state for an AP interface. Possible values are defined
14778 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
14779 * gets triggered asynchronously to provide updated AP interface configuration.
14780 *
14781 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
14782 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
14783 * command, which is used later to maintain synchronization between commands
14784 * and asynchronous events.
14785 *
14786 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
14787 * Used in event to indicate the next TBTT TSF timer value after applying the
14788 * doze mode configuration. Next TBTT TSF is the time at which the AP sends
14789 * the first beacon after entering or exiting dozed mode.
14790 *
14791 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
14792 * Used with event to inform the periodicity of beacon transmission that would
14793 * be skipped at all TBTTs in between.
14794 */
14795enum qca_wlan_vendor_attr_dozed_ap {
14796 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
14797 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
14798 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
14799 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
14800 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
14801
14802 /* Keep last */
14803 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
14804 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
14805 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
14806};
14807
14808/**
14809 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
14810 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
14811 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
14812 * capture running status.
14813 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
14814 * capture running status.
14815 **/
14816
14817enum qca_wlan_vendor_monitor_mode_status {
14818 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
14819 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
14820};
14821
14822/**
14823 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
14824 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
14825 * information regarding the local packet capture over the monitor mode.
14826 *
14827 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
14828 * represents the status of the start capture commands. The values used with
14829 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
14830 * is returned by the driver in the response to the command.
14831 */
14832
14833enum qca_wlan_vendor_attr_get_monitor_mode {
14834 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
14835 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
14836
14837 /* Keep last */
14838 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
14839 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
14840 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
14841};
14842
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080014843#endif /* QCA_VENDOR_H */