blob: c9e4675c1b635e5a4e7d2cd488161a38e19d1171 [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
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08005 *
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
8 */
9
10#ifndef QCA_VENDOR_H
11#define QCA_VENDOR_H
12
13/*
14 * This file is a registry of identifier assignments from the Qualcomm Atheros
15 * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
16 * can be assigned through normal review process for changes to the upstream
17 * hostap.git repository.
18 */
19
20#define OUI_QCA 0x001374
21
Hai Shalomfdcde762020-04-02 11:19:20 -070022#ifndef BIT
23#define BIT(x) (1U << (x))
24#endif
25
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080026/**
Dmitry Shmidtf9bdef92014-04-25 10:46:36 -070027 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
28 */
29enum qca_radiotap_vendor_ids {
30 QCA_RADIOTAP_VID_WLANTEST = 0,
31};
32
33/**
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080034 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
35 *
36 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
37 *
38 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
39 *
Dmitry Shmidt661b4f72014-09-29 14:58:27 -070040 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
41 * internal BSS-selection. This command uses
42 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
43 * for the current connection (i.e., changes policy set by the nl80211
44 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
45 * included to indicate which BSS to use in case roaming is disabled.
46 *
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080047 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
48 * ranges to avoid to reduce issues due to interference or internal
Hai Shalom74f70d42019-02-11 14:42:39 -080049 * co-existence information in the driver. These frequencies aim to
50 * minimize the traffic but not to totally avoid the traffic. That said
51 * for a P2P use case, these frequencies are allowed for the P2P
52 * discovery/negotiation but avoid the group to get formed on these
53 * frequencies. The event data structure is defined in
54 * struct qca_avoid_freq_list.
Dmitry Shmidtd11f0192014-03-24 12:09:47 -070055 *
56 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
57 * for DFS offloading.
Dmitry Shmidt21de2142014-04-08 10:50:52 -070058 *
59 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
60 * NAN Request/Response and NAN Indication messages. These messages are
Hai Shalomce48b4a2018-09-05 11:41:35 -070061 * interpreted between the framework and the firmware component. While
62 * sending the command from userspace to the driver, payload is not
63 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
64 * is used when receiving vendor events in userspace from the driver.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080065 *
66 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
67 * used to configure PMK to the driver even when not connected. This can
68 * be used to request offloading of key management operations. Only used
69 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
70 *
71 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
72 * NL80211_CMD_ROAM event with optional attributes including information
73 * from offloaded key management operation. Uses
74 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
75 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
76 *
77 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
78 * invoke the ACS function in device and pass selected channels to
Hai Shalomc3565922019-10-28 11:58:20 -070079 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080080 *
81 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
82 * supported by the driver. enum qca_wlan_vendor_features defines
83 * the possible features.
Dmitry Shmidt7f656022015-02-25 14:36:37 -080084 *
85 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
86 * which supports DFS offloading, to indicate a channel availability check
87 * start.
88 *
89 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
90 * which supports DFS offloading, to indicate a channel availability check
91 * completion.
92 *
93 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
94 * which supports DFS offloading, to indicate that the channel availability
95 * check aborted, no change to the channel status.
96 *
97 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
98 * driver, which supports DFS offloading, to indicate that the
99 * Non-Occupancy Period for this channel is over, channel becomes usable.
100 *
101 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
102 * which supports DFS offloading, to indicate a radar pattern has been
103 * detected. The channel is now unusable.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700104 *
Hai Shalom81f62d82019-07-22 12:10:00 -0700105 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
106 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
107 *
Roshan Pius3a1667e2018-07-03 15:17:14 -0700108 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
109 * based on enum wifi_logger_supported_features. Attributes defined in
110 * enum qca_wlan_vendor_attr_get_logger_features.
111 *
112 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
113 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
114 * attribute for this command. Attributes defined in
115 * enum qca_wlan_vendor_attr_wifi_logger_start.
116 *
117 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
118 * capabilities of the driver, parameters includes the attributes defined
119 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
120 *
121 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
122 * sending of certain periodic IP packet to firmware, attributes defined in
123 * enum qca_wlan_vendor_attr_offloaded_packets.
124 *
125 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
126 * monitoring, defines min and max RSSI which are configured for RSSI
127 * monitoring. Also used to notify the RSSI breach and provides the BSSID
128 * and RSSI value that was breached. Attributes defined in
129 * enum qca_wlan_vendor_attr_rssi_monitoring.
130 *
131 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
132 * Data Path (NDP) related operations, attributes defined in
133 * enum qca_wlan_vendor_attr_ndp_params.
134 *
135 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
136 * Neighbour Discovery offload, attributes defined in
137 * enum qca_wlan_vendor_attr_nd_offload.
138 *
139 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
140 * configuration parameter for BPF packet filter, attributes defined in
141 * enum qca_wlan_vendor_attr_packet_filter.
142 *
143 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
144 * maximum supported size, attributes defined in
145 * enum qca_wlan_vendor_drv_info.
146 *
147 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
148 * data about wake reasons and datapath IP statistics, attributes defined
149 * in enum qca_wlan_vendor_attr_wake_stats.
150 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700151 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
152 * for IEEE 802.11 communicating outside the context of a basic service
153 * set, called OCB command. Uses the attributes defines in
154 * enum qca_wlan_vendor_attr_ocb_set_config.
155 *
156 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
157 * UTC time. Use the attributes defines in
158 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
159 *
160 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
161 * sending OCB timing advert frames. Uses the attributes defines in
162 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
163 *
164 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
165 * OCB timing advert. Uses the attributes defines in
166 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
167 *
168 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
169 * timer value. Uses the attributes defines in
170 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
171 *
Hai Shalom74f70d42019-02-11 14:42:39 -0800172 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
173 * link properties of the respective interface. As an event, is used
174 * to notify the connected station's status. The attributes for this
175 * command are defined in enum qca_wlan_vendor_attr_link_properties.
176 *
Hai Shalom899fcc72020-10-19 14:38:18 -0700177 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
178 * to the driver. This command sets the band(s) through either the
179 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
180 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
181 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
182 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
183 * bit unsigned bitmask values. The allowed values for
184 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
185 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
186 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
187 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
188 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes
189 * are included for backwards compatibility, the configurations through
190 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
191 * that support both attributes.
192 *
Hai Shalomc3565922019-10-28 11:58:20 -0700193 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
194 * DFS policy and channel hint for ACS operation. This command uses the
195 * attributes defined in enum qca_wlan_vendor_attr_acs_config and
196 * enum qca_acs_dfs_mode.
197 *
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700198 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
199 * start the P2P Listen offload function in device and pass the listen
200 * channel, period, interval, count, device types, and vendor specific
201 * information elements to the device driver and firmware.
202 * Uses the attributes defines in
203 * enum qca_wlan_vendor_attr_p2p_listen_offload.
204 *
205 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
206 * indicate stop request/response of the P2P Listen offload function in
207 * device. As an event, it indicates either the feature stopped after it
208 * was already running or feature has actually failed to start. Uses the
209 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
210 *
211 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
212 * beaconing, this sub command provides the driver, the frequencies on the
213 * 5 GHz band to check for any radar activity. Driver selects one channel
214 * from this priority list provided through
215 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
216 * to check for radar activity on it. If no radar activity is detected
217 * during the channel availability check period, driver internally switches
218 * to the selected frequency of operation. If the frequency is zero, driver
219 * internally selects a channel. The status of this conditional switch is
220 * indicated through an event using the same sub command through
221 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
222 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700223 *
224 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
225 * attributes defined in enum qca_wlan_gpio_attr.
226 *
227 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
228 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
229 * capabilities are to be fetched and other
230 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
231 * requested capabilities.
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700232 *
233 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
234 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
235 * command and event.
236 *
237 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
238 * indoor location features. Capabilities are reported in
239 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
240 *
241 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
242 * (fine timing measurement) session with one or more peers.
243 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
244 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
245 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
246 * events will be reported, followed by
247 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
248 * end of session.
249 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
250 *
251 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
252 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
253 * status code indicating session was aborted.
254 *
255 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
256 * results for one peer. Results are reported in
257 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
258 *
259 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
260 * FTM session is finished, either successfully or aborted by
261 * request.
262 *
263 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
264 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
265 * to enable or disable the responder. LCI/LCR reports can be
266 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
267 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
268 * times to update the LCI/LCR reports.
269 *
270 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
271 * arrival) measurement with a single peer. Specify peer MAC address in
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800272 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
273 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
274 * scan results cache and use the frequency from there).
275 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
276 * Measurement result is reported in
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700277 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
278 *
279 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
280 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
281 *
282 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
283 * the AOA measurement result.
284 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
285 * success/failure status is reported in
286 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
287 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
288 * The antenna array(s) used in the measurement are reported in
289 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700290 *
291 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
292 * data as per the given parameters.
293 *
294 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
295 * specific chain.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800296 *
297 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
298 * configuration for a DMG RF sector. Specify sector index in
299 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
300 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
301 * to return sector information for in
302 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
303 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
304 * exact time where information was captured in
305 * QCA_WLAN_VENDOR_ATTR_TSF.
306 *
307 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
308 * configuration for a DMG RF sector. Specify sector index in
309 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
310 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
311 * for one or more DMG RF modules in
312 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
313 *
314 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
315 * DMG RF sector for a station. This is the sector that the HW
316 * will use to communicate with the station. Specify the MAC address
317 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
318 * needed for unassociated station). Specify sector type to return in
319 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
320 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
321 * Also return the exact time where the information was captured
322 * in QCA_WLAN_VENDOR_ATTR_TSF.
323 *
324 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
325 * selected DMG RF sector for a station. This is the sector that
326 * the HW will use to communicate with the station.
327 * Specify the MAC address of associated station/AP/PCP in
328 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
329 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
330 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
331 * The selected sector will be locked such that it will not be
332 * modified like it normally does (for example when station
333 * moves around). To unlock the selected sector for a station
334 * pass the special value 0xFFFF in the sector index. To unlock
335 * all connected stations also pass a broadcast MAC address.
336 *
337 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
338 * in the host driver. The different TDLS configurations are defined
339 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800340 *
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800341 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
342 * capabilities. The response uses the attributes defined in
343 * enum qca_wlan_vendor_attr_get_he_capabilities.
344 *
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800345 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
346 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
347 * carries the scan cookie of the corresponding scan request. The scan
348 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
Dmitry Shmidt29333592017-01-09 12:27:11 -0800349 *
350 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
351 * Absorption Rate (SAR) power limits. A critical regulation for
352 * FCC compliance, OEMs require methods to set SAR limits on TX
353 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
354 * attributes are used with this command.
Paul Stewart092955c2017-02-06 09:13:09 -0800355 *
356 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
357 * host driver for offloading the implementation of Auto Channel Selection
358 * (ACS) to an external user space entity. This interface is used as the
359 * event from the host driver to the user space entity and also as the
360 * request from the user space entity to the host driver. The event from
361 * the host driver is used by the user space entity as an indication to
362 * start the ACS functionality. The attributes used by this event are
363 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
364 * User space entity uses the same interface to inform the host driver with
365 * selected channels after the ACS operation using the attributes defined
366 * by enum qca_wlan_vendor_attr_external_acs_channels.
367 *
368 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
369 * requisite information leading to a power save failure. The information
370 * carried as part of this event is represented by the
371 * enum qca_attr_chip_power_save_failure attributes.
372 *
373 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
374 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
375 *
376 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
377 * statistics are represented by the enum qca_attr_nud_stats_get
378 * attributes.
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800379 *
380 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
381 * the BSS transition status, whether accept or reject, for a list of
382 * candidate BSSIDs provided by the userspace. This uses the vendor
383 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
384 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
385 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
386 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
387 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
388 * the driver shall specify array of
389 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
390 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
391 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
392 *
393 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
394 * specific QCA module. The trace levels are represented by
395 * enum qca_attr_trace_level attributes.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700396 *
397 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
398 * Protocol antenna limit in different modes. See enum
399 * qca_wlan_vendor_attr_brp_ant_limit_mode.
400 *
401 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
402 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
403 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
Hai Shalom81f62d82019-07-22 12:10:00 -0700404 * identifying the operation in success case. In failure cases an
405 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
406 * describing the reason for the failure is returned.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700407 *
408 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
409 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
410 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
411 * be stopped.
412 *
413 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
414 * specific interface. This can be used to modify some of the low level
415 * scan parameters (off channel dwell time, home channel time) in the
416 * driver/firmware. These parameters are maintained within the host driver.
417 * This command is valid only when the interface is in the connected state.
418 * These scan parameters shall be reset by the driver/firmware once
419 * disconnected. The attributes used with this command are defined in
420 * enum qca_wlan_vendor_attr_active_tos.
421 *
422 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
423 * driver has detected an internal failure. This event carries the
424 * information indicating the reason that triggered this detection. The
425 * attributes for this command are defined in
426 * enum qca_wlan_vendor_attr_hang.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700427 *
428 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
429 * of spectral parameters used. The spectral scan parameters are specified
430 * by enum qca_wlan_vendor_attr_spectral_scan.
431 *
432 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
433 * for spectral scan functionality. The debug stats are specified by
434 * enum qca_wlan_vendor_attr_spectral_diag_stats.
435 *
436 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
437 * scan system capabilities. The capabilities are specified
438 * by enum qca_wlan_vendor_attr_spectral_cap.
439 *
440 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
441 * status of spectral scan. The status values are specified
442 * by enum qca_wlan_vendor_attr_spectral_scan_status.
443 *
444 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
445 * peer pending packets. Specify the peer MAC address in
446 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
447 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
448 * in enum qca_wlan_vendor_attr_flush_pending.
449 *
450 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
451 * RF Operating Parameter (RROP) information. The attributes for this
452 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
453 * intended for use by external Auto Channel Selection applications.
454 *
455 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
456 * (SAR) power limits. This is a companion to the command
457 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
458 * settings currently in use. The attributes returned by this command are
459 * defined by enum qca_vendor_attr_sar_limits.
460 *
461 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
462 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
463 * information attached to the respective MAC.
464 * This works both as a query (user space asks the current mode) or event
465 * interface (driver advertising the current mode to the user space).
466 * Driver does not trigger this event for temporary hardware mode changes.
467 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
468 * channel change, etc.) are updated with this event. Attributes for this
469 * interface are defined in enum qca_wlan_vendor_attr_mac.
470 *
471 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
472 * per peer per TID. Attributes for this command are define in
473 * enum qca_wlan_set_qdepth_thresh_attr.
474 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
475 * guide for WLAN driver. Request to suspend of driver and FW if the
476 * temperature is higher than the suspend threshold; resume action is
477 * requested to driver if the temperature is lower than the resume
478 * threshold. In user poll mode, request temperature data by user. For test
479 * purpose, getting thermal shutdown configuration parameters is needed.
480 * Attributes for this interface are defined in
481 * enum qca_wlan_vendor_attr_thermal_cmd.
482 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
483 * driver. Thermal temperature and indication of resume completion are
484 * reported as thermal events. The attributes for this command are defined
485 * in enum qca_wlan_vendor_attr_thermal_event.
486 *
487 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
488 * test configuration. Attributes for this command are defined in
489 * enum qca_wlan_vendor_attr_wifi_test_config.
490 *
491 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
492 * RX filter to receive frames from stations that are active on the
493 * operating channel, but not associated with the local device (e.g., STAs
494 * associated with other APs). Filtering is done based on a list of BSSIDs
495 * and STA MAC addresses added by the user. This command is also used to
496 * fetch the statistics of unassociated stations. The attributes used with
497 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
Hai Shalomce48b4a2018-09-05 11:41:35 -0700498 *
499 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
500 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
501 * carried a payload which was a binary blob of data. The command was not
502 * extendable to send more information. The newer version carries the
503 * legacy blob encapsulated within an attribute and can be extended with
504 * additional vendor attributes that can enhance the NAN command interface.
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800505 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
506 * or stopped within driver/firmware in order to initiate roaming. The
507 * attributes used with this event are defined in enum
508 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
509 * in few cases, e.g., if the host processor is sleeping when this event
510 * is generated in firmware.
511 *
512 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
513 * configure parameters per peer to capture Channel Frequency Response
514 * (CFR) and enable Periodic CFR capture. The attributes for this command
Hai Shaloma20dcd72022-02-04 13:43:00 -0800515 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
516 * can also be used to send CFR data from the driver to userspace when
517 * netlink events are used to send CFR data.
Hai Shalom74f70d42019-02-11 14:42:39 -0800518 *
519 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
520 * in throughput dynamically. The driver estimates the throughput based on
521 * number of packets being transmitted/received per second and indicates
522 * the changes in throughput to user space. Userspace tools can use this
523 * information to configure kernel's TCP parameters in order to achieve
524 * peak throughput. Optionally, the driver will also send guidance on
525 * modifications to kernel's TCP parameters which can be referred by
526 * userspace tools. The attributes used with this event are defined in enum
527 * qca_wlan_vendor_attr_throughput_change.
528 *
529 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
530 * priorities among different types of traffic during coex scenarios.
531 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
532 * profiles mentioned in enum qca_coex_config_profiles. The associated
533 * attributes used with this command are defined in enum
534 * qca_vendor_attr_coex_config.
535 *
536 * Based on the config provided, FW will boost the weight and prioritize
537 * the traffic for that subsystem (WLAN/BT/Zigbee).
538 *
539 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
540 * the supported AKM suite selectorss from the driver. It returns the list
541 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
Hai Shalom021b0b52019-04-10 11:17:58 -0700542 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
543 * state from the driver. It returns the firmware state in the attribute
544 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
545 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
546 * is used by the driver to flush per-peer cached statistics to user space
547 * application. This interface is used as an event from the driver to
548 * user space application. Attributes for this event are specified in
549 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
550 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
551 * sent in the event.
552 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
553 * improve the success rate of Zigbee joining network.
554 * Due to PTA master limitation, Zigbee joining network success rate is
555 * low while WLAN is working. The WLAN driver needs to configure some
556 * parameters including Zigbee state and specific WLAN periods to enhance
557 * PTA master. All these parameters are delivered by the attributes
558 * defined in enum qca_mpta_helper_vendor_attr.
Hai Shalom81f62d82019-07-22 12:10:00 -0700559 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
560 * implement Beacon frame reporting feature.
561 *
562 * Userspace can request the driver/firmware to periodically report
563 * received Beacon frames whose BSSID is same as the current connected
564 * BSS's MAC address.
565 *
566 * In case the STA seamlessly (without sending disconnect indication to
567 * userspace) roams to a different BSS, Beacon frame reporting will be
568 * automatically enabled for the Beacon frames whose BSSID is same as the
569 * MAC address of the new BSS. Beacon reporting will be stopped when the
570 * STA is disconnected (when the disconnect indication is sent to
571 * userspace) and need to be explicitly enabled by userspace for next
572 * connection.
573 *
574 * When a Beacon frame matching configured conditions is received, and if
575 * userspace has requested to send asynchronous beacon reports, the
576 * driver/firmware will encapsulate the details of the Beacon frame in an
577 * event and send it to userspace along with updating the BSS information
578 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
579 * scan cache with the information from the received Beacon frame but will
580 * not send any active report to userspace.
581 *
582 * The userspace can request the driver/firmware to stop reporting Beacon
583 * frames. If the driver/firmware is not able to receive Beacon frames due
584 * to other Wi-Fi operations such as off-channel activities, etc., the
585 * driver/firmware will send a pause event to userspace and stop reporting
586 * Beacon frames. Whether the beacon reporting will be automatically
587 * resumed or not by the driver/firmware later will be reported to
588 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
589 * flag. The beacon reporting shall be resumed for all the cases except
590 * either when userspace sets
591 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
592 * which triggered the current beacon reporting or during any disconnection
593 * case as indicated by setting
594 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
595 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
596 * driver.
597 *
598 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
599 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
600 * flag not set, the next first
601 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
602 * shall be considered as un-pause event.
603 *
604 * All the attributes used with this command are defined in
605 * enum qca_wlan_vendor_attr_beacon_reporting_params.
606 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
607 * interop issues with the DUT. This sub command is used to transfer the
608 * AP info between the driver and user space. This works both as a command
609 * and an event. As a command, it configures the stored list of APs from
610 * user space to firmware; as an event, it indicates the AP info detected
611 * by the firmware to user space for persistent storage. The attributes
612 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
613 * the parameters.
Hai Shalomc3565922019-10-28 11:58:20 -0700614 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
615 * send/receive OEM data binary blobs to/from application/service to/from
616 * firmware. The attributes defined in enum
617 * qca_wlan_vendor_attr_oem_data_params are used to deliver the
618 * parameters.
619 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
620 * to send/receive avoid frequency data using
621 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
622 * This new command is alternative to existing command
623 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
624 * is using stream of bytes instead of structured data using vendor
Hai Shaloma20dcd72022-02-04 13:43:00 -0800625 * attributes. User space sends unsafe frequency ranges to the driver using
626 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
627 * reception of this command, the driver shall check if an interface is
628 * operating on an unsafe frequency and the driver shall try to move to a
629 * safe channel when needed. If the driver is not able to find a safe
630 * channel the interface can keep operating on an unsafe channel with the
631 * TX power limit derived based on internal configurations like
632 * regulatory/SAR rules.
Hai Shalomc3565922019-10-28 11:58:20 -0700633 *
634 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
635 * add the STA node details in driver/firmware. Attributes for this event
636 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
637 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
638 * coex chain mode from application/service.
639 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
640 * to deliver the parameters.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800641 *
642 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
643 * get information of a station from driver to userspace. This command can
644 * be used in both STA and AP modes. For STA mode, it provides information
645 * of the current association when in connected state or the last
646 * association when in disconnected state. For AP mode, only information
647 * of the currently connected stations is available. This command uses
648 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
Hai Shalomfdcde762020-04-02 11:19:20 -0700649 *
650 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
651 * Host drivers can request the user space entity to set the SAR power
652 * limits with this event. Accordingly, the user space entity is expected
653 * to set the SAR power limits. Host drivers can retry this event to the
654 * user space for the SAR power limits configuration from user space. If
655 * the driver does not get the SAR power limits from user space for all
656 * the retried attempts, it can configure a default SAR power limit.
657 *
658 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
659 * is used to update the information about the station from the driver to
660 * userspace. Uses attributes from enum
661 * qca_wlan_vendor_attr_update_sta_info.
662 *
663 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
664 * The host driver initiates the disconnection for scenarios such as beacon
665 * miss, NUD failure, peer kick out, etc. The disconnection indication
666 * through cfg80211_disconnected() expects the reason codes from enum
667 * ieee80211_reasoncode which does not signify these various reasons why
668 * the driver has triggered the disconnection. This event will be used to
669 * send the driver specific reason codes by the host driver to userspace.
670 * Host drivers should trigger this event and pass the respective reason
671 * code immediately prior to triggering cfg80211_disconnected(). The
672 * attributes used with this event are defined in enum
673 * qca_wlan_vendor_attr_driver_disconnect_reason.
Hai Shalom899fcc72020-10-19 14:38:18 -0700674 *
675 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
676 * add/delete TSPEC for each AC. One command is for one specific AC only.
677 * This command can only be used in STA mode and the STA must be
678 * associated with an AP when the command is issued. Uses attributes
679 * defined in enum qca_wlan_vendor_attr_config_tspec.
680 *
681 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
682 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
683 *
684 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
685 * the driver. The band configurations obtained are referred through
686 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
687 *
688 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
689 * assessment.
690 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
691 *
692 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
693 * used to update SSID information in hostapd when it is updated in the
694 * driver. Uses the attribute NL80211_ATTR_SSID.
695 *
696 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
697 * the driver to send opaque data from the firmware to userspace. The
698 * driver sends an event to userspace whenever such data is received from
699 * the firmware.
700 *
701 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
702 * send this opaque data for this event.
703 *
704 * The format of the opaque data is specific to the particular firmware
705 * version and there is no guarantee of the format remaining same.
706 *
707 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
708 * The host driver selects Tx VDEV, and notifies user. The attributes
709 * used with this event are defined in enum
710 * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800711 * This event contains Tx VDEV group information, other VDEVs
712 * interface index, and status information.
Hai Shalom899fcc72020-10-19 14:38:18 -0700713 *
Sunil8cd6f4d2022-06-28 18:40:46 +0000714 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
715 * configure the concurrent session policies when multiple interfaces
Hai Shaloma20dcd72022-02-04 13:43:00 -0800716 * are (getting) active. The attributes used by this command are defined
Sunil8cd6f4d2022-06-28 18:40:46 +0000717 * in enum qca_wlan_vendor_attr_concurrent_policy.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800718 *
719 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
720 * to query usable channels for different interface types such as STA,
721 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
722 * channels in the response based on country code, different static
723 * configurations, concurrency combinations, etc. The attributes used
724 * with this command are defined in
725 * enum qca_wlan_vendor_attr_usable_channels.
726 *
727 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
728 * to get DFS radar history from the driver to userspace. The driver
729 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
730 * array of nested entries.
731 *
732 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
733 * enable/disable mDNS offload to the firmware. The attributes used with
734 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
735 *
736 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
737 * to set packet monitor mode that aims to send the specified set of TX and
738 * RX frames on the current client interface to an active monitor
739 * interface. If this monitor mode is set, the driver will send the
740 * configured frames, from the interface on which the command is issued, to
741 * an active monitor interface. The attributes used with this command are
742 * defined in enum qca_wlan_vendor_attr_set_monitor_mode.
743 *
744 * Though the monitor mode is configured for the respective
745 * Data/Management/Control frames, it is up to the respective WLAN
746 * driver/firmware/hardware designs to consider the possibility of sending
747 * these frames over the monitor interface. For example, the Control frames
748 * are handled within the hardware and thus passing such frames over the
749 * monitor interface is left to the respective designs.
750 *
751 * Also, this monitor mode is governed to behave accordingly in
752 * suspend/resume states. If the firmware handles any of such frames in
753 * suspend state without waking up the host and if the monitor mode is
754 * configured to notify all such frames, the firmware is expected to resume
755 * the host and forward the respective frames to the monitor interface.
756 * Please note that such a request to get the frames over the monitor
757 * interface will have a definite power implication.
758 *
759 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
760 * as a request to set the driver/firmware with the parameters to trigger
761 * the roaming events, and also used by the driver/firmware to pass on the
762 * various roam events to userspace.
763 * Applicable only for the STA mode. The attributes used with this command
764 * are defined in enum qca_wlan_vendor_attr_roam_events.
765 *
766 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the
767 * rate mask config for a list of PHY types. Userspace shall provide an
768 * array of the vendor attributes defined in
769 * enum qca_wlan_vendor_attr_ratemask_params.
770 *
771 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
772 * when two interfaces are active on the same band, using two different
773 * home channels, and only supported by a single radio. In this scenario
774 * the device must split the use of the radio between the two interfaces.
775 * The percentage of time allocated to a given interface is the quota.
776 * Depending on the configuration, the quota can either be fixed or
777 * dynamic.
778 *
779 * When used as an event, the device will report the quota type, and for
780 * all interfaces operating in MCC it will report the current quota.
781 * When used as a command, the device can be configured for a specific
782 * quota type, and in the case of a fixed quota, the quota to apply to one
783 * of the interfaces.
784 *
785 * Applications can use the event to do TX bitrate control based on the
786 * information, and can use the command to explicitly set the quota to
787 * enhance performance in specific scenarios.
788 *
789 * The attributes used with this command are defined in
790 * enum qca_wlan_vendor_attr_mcc_quota.
Sunil8cd6f4d2022-06-28 18:40:46 +0000791 *
792 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
793 * get the WLAN radio combinations matrix supported by the device which
794 * provides the device simultaneous radio configurations such as
795 * standalone, dual band simultaneous, and single band simultaneous.
796 *
797 * The attributes used with this command are defined in
798 * enum qca_wlan_vendor_attr_radio_combination_matrix.
799 *
800 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space
801 * that the driver is ready for operations again after recovering from
802 * internal failures. This occurs following a failure that was indicated by
803 * @QCA_NL80211_VENDOR_SUBCMD_HANG.
804 *
805 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
806 * security negotiation and key generation to user space.
807 *
808 * When used as an event, the driver requests userspace to trigger the PASN
809 * authentication or dropping of a PTKSA for the indicated peer devices.
810 * When used as a command response, userspace indicates a consolidated
811 * status report for all the peers that were requested for.
812 *
813 * The attributes used with this command are defined in
814 * enum qca_wlan_vendor_attr_pasn.
815 *
816 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
817 * secure ranging context such as TK and LTF keyseed for each peer
818 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
819 *
820 * The attributes used with this command are defined in
821 * enum qca_wlan_vendor_attr_secure_ranging_ctx.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800822 */
823enum qca_nl80211_vendor_subcmds {
824 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
825 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700826 /* subcmds 2..8 not yet allocated */
827 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800828 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700829 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700830 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800831 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800832 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
833 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
834 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
835 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
836 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
837 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
838 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
839 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
840 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
841 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
842 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
843 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
844 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
845 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
846 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
847 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
848 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
849 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
850 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
851 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
852 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
853 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
854 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
855 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
856 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
857 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
858 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
859 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
860 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
861 /* 43..49 - reserved for QCA */
862 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
863 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
864 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700865 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800866 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
867 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800868 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
869 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
870 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
871 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
872 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800873 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
874 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
875 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
876 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
877 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
878 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
879 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
880 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
881 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
882 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
883 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
884 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
885 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700886 /* Wi-Fi configuration subcommands */
887 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
888 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700889 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
890 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
891 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
892 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
893 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
894 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
895 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
896 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
897 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
898 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
899 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -0700900 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700901 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
902 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
903 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
904 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
905 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
906 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
907 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
908 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
909 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -0700910 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700911 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
912 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
913 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
914 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800915 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
916 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
917 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
918 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
919 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800920 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -0700921 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
922 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700923 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -0700924 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
925 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700926 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700927 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
928 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
929 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700930 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
931 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700932 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
933 /* FTM/indoor location subcommands */
934 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
935 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
936 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
937 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
938 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
939 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
940 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
941 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
942 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700943 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
944 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800945 /* DMG low level RF sector operations */
946 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
947 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
948 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
949 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
950 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800951 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800952 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800953 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -0800954 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
955 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
956 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
957 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800958 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
959 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700960 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
961 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
962 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
963 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
964 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700965 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
966 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
967 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
968 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
969 /* Flush peer pending data */
970 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
971 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
972 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
973 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
974 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
975 /* Thermal shutdown commands to protect wifi chip */
976 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
977 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
978 /* Wi-Fi test configuration subcommand */
979 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
980 /* Frame filter operations for other BSSs/unassociated STAs */
981 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700982 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800983 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
984 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -0800985 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
986 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
987 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -0700988 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
989 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
990 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -0700991 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
992 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -0700993 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
994 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
995 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
996 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800997 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -0700998 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
999 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1000 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -07001001 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1002 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1003 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1004 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1005 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1006 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1007 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Sunil8cd6f4d2022-06-28 18:40:46 +00001008 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001009 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1010 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1011 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1012 /* 201 - reserved for QCA */
1013 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1014 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1015 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1016 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
Sunil8cd6f4d2022-06-28 18:40:46 +00001017 /* 206..212 - reserved for QCA */
1018 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1019 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1020 QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1021 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001022};
1023
Sunil8cd6f4d2022-06-28 18:40:46 +00001024/* Compatibility defines for previously used subcmd names.
1025 * These values should not be used in any new implementation.
1026 */
1027#define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1028 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1029
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001030enum qca_wlan_vendor_attr {
1031 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1032 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1033 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001034 /* Used only when driver sends vendor events to the userspace under the
1035 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1036 * commands to the driver.
1037 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001038 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -07001039 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1040 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -07001041 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1042 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001043 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -07001044 * by enum qca_roaming_policy.
1045 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001046 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1047 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001048 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1049 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001050 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001051 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1052 /* Unsigned 32-bit value. */
1053 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1054 /* Unsigned 32-bit value */
1055 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1056 /* Unsigned 32-bit value */
1057 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07001058 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1059 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1060 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1061 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1062 */
Ravi Joshie6ccb162015-07-16 17:45:41 -07001063 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001064 /* Dummy (NOP) attribute for 64 bit padding */
1065 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1066 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
1067 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1068 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1069 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1070 */
1071 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1072 /* Indoor location capabilities, returned by
1073 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1074 * see enum qca_wlan_vendor_attr_loc_capa.
1075 */
1076 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1077 /* Array of nested attributes containing information about each peer
1078 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1079 * for supported attributes for each peer.
1080 */
1081 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1082 /* Array of nested attributes containing measurement results for
1083 * one or more peers, reported by the
1084 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1085 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1086 * attributes.
1087 */
1088 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1089 /* Flag attribute for enabling or disabling responder functionality. */
1090 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1091 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1092 * command to specify the LCI report that will be sent by
1093 * the responder during a measurement exchange. The format is
1094 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1095 */
1096 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1097 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1098 * command to specify the location civic report that will
1099 * be sent by the responder during a measurement exchange.
1100 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1101 */
1102 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1103 /* Session/measurement completion status code,
1104 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1105 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1106 * see enum qca_vendor_attr_loc_session_status.
1107 */
1108 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1109 /* Initial dialog token used by responder (0 if not specified),
1110 * unsigned 8 bit value.
1111 */
1112 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1113 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1114 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1115 * AOA measurements are needed as part of an FTM session.
1116 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1117 * enum qca_wlan_vendor_attr_aoa_type.
1118 */
1119 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1120 /* A bit mask (unsigned 32 bit value) of antenna arrays used
1121 * by indoor location measurements. Refers to the antenna
1122 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1123 */
1124 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1125 /* AOA measurement data. Its contents depends on the AOA measurement
1126 * type and antenna array mask:
1127 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1128 * phase of the strongest CIR path for each antenna in the measured
1129 * array(s).
1130 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1131 * values, phase and amplitude of the strongest CIR path for each
1132 * antenna in the measured array(s).
1133 */
1134 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001135 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1136 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -07001137 * the corresponding antenna RSSI value
1138 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001139 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1140 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001141 * to report the specific antenna RSSI value (unsigned 32 bit value)
1142 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001143 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001144 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1145 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1146 /* TSF timer value, unsigned 64 bit value.
1147 * May be returned by various commands.
1148 */
1149 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1150 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1151 * 0..127 for sector indices or 65535 as special value used to
1152 * unlock sector selection in
1153 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1154 */
1155 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1156 /* DMG RF sector type, unsigned 8 bit value. One of the values
1157 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1158 */
1159 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1160 /* Bitmask of DMG RF modules for which information is requested. Each
1161 * bit corresponds to an RF module with the same index as the bit
1162 * number. Unsigned 32 bit number but only low 8 bits can be set since
1163 * all DMG chips currently have up to 8 RF modules.
1164 */
1165 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1166 /* Array of nested attributes where each entry is DMG RF sector
1167 * configuration for a single RF module.
1168 * Attributes for each entry are taken from enum
1169 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1170 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1171 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1172 */
1173 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1174 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1175 * to report frame aggregation statistics to userspace.
1176 */
1177 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1178 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001179 /* Unsigned 8-bit value representing MBO transition reason code as
1180 * provided by the AP used by subcommand
1181 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1182 * specified by the userspace in the request to the driver.
1183 */
1184 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1185 /* Array of nested attributes, BSSID and status code, used by subcommand
1186 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1187 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1188 * The userspace space specifies the list/array of candidate BSSIDs in
1189 * the order of preference in the request. The driver specifies the
1190 * status code, for each BSSID in the list, in the response. The
1191 * acceptable candidates are listed in the order preferred by the
1192 * driver.
1193 */
1194 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001195 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1196 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1197 */
1198 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1199 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1200 * to define the number of antennas to use for BRP.
1201 * different purpose in each ANT_LIMIT_MODE:
1202 * DISABLE - ignored
1203 * EFFECTIVE - upper limit to number of antennas to be used
1204 * FORCE - exact number of antennas to be used
1205 * unsigned 8 bit value
1206 */
1207 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1208 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001209 * to report the corresponding antenna index to the chain RSSI value
1210 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001211 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001212 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1213 * the specific antenna EVM value (unsigned 32 bit value). With a
1214 * determinate group of antennas, the driver specifies the EVM value
1215 * for each antenna ID, and application extract them in user space.
1216 */
1217 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001218 /*
1219 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1220 * wlan firmware current state. FW state is an unsigned 8 bit value,
1221 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1222 */
1223 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001224
Hai Shalom899fcc72020-10-19 14:38:18 -07001225 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1226 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1227 * of single values from enum qca_set_band are valid. This attribute
1228 * uses bitmask combinations to define the respective allowed band
1229 * combinations and this attributes takes precedence over
1230 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1231 */
1232 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1233
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001234 /* keep last */
1235 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1236 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1237};
1238
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001239enum qca_roaming_policy {
1240 QCA_ROAMING_NOT_ALLOWED,
1241 QCA_ROAMING_ALLOWED_WITHIN_ESS,
1242};
1243
Hai Shalom021b0b52019-04-10 11:17:58 -07001244/**
1245 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1246 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1247 *
1248 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1249 * reasons.
1250 *
1251 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1252 * the configured threshold.
1253 *
1254 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1255 * beacon misses from the then connected AP.
1256 *
1257 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1258 * by the connected AP.
1259 *
1260 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1261 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1262 *
1263 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1264 * or environment being very noisy or congested.
1265 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08001266 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
Hai Shalom021b0b52019-04-10 11:17:58 -07001267 * from the user (user space).
1268 *
1269 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1270 * the connected AP.
1271 *
1272 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1273 * breaching out the configured threshold.
Hai Shaloma20dcd72022-02-04 13:43:00 -08001274 *
1275 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1276 * transition request.
1277 *
1278 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1279 * data activity with the AP and the current RSSI falls below a certain
1280 * threshold.
1281 *
1282 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1283 * Disassociation frames received from the connected AP.
1284 *
1285 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1286 * that happens when there is no candidate AP found during the poor RSSI scan
1287 * trigger.
1288 *
1289 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1290 * obtained from an external scan (not aimed at roaming).
1291 *
1292 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1293 * established when the station is connected in the 2.4 GHz band.
Hai Shalom021b0b52019-04-10 11:17:58 -07001294 */
1295enum qca_roam_reason {
1296 QCA_ROAM_REASON_UNKNOWN,
1297 QCA_ROAM_REASON_PER,
1298 QCA_ROAM_REASON_BEACON_MISS,
1299 QCA_ROAM_REASON_POOR_RSSI,
1300 QCA_ROAM_REASON_BETTER_RSSI,
1301 QCA_ROAM_REASON_CONGESTION,
1302 QCA_ROAM_REASON_USER_TRIGGER,
1303 QCA_ROAM_REASON_BTM,
1304 QCA_ROAM_REASON_BSS_LOAD,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001305 QCA_ROAM_REASON_WTC,
1306 QCA_ROAM_REASON_IDLE,
1307 QCA_ROAM_REASON_DISCONNECTION,
1308 QCA_ROAM_REASON_PERIODIC_TIMER,
1309 QCA_ROAM_REASON_BACKGROUND_SCAN,
1310 QCA_ROAM_REASON_BT_ACTIVITY,
Hai Shalom021b0b52019-04-10 11:17:58 -07001311};
1312
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001313enum qca_wlan_vendor_attr_roam_auth {
1314 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
1315 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1316 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1317 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1318 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1319 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1320 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1321 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001322 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001323 /* Indicates the status of re-association requested by user space for
1324 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1325 * Type u16.
1326 * Represents the status code from AP. Use
1327 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1328 * real status code for failures.
1329 */
1330 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1331 /* This attribute indicates that the old association was maintained when
1332 * a re-association is requested by user space and that re-association
1333 * attempt fails (i.e., cannot connect to the requested BSS, but can
1334 * remain associated with the BSS with which the association was in
1335 * place when being requested to roam). Used along with
1336 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1337 * re-association status. Type flag.
1338 * This attribute is applicable only for re-association failure cases.
1339 */
1340 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1341 /* This attribute specifies the PMK if one was newly generated during
1342 * FILS roaming. This is added to the PMKSA cache and is used in
1343 * subsequent connections with PMKSA caching.
1344 */
1345 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1346 /* This attribute specifies the PMKID used/generated for the current
1347 * FILS roam. This is used in subsequent connections with PMKSA caching.
1348 */
1349 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1350 /* A 16-bit unsigned value specifying the next sequence number to use
1351 * in ERP message in the currently associated realm. This is used in
1352 * doing subsequent ERP based connections in the same realm.
1353 */
1354 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001355 /* A 16-bit unsigned value representing the reasons for the roaming.
1356 * Defined by enum qca_roam_reason.
1357 */
1358 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
1359
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001360 /* keep last */
1361 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1362 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1363 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1364};
1365
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001366enum qca_wlan_vendor_attr_p2p_listen_offload {
1367 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1368 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1369 * of the social channels.
1370 */
1371 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1372 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1373 */
1374 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1375 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1376 */
1377 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1378 /* A 32-bit unsigned value; number of interval times the firmware needs
1379 * to run the offloaded P2P listen operation before it stops.
1380 */
1381 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1382 /* An array of arbitrary binary data with one or more 8-byte values.
1383 * The device types include both primary and secondary device types.
1384 */
1385 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1386 /* An array of unsigned 8-bit characters; vendor information elements.
1387 */
1388 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1389 /* A 32-bit unsigned value; a control flag to indicate whether listen
1390 * results need to be flushed to wpa_supplicant.
1391 */
1392 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1393 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1394 * event.
1395 */
1396 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1397 /* keep last */
1398 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1399 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1400 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1401};
1402
Hai Shalomc3565922019-10-28 11:58:20 -07001403/**
1404 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1405 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1406 *
1407 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1408 * Used with event to notify the primary channel number selected in ACS
1409 * operation.
1410 * Note: If both the driver and user-space application supports the 6 GHz band,
1411 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1412 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1413 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1414 * is still used if either of the driver or user space application doesn't
1415 * support the 6 GHz band.
1416 *
1417 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1418 * Used with event to notify the secondary channel number selected in ACS
1419 * operation.
1420 * Note: If both the driver and user-space application supports the 6 GHz band,
1421 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1422 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1423 * To maintain backward compatibility,
1424 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1425 * the driver or user space application doesn't support 6 GHz band.
1426 *
1427 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1428 * (a) Used with command to configure hw_mode from
1429 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1430 * (b) Also used with event to notify the hw_mode of selected primary channel
1431 * in ACS operation.
1432 *
1433 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1434 * Used with command to configure ACS operation for HT mode.
1435 * Disable (flag attribute not present) - HT disabled and
1436 * Enable (flag attribute present) - HT enabled.
1437 *
1438 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1439 * Used with command to configure ACS operation for HT40 mode.
1440 * Disable (flag attribute not present) - HT40 disabled and
1441 * Enable (flag attribute present) - HT40 enabled.
1442 *
1443 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1444 * Used with command to configure ACS operation for VHT mode.
1445 * Disable (flag attribute not present) - VHT disabled and
1446 * Enable (flag attribute present) - VHT enabled.
1447 *
1448 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1449 * mandatory with event.
1450 * If specified in command path, ACS operation is configured with the given
1451 * channel width (in MHz).
1452 * In event path, specifies the channel width of the primary channel selected.
1453 *
1454 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1455 * Used with command to configure channel list using an array of
1456 * channel numbers (u8).
1457 * Note: If both the driver and user-space application supports the 6 GHz band,
1458 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1459 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1460 *
1461 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1462 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001463 * ACS operation. The value is the index of the channel center frequency for
1464 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1465 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001466 * Note: If both the driver and user-space application supports the 6 GHz band,
1467 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1468 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1469 * To maintain backward compatibility,
1470 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1471 * the driver or user space application doesn't support the 6 GHz band.
1472 *
1473 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1474 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001475 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1476 * The value is the index of the channel center frequency for 160 MHz channels
1477 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1478 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001479 * Note: If both the driver and user-space application supports the 6 GHz band,
1480 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1481 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1482 * To maintain backward compatibility,
1483 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1484 * the driver or user space application doesn't support the 6 GHz band.
1485 *
1486 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1487 * Used with command to configure the channel list using an array of channel
1488 * center frequencies in MHz (u32).
1489 * Note: If both the driver and user-space application supports the 6 GHz band,
1490 * the driver first parses the frequency list and if it fails to get a frequency
1491 * list, parses the channel list specified using
1492 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1493 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1494 *
1495 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1496 * Used with event to notify the primary channel center frequency (MHz) selected
1497 * in ACS operation.
1498 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1499 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1500 *
1501 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1502 * Used with event to notify the secondary channel center frequency (MHz)
1503 * selected in ACS operation.
1504 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1505 * includes this attribute along with
1506 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1507 *
1508 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1509 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1510 * selected in ACS operation.
1511 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1512 * includes this attribute along with
1513 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1514 *
1515 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1516 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1517 * selected in ACS operation.
1518 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1519 * includes this attribute along with
1520 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07001521 *
1522 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1523 * Used with command to notify the driver of EDMG request for ACS
1524 * operation.
1525 *
1526 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1527 * Used with event to notify the EDMG channel number selected in ACS
1528 * operation.
1529 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shaloma20dcd72022-02-04 13:43:00 -08001530 *
1531 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
1532 * Used with event to notify the puncture pattern selected in ACS operation.
1533 * Encoding for this attribute will follow the convention used in the Disabled
1534 * Subchannel Bitmap field of the EHT Operation IE.
1535 *
1536 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
1537 * Used with command to configure ACS operation for EHT mode.
1538 * Disable (flag attribute not present) - EHT disabled and
1539 * Enable (flag attribute present) - EHT enabled.
Sunil8cd6f4d2022-06-28 18:40:46 +00001540 *
1541 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
1542 * Used with command to configure how older scan can be considered for ACS
1543 * scoring. In case scan was performed on a partial set of channels configured
1544 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
1545 * (in ms), scan only the remaining channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001546 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001547enum qca_wlan_vendor_attr_acs_offload {
1548 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07001549 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1550 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1551 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1552 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1553 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1554 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1555 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1556 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1557 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1558 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1559 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1560 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1561 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1562 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1563 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07001564 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1565 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001566 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
1567 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
Sunil8cd6f4d2022-06-28 18:40:46 +00001568 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
Hai Shalomc3565922019-10-28 11:58:20 -07001569
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001570 /* keep last */
1571 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1572 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1573 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1574};
1575
Hai Shalomc3565922019-10-28 11:58:20 -07001576/**
1577 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1578 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1579 *
1580 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1581 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1582 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1583 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1584 * @QCA_ACS_MODE_IEEE80211ANY: all modes
1585 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1586 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001587enum qca_wlan_vendor_acs_hw_mode {
1588 QCA_ACS_MODE_IEEE80211B,
1589 QCA_ACS_MODE_IEEE80211G,
1590 QCA_ACS_MODE_IEEE80211A,
1591 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001592 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07001593 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001594};
1595
1596/**
1597 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1598 *
1599 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1600 * management offload, a mechanism where the station's firmware
1601 * does the exchange with the AP to establish the temporal keys
1602 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001603 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1604 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001605 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07001606 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001607 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1608 * Listen offload; a mechanism where the station's firmware takes care of
1609 * responding to incoming Probe Request frames received from other P2P
1610 * Devices whilst in Listen state, rather than having the user space
1611 * wpa_supplicant do it. Information from received P2P requests are
1612 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001613 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1614 * specific features.
1615 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1616 * features.
1617 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1618 * specific features only. If a Device sets this bit but not the
1619 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1620 * this Device may not support all OCE AP functionalities but can support
1621 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001622 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1623 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07001624 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07001625 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1626 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07001627 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1628 * and applying thermal configuration through
1629 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1630 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1631 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08001632 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1633 * With Adaptive 11r feature, access points advertise the vendor
1634 * specific IEs and MDE but do not include FT AKM in the RSNE.
1635 * The Adaptive 11r supported stations are expected to identify
1636 * such vendor specific IEs and connect to the AP in FT mode though
1637 * the profile is configured in non-FT mode.
1638 * The driver-based SME cases also need to have this support for
1639 * Adaptive 11r to handle the connection and roaming scenarios.
1640 * This flag indicates the support for the same to the user space.
1641 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1642 * concurrent network sessions on different Wi-Fi bands. This feature
1643 * capability is attributed to the hardware's capability to support
1644 * the same (e.g., DBS).
1645 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1646 * responses for the respective TWT operations are asynchronous (separate
1647 * event message) from the driver. If not specified, the responses are
1648 * synchronous (in vendor command reply) to the request. Each TWT
1649 * operation is specifically mentioned (against its respective
1650 * documentation) to support either of these or both modes.
Sunil Ravia04bd252022-05-02 22:54:18 -07001651 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
Sunil8cd6f4d2022-06-28 18:40:46 +00001652 * that the driver requires add/del virtual interface path using the
Sunil Ravia04bd252022-05-02 22:54:18 -07001653 * generic nl80211 commands for NDP interface create/delete and to
1654 * register/unregister the netdev instead of creating/deleting the NDP
1655 * interface using the vendor commands
1656 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
1657 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
Sunil8cd6f4d2022-06-28 18:40:46 +00001658 * (5.12 version onward), interface creation/deletion is not allowed using
1659 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
1660 * during the register/unregister of netdev. Create and delete NDP
1661 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
1662 * commands respectively if the driver advertises this capability set.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001663 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1664 */
1665enum qca_wlan_vendor_features {
1666 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001667 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001668 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001669 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001670 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1671 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
1672 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001673 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Sunil8cd6f4d2022-06-28 18:40:46 +00001674 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07001675 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
1676 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07001677 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08001678 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
1679 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
1680 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07001681 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001682 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1683};
1684
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001685/**
1686 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1687 *
1688 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1689 * the offloaded data.
1690 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1691 * data.
1692 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1693 * indication.
1694 */
1695enum qca_wlan_vendor_attr_data_offload_ind {
1696 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1697 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1698 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1699 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1700
1701 /* keep last */
1702 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1703 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1704 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1705};
Ravi Joshie6ccb162015-07-16 17:45:41 -07001706
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001707/**
1708 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1709 * OCB config
1710 *
1711 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1712 * configuration
1713 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1714 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1715 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1716 * scheduled
1717 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1718 * information
1719 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1720 * active state configuration
1721 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1722 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1723 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1724 * use in the case that a packet is sent without a TX control header
1725 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1726 * last TA received that the local time set by TA is synchronous to other
1727 * communicating OCB STAs.
1728 */
1729enum qca_wlan_vendor_attr_ocb_set_config {
1730 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1731 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1732 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1733 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1734 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1735 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1736 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1737 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1738 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1739 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1740 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1741 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1742 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1743};
1744
1745/**
1746 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1747 * UTC time
1748 *
1749 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1750 * 10 bytes
1751 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1752 * 5 bytes
1753 */
1754enum qca_wlan_vendor_attr_ocb_set_utc_time {
1755 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1756 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1757 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1758 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1759 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1760 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1761};
1762
1763/**
1764 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1765 * to start sending timing advert frames
1766 *
1767 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1768 * on which to send the frames
1769 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1770 * the frame is sent in 5 seconds
1771 */
1772enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1773 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1774 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1775 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1776 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1777 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1778 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1779};
1780
1781/**
1782 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1783 * to stop timing advert
1784 *
1785 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1786 * frequency on which to stop the timing advert
1787 */
1788enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1789 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1790 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1791 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1792 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1793 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1794};
1795
1796/**
1797 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1798 * get TSF timer value
1799 *
1800 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1801 * timer
1802 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1803 */
1804enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1805 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1806 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1807 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1808 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1809 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1810 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1811};
1812
Ravi Joshie6ccb162015-07-16 17:45:41 -07001813enum qca_vendor_attr_get_preferred_freq_list {
1814 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1815 /* A 32-unsigned value; the interface type/mode for which the preferred
1816 * frequency list is requested (see enum qca_iface_type for possible
1817 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1818 * kernel and in the kernel response back to user-space.
1819 */
1820 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1821 /* An array of 32-unsigned values; values are frequency (MHz); sent
1822 * from kernel space to user space.
1823 */
1824 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001825 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1826 * attribute. Each element contains frequency (MHz), weight, and flag
1827 * bit mask indicating how the frequency should be used in P2P
1828 * negotiation; sent from kernel space to user space.
1829 */
1830 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001831 /* keep last */
1832 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1833 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1834 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1835};
1836
1837enum qca_vendor_attr_probable_oper_channel {
1838 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1839 /* 32-bit unsigned value; indicates the connection/iface type likely to
1840 * come on this channel (see enum qca_iface_type).
1841 */
1842 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1843 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1844 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1845 /* keep last */
1846 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1847 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1848 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1849};
1850
1851enum qca_iface_type {
1852 QCA_IFACE_TYPE_STA,
1853 QCA_IFACE_TYPE_AP,
1854 QCA_IFACE_TYPE_P2P_CLIENT,
1855 QCA_IFACE_TYPE_P2P_GO,
1856 QCA_IFACE_TYPE_IBSS,
1857 QCA_IFACE_TYPE_TDLS,
1858};
1859
1860enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07001861 QCA_SETBAND_AUTO = 0,
1862 QCA_SETBAND_5G = BIT(0),
1863 QCA_SETBAND_2G = BIT(1),
1864 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07001865};
1866
Dmitry Shmidt17022322016-04-06 13:28:42 -07001867/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001868 * enum qca_access_policy - Access control policy
1869 *
1870 * Access control policy is applied on the configured IE
1871 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1872 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1873 *
1874 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1875 * the specific configuration (IE) set, i.e., allow all the
1876 * connections which do not match the configuration.
1877 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1878 * the specific configuration (IE) set, i.e., deny all the
1879 * connections which do not match the configuration.
1880 */
1881enum qca_access_policy {
1882 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1883 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1884};
1885
1886/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08001887 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
1888 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
1889 * Specify the TSF command. Possible values are defined in
1890 * &enum qca_tsf_cmd.
1891 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
1892 * This attribute contains TSF timer value. This attribute is only available
1893 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
1894 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
1895 * This attribute contains SOC timer value at TSF capture. This attribute is
1896 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
1897 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
1898 * This attribute is used to provide TSF sync interval and only applicable when
1899 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
1900 * driver will use the default value. Time unit is in milliseconds.
Dmitry Shmidt17022322016-04-06 13:28:42 -07001901 */
1902enum qca_vendor_attr_tsf_cmd {
1903 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1904 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1905 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1906 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001907 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001908 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1909 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1910 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1911};
1912
1913/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08001914 * enum qca_tsf_cmd: TSF driver commands
Dmitry Shmidt17022322016-04-06 13:28:42 -07001915 * @QCA_TSF_CAPTURE: Initiate TSF Capture
1916 * @QCA_TSF_GET: Get TSF capture value
1917 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
Hai Shaloma20dcd72022-02-04 13:43:00 -08001918 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
1919 * will automatically send TSF report to the host. To query
1920 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
1921 * initiated first.
1922 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
1923 * will not automatically send TSF report to the host. If
1924 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
1925 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
1926 * operation needs to be initiated.
1927 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
1928 * fetches TSF and host time mapping from the firmware with interval configured
1929 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
1930 * interval value is not provided the driver will use the default value. The
1931 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
1932 * command.
1933 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
Dmitry Shmidt17022322016-04-06 13:28:42 -07001934 */
1935enum qca_tsf_cmd {
1936 QCA_TSF_CAPTURE,
1937 QCA_TSF_GET,
1938 QCA_TSF_SYNC_GET,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001939 QCA_TSF_AUTO_REPORT_ENABLE,
1940 QCA_TSF_AUTO_REPORT_DISABLE,
1941 QCA_TSF_SYNC_START,
1942 QCA_TSF_SYNC_STOP,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001943};
1944
1945/**
1946 * enum qca_vendor_attr_wisa_cmd
1947 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1948 * WISA setup vendor commands
1949 */
1950enum qca_vendor_attr_wisa_cmd {
1951 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
1952 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
1953 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
1954 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
1955 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
1956};
1957
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001958/* IEEE 802.11 Vendor Specific elements */
1959
1960/**
1961 * enum qca_vendor_element_id - QCA Vendor Specific element types
1962 *
1963 * These values are used to identify QCA Vendor Specific elements. The
1964 * payload of the element starts with the three octet OUI (OUI_QCA) and
1965 * is followed by a single octet type which is defined by this enum.
1966 *
1967 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1968 * This element can be used to specify preference order for supported
1969 * channels. The channels in this list are in preference order (the first
1970 * one has the highest preference) and are described as a pair of
1971 * (global) Operating Class and Channel Number (each one octet) fields.
1972 *
1973 * This extends the standard P2P functionality by providing option to have
1974 * more than one preferred operating channel. When this element is present,
1975 * it replaces the preference indicated in the Operating Channel attribute.
1976 * For supporting other implementations, the Operating Channel attribute is
1977 * expected to be used with the highest preference channel. Similarly, all
1978 * the channels included in this Preferred channel list element are
1979 * expected to be included in the Channel List attribute.
1980 *
1981 * This vendor element may be included in GO Negotiation Request, P2P
1982 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001983 *
1984 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1985 * This element can be used for pre-standard publication testing of HE
1986 * before P802.11ax draft assigns the element ID. The payload of this
1987 * vendor specific element is defined by the latest P802.11ax draft.
1988 * Please note that the draft is still work in progress and this element
1989 * payload is subject to change.
1990 *
1991 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1992 * This element can be used for pre-standard publication testing of HE
1993 * before P802.11ax draft assigns the element ID. The payload of this
1994 * vendor specific element is defined by the latest P802.11ax draft.
1995 * Please note that the draft is still work in progress and this element
1996 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08001997 *
1998 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1999 * element).
2000 * This element can be used for pre-standard publication testing of HE
2001 * before P802.11ax draft assigns the element ID extension. The payload of
2002 * this vendor specific element is defined by the latest P802.11ax draft
2003 * (not including the Element ID Extension field). Please note that the
2004 * draft is still work in progress and this element payload is subject to
2005 * change.
2006 *
2007 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2008 * This element can be used for pre-standard publication testing of HE
2009 * before P802.11ax draft assigns the element ID extension. The payload of
2010 * this vendor specific element is defined by the latest P802.11ax draft
2011 * (not including the Element ID Extension field). Please note that the
2012 * draft is still work in progress and this element payload is subject to
2013 * change.
2014 *
2015 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2016 * This element can be used for pre-standard publication testing of HE
2017 * before P802.11ax draft assigns the element ID extension. The payload of
2018 * this vendor specific element is defined by the latest P802.11ax draft
2019 * (not including the Element ID Extension field). Please note that the
2020 * draft is still work in progress and this element payload is subject to
2021 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07002022 *
2023 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002024 */
2025enum qca_vendor_element_id {
2026 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002027 QCA_VENDOR_ELEM_HE_CAPAB = 1,
2028 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08002029 QCA_VENDOR_ELEM_RAPS = 3,
2030 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2031 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07002032 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002033};
2034
2035/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002036 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2037 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2038 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2039 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2040 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2041 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2042 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2043 */
2044enum qca_wlan_vendor_scan_priority {
2045 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2046 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2047 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2048 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2049 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2050};
2051
2052/**
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002053 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2054 *
2055 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2056 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2057 * with frequencies to be scanned (in MHz)
2058 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2059 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2060 * rates to be included
2061 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07002062 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002063 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2064 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07002065 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002066 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07002067 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002068 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07002069 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002070 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002071 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08002072 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2073 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07002074 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2075 * microseconds. This is a common value which applies across all
2076 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002077 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2078 * other scan requests. It is a u32 attribute and takes values from enum
2079 * qca_wlan_vendor_scan_priority. This is an optional attribute.
2080 * If this attribute is not configured, the driver shall use
2081 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002082 */
2083enum qca_wlan_vendor_attr_scan {
2084 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002085 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2086 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2087 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2088 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2089 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2090 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2091 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2092 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2093 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2094 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2095 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07002096 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002097 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002098 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2099 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2100 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2101};
2102
2103/**
2104 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07002105 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002106 *
2107 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002108 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002109 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2110 */
2111enum scan_status {
2112 VENDOR_SCAN_STATUS_NEW_RESULTS,
2113 VENDOR_SCAN_STATUS_ABORTED,
2114 VENDOR_SCAN_STATUS_MAX,
2115};
2116
2117/**
2118 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2119 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2120 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2121 */
2122enum qca_vendor_attr_ota_test {
2123 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2124 /* 8-bit unsigned value to indicate if OTA test is enabled */
2125 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2126 /* keep last */
2127 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2128 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2129 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2130};
2131
2132/**
2133 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2134 *
2135 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2136 */
2137enum qca_vendor_attr_txpower_scale {
2138 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2139 /* 8-bit unsigned value to indicate the scaling of tx power */
2140 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2141 /* keep last */
2142 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2143 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2144 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2145};
2146
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002147/**
2148 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2149 *
2150 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2151 */
2152enum qca_vendor_attr_txpower_decr_db {
2153 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2154 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002155 * a virtual interface.
2156 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002157 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2158 /* keep last */
2159 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2160 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2161 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2162};
2163
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002164/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002165 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2166 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002167 */
2168enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002169 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002170 /* Unsigned 32-bit value to set the DTIM period.
2171 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2172 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2173 * DTIM beacons.
2174 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002175 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002176 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2177 * used to calculate statistics like average the TSF offset or average
2178 * number of frame leaked.
2179 * For instance, upon Beacon frame reception:
2180 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
2181 * For instance, when evaluating leaky APs:
2182 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
2183 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002184 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002185 /* Unsigned 32-bit value to configure guard time, i.e., when
2186 * implementing IEEE power management based on frame control PM bit, how
2187 * long the driver waits before shutting down the radio and after
2188 * receiving an ACK frame for a Data frame with PM bit set.
2189 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002190 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002191 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002192 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002193 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002194 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002195 /* Unsigned 32-bit value to configure the number of continuous
2196 * Beacon Miss which shall be used by the firmware to penalize
2197 * the RSSI.
2198 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002199 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002200 /* Unsigned 8-bit value to configure the channel avoidance indication
2201 * behavior. Firmware to send only one indication and ignore duplicate
2202 * indications when set to avoid multiple Apps wakeups.
2203 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002204 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002205 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002206 * aggregation.
2207 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002208 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002209 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002210 * aggregation.
2211 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002212 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002213 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002214 * retry threshold (0 disable, 31 max).
2215 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002216 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002217 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002218 * retry threshold (0 disable, 31 max).
2219 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002220 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002221 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002222 * retry threshold (0 disable, 31 max).
2223 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002224 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002225 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002226 * retry threshold (0 disable, 31 max).
2227 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002228 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002229 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002230 * 2G/5G band (0~63, units in us)
2231 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002232 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002233 /* Unsigned 32-bit value to configure the number of unicast TX fail
2234 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07002235 * reached.
2236 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002237 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002238 /* Attribute used to set scan default IEs to the driver.
2239 *
2240 * These IEs can be used by scan operations that will be initiated by
2241 * the driver/firmware.
2242 *
2243 * For further scan requests coming to the driver, these IEs should be
2244 * merged with the IEs received along with scan request coming to the
2245 * driver. If a particular IE is present in the scan default IEs but not
2246 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07002247 * sent in the Probe Request frames for that scan request.
2248 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002249 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002250 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002251 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002252 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002253 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002254 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002255 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002256 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002257 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2258 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002259 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002260 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002261 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2262 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002263 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002264 /* Unsigned 32-bit, defining the access policy.
2265 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002266 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2267 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002268 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002269 /* Sets the list of full set of IEs for which a specific access policy
2270 * has to be applied. Used along with
2271 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002272 * Zero length payload can be used to clear this access constraint.
2273 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002274 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002275 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
2276 * corresponding configurations are applied. If the interface index is
2277 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07002278 * wiphy.
2279 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002280 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002281 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002282 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002283 /* 8-bit unsigned value to configure the driver and below layers to
2284 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07002285 * 1-Ignore, 0-Don't ignore
2286 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002287 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002288 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07002289 * 1-Enable, 0-Disable
2290 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002291 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002292 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002293 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002294 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002295 * 1-Enable, 0-Disable
2296 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002297 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002298 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002299 * the unit is micro-second
2300 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002301 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2302 /* 32-bit unsigned value to set reorder timeout for AC_VO */
2303 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2304 /* 32-bit unsigned value to set reorder timeout for AC_VI */
2305 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2306 /* 32-bit unsigned value to set reorder timeout for AC_BE */
2307 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2308 /* 32-bit unsigned value to set reorder timeout for AC_BK */
2309 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2310 /* 6-byte MAC address to point out the specific peer */
2311 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
2312 /* 32-bit unsigned value to set window size for specific peer */
2313 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002314 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2315 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2316 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2317 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002318 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2319 * station device while in disconnect state. The attribute use the
2320 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2321 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2322 * 10 MHz channel width, the station will not connect to a BSS using 20
2323 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07002324 * clear this constraint.
2325 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002326 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2327 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07002328 * for 2G/5G band (units in us)
2329 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002330 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2331 /* 32-bit unsigned value to set probe period */
2332 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2333 /* 32-bit unsigned value to set stay period */
2334 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2335 /* 32-bit unsigned value to set snr diff */
2336 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2337 /* 32-bit unsigned value to set probe dwell time */
2338 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2339 /* 32-bit unsigned value to set mgmt snr weight */
2340 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2341 /* 32-bit unsigned value to set data snr weight */
2342 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2343 /* 32-bit unsigned value to set ack snr weight */
2344 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2345 /* 32-bit unsigned value to configure the listen interval.
2346 * This is in units of beacon intervals. This configuration alters
2347 * the negotiated listen interval with the AP during the connection.
2348 * It is highly recommended to configure a value less than or equal to
2349 * the one negotiated during the association. Configuring any greater
2350 * value can have adverse effects (frame loss, AP disassociating STA,
2351 * etc.).
2352 */
2353 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2354 /*
2355 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2356 * disable operations that would cause the AP/GO to leave its operating
2357 * channel.
2358 *
2359 * This will restrict the scans to the AP/GO operating channel and the
2360 * channels of the other band, if DBS is supported.A STA/CLI interface
2361 * brought up after this setting is enabled, will be restricted to
2362 * connecting to devices only on the AP/GO interface's operating channel
2363 * or on the other band in DBS case. P2P supported channel list is
2364 * modified, to only include AP interface's operating-channel and the
2365 * channels of the other band if DBS is supported.
2366 *
2367 * These restrictions are only applicable as long as the AP/GO interface
2368 * is alive. If the AP/GO interface is brought down then this
2369 * setting/restriction is forgotten.
2370 *
2371 * If this variable is set on an AP/GO interface while a multi-channel
2372 * concurrent session is active, it has no effect on the operation of
2373 * the current interfaces, other than restricting the scan to the AP/GO
2374 * operating channel and the other band channels if DBS is supported.
2375 * However, if the STA is brought down and restarted then the new STA
2376 * connection will either be formed on the AP/GO channel or on the
2377 * other band in a DBS case. This is because of the scan being
2378 * restricted on these channels as mentioned above.
2379 *
2380 * 1-Restrict / 0-Don't restrict offchannel operations.
2381 */
2382 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2383 /*
2384 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2385 * on an interface.
2386 * 1 - Enable, 0 - Disable.
2387 */
2388 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2389
2390 /*
2391 * 8 bit unsigned value to globally enable/disable scan
2392 * 1 - Enable, 0 - Disable.
2393 */
2394 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2395
2396 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07002397 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002398 */
2399 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2400
2401 /* Unsigned 32-bit value to configure the number of continuous
2402 * Beacon Miss which shall be used by the firmware to penalize
2403 * the RSSI for BTC.
2404 */
2405 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2406
2407 /* 8-bit unsigned value to configure the driver and below layers to
2408 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002409 * 0-enable, 1-disable
2410 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002411 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002412
Roshan Pius3a1667e2018-07-03 15:17:14 -07002413 /* 16-bit unsigned value to configure the level of WLAN latency
2414 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2415 */
2416 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2417
2418 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2419 * the connect interface. Exclusively used for the scenarios where the
2420 * device is used as a test bed device with special functionality and
2421 * not recommended for production. This helps driver to not validate the
2422 * RSNE passed from user space and thus allow arbitrary IE data to be
2423 * used for testing purposes.
2424 * 1-enable, 0-disable.
2425 * Applications set/reset this configuration. If not reset, this
2426 * parameter remains in use until the driver is unloaded.
2427 */
2428 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2429
2430 /* 8-bit unsigned value to trigger green Tx power saving.
2431 * 1-Enable, 0-Disable
2432 */
2433 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2434
Hai Shalomc3565922019-10-28 11:58:20 -07002435 /* Attribute to configure disconnect IEs to the driver.
2436 * This carries an array of unsigned 8-bit characters.
2437 *
2438 * If this is configured, driver shall fill the IEs in disassoc/deauth
2439 * frame.
2440 * These IEs are expected to be considered only for the next
2441 * immediate disconnection (disassoc/deauth frame) originated by
2442 * the DUT, irrespective of the entity (user space/driver/firmware)
2443 * triggering the disconnection.
2444 * The host drivers are not expected to use the IEs set through
2445 * this interface for further disconnections after the first immediate
2446 * disconnection initiated post the configuration.
2447 * If the IEs are also updated through cfg80211 interface (after the
2448 * enhancement to cfg80211_disconnect), host driver is expected to
2449 * take the union of IEs from both of these interfaces and send in
2450 * further disassoc/deauth frames.
2451 */
Hai Shalomfdcde762020-04-02 11:19:20 -07002452 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07002453
2454 /* 8-bit unsigned value for ELNA bypass.
Sunil Ravia04bd252022-05-02 22:54:18 -07002455 * 0 - Disable eLNA bypass.
2456 * 1 - Enable eLNA bypass.
2457 * 2 - Reset eLNA bypass configuration, the driver should
2458 * revert to the default configuration of eLNA bypass.
Hai Shalomc3565922019-10-28 11:58:20 -07002459 */
2460 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2461
Hai Shalomfdcde762020-04-02 11:19:20 -07002462 /* 8-bit unsigned value. This attribute enables/disables the host driver
2463 * to send the Beacon Report Response with failure reason for the
2464 * scenarios where STA cannot honor the Beacon Report Request from AP.
2465 * 1-Enable, 0-Disable.
2466 */
2467 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2468
2469 /* 8-bit unsigned value. This attribute enables/disables the host driver
2470 * to send roam reason information in the Reassociation Request frame to
2471 * the target AP when roaming within the same ESS.
2472 * 1-Enable, 0-Disable.
2473 */
2474 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2475
Hai Shalom899fcc72020-10-19 14:38:18 -07002476 /* 32-bit unsigned value to configure different PHY modes to the
2477 * driver/firmware. The possible values are defined in
2478 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2479 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2480 * the driver.
2481 */
2482 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2483
2484 /* 8-bit unsigned value to configure the maximum supported channel width
2485 * for STA mode. If this value is configured when STA is in connected
2486 * state, it should not exceed the negotiated channel width. If it is
2487 * configured when STA is in disconnected state, the configured value
2488 * will take effect for the next immediate connection.
2489 * Possible values are:
2490 * NL80211_CHAN_WIDTH_20
2491 * NL80211_CHAN_WIDTH_40
2492 * NL80211_CHAN_WIDTH_80
2493 * NL80211_CHAN_WIDTH_80P80
2494 * NL80211_CHAN_WIDTH_160
2495 */
2496 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2497
2498 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2499 * This attribute is only applicable for STA mode. When dynamic
2500 * bandwidth adjustment is disabled, STA will use static channel width
2501 * the value of which is negotiated during connection.
2502 * 1-enable (default), 0-disable
2503 */
2504 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2505
2506 /* 8-bit unsigned value to configure the maximum number of subframes of
2507 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2508 * it is decided by the hardware.
2509 */
2510 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2511
2512 /* 8-bit unsigned value to configure the maximum number of subframes of
2513 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2514 * it is decided by the hardware.
2515 */
2516 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2517
2518 /* 8-bit unsigned value. This attribute is used to dynamically
2519 * enable/disable the LDPC capability of the device. When configured in
2520 * the disconnected state, the updated configuration will be considered
2521 * for the immediately following connection attempt. If this
2522 * configuration is modified while the device is in the connected state,
2523 * the LDPC TX will be updated with this configuration immediately,
2524 * while the LDPC RX configuration update will take place starting from
2525 * the subsequent association attempt.
2526 * 1-Enable, 0-Disable.
2527 */
2528 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2529
2530 /* 8-bit unsigned value. This attribute is used to dynamically
2531 * enable/disable the TX STBC capability of the device. When configured
2532 * in the disconnected state, the updated configuration will be
2533 * considered for the immediately following connection attempt. If the
2534 * connection is formed with TX STBC enabled and if this configuration
2535 * is disabled during that association, the TX will be impacted
2536 * immediately. Further connection attempts will disable TX STBC.
2537 * However, enabling the TX STBC for a connected session with disabled
2538 * capability is not allowed and will fail.
2539 * 1-Enable, 0-Disable.
2540 */
2541 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2542
2543 /* 8-bit unsigned value. This attribute is used to dynamically
2544 * enable/disable the RX STBC capability of the device. When configured
2545 * in the disconnected state, the updated configuration will be
2546 * considered for the immediately following connection attempt. If the
2547 * configuration is modified in the connected state, there will be no
2548 * impact for the current association, but further connection attempts
2549 * will use the updated configuration.
2550 * 1-Enable, 0-Disable.
2551 */
2552 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2553
2554 /* 8-bit unsigned value. This attribute is used to dynamically configure
2555 * the number of spatial streams. When configured in the disconnected
2556 * state, the updated configuration will be considered for the
2557 * immediately following connection attempt. If the NSS is updated after
2558 * the connection, the updated NSS value is notified to the peer using
2559 * the Operating Mode Notification/Spatial Multiplexing Power Save
2560 * frame. The updated NSS value after the connection shall not be
2561 * greater than the one negotiated during the connection. Any such
2562 * higher value configuration shall be returned with a failure.
Hai Shalom60840252021-02-19 19:02:11 -08002563 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2564 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2565 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2566 * configure the asymmetric NSS configuration (such as 1X2).
Hai Shalom899fcc72020-10-19 14:38:18 -07002567 */
2568 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
2569 /* 8-bit unsigned value to trigger Optimized Power Management:
2570 * 1-Enable, 0-Disable
2571 */
2572 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2573
2574 /* 8-bit unsigned value. This attribute takes the QoS/access category
2575 * value represented by the enum qca_wlan_ac_type and expects the driver
2576 * to upgrade the UDP frames to this access category. The value of
2577 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2578 * DSCP value configured in the frame with the intention to only upgrade
2579 * the access category. That said, it is not intended to downgrade the
2580 * access category for the frames.
2581 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2582 * disabled, as BK is of the lowest priority and an upgrade to it does
2583 * not result in any changes for the frames.
2584 */
2585 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2586
2587 /* 8-bit unsigned value. This attribute is used to dynamically configure
2588 * the number of chains to be used for transmitting data. This
2589 * configuration is allowed only when in connected state and will be
2590 * effective until disconnected. The driver rejects this configuration
2591 * if the number of spatial streams being used in the current connection
2592 * cannot be supported by this configuration.
2593 */
2594 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2595 /* 8-bit unsigned value. This attribute is used to dynamically configure
2596 * the number of chains to be used for receiving data. This
2597 * configuration is allowed only when in connected state and will be
2598 * effective until disconnected. The driver rejects this configuration
2599 * if the number of spatial streams being used in the current connection
2600 * cannot be supported by this configuration.
2601 */
2602 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2603
2604 /* 8-bit unsigned value to configure ANI setting type.
2605 * See &enum qca_wlan_ani_setting for possible values.
2606 */
2607 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2608 /* 32-bit signed value to configure ANI level. This is used when
2609 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2610 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2611 * is invalid, the driver will return a failure.
2612 */
2613 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2614
Hai Shalom60840252021-02-19 19:02:11 -08002615 /* 8-bit unsigned value. This attribute is used to dynamically configure
2616 * the number of spatial streams used for transmitting the data. When
2617 * configured in the disconnected state, the configured value will
2618 * be considered for the following connection attempt.
2619 * If the NSS is updated after the connection, the updated NSS value
2620 * is notified to the peer using the Operating Mode Notification/Spatial
2621 * Multiplexing Power Save frame.
2622 * The TX NSS value configured after the connection shall not be greater
2623 * than the value negotiated during the connection. Any such higher
2624 * value configuration shall be treated as invalid configuration by
2625 * the driver. This attribute shall be configured along with
2626 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2627 * configuration (such as 2X2 or 1X1) or the asymmetric
2628 * configuration (such as 1X2).
2629 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2630 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
2631 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
2632 */
2633 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
2634
2635 /* 8-bit unsigned value. This attribute is used to dynamically configure
2636 * the number of spatial streams used for receiving the data. When
2637 * configured in the disconnected state, the configured value will
2638 * be considered for the following connection attempt.
2639 * If the NSS is updated after the connection, the updated NSS value
2640 * is notified to the peer using the Operating Mode Notification/Spatial
2641 * Multiplexing Power Save frame.
2642 * The RX NSS value configured after the connection shall not be greater
2643 * than the value negotiated during the connection. Any such higher
2644 * value configuration shall be treated as invalid configuration by
2645 * the driver. This attribute shall be configured along with
2646 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
2647 * configuration (such as 2X2 or 1X1) or the asymmetric
2648 * configuration (such as 1X2).
2649 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2650 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
2651 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
2652 */
2653 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
2654
Hai Shaloma20dcd72022-02-04 13:43:00 -08002655 /*
2656 * 8-bit unsigned value. This attribute, when set, indicates whether the
2657 * specified interface is the primary STA interface when there are more
2658 * than one STA interfaces concurrently active.
2659 *
2660 * This configuration helps the firmware/hardware to support certain
2661 * features (e.g., roaming) on this primary interface, if the same
2662 * cannot be supported on the concurrent STA interfaces simultaneously.
2663 *
2664 * This configuration is only applicable for a single STA interface on
2665 * a device and gives the priority for it only over other concurrent STA
2666 * interfaces.
2667 *
2668 * If the device is a multi wiphy/soc, this configuration applies to a
2669 * single STA interface across the wiphys.
2670 *
2671 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
2672 */
2673 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
2674
2675 /*
2676 * 8-bit unsigned value. This attribute can be used to configure the
2677 * driver to enable/disable FT-over-DS feature. Possible values for
2678 * this attribute are 1-Enable and 0-Disable.
2679 */
2680 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
2681
2682 /*
2683 * 8-bit unsigned value. This attribute can be used to configure the
2684 * firmware to enable/disable ARP/NS offload feature. Possible values
2685 * for this attribute are 0-Disable and 1-Enable.
2686 *
2687 * This attribute is only applicable for STA/P2P-Client interface,
2688 * and is optional, default behavior is ARP/NS offload enabled.
2689 *
2690 * This attribute can be set in disconnected and connected state, and
2691 * will restore to the default behavior if the interface is closed.
2692 */
2693 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
2694
Sunil8cd6f4d2022-06-28 18:40:46 +00002695 /*
2696 * 8-bit unsigned value. This attribute can be used to configure the
2697 * data path mode to be followed for audio traffic. Possible values
2698 * are defined in enum qca_wlan_audio_data_path.
2699 */
2700 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
2701
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002702 /* keep last */
2703 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
2704 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
2705 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
2706};
2707
Hai Shalomfdcde762020-04-02 11:19:20 -07002708/* Compatibility defines for previously used incorrect enum
2709 * qca_wlan_vendor_attr_config names. These values should not be used in any
2710 * new implementation. */
2711#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
2712 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
2713#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
2714 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
2715
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002716/**
Hai Shalom899fcc72020-10-19 14:38:18 -07002717 * enum qca_wlan_ani_setting - ANI setting type
2718 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
2719 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
2720 */
2721enum qca_wlan_ani_setting {
2722 QCA_WLAN_ANI_SETTING_AUTO = 0,
2723 QCA_WLAN_ANI_SETTING_FIXED = 1,
2724};
2725
2726/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002727 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07002728 *
2729 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
2730 * Channel number on which Access Point should restart.
2731 * Note: If both the driver and user space application supports the 6 GHz band,
2732 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
2733 * should be used.
2734 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
2735 * is still used if either of the driver or user space application doesn't
2736 * support the 6 GHz band.
2737 *
2738 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
2739 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002740 */
2741enum qca_wlan_vendor_attr_sap_config {
2742 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002743 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
2744
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002745 /* List of frequencies on which AP is expected to operate.
2746 * This is irrespective of ACS configuration. This list is a priority
2747 * based one and is looked for before the AP is created to ensure the
2748 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
2749 * the system.
2750 */
2751 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07002752 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002753
2754 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
2755 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
2756 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
2757};
2758
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002759/**
2760 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
2761 * conditional channel switch
2762 */
2763enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
2764 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
2765 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07002766 * order)
2767 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002768 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
2769 /* Status of the conditional switch (u32).
2770 * 0: Success, Non-zero: Failure
2771 */
2772 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
2773
2774 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
2775 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
2776 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
2777};
2778
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002779/**
2780 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07002781 *
2782 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
2783 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
2784 * for the available values.
2785 *
2786 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
2787 * value to specify the GPIO number.
2788 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2789 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
2790 *
2791 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
2792 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
2793 * for the available values.
2794 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2795 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
2796 *
Hai Shalom60840252021-02-19 19:02:11 -08002797 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002798 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
2799 * for the available values.
2800 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002801 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2802 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2803 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2804 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07002805 *
Hai Shalom60840252021-02-19 19:02:11 -08002806 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002807 * value to specify the GPIO interrupt mode. Please refer to enum
2808 * qca_gpio_interrupt_mode for the available values.
2809 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002810 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2811 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2812 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2813 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07002814 *
Hai Shalom60840252021-02-19 19:02:11 -08002815 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002816 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
2817 * for the available values.
2818 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002819 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2820 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2821 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2822 * attribute is present.
2823 *
2824 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
2825 * Value to specify the mux config. Meaning of a given value is dependent
2826 * on the target chipset and GPIO pin. Must be of the range 0-15.
2827 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2828 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
2829 *
2830 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
2831 * Value to specify the drive, refer to enum qca_gpio_drive.
2832 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2833 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
2834 *
2835 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
2836 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2837 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
2838 * other parameters for the given GPIO will be obtained from internal
2839 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
2840 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002841 */
2842enum qca_wlan_gpio_attr {
2843 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
2844 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07002845 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002846 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07002847 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002848 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07002849 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002850 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07002851 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002852 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07002853 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
2854 /* Unsigned 32-bit attribute for GPIO direction to configure */
2855 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08002856 /* Unsigned 32-bit attribute for GPIO mux config */
2857 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
2858 /* Unsigned 32-bit attribute for GPIO drive */
2859 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
2860 /* Flag attribute for using internal GPIO configuration */
2861 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002862
2863 /* keep last */
2864 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
2865 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
2866 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
2867};
2868
2869/**
Hai Shalom899fcc72020-10-19 14:38:18 -07002870 * enum gpio_cmd_type - GPIO configuration command type
2871 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
2872 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
2873 */
2874enum qca_gpio_cmd_type {
2875 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
2876 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
2877};
2878
2879/**
2880 * enum qca_gpio_pull_type - GPIO pull type
2881 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
2882 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
2883 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
2884 */
2885enum qca_gpio_pull_type {
2886 QCA_WLAN_GPIO_PULL_NONE = 0,
2887 QCA_WLAN_GPIO_PULL_UP = 1,
2888 QCA_WLAN_GPIO_PULL_DOWN = 2,
2889 QCA_WLAN_GPIO_PULL_MAX,
2890};
2891
2892/**
2893 * enum qca_gpio_direction - GPIO direction
2894 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
2895 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
2896 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
2897 */
2898enum qca_gpio_direction {
2899 QCA_WLAN_GPIO_INPUT = 0,
2900 QCA_WLAN_GPIO_OUTPUT = 1,
2901 QCA_WLAN_GPIO_DIR_MAX,
2902};
2903
2904/**
2905 * enum qca_gpio_value - GPIO Value
2906 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
2907 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
2908 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
2909 */
2910enum qca_gpio_value {
2911 QCA_WLAN_GPIO_LEVEL_LOW = 0,
2912 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
2913 QCA_WLAN_GPIO_LEVEL_MAX,
2914};
2915
2916/**
2917 * enum gpio_interrupt_mode - GPIO interrupt mode
2918 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
2919 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
2920 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
2921 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
2922 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
2923 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
2924 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
2925 */
2926enum qca_gpio_interrupt_mode {
2927 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
2928 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
2929 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
2930 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
2931 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
2932 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
2933 QCA_WLAN_GPIO_INTMODE_MAX,
2934};
2935
2936/**
Hai Shalom60840252021-02-19 19:02:11 -08002937 * enum qca_gpio_drive - GPIO drive
2938 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
2939 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
2940 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
2941 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
2942 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
2943 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
2944 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
2945 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
2946 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
2947 */
2948enum qca_gpio_drive {
2949 QCA_WLAN_GPIO_DRIVE_2MA = 0,
2950 QCA_WLAN_GPIO_DRIVE_4MA = 1,
2951 QCA_WLAN_GPIO_DRIVE_6MA = 2,
2952 QCA_WLAN_GPIO_DRIVE_8MA = 3,
2953 QCA_WLAN_GPIO_DRIVE_10MA = 4,
2954 QCA_WLAN_GPIO_DRIVE_12MA = 5,
2955 QCA_WLAN_GPIO_DRIVE_14MA = 6,
2956 QCA_WLAN_GPIO_DRIVE_16MA = 7,
2957 QCA_WLAN_GPIO_DRIVE_MAX,
2958};
2959
2960/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07002961 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
2962 * MSDUQ depth threshold per peer per tid in the target
2963 *
2964 * Associated Vendor Command:
2965 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
2966 */
2967enum qca_wlan_set_qdepth_thresh_attr {
2968 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
2969 /* 6-byte MAC address */
2970 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
2971 /* Unsigned 32-bit attribute for holding the TID */
2972 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
2973 /* Unsigned 32-bit attribute for holding the update mask
2974 * bit 0 - Update high priority msdu qdepth threshold
2975 * bit 1 - Update low priority msdu qdepth threshold
2976 * bit 2 - Update UDP msdu qdepth threshold
2977 * bit 3 - Update Non UDP msdu qdepth threshold
2978 * rest of bits are reserved
2979 */
2980 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
2981 /* Unsigned 32-bit attribute for holding the threshold value */
2982 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
2983
2984 /* keep last */
2985 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
2986 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
2987 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
2988};
2989
2990/**
Hai Shalomc3565922019-10-28 11:58:20 -07002991 * enum qca_acs_dfs_mode - Defines different types of DFS channel
2992 * configurations for ACS operation.
2993 *
2994 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
2995 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
2996 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
2997 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
2998 */
2999enum qca_acs_dfs_mode {
3000 QCA_ACS_DFS_MODE_NONE = 0,
3001 QCA_ACS_DFS_MODE_ENABLE = 1,
3002 QCA_ACS_DFS_MODE_DISABLE = 2,
3003 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
3004};
3005
3006/**
3007 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
3008 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
3009 *
3010 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
3011 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
3012 *
3013 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
3014 * channel number hint for ACS operation, if valid channel is specified then
3015 * ACS operation gives priority to this channel.
3016 * Note: If both the driver and user space application supports the 6 GHz band,
3017 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
3018 * should be used.
3019 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
3020 * is still used if either of the driver or user space application doesn't
3021 * support the 6 GHz band.
3022 *
3023 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
3024 * Channel center frequency (MHz) hint for ACS operation, if a valid center
3025 * frequency is specified, ACS operation gives priority to this channel.
3026 */
3027enum qca_wlan_vendor_attr_acs_config {
3028 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
3029 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
3030 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
3031 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
3032
3033 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
3034 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
3035 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
3036};
3037
3038/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003039 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
3040 */
3041enum qca_wlan_vendor_attr_get_hw_capability {
3042 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
3043 /* Antenna isolation
3044 * An attribute used in the response.
3045 * The content of this attribute is encoded in a byte array. Each byte
3046 * value is an antenna isolation value. The array length is the number
3047 * of antennas.
3048 */
3049 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
3050 /* Request HW capability
3051 * An attribute used in the request.
3052 * The content of this attribute is a u32 array for one or more of
3053 * hardware capabilities (attribute IDs) that are being requested. Each
3054 * u32 value has a value from this
3055 * enum qca_wlan_vendor_attr_get_hw_capability
3056 * identifying which capabilities are requested.
3057 */
3058 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
3059
3060 /* keep last */
3061 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
3062 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
3063 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
3064};
3065
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003066/**
3067 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
3068 * offload which is an extension for LL_STATS.
3069 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
3070 * If MAC counters do not exceed the threshold, FW will report monitored
3071 * link layer counters periodically as this setting. The first report is
3072 * always triggered by this timer.
3073 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
3074 * For each MAC layer counter, FW holds two copies. One is the current value.
3075 * The other is the last report. Once a current counter's increment is larger
3076 * than the threshold, FW will indicate that counter to host even if the
3077 * monitoring timer does not expire.
3078 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
3079 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
3080 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
3081 * failure code.
3082 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
3083 * 1: TX packet discarded
3084 * 2: No ACK
3085 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003086 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
3087 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
3088 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
3089 * Threshold for all monitored parameters. If per counter dedicated threshold
3090 * is not enabled, this threshold will take effect.
3091 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
3092 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
3093 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
3094 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
3095 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
3096 * Bit0: TX counter unit in MSDU
3097 * Bit1: TX counter unit in MPDU
3098 * Bit2: TX counter unit in PPDU
3099 * Bit3: TX counter unit in byte
3100 * Bit4: Dropped MSDUs
3101 * Bit5: Dropped Bytes
3102 * Bit6: MPDU retry counter
3103 * Bit7: MPDU failure counter
3104 * Bit8: PPDU failure counter
3105 * Bit9: MPDU aggregation counter
3106 * Bit10: MCS counter for ACKed MPDUs
3107 * Bit11: MCS counter for Failed MPDUs
3108 * Bit12: TX Delay counter
3109 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
3110 * Bit0: MAC RX counter unit in MPDU
3111 * Bit1: MAC RX counter unit in byte
3112 * Bit2: PHY RX counter unit in PPDU
3113 * Bit3: PHY RX counter unit in byte
3114 * Bit4: Disorder counter
3115 * Bit5: Retry counter
3116 * Bit6: Duplication counter
3117 * Bit7: Discard counter
3118 * Bit8: MPDU aggregation size counter
3119 * Bit9: MCS counter
3120 * Bit10: Peer STA power state change (wake to sleep) counter
3121 * Bit11: Peer STA power save counter, total time in PS mode
3122 * Bit12: Probe request counter
3123 * Bit13: Other management frames counter
3124 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
3125 * Bit0: Idle time
3126 * Bit1: TX time
3127 * Bit2: time RX in current bss
3128 * Bit3: Out of current bss time
3129 * Bit4: Wireless medium busy time
3130 * Bit5: RX in bad condition time
3131 * Bit6: TX in bad condition time
3132 * Bit7: time wlan card not available
3133 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
3134 * Bit0: Per channel SNR counter
3135 * Bit1: Per channel noise floor counter
3136 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
3137 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
3138 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
3139 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
3140 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
3141 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
3142 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
3143 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
3144 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
3145 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
3146 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
3147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
3148 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
3149 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
3150 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
3151 * aggregation stats buffer length
3152 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
3153 * buffer for ACKed MPDUs.
3154 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
3155 * buffer for failed MPDUs.
3156 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
3157 * length of delay stats array.
3158 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
3159 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
3160 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
3161 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
3162 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
3163 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
3164 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
3165 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
3166 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
3167 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
3168 * flagged as retransmissions
3169 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
3170 * flagged as duplicated
3171 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
3172 * packets discarded
3173 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
3174 * stats buffer.
3175 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
3176 * stats buffer.
3177 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
3178 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
3179 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
3180 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
3181 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
3182 * requests received
3183 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
3184 * frames received
3185 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
3186 * there is no TX, nor RX, nor interference.
3187 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
3188 * transmitting packets.
3189 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
3190 * for receiving.
3191 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
3192 * interference detected.
3193 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
3194 * receiving packets with errors.
3195 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
3196 * TX no-ACK.
3197 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
3198 * the chip is unable to work in normal conditions.
3199 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
3200 * receiving packets in current BSS.
3201 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
3202 * receiving packets not in current BSS.
3203 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
3204 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
3205 * This is a container for per antenna signal stats.
3206 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
3207 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
3208 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
3209 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07003210 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
3211 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
3212 * message, user layer APP could call gettimeofday to get another
3213 * timestamp and calculate transfer delay for the message.
3214 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
3215 * Real period for this measurement, unit in us.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003216 */
3217enum qca_wlan_vendor_attr_ll_stats_ext {
3218 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
3219
3220 /* Attributes for configurations */
3221 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
3222 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
3223
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003224 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003225 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
3226
3227 /* TX failure event */
3228 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
3229 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
3230 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
3231
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003232 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
3233 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
3234
3235 /* MAC counters */
3236 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
3237 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
3238 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
3239 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
3240 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
3241 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
3242 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
3243 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
3244 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
3245 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
3246 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
3247 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
3248
3249 /* Sub-attributes for PEER_AC_TX */
3250 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
3251 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
3252 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
3253 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
3254 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
3255 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
3256 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
3257 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
3258 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
3259 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
3260 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
3261 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
3262 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
3263 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
3264 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
3265 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
3266 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
3267
3268 /* Sub-attributes for PEER_AC_RX */
3269 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
3270 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
3271 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
3272 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
3273 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
3274 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
3275 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
3276 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
3277 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
3278 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
3279 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
3280 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
3281 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
3282 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
3283 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
3284 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
3285
3286 /* Sub-attributes for CCA_BSS */
3287 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
3288 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
3289 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
3290 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
3291 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
3292 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
3293 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
3294
3295 /* sub-attribute for BSS_RX_TIME */
3296 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
3297 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
3298
3299 /* Sub-attributes for PEER_SIGNAL */
3300 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
3301 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
3302 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
3303 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
3304
3305 /* Sub-attributes for IFACE_BSS */
3306 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
3307 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
3308
Roshan Pius3a1667e2018-07-03 15:17:14 -07003309 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
3310 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
3311
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003312 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
3313 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
3314 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
3315};
3316
3317/* Attributes for FTM commands and events */
3318
3319/**
3320 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
3321 *
3322 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
3323 * enum qca_wlan_vendor_attr_loc_capa_flags.
3324 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
3325 * of measurement sessions that can run concurrently.
3326 * Default is one session (no session concurrency).
3327 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
3328 * peers that are supported in running sessions. For example,
3329 * if the value is 8 and maximum number of sessions is 2, you can
3330 * have one session with 8 unique peers, or 2 sessions with 4 unique
3331 * peers each, and so on.
3332 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
3333 * of bursts per peer, as an exponent (2^value). Default is 0,
3334 * meaning no multi-burst support.
3335 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
3336 * of measurement exchanges allowed in a single burst.
3337 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
3338 * types. A bit mask (unsigned 32 bit value), each bit corresponds
3339 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
3340 */
3341enum qca_wlan_vendor_attr_loc_capa {
3342 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
3343 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
3344 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
3345 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
3346 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
3347 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
3348 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
3349 /* keep last */
3350 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
3351 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
3352 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
3353};
3354
3355/**
3356 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
3357 *
3358 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
3359 * can be configured as an FTM responder (for example, an AP that
3360 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
3361 * will be supported if set.
3362 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
3363 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
3364 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003365 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003366 * supports immediate (ASAP) response.
3367 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
3368 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
3369 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
3370 * requesting AOA measurements as part of an FTM session.
3371 */
3372enum qca_wlan_vendor_attr_loc_capa_flags {
3373 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
3374 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
3375 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
3376 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
3377 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
3378};
3379
3380/**
3381 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
3382 * a single peer in a measurement session.
3383 *
3384 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
3385 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
3386 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003387 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003388 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
3389 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
3390 * list of supported attributes.
3391 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
3392 * secure measurement.
3393 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
3394 * measurement every <value> bursts. If 0 or not specified,
3395 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003396 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
3397 * the measurement frames are exchanged. Optional; if not
3398 * specified, try to locate the peer in the kernel scan
3399 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003400 */
3401enum qca_wlan_vendor_attr_ftm_peer_info {
3402 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
3403 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
3404 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003405 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003406 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
3407 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003408 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003409 /* keep last */
3410 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
3411 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
3412 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
3413};
3414
3415/**
3416 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
3417 * per-peer
3418 *
3419 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
3420 * immediate (ASAP) response from peer.
3421 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
3422 * LCI report from peer. The LCI report includes the absolute
3423 * location of the peer in "official" coordinates (similar to GPS).
3424 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
3425 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
3426 * Location civic report from peer. The LCR includes the location
3427 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
3428 * 11.24.6.7 for more information.
3429 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
3430 * request a secure measurement.
3431 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
3432 */
3433enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
3434 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
3435 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
3436 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
3437 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
3438};
3439
3440/**
3441 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
3442 *
3443 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
3444 * to perform in a single burst.
3445 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
3446 * perform, specified as an exponent (2^value).
3447 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
3448 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
3449 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
3450 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
3451 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
3452 */
3453enum qca_wlan_vendor_attr_ftm_meas_param {
3454 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
3455 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
3456 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
3457 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
3458 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
3459 /* keep last */
3460 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
3461 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
3462 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
3463};
3464
3465/**
3466 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
3467 *
3468 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
3469 * peer.
3470 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
3471 * request for this peer.
3472 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
3473 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
3474 * to measurement results for this peer.
3475 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
3476 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
3477 * request failed and peer requested not to send an additional request
3478 * for this number of seconds.
3479 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
3480 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3481 * 9.4.2.22.10.
3482 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
3483 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3484 * 9.4.2.22.13.
3485 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
3486 * overridden some measurement request parameters. See
3487 * enum qca_wlan_vendor_attr_ftm_meas_param.
3488 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
3489 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
3490 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
3491 * results. Each entry is a nested attribute defined
3492 * by enum qca_wlan_vendor_attr_ftm_meas.
3493 */
3494enum qca_wlan_vendor_attr_ftm_peer_result {
3495 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
3496 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
3497 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
3498 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
3499 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
3500 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
3501 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
3502 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
3503 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
3504 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
3505 /* keep last */
3506 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
3507 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
3508 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
3509};
3510
3511/**
3512 * enum qca_wlan_vendor_attr_ftm_peer_result_status
3513 *
3514 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
3515 * will be provided. Peer may have overridden some measurement parameters,
3516 * in which case overridden parameters will be report by
3517 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
3518 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
3519 * of performing the measurement request. No more results will be sent
3520 * for this peer in this session.
3521 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
3522 * failed, and requested not to send an additional request for number
3523 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
3524 * attribute.
3525 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
3526 * failed. Request was not sent over the air.
3527 */
3528enum qca_wlan_vendor_attr_ftm_peer_result_status {
3529 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
3530 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
3531 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
3532 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
3533};
3534
3535/**
3536 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
3537 * for measurement result, per-peer
3538 *
3539 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
3540 * measurement completed for this peer. No more results will be reported
3541 * for this peer in this session.
3542 */
3543enum qca_wlan_vendor_attr_ftm_peer_result_flags {
3544 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
3545};
3546
3547/**
3548 * enum qca_vendor_attr_loc_session_status: Session completion status code
3549 *
3550 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
3551 * successfully.
3552 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
3553 * by request.
3554 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
3555 * was invalid and was not started.
3556 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
3557 * and did not complete normally (for example out of resources).
3558 */
3559enum qca_vendor_attr_loc_session_status {
3560 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
3561 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
3562 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
3563 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
3564};
3565
3566/**
3567 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
3568 *
3569 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
3570 * recorded by responder, in picoseconds.
3571 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3572 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
3573 * initiator, in picoseconds.
3574 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3575 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
3576 * initiator, in picoseconds.
3577 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3578 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
3579 * responder, in picoseconds.
3580 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3581 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
3582 * during this measurement exchange. Optional and will be provided if
3583 * the hardware can measure it.
3584 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
3585 * responder. Not always provided.
3586 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3587 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
3588 * responder. Not always provided.
3589 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3590 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
3591 * initiator. Not always provided.
3592 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3593 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
3594 * initiator. Not always provided.
3595 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3596 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
3597 */
3598enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003599 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003600 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
3601 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
3602 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
3603 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
3604 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
3605 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
3606 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
3607 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
3608 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
3609 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
3610 /* keep last */
3611 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
3612 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
3613 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
3614};
3615
3616/**
3617 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
3618 *
3619 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
3620 * CIR (channel impulse response) path for each antenna.
3621 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
3622 * of the strongest CIR path for each antenna.
3623 */
3624enum qca_wlan_vendor_attr_aoa_type {
3625 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
3626 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
3627 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
3628};
3629
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003630/**
3631 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
3632 * validate encryption engine
3633 *
3634 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
3635 * This will be included if the request is for decryption; if not included,
3636 * the request is treated as a request for encryption by default.
3637 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
3638 * indicating the key cipher suite. Takes same values as
3639 * NL80211_ATTR_KEY_CIPHER.
3640 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
3641 * Key Id to be used for encryption
3642 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
3643 * Key (TK) to be used for encryption/decryption
3644 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
3645 * Packet number to be specified for encryption/decryption
3646 * 6 bytes for TKIP/CCMP/GCMP.
3647 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
3648 * representing the 802.11 packet (header + payload + FCS) that
3649 * needs to be encrypted/decrypted.
3650 * Encrypted/decrypted response from the driver will also be sent
3651 * to userspace with the same attribute.
3652 */
3653enum qca_wlan_vendor_attr_encryption_test {
3654 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
3655 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
3656 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
3657 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
3658 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
3659 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
3660 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
3661
3662 /* keep last */
3663 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
3664 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
3665 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
3666};
3667
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003668/**
3669 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
3670 * sector for DMG RF sector operations.
3671 *
3672 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
3673 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
3674 */
3675enum qca_wlan_vendor_attr_dmg_rf_sector_type {
3676 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
3677 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
3678 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
3679};
3680
3681/**
Hai Shalom021b0b52019-04-10 11:17:58 -07003682 * enum qca_wlan_vendor_attr_fw_state - State of firmware
3683 *
3684 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
3685 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
3686 */
3687enum qca_wlan_vendor_attr_fw_state {
3688 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
3689 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
3690 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
3691};
3692
3693/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003694 * BRP antenna limit mode
3695 *
3696 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
3697 * antenna limit, BRP will be performed as usual.
3698 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
3699 * antennas limit. the hardware may use less antennas than the
3700 * maximum limit.
3701 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
3702 * use exactly the specified number of antennas for BRP.
3703 */
3704enum qca_wlan_vendor_attr_brp_ant_limit_mode {
3705 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
3706 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
3707 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
3708 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
3709};
3710
3711/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003712 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
3713 * DMG RF sector configuration for a single RF module.
3714 * The values are defined in a compact way which closely matches
3715 * the way it is stored in HW registers.
3716 * The configuration provides values for 32 antennas and 8 distribution
3717 * amplifiers, and together describes the characteristics of the RF
3718 * sector - such as a beam in some direction with some gain.
3719 *
3720 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
3721 * of RF module for this configuration.
3722 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
3723 * amplifier gain index. Unsigned 32 bit number containing
3724 * bits for all 32 antennas.
3725 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
3726 * amplifier gain index. Unsigned 32 bit number containing
3727 * bits for all 32 antennas.
3728 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
3729 * amplifier gain index. Unsigned 32 bit number containing
3730 * bits for all 32 antennas.
3731 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
3732 * for first 16 antennas, 2 bits per antenna.
3733 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
3734 * for last 16 antennas, 2 bits per antenna.
3735 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
3736 * DTYPE values (3 bits) for each distribution amplifier, followed
3737 * by X16 switch bits for each distribution amplifier. There are
3738 * total of 8 distribution amplifiers.
3739 */
3740enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
3741 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
3742 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
3743 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
3744 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
3745 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
3746 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
3747 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
3748 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
3749
3750 /* keep last */
3751 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
3752 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
3753 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
3754};
3755
3756enum qca_wlan_vendor_attr_ll_stats_set {
3757 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
3758 /* Unsigned 32-bit value */
3759 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
3760 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
3761 /* keep last */
3762 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
3763 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
3764 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
3765};
3766
3767enum qca_wlan_vendor_attr_ll_stats_clr {
3768 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
3769 /* Unsigned 32bit bitmap for clearing statistics
3770 * All radio statistics 0x00000001
3771 * cca_busy_time (within radio statistics) 0x00000002
3772 * All channel stats (within radio statistics) 0x00000004
3773 * All scan statistics (within radio statistics) 0x00000008
3774 * All interface statistics 0x00000010
3775 * All tx rate statistics (within interface statistics) 0x00000020
3776 * All ac statistics (with in interface statistics) 0x00000040
3777 * All contention (min, max, avg) statistics (within ac statisctics)
3778 * 0x00000080.
3779 */
3780 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
3781 /* Unsigned 8 bit value: Request to stop statistics collection */
3782 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
3783
3784 /* Unsigned 32 bit bitmap: Response from the driver
3785 * for the cleared statistics
3786 */
3787 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
3788 /* Unsigned 8 bit value: Response from driver/firmware
3789 * for the stop request
3790 */
3791 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
3792 /* keep last */
3793 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
3794 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
3795 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
3796};
3797
3798enum qca_wlan_vendor_attr_ll_stats_get {
3799 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
3800 /* Unsigned 32 bit value provided by the caller issuing the GET stats
3801 * command. When reporting the stats results, the driver uses the same
3802 * value to indicate which GET request the results correspond to.
3803 */
3804 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
3805 /* Unsigned 32 bit value - bit mask to identify what statistics are
3806 * requested for retrieval.
3807 * Radio Statistics 0x00000001
3808 * Interface Statistics 0x00000020
3809 * All Peer Statistics 0x00000040
3810 * Peer Statistics 0x00000080
3811 */
3812 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
3813 /* keep last */
3814 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
3815 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
3816 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
3817};
3818
3819enum qca_wlan_vendor_attr_ll_stats_results {
3820 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
3821 /* Unsigned 32bit value. Used by the driver; must match the request id
3822 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
3823 */
3824 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
3825
3826 /* Unsigned 32 bit value */
3827 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
3828 /* Unsigned 32 bit value */
3829 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
3830 /* Unsigned 32 bit value */
3831 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
3832 /* Unsigned 32 bit value */
3833 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
3834 /* Signed 32 bit value */
3835 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
3836 /* Signed 32 bit value */
3837 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
3838 /* Signed 32 bit value */
3839 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
3840
3841 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
3842 * nested within the interface stats.
3843 */
3844
3845 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
3846 * Type = enum wifi_interface_mode.
3847 */
3848 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
3849 /* Interface MAC address. An array of 6 Unsigned int8 */
3850 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
3851 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
3852 * AUTHENTICATING, etc. valid for STA, CLI only.
3853 */
3854 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
3855 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
3856 */
3857 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
3858 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
3859 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
3860 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
3861 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
3862 /* BSSID. An array of 6 unsigned 8 bit values */
3863 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
3864 /* Country string advertised by AP. An array of 3 unsigned 8 bit
3865 * values.
3866 */
3867 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
3868 /* Country string for this association. An array of 3 unsigned 8 bit
3869 * values.
3870 */
3871 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
3872
3873 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
3874 * be nested within the interface stats.
3875 */
3876
3877 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
3878 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
3879 /* Unsigned int 32 value corresponding to respective AC */
3880 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
3881 /* Unsigned int 32 value corresponding to respective AC */
3882 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
3883 /* Unsigned int 32 value corresponding to respective AC */
3884 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
3885 /* Unsigned int 32 value corresponding to respective AC */
3886 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
3887 /* Unsigned int 32 value corresponding to respective AC */
3888 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
3889 /* Unsigned int 32 value corresponding to respective AC */
3890 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
3891 /* Unsigned int 32 value corresponding to respective AC */
3892 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
3893 /* Unsigned int 32 value corresponding to respective AC */
3894 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
3895 /* Unsigned int 32 value corresponding to respective AC */
3896 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
3897 /* Unsigned int 32 values corresponding to respective AC */
3898 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
3899 /* Unsigned int 32 values corresponding to respective AC */
3900 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
3901 /* Unsigned int 32 values corresponding to respective AC */
3902 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
3903 /* Unsigned int 32 values corresponding to respective AC */
3904 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
3905 /* Unsigned int 32 values corresponding to respective AC */
3906 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
3907 /* Unsigned 32 bit value. Number of peers */
3908 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
3909
3910 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
3911 * nested within the interface stats.
3912 */
3913
3914 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
3915 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
3916 /* MAC addr corresponding to respective peer. An array of 6 unsigned
3917 * 8 bit values.
3918 */
3919 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
3920 /* Unsigned int 32 bit value representing capabilities corresponding
3921 * to respective peer.
3922 */
3923 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
3924 /* Unsigned 32 bit value. Number of rates */
3925 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
3926
3927 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3928 * are nested within the rate stat.
3929 */
3930
3931 /* Wi-Fi Rate - separate attributes defined for individual fields */
3932
3933 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
3934 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
3935 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
3936 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
3937 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
3938 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
3939 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07003940 * in the units of 0.5 Mbps HT/VHT it would be MCS index
3941 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003942 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
3943
3944 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
3945 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
3946
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003947 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
3948 * nested within the peer info stats.
3949 */
3950
3951 /* Unsigned int 32 bit value. Number of successfully transmitted data
3952 * packets, i.e., with ACK received corresponding to the respective
3953 * rate.
3954 */
3955 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
3956 /* Unsigned int 32 bit value. Number of received data packets
3957 * corresponding to the respective rate.
3958 */
3959 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
3960 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
3961 * received corresponding to the respective rate.
3962 */
3963 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
3964 /* Unsigned int 32 bit value. Total number of data packet retries for
3965 * the respective rate.
3966 */
3967 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
3968 /* Unsigned int 32 bit value. Total number of short data packet retries
3969 * for the respective rate.
3970 */
3971 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
3972 /* Unsigned int 32 bit value. Total number of long data packet retries
3973 * for the respective rate.
3974 */
3975 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
3976
3977 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
3978 /* Unsigned 32 bit value. Total number of msecs the radio is awake
3979 * accruing over time.
3980 */
3981 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
3982 /* Unsigned 32 bit value. Total number of msecs the radio is
3983 * transmitting accruing over time.
3984 */
3985 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
3986 /* Unsigned 32 bit value. Total number of msecs the radio is in active
3987 * receive accruing over time.
3988 */
3989 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
3990 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3991 * to all scan accruing over time.
3992 */
3993 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
3994 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3995 * to NAN accruing over time.
3996 */
3997 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
3998 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3999 * to GSCAN accruing over time.
4000 */
4001 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
4002 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4003 * to roam scan accruing over time.
4004 */
4005 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
4006 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4007 * to PNO scan accruing over time.
4008 */
4009 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
4010 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
4011 * to Hotspot 2.0 scans and GAS exchange accruing over time.
4012 */
4013 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
4014 /* Unsigned 32 bit value. Number of channels. */
4015 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
4016
4017 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
4018 * be nested within the channel stats.
4019 */
4020
4021 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
4022 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
4023 /* Unsigned 32 bit value. Primary 20 MHz channel. */
4024 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
4025 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
4026 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
4027 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
4028 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
4029
4030 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
4031 * nested within the radio stats.
4032 */
4033
4034 /* Unsigned int 32 bit value representing total number of msecs the
4035 * radio is awake on that channel accruing over time, corresponding to
4036 * the respective channel.
4037 */
4038 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
4039 /* Unsigned int 32 bit value representing total number of msecs the CCA
4040 * register is busy accruing over time corresponding to the respective
4041 * channel.
4042 */
4043 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
4044
4045 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
4046
4047 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07004048 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004049 */
4050 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
4051
4052 /* Signifies the nested list of peer info attributes
4053 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
4054 */
4055 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
4056
4057 /* Signifies the nested list of rate info attributes
4058 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4059 */
4060 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
4061
4062 /* Signifies the nested list of wmm info attributes
4063 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4064 */
4065 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
4066
4067 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
4068 * that more stats, e.g., peers or radio, are to follow in the next
4069 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
4070 * Otherwise, it is set to 0.
4071 */
4072 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
4073
4074 /* Unsigned 64 bit value */
4075 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
4076
4077 /* Unsigned 32 bit value */
4078 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
4079
4080 /* Unsigned 32 bit value */
4081 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
4082
4083 /* Unsigned 32 bit value */
4084 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
4085
4086 /* Unsigned 32 bit value */
4087 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
4088
4089 /* Unsigned 32 bit value */
4090 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
4091
4092 /* Number of msecs the radio spent in transmitting for each power level
4093 */
4094 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
4095
4096 /* Unsigned 32 bit value */
4097 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
4098 /* Unsigned 32 bit value */
4099 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
4100 /* Unsigned 32 bit value */
4101 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
4102 /* Unsigned 32 bit value */
4103 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
4104
Roshan Pius3a1667e2018-07-03 15:17:14 -07004105 /* Unsigned int 32 value.
4106 * Pending MSDUs corresponding to respective AC.
4107 */
4108 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
4109
Hai Shalom899fcc72020-10-19 14:38:18 -07004110 /* u32 value representing total time in milliseconds for which the radio
4111 * is transmitting on this channel. This attribute will be nested
4112 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4113 */
4114 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
4115 /* u32 value representing total time in milliseconds for which the radio
4116 * is receiving all 802.11 frames intended for this device on this
4117 * channel. This attribute will be nested within
4118 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4119 */
4120 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Hai Shaloma20dcd72022-02-04 13:43:00 -08004121 /* u8 value representing the channel load percentage. Possible values
4122 * are 0-100.
4123 */
4124 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
4125 /* u8 value representing the time slicing duty cycle percentage.
4126 * Possible values are 0-100.
4127 */
4128 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004129 /* keep last */
4130 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
4131 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
4132 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
4133};
4134
Roshan Pius3a1667e2018-07-03 15:17:14 -07004135enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004136 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
4137 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
4138 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
4139 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
4140
4141 /* keep last */
4142 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
4143 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
4144 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
4145};
4146
4147/**
4148 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
4149 * TDLS configuration to the host driver.
4150 *
4151 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
4152 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
4153 * represents the different TDLS trigger modes.
4154 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
4155 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
4156 * of packets shall meet the criteria for implicit TDLS setup.
4157 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
4158 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
4159 * to initiate a TDLS setup.
4160 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
4161 * a TDLS Discovery to the peer.
4162 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
4163 * discovery attempts to know the TDLS capability of the peer. A peer is
4164 * marked as TDLS not capable if there is no response for all the attempts.
4165 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
4166 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
4167 * number of TX / RX frames meet the criteria for TDLS teardown.
4168 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
4169 * of Tx/Rx packets within a duration
4170 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
4171 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
4172 * corresponding to the RSSI of the peer below which a TDLS setup is
4173 * triggered.
4174 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
4175 * corresponding to the RSSI of the peer above which a TDLS teardown is
4176 * triggered.
4177 */
4178enum qca_wlan_vendor_attr_tdls_configuration {
4179 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
4180 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
4181
4182 /* Attributes configuring the TDLS Implicit Trigger */
4183 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
4184 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
4185 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
4186 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
4187 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
4188 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
4189 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
4190 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
4191
4192 /* keep last */
4193 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
4194 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
4195 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
4196};
4197
4198/**
4199 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
4200 * the driver
4201 *
4202 * The following are the different values for
4203 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
4204 *
4205 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
4206 * the TDLS connection to a respective peer comes from the user space.
4207 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
4208 * TDLS_DISCOVER to do this.
4209 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
4210 * setup/teardown to the eligible peer once the configured criteria
4211 * (such as TX/RX threshold, RSSI) is met. The attributes
4212 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
4213 * the different configuration criteria for the TDLS trigger from the
4214 * host driver.
4215 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
4216 * the TDLS setup / teardown through the implicit mode only to the
4217 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
4218 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
4219 * External mode works on top of the implicit mode. Thus the host driver
4220 * is expected to configure in TDLS Implicit mode too to operate in
4221 * External mode.
4222 * Configuring External mode alone without Implicit mode is invalid.
4223 *
4224 * All the above implementations work as expected only when the host driver
4225 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
4226 * that the TDLS message exchange is not internal to the host driver, but
4227 * depends on wpa_supplicant to do the message exchange.
4228 */
4229enum qca_wlan_vendor_tdls_trigger_mode {
4230 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
4231 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
4232 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
4233};
4234
Dmitry Shmidt29333592017-01-09 12:27:11 -08004235/**
4236 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
4237 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
4238 * that is hard-coded in the Board Data File (BDF).
4239 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
4240 * that is hard-coded in the Board Data File (BDF).
4241 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
4242 * that is hard-coded in the Board Data File (BDF).
4243 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
4244 * that is hard-coded in the Board Data File (BDF).
4245 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
4246 * that is hard-coded in the Board Data File (BDF).
4247 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
4248 * source of SAR power limits, thereby disabling the SAR power
4249 * limit feature.
4250 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
4251 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004252 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
4253 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004254 *
4255 * This enumerates the valid set of values that may be supplied for
4256 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07004257 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
4258 * the response to an instance of the
4259 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004260 */
4261enum qca_vendor_attr_sar_limits_selections {
4262 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
4263 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
4264 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
4265 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
4266 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
4267 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
4268 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004269 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004270};
4271
4272/**
4273 * enum qca_vendor_attr_sar_limits_spec_modulations -
4274 * SAR limits specification modulation
4275 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
4276 * CCK modulation
4277 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
4278 * OFDM modulation
4279 *
4280 * This enumerates the valid set of values that may be supplied for
4281 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
4282 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
4283 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07004284 * command or in the response to an instance of the
4285 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004286 */
4287enum qca_vendor_attr_sar_limits_spec_modulations {
4288 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
4289 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
4290};
4291
4292/**
4293 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
4294 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004295 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08004296 * select which SAR power limit table should be used. Valid
4297 * values are enumerated in enum
4298 * %qca_vendor_attr_sar_limits_selections. The existing SAR
4299 * power limit selection is unchanged if this attribute is not
4300 * present.
4301 *
4302 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
4303 * which specifies the number of SAR power limit specifications
4304 * which will follow.
4305 *
4306 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
4307 * limit specifications. The number of specifications is
4308 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
4309 * specification contains a set of
4310 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
4311 * specification is uniquely identified by the attributes
4312 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
4313 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
4314 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
4315 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07004316 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
4317 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
4318 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
4319 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
4320 * needed based upon the value of
4321 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004322 *
4323 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
4324 * indicate for which band this specification applies. Valid
4325 * values are enumerated in enum %nl80211_band (although not all
4326 * bands may be supported by a given device). If the attribute is
4327 * not supplied then the specification will be applied to all
4328 * supported bands.
4329 *
4330 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
4331 * to indicate for which antenna chain this specification
4332 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
4333 * attribute is not supplied then the specification will be
4334 * applied to all chains.
4335 *
4336 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
4337 * value to indicate for which modulation scheme this
4338 * specification applies. Valid values are enumerated in enum
4339 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
4340 * is not supplied then the specification will be applied to all
4341 * modulation schemes.
4342 *
4343 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
4344 * value to specify the actual power limit value in units of 0.5
4345 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07004346 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4347 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004348 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07004349 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
4350 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
4351 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4352 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
4353 *
4354 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
4355 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004356 */
4357enum qca_vendor_attr_sar_limits {
4358 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
4359 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
4360 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
4361 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
4362 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
4363 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
4364 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
4365 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004366 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004367
4368 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
4369 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
4370 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
4371};
4372
4373/**
4374 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
4375 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07004376 *
4377 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
4378 * should be set to any U8 value to indicate that the driver version
4379 * should be returned. When enabled in this manner, in a response this
4380 * attribute will contain a string representation of the driver version.
4381 *
4382 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
4383 * should be set to any U8 value to indicate that the firmware version
4384 * should be returned. When enabled in this manner, in a response this
4385 * attribute will contain a string representation of the firmware version.
4386 *
4387 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
4388 * should be set to any U32 value to indicate that the current radio
4389 * index should be returned. When enabled in this manner, in a response
4390 * this attribute will contain a U32 radio index value.
4391 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08004392 */
4393enum qca_wlan_vendor_attr_get_wifi_info {
4394 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4395 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
4396 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07004397 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004398
4399 /* keep last */
4400 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4401 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
4402 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4403};
4404
4405/*
4406 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
4407 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
4408 */
4409enum qca_wlan_vendor_attr_wifi_logger_start {
4410 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4411 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4412 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4413 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4414
4415 /* keep last */
4416 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4417 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
4418 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4419};
4420
4421enum qca_wlan_vendor_attr_logger_results {
4422 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4423
4424 /* Unsigned 32-bit value; must match the request Id supplied by
4425 * Wi-Fi HAL in the corresponding subcmd NL msg.
4426 */
4427 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4428
4429 /* Unsigned 32-bit value; used to indicate the size of memory
4430 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004431 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08004432 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4433
4434 /* keep last */
4435 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
4436 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
4437 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
4438};
4439
Hai Shalomc3565922019-10-28 11:58:20 -07004440/**
4441 * enum qca_scan_freq_list_type: Frequency list types
4442 *
4443 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
4444 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4445 * a preferred frequency list for roaming.
4446 *
4447 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
4448 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4449 * a specific frequency list for roaming.
4450 */
4451enum qca_scan_freq_list_type {
4452 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
4453 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
4454};
4455
4456/**
4457 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
4458 *
4459 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
4460 * List of frequencies in MHz to be considered for a roam scan.
4461 *
4462 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
4463 * Type of frequency list scheme being configured/gotten as defined by the
4464 * enum qca_scan_freq_list_type.
4465 */
4466enum qca_vendor_attr_scan_freq_list_scheme {
4467 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
4468 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
4469
4470 /* keep last */
4471 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
4472 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
4473 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
4474};
4475
Hai Shalom899fcc72020-10-19 14:38:18 -07004476/**
4477 * enum qca_roam_scan_scheme: Scan scheme
4478 *
4479 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
4480 * Indicates the driver to not scan on a Roam Trigger scenario, but
4481 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
4482 * disconnect from the current connected AP by notifying a failure
4483 * code in the BTM response.
4484 *
4485 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
4486 * trigger partial frequency scans. These frequencies are the ones learned
4487 * or maintained by the driver based on the probability of finding the
4488 * BSSIDs in the ESS for which the roaming is triggered.
4489 *
4490 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
4491 * trigger the scan on all the valid frequencies to find better
4492 * candidates to roam.
4493 */
4494enum qca_roam_scan_scheme {
4495 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
4496 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
4497 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
4498};
4499
Hai Shalomc3565922019-10-28 11:58:20 -07004500/*
4501 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
4502 *
4503 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
4504 * a bad packet error rates (PER).
4505 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
4506 * based on beacon misses from the connected AP.
4507 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
4508 * due to poor RSSI of the connected AP.
4509 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
4510 * upon finding a BSSID with a better RSSI than the connected BSSID.
4511 * Here the RSSI of the current BSSID need not be poor.
4512 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
4513 * by triggering a periodic scan to find a better AP to roam.
4514 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
4515 * when the connected channel environment is too noisy/congested.
4516 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
4517 * when BTM Request frame is received from the connected AP.
4518 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
4519 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07004520 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
4521 * based on the request from the user (space).
4522 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
4523 * device receives Deauthentication/Disassociation frame from connected AP.
4524 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
4525 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
4526 * is determined to be a poor one.
4527 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
4528 * based on continuous TX Data frame failures to the connected AP.
4529 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
4530 * based on the scan results obtained from an external scan (not triggered
4531 * to aim roaming).
Hai Shalomc3565922019-10-28 11:58:20 -07004532 *
4533 * Set the corresponding roam trigger reason bit to consider it for roam
4534 * trigger.
4535 * Userspace can set multiple bits and send to the driver. The driver shall
4536 * consider all of them to trigger/initiate a roam scan.
4537 */
4538enum qca_vendor_roam_triggers {
4539 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
4540 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
4541 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
4542 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
4543 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
4544 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
4545 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
4546 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07004547 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
4548 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
4549 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
4550 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
4551 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Hai Shalomc3565922019-10-28 11:58:20 -07004552};
4553
Hai Shalom60840252021-02-19 19:02:11 -08004554/*
4555 * enum qca_vendor_roam_fail_reasons: Defines the various roam
4556 * fail reasons. This enum value is used in
4557 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
4558 *
4559 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
4560 * able to trigger the scan.
4561 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
4562 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
4563 * scan.
4564 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
4565 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
4566 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
4567 * status code.
4568 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
4569 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
4570 * frame.
4571 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
4572 * with error status code.
4573 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
4574 * received.
4575 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
4576 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
4577 * frame.
4578 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
4579 * internally before transmission.
4580 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
4581 * Request frame.
4582 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
4583 * dropped internally.
4584 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
4585 * times out.
4586 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
4587 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
4588 * internally.
4589 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
4590 * M2 frame.
4591 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
4592 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
4593 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
4594 * internally.
4595 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
4596 * frame.
4597 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
4598 * started for final beacon miss case.
4599 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
4600 * received from the AP during roaming handoff.
4601 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
4602 * or host is suspended and gives the indication of the last roamed AP only
4603 * when the Apps is resumed. If the Apps is resumed while the roaming is in
4604 * progress, this ongoing roaming is aborted and the last roamed AP is
4605 * indicated to host.
4606 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
4607 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
4608 * out.
4609 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
4610 */
4611enum qca_vendor_roam_fail_reasons {
4612 QCA_ROAM_FAIL_REASON_NONE = 0,
4613 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
4614 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
4615 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
4616 QCA_ROAM_FAIL_REASON_HOST = 4,
4617 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
4618 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
4619 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
4620 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
4621 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
4622 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
4623 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
4624 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
4625 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
4626 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
4627 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
4628 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
4629 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
4630 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
4631 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
4632 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
4633 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
4634 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
4635 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
4636 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
4637 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
4638 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
4639 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
4640 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
4641 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
4642};
4643
4644/*
4645 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
4646 * invoke fail reasons. This enum value is used in
4647 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
4648 *
4649 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
4650 * in roam invoke command.
4651 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
4652 * enabled.
4653 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
4654 * length is invalid.
4655 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
4656 * in progress.
4657 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
4658 * of the AP in the roam invoke command to firmware. This reason is sent by the
4659 * firmware when the given AP is configured to be ignored or SSID/security
4660 * does not match.
4661 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
4662 * firmware internal reasons.
4663 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
4664 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
4665 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
4666 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
4667 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
4668 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
4669 */
4670enum qca_vendor_roam_invoke_fail_reasons {
4671 QCA_ROAM_INVOKE_STATUS_NONE = 0,
4672 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
4673 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
4674 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
4675 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
4676 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
4677 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
4678 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
4679 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
4680 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
4681 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
4682 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
4683 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
4684
4685};
4686
Hai Shalomc3565922019-10-28 11:58:20 -07004687/**
4688 * enum qca_vendor_attr_roam_candidate_selection_criteria:
4689 *
4690 * Each attribute carries a weightage in percentage (%).
4691 *
4692 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
4693 * Represents the weightage to be given for the RSSI selection
4694 * criteria among other parameters.
4695 *
4696 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
4697 * Represents the weightage to be given for the rate selection
4698 * criteria among other parameters.
4699 *
4700 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
4701 * Represents the weightage to be given for the band width selection
4702 * criteria among other parameters.
4703 *
4704 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
4705 * Represents the weightage to be given for the band selection
4706 * criteria among other parameters.
4707 *
4708 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
4709 * Represents the weightage to be given for the NSS selection
4710 * criteria among other parameters.
4711 *
4712 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
4713 * Represents the weightage to be given for the channel congestion
4714 * selection criteria among other parameters.
4715 *
4716 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
4717 * Represents the weightage to be given for the beamforming selection
4718 * criteria among other parameters.
4719 *
4720 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
4721 * Represents the weightage to be given for the OCE selection
4722 * criteria among other parameters.
4723 */
4724enum qca_vendor_attr_roam_candidate_selection_criteria {
4725 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
4726 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
4727 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
4728 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
4729 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
4730 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
4731 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
4732 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
4733
4734 /* keep last */
4735 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
4736 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
4737 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
4738};
4739
4740/**
4741 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
Sunil8cd6f4d2022-06-28 18:40:46 +00004742 * The following attributes are used to set/get/clear the respective
Hai Shalomc3565922019-10-28 11:58:20 -07004743 * configurations to/from the driver.
4744 * For the get, the attribute for the configuration to be queried shall
4745 * carry any of its acceptable values to the driver. In return, the driver
4746 * shall send the configured values within the same attribute to the user
4747 * space.
4748 *
4749 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
4750 * Signifies to enable/disable roam control in driver.
4751 * 1-enable, 0-disable
4752 * Enable: Mandates the driver to do the further roams using the
4753 * configuration parameters set through
4754 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
4755 * Disable: Disables the driver/firmware roaming triggered through
4756 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
4757 * expected to continue with the default configurations.
4758 *
4759 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
4760 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
4761 * Roam control status is obtained through this attribute.
4762 *
4763 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
4764 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
4765 * is to be cleared in the driver.
4766 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
4767 * and shall be ignored if used with other sub commands.
4768 * If this attribute is specified along with subcmd
4769 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
4770 * all other attributes, if there are any.
4771 * If this attribute is not specified when the subcmd
4772 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
4773 * clear the data corresponding to the attributes specified.
4774 *
4775 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
4776 * list of frequencies and its type, represented by
4777 * enum qca_vendor_attr_scan_freq_list_scheme.
4778 * Frequency list and its type are mandatory for this attribute to set
4779 * the frequencies.
4780 * Frequency type is mandatory for this attribute to get the frequencies
4781 * and the frequency list is obtained through
4782 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
4783 * Frequency list type is mandatory for this attribute to clear the
4784 * frequencies.
4785 *
4786 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
4787 * Carries the value of scan period in seconds to set.
4788 * The value of scan period is obtained with the same attribute for get.
4789 * Clears the scan period in the driver when specified with clear command.
4790 * Scan period is the idle time in seconds between each subsequent
4791 * channel scans.
4792 *
4793 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
4794 * Carries the value of full scan period in seconds to set.
4795 * The value of full scan period is obtained with the same attribute for
4796 * get.
4797 * Clears the full scan period in the driver when specified with clear
4798 * command. Full scan period is the idle period in seconds between two
4799 * successive full channel roam scans.
4800 *
4801 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
4802 * Carries a bitmap of the roam triggers specified in
4803 * enum qca_vendor_roam_triggers.
4804 * The driver shall enable roaming by enabling corresponding roam triggers
4805 * based on the trigger bits sent with this attribute.
4806 * If this attribute is not configured, the driver shall proceed with
4807 * default behavior.
4808 * The bitmap configured is obtained with the same attribute for get.
4809 * Clears the bitmap configured in driver when specified with clear
4810 * command.
4811 *
4812 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
4813 * weightage in percentage (%) to be given for each selection criteria.
4814 * Different roam candidate selection criteria are represented by
4815 * enum qca_vendor_attr_roam_candidate_selection_criteria.
4816 * The driver shall select the roam candidate based on corresponding
4817 * candidate selection scores sent.
4818 *
4819 * An empty nested attribute is used to indicate that no specific
4820 * preference score/criteria is configured (i.e., to disable this mechanism
4821 * in the set case and to show that the mechanism is disabled in the get
4822 * case).
4823 *
4824 * Userspace can send multiple attributes out of this enum to the driver.
4825 * Since this attribute represents the weight/percentage of preference for
4826 * the respective selection criteria, it is preferred to configure 100%
4827 * total weightage. The value in each attribute or cumulative weight of the
4828 * values in all the nested attributes should not exceed 100%. The driver
4829 * shall reject such configuration.
4830 *
4831 * If the weights configured through this attribute are less than 100%,
4832 * the driver shall honor the weights (x%) passed for the corresponding
4833 * selection criteria and choose/distribute rest of the weight (100-x)%
4834 * for the other selection criteria, based on its internal logic.
4835 *
4836 * The selection criteria configured is obtained with the same
4837 * attribute for get.
4838 *
4839 * Clears the selection criteria configured in the driver when specified
4840 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07004841 *
4842 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
4843 * Represents value of the scan frequency scheme from enum
4844 * qca_roam_scan_scheme.
4845 * It's an optional attribute. If this attribute is not configured, the
4846 * driver shall proceed with default behavior.
4847 *
4848 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
4849 * signifying the RSSI threshold of the current connected AP, indicating
4850 * the driver to trigger roam only when the current connected AP's RSSI
4851 * is less than this threshold.
4852 *
4853 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
4854 * signifying the RSSI threshold of the candidate AP, indicating
4855 * the driver to trigger roam only to the candidate AP with RSSI
Hai Shaloma20dcd72022-02-04 13:43:00 -08004856 * better than this threshold. If RSSI thresholds for candidate APs found
4857 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
4858 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
4859 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
4860 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
4861 * take precedence over the value configured using the
4862 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -07004863 *
4864 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
4865 * user defined reason code to be sent to the AP in response to AP's
4866 * request to trigger the roam if the roaming cannot be triggered.
4867 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
4868 *
4869 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
4870 * Carries a bitmap of the roam triggers specified in
4871 * enum qca_vendor_roam_triggers.
4872 * Represents the roam triggers for which the specific scan scheme from
4873 * enum qca_roam_scan_scheme has to be applied.
4874 * It's an optional attribute. If this attribute is not configured, but
4875 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
4876 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
4877 * all the roams.
4878 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
4879 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
4880 * driver shall proceed with the default behavior.
Hai Shaloma20dcd72022-02-04 13:43:00 -08004881 *
4882 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
4883 * in dBm, signifying the RSSI threshold of the candidate AP found in the
4884 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
4885 * AP found in the 2.4 GHz band only if its RSSI value is better than this
4886 * threshold. Optional attribute. If this attribute is not included, the
4887 * threshold value specified by the
4888 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
4889 *
4890 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
4891 * dBm, signifying the RSSI threshold of the candidate AP found in the 5
4892 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
4893 * found in the 5 GHz band only if its RSSI value is better than this
4894 * threshold. Optional attribute. If this attribute is not included, the
4895 * threshold value specified by tge
4896 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
4897 *
4898 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
4899 * dBm, signifying the RSSI threshold of the candidate AP found in the 6
4900 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
4901 * found in the 6 GHz band only if its RSSI value is better than this
4902 * threshold. Optional attribute. If this attribute is not included, the
4903 * threshold value specified by the
4904 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
4905 *
4906 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
4907 * Carries bitmask value of bits from &enum qca_set_band and represents
4908 * all the bands in which roaming is allowed. The configuration is valid
4909 * until next disconnection. If this attribute is not present, the
4910 * existing configuration shall be used. By default, roaming is allowed on
4911 * all bands supported by the local device. When the value is set to
4912 * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
4913 *
4914 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
4915 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
4916 * bands. If this attribute is not configured, the driver shall proceed
4917 * with default behavior.
4918 *
4919 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
4920 * Optional parameter. Scan dwell time for passive channels in the 5 GHz
4921 * band. If this attribute is not configured, the driver shall proceed with
4922 * default behavior.
4923 *
4924 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
4925 * Optional parameter. The minimum duration to stay on the connected AP
4926 * channel during the channel scanning. If this attribute is not
4927 * configured, the driver shall proceed with default behavior.
4928 *
4929 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
4930 * Optional parameter. The maximum duration for which the radio can scan
4931 * foreign channels consecutively without coming back to home channel. If
4932 * this attribute is not configured, the driver shall proceed with default
4933 * behavior.
4934 *
4935 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
4936 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
4937 * If this attribute is not configured, the driver shall proceed with
4938 * default behavior.
4939 *
4940 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
4941 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning
4942 * Channels. If this attribute is not configured, the driver shall proceed
4943 * with default behavior.
Sunil8cd6f4d2022-06-28 18:40:46 +00004944 *
4945 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
4946 * Optional parameter. RX link speed threshold to disable roaming.
4947 * If the current RX link speed is above the threshold, roaming is not
4948 * needed. If this attribute is not configured, or if it is set to 0, the
4949 * driver will not consider the RX link speed in the roaming decision.
Hai Shalomc3565922019-10-28 11:58:20 -07004950 */
4951enum qca_vendor_attr_roam_control {
4952 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
4953 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
4954 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
4955 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
4956 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
4957 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
4958 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
4959 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07004960 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
4961 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
4962 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
4963 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
4964 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shaloma20dcd72022-02-04 13:43:00 -08004965 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
4966 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
4967 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
4968 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
4969 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
4970 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
4971 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
4972 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
4973 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
4974 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
Sunil8cd6f4d2022-06-28 18:40:46 +00004975 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
Hai Shalomc3565922019-10-28 11:58:20 -07004976
4977 /* keep last */
4978 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
4979 QCA_ATTR_ROAM_CONTROL_MAX =
4980 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
4981};
4982
4983/*
4984 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
4985 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
4986 *
4987 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
4988 * Represents the different roam sub commands referred by
4989 * enum qca_wlan_vendor_roaming_subcmd.
4990 *
4991 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
4992 * Represents the Request ID for the specific set of commands.
4993 * This also helps to map specific set of commands to the respective
4994 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07004995 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07004996 * matching ID.
4997 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08004998 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
4999 * 32-bit value. Represents the number of allowlist SSIDs configured.
Hai Shalomc3565922019-10-28 11:58:20 -07005000 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005001 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
5002 * to carry the list of allowlist SSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07005003 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005004 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
5005 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs
Hai Shalomc3565922019-10-28 11:58:20 -07005006 * represent the list of SSIDs to which the firmware/driver can consider
5007 * to roam to.
5008 *
5009 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
5010 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
5011 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
5012 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
5013 *
5014 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
5015 * value, RSSI threshold above which 5GHz RSSI is favored.
5016 *
5017 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
5018 * value, RSSI threshold below which 5GHz RSSI is penalized.
5019 *
5020 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
5021 * value, factor by which 5GHz RSSI is boosted.
5022 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
5023 *
5024 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
5025 * value, factor by which 5GHz RSSI is penalized.
5026 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
5027 *
5028 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
5029 * value, maximum boost that can be applied to a 5GHz RSSI.
5030 *
5031 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
5032 * value, boost applied to current BSSID to ensure the currently
5033 * associated BSSID is favored so as to prevent ping-pong situations.
5034 *
5035 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
5036 * value, RSSI below which "Alert" roam is enabled.
5037 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
5038 * because the RSSI is low, or because many successive beacons have been
5039 * lost or other bad link conditions.
5040 *
5041 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
5042 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
Hai Shaloma20dcd72022-02-04 13:43:00 -08005043 * firmware is hunting for a better BSSID or allow listed SSID even though
Hai Shalomc3565922019-10-28 11:58:20 -07005044 * the RSSI of the link is good. The parameters enabling the roaming are
5045 * configured through the PARAM_A_BAND_XX attrbutes.
5046 *
5047 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
5048 * represents the BSSIDs preferred over others while evaluating them
5049 * for the roaming.
5050 *
5051 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
5052 * 32-bit value. Represents the number of preferred BSSIDs set.
5053 *
5054 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
5055 * address representing the BSSID to be preferred.
5056 *
5057 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
5058 * 32-bit value, representing the modifier to be applied to the RSSI of
5059 * the BSSID for the purpose of comparing it with other roam candidate.
5060 *
5061 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07005062 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07005063 *
5064 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07005065 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07005066 *
5067 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07005068 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07005069 *
5070 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07005071 * indicates this request to ignore the BSSID as a hint to the driver. The
5072 * driver can select this BSSID in the worst case (when no other BSSIDs are
5073 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07005074 *
5075 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
5076 * set/get/clear the roam control config as
5077 * defined @enum qca_vendor_attr_roam_control.
5078 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005079enum qca_wlan_vendor_attr_roaming_config_params {
5080 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
5081
5082 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
5083 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
5084
Hai Shaloma20dcd72022-02-04 13:43:00 -08005085 /* Attributes for wifi_set_ssid_allow_list */
5086 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
5087 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
5088 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005089
5090 /* Attributes for set_roam_params */
5091 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
5092 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
5093 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
5094 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
5095 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
5096 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
5097 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
5098
5099 /* Attribute for set_lazy_roam */
5100 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
5101
5102 /* Attribute for set_lazy_roam with preferences */
5103 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
5104 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
5105 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
5106 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
5107
Hai Shalom899fcc72020-10-19 14:38:18 -07005108 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005109 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
5110 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
5111 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07005112 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07005113 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005114
Hai Shalomc3565922019-10-28 11:58:20 -07005115 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
5116
Dmitry Shmidt29333592017-01-09 12:27:11 -08005117 /* keep last */
5118 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
5119 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
5120 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
5121};
5122
Hai Shaloma20dcd72022-02-04 13:43:00 -08005123/* old names for API compatibility */
5124#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
5125 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
5126#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
5127 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
5128#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
5129 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
5130
Dmitry Shmidt29333592017-01-09 12:27:11 -08005131/*
Hai Shalomc3565922019-10-28 11:58:20 -07005132 * enum qca_wlan_vendor_roaming_subcmd: Referred by
5133 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
5134 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005135 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
5136 * configure the allow list SSIDs. These are configured through
Hai Shalomc3565922019-10-28 11:58:20 -07005137 * the following attributes.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005138 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
5139 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
5140 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
Hai Shalomc3565922019-10-28 11:58:20 -07005141 *
5142 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
5143 * configure the Roam params. These parameters are evaluated on the GScan
5144 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
5145 * params.
5146 *
5147 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
5148 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
5149 * to enable/disable Lazy roam.
5150 *
5151 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
5152 * preference. Contains the attribute
5153 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
5154 * preference.
5155 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005156 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
Hai Shalom899fcc72020-10-19 14:38:18 -07005157 * to ignore in roaming decision. Uses
5158 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07005159 *
5160 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
5161 * roam control config to the driver with the attribute
5162 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5163 *
5164 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
5165 * roam control config from driver with the attribute
5166 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5167 * For the get, the attribute for the configuration to be queried shall
5168 * carry any of its acceptable value to the driver. In return, the driver
5169 * shall send the configured values within the same attribute to the user
5170 * space.
5171 *
5172 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
5173 * roam control config in the driver with the attribute
5174 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5175 * The driver shall continue with its default roaming behavior when data
5176 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005177 */
Hai Shalomc3565922019-10-28 11:58:20 -07005178enum qca_wlan_vendor_roaming_subcmd {
5179 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005180 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
Hai Shalomc3565922019-10-28 11:58:20 -07005181 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
5182 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
5183 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
5184 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005185 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
Hai Shalomc3565922019-10-28 11:58:20 -07005186 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
5187 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
5188 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005189};
5190
Hai Shaloma20dcd72022-02-04 13:43:00 -08005191/* old names for API compatibility */
5192#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
5193 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
5194#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
5195 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
5196
Dmitry Shmidt29333592017-01-09 12:27:11 -08005197enum qca_wlan_vendor_attr_gscan_config_params {
5198 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
5199
5200 /* Unsigned 32-bit value */
5201 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
5202
5203 /* Attributes for data used by
5204 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
5205 */
5206 /* Unsigned 32-bit value */
5207 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
5208 = 2,
5209 /* Unsigned 32-bit value */
5210 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
5211 = 3,
5212
5213 /* Attributes for input params used by
5214 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
5215 */
5216
5217 /* Unsigned 32-bit value; channel frequency */
5218 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
5219 /* Unsigned 32-bit value; dwell time in ms. */
5220 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
5221 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
5222 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
5223 /* Unsigned 8-bit value; channel class */
5224 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
5225
5226 /* Unsigned 8-bit value; bucket index, 0 based */
5227 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
5228 /* Unsigned 8-bit value; band. */
5229 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
5230 /* Unsigned 32-bit value; desired period, in ms. */
5231 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
5232 /* Unsigned 8-bit value; report events semantics. */
5233 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
5234 /* Unsigned 32-bit value. Followed by a nested array of
5235 * GSCAN_CHANNEL_SPEC_* attributes.
5236 */
5237 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
5238
5239 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
5240 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5241 */
5242 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
5243
5244 /* Unsigned 32-bit value; base timer period in ms. */
5245 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
5246 /* Unsigned 32-bit value; number of APs to store in each scan in the
5247 * BSSID/RSSI history buffer (keep the highest RSSI APs).
5248 */
5249 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
5250 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
5251 * up AP.
5252 */
5253 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
5254 = 16,
5255
5256 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
5257 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
5258 * of the array is determined by NUM_BUCKETS.
5259 */
5260 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
5261
5262 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
5263 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
5264 */
5265 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
5266
5267 /* Unsigned 8-bit value */
5268 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
5269 = 19,
5270 /* Unsigned 32-bit value; maximum number of results to be returned. */
5271 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
5272 = 20,
5273
5274 /* An array of 6 x unsigned 8-bit value */
5275 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
5276 /* Signed 32-bit value */
5277 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
5278 /* Signed 32-bit value */
5279 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
5280 /* Unsigned 32-bit value */
5281 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
5282
5283 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
5284 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
5285 * array is determined by NUM_AP.
5286 */
5287 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
5288
5289 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
5290 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5291 */
5292 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
5293
5294 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
5295 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
5296 = 27,
5297 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
5298 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
5299 = 28,
5300 /* Unsigned 32-bit value; number of APs breaching threshold. */
5301 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
5302 /* Unsigned 32-bit value; number of APs. Followed by an array of
5303 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
5304 */
5305 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
5306 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
5307 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
5308 = 31,
5309 /* Unsigned 32-bit value. If max_period is non zero or different than
5310 * period, then this bucket is an exponential backoff bucket.
5311 */
5312 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
5313 /* Unsigned 32-bit value. */
5314 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
5315 /* Unsigned 32-bit value. For exponential back off bucket, number of
5316 * scans to perform for a given period.
5317 */
5318 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
5319 /* Unsigned 8-bit value; in number of scans, wake up AP after these
5320 * many scans.
5321 */
5322 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
5323 = 35,
5324
5325 /* Attributes for data used by
5326 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
5327 */
5328 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
5329 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
5330 = 36,
5331 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
5332 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
5333 * size of the array is determined by NUM_SSID.
5334 */
5335 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
5336 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
5337 * attributes.
5338 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
5339 */
5340 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
5341
5342 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5343 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
5344 /* Unsigned 8-bit value */
5345 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
5346 /* Signed 32-bit value */
5347 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
5348 /* Signed 32-bit value */
5349 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
5350 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
5351 */
5352 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
5353
5354 /* keep last */
5355 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
5356 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
5357 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
5358};
5359
5360enum qca_wlan_vendor_attr_gscan_results {
5361 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
5362
5363 /* Unsigned 32-bit value; must match the request Id supplied by
5364 * Wi-Fi HAL in the corresponding subcmd NL msg.
5365 */
5366 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
5367
5368 /* Unsigned 32-bit value; used to indicate the status response from
5369 * firmware/driver for the vendor sub-command.
5370 */
5371 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
5372
5373 /* GSCAN Valid Channels attributes */
5374 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
5375 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
5376 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
5377 * representing channel numbers.
5378 */
5379 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
5380
5381 /* GSCAN Capabilities attributes */
5382 /* Unsigned 32-bit value */
5383 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
5384 /* Unsigned 32-bit value */
5385 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
5386 /* Unsigned 32-bit value */
5387 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
5388 = 7,
5389 /* Unsigned 32-bit value */
5390 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
5391 = 8,
5392 /* Signed 32-bit value */
5393 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
5394 = 9,
5395 /* Unsigned 32-bit value */
5396 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
5397 /* Unsigned 32-bit value */
5398 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
5399 = 11,
5400 /* Unsigned 32-bit value */
5401 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
5402 = 12,
5403
5404 /* GSCAN Attributes used with
5405 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
5406 */
5407
5408 /* Unsigned 32-bit value */
5409 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
5410
5411 /* GSCAN attributes used with
5412 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
5413 */
5414
5415 /* An array of NUM_RESULTS_AVAILABLE x
5416 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
5417 */
5418 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
5419
5420 /* Unsigned 64-bit value; age of sample at the time of retrieval */
5421 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
5422 /* 33 x unsigned 8-bit value; NULL terminated SSID */
5423 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
5424 /* An array of 6 x unsigned 8-bit value */
5425 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
5426 /* Unsigned 32-bit value; channel frequency in MHz */
5427 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
5428 /* Signed 32-bit value */
5429 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
5430 /* Unsigned 32-bit value */
5431 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
5432 /* Unsigned 32-bit value */
5433 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
5434 /* Unsigned 16-bit value */
5435 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
5436 /* Unsigned 16-bit value */
5437 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
5438 /* Unsigned 32-bit value; size of the IE DATA blob */
5439 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
5440 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
5441 * information elements found in the beacon; this data should be a
5442 * packed list of wifi_information_element objects, one after the
5443 * other.
5444 */
5445 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
5446
5447 /* Unsigned 8-bit value; set by driver to indicate more scan results are
5448 * available.
5449 */
5450 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
5451
5452 /* GSCAN attributes for
5453 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
5454 */
5455 /* Unsigned 8-bit value */
5456 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
5457 /* Unsigned 32-bit value */
5458 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
5459
5460 /* GSCAN attributes for
5461 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
5462 */
5463 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5464 * to indicate number of results.
5465 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5466 * list of results.
5467 */
5468
5469 /* GSCAN attributes for
5470 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
5471 */
5472 /* An array of 6 x unsigned 8-bit value */
5473 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
5474 /* Unsigned 32-bit value */
5475 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
5476 = 30,
5477 /* Unsigned 32-bit value. */
5478 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
5479 = 31,
5480 /* A nested array of signed 32-bit RSSI values. Size of the array is
5481 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
5482 */
5483 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
5484 = 32,
5485
5486 /* GSCAN attributes used with
5487 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
5488 */
5489 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5490 * to indicate number of gscan cached results returned.
5491 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
5492 * the list of gscan cached results.
5493 */
5494
5495 /* An array of NUM_RESULTS_AVAILABLE x
5496 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
5497 */
5498 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
5499 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
5500 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
5501 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
5502 */
5503 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
5504 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5505 * to indicate number of wifi scan results/bssids retrieved by the scan.
5506 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5507 * list of wifi scan results returned for each cached result block.
5508 */
5509
5510 /* GSCAN attributes for
5511 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
5512 */
5513 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
5514 * number of results.
5515 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5516 * list of wifi scan results returned for each
5517 * wifi_passpoint_match_result block.
5518 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
5519 */
5520
5521 /* GSCAN attributes for
5522 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
5523 */
5524 /* Unsigned 32-bit value */
5525 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
5526 = 36,
5527 /* A nested array of
5528 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
5529 * attributes. Array size =
5530 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
5531 */
5532 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
5533
5534 /* Unsigned 32-bit value; network block id for the matched network */
5535 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
5536 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5537 * list of wifi scan results returned for each
5538 * wifi_passpoint_match_result block.
5539 */
5540 /* Unsigned 32-bit value */
5541 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
5542 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
5543 * ANQP data in the information_element format.
5544 */
5545 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
5546
5547 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5548 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
5549 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5550 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
5551 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5552 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
5553 = 43,
5554 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
Hai Shaloma20dcd72022-02-04 13:43:00 -08005555 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
Dmitry Shmidt29333592017-01-09 12:27:11 -08005556 = 44,
5557
5558 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
5559
Hai Shalomce48b4a2018-09-05 11:41:35 -07005560 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
5561 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07005562 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
Hai Shaloma20dcd72022-02-04 13:43:00 -08005563 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07005564 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
5565 */
Hai Shaloma20dcd72022-02-04 13:43:00 -08005566 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
Hai Shalomce48b4a2018-09-05 11:41:35 -07005567
Dmitry Shmidt29333592017-01-09 12:27:11 -08005568 /* keep last */
5569 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
5570 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
5571 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
5572};
5573
Hai Shaloma20dcd72022-02-04 13:43:00 -08005574/* old names for API compatibility */
5575#define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
5576 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
5577#define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
5578 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
5579
Dmitry Shmidt29333592017-01-09 12:27:11 -08005580enum qca_wlan_vendor_attr_pno_config_params {
5581 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
5582 /* Attributes for data used by
5583 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
5584 */
5585 /* Unsigned 32-bit value */
5586 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
5587 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
5588 * attributes. Array size =
5589 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
5590 */
5591 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
5592
5593 /* Unsigned 32-bit value */
5594 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
5595 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
5596 * realm, 0 if unspecified.
5597 */
5598 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
5599 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
5600 * match, 0 if unspecified.
5601 */
5602 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
5603 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
5604 * unspecified.
5605 */
5606 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
5607
5608 /* Attributes for data used by
5609 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
5610 */
5611 /* Unsigned 32-bit value */
5612 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
5613 /* Array of nested
5614 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
5615 * attributes. Array size =
5616 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
5617 */
5618 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
5619 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5620 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
5621 /* Signed 8-bit value; threshold for considering this SSID as found,
5622 * required granularity for this threshold is 4 dBm to 8 dBm.
5623 */
5624 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
5625 = 10,
5626 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
5627 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
5628 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
5629 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
5630 /* Unsigned 8-bit to indicate ePNO type;
5631 * It takes values from qca_wlan_epno_type
5632 */
5633 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
5634
5635 /* Nested attribute to send the channel list */
5636 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
5637
5638 /* Unsigned 32-bit value; indicates the interval between PNO scan
5639 * cycles in msec.
5640 */
5641 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
5642 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
5643 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
5644 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
5645 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
5646 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
5647 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
5648 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005649 /* Unsigned 32-bit value, representing the PNO Request ID */
5650 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005651
5652 /* keep last */
5653 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
5654 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
5655 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
5656};
5657
Paul Stewart092955c2017-02-06 09:13:09 -08005658/**
5659 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
5660 * the ACS has to be triggered. These values are used by
5661 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
5662 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
5663 */
5664enum qca_wlan_vendor_acs_select_reason {
5665 /* Represents the reason that the ACS triggered during the AP start */
5666 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
5667 /* Represents the reason that DFS found with the current channel */
5668 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
5669 /* Represents the reason that LTE co-exist in the current band. */
5670 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07005671 /* Represents the reason that generic, uncategorized interference has
5672 * been found in the current channel.
5673 */
5674 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
5675 /* Represents the reason that excessive 802.11 interference has been
5676 * found in the current channel.
5677 */
5678 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
5679 /* Represents the reason that generic Continuous Wave (CW) interference
5680 * has been found in the current channel.
5681 */
5682 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
5683 /* Represents the reason that Microwave Oven (MWO) interference has been
5684 * found in the current channel.
5685 */
5686 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
5687 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
5688 * (FHSS) interference has been found in the current channel. This may
5689 * include 802.11 waveforms.
5690 */
5691 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
5692 /* Represents the reason that non-802.11 generic Frequency-Hopping
5693 * Spread Spectrum (FHSS) interference has been found in the current
5694 * channel.
5695 */
5696 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
5697 /* Represents the reason that generic Wideband (WB) interference has
5698 * been found in the current channel. This may include 802.11 waveforms.
5699 */
5700 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
5701 /* Represents the reason that non-802.11 generic Wideband (WB)
5702 * interference has been found in the current channel.
5703 */
5704 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
5705 /* Represents the reason that Jammer interference has been found in the
5706 * current channel.
5707 */
5708 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Sunil Ravia04bd252022-05-02 22:54:18 -07005709 /* Represents the reason that ACS triggered by AFC */
5710 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
Paul Stewart092955c2017-02-06 09:13:09 -08005711};
5712
5713/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005714 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
5715 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
5716 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
5717 * external ACS policies to select the channels w.r.t. the PCL weights.
5718 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
5719 * their PCL weights.)
5720 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
5721 * select a channel with non-zero PCL weight.
5722 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
5723 * channel with non-zero PCL weight.
5724 *
5725 */
5726enum qca_wlan_vendor_attr_external_acs_policy {
5727 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
5728 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
5729};
5730
5731/**
Paul Stewart092955c2017-02-06 09:13:09 -08005732 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
5733 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
5734 */
5735enum qca_wlan_vendor_channel_prop_flags {
5736 /* Bits 0, 1, 2, and 3 are reserved */
5737
5738 /* Turbo channel */
5739 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
5740 /* CCK channel */
5741 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
5742 /* OFDM channel */
5743 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
5744 /* 2.4 GHz spectrum channel. */
5745 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
5746 /* 5 GHz spectrum channel */
5747 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
5748 /* Only passive scan allowed */
5749 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
5750 /* Dynamic CCK-OFDM channel */
5751 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
5752 /* GFSK channel (FHSS PHY) */
5753 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
5754 /* Radar found on channel */
5755 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
5756 /* 11a static turbo channel only */
5757 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
5758 /* Half rate channel */
5759 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
5760 /* Quarter rate channel */
5761 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
5762 /* HT 20 channel */
5763 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
5764 /* HT 40 with extension channel above */
5765 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
5766 /* HT 40 with extension channel below */
5767 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
5768 /* HT 40 intolerant */
5769 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
5770 /* VHT 20 channel */
5771 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
5772 /* VHT 40 with extension channel above */
5773 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
5774 /* VHT 40 with extension channel below */
5775 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
5776 /* VHT 80 channel */
5777 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
5778 /* HT 40 intolerant mark bit for ACS use */
5779 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
5780 /* Channel temporarily blocked due to noise */
5781 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
5782 /* VHT 160 channel */
5783 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
5784 /* VHT 80+80 channel */
5785 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005786 /* HE 20 channel */
5787 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
5788 /* HE 40 with extension channel above */
5789 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
5790 /* HE 40 with extension channel below */
5791 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
5792 /* HE 40 intolerant */
5793 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
5794};
5795
5796/**
5797 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
5798 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
5799 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
5800 */
5801enum qca_wlan_vendor_channel_prop_flags_2 {
5802 /* HE 40 intolerant mark bit for ACS use */
5803 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
5804 /* HE 80 channel */
5805 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
5806 /* HE 160 channel */
5807 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
5808 /* HE 80+80 channel */
5809 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08005810};
5811
5812/**
5813 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
5814 * each channel. This is used by
5815 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
5816 */
5817enum qca_wlan_vendor_channel_prop_flags_ext {
5818 /* Radar found on channel */
5819 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
5820 /* DFS required on channel */
5821 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
5822 /* DFS required on channel for 2nd band of 80+80 */
5823 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
5824 /* If channel has been checked for DFS */
5825 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
5826 /* Excluded in 802.11d */
5827 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
5828 /* Channel Switch Announcement received on this channel */
5829 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
5830 /* Ad-hoc is not allowed */
5831 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
5832 /* Station only channel */
5833 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07005834 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08005835 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07005836 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08005837 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
5838};
5839
5840/**
5841 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5842 * information. These attributes are sent as part of
5843 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5844 * attributes correspond to a single channel.
5845 */
5846enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5847 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5848
5849 /* A bitmask (u32) with flags specified in
5850 * enum qca_wlan_vendor_channel_prop_flags.
5851 */
5852 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5853 /* A bitmask (u32) with flags specified in
5854 * enum qca_wlan_vendor_channel_prop_flags_ext.
5855 */
5856 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5857 /* frequency in MHz (u32) */
5858 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5859 /* maximum regulatory transmission power (u32) */
5860 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5861 /* maximum transmission power (u32) */
5862 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5863 /* minimum transmission power (u32) */
5864 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5865 /* regulatory class id (u8) */
5866 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5867 /* maximum antenna gain in (u8) */
5868 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5869 /* VHT segment 0 (u8) */
5870 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5871 /* VHT segment 1 (u8) */
5872 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005873 /* A bitmask (u32) with flags specified in
5874 * enum qca_wlan_vendor_channel_prop_flags_2.
5875 */
5876 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08005877
Hai Shalomc3565922019-10-28 11:58:20 -07005878 /*
5879 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5880 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5881 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5882 * along with
5883 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5884 *
5885 * If both the driver and user-space application supports the 6 GHz
5886 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5887 * is deprecated and
5888 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5889 * should be used.
5890 *
5891 * To maintain backward compatibility,
5892 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5893 * is still used if either of the driver or user space application
5894 * doesn't support the 6 GHz band.
5895 */
5896 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
5897
5898 /*
5899 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5900 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5901 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5902 * along with
5903 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5904 *
5905 * If both the driver and user-space application supports the 6 GHz
5906 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5907 * is deprecated and
5908 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5909 * should be considered.
5910 *
5911 * To maintain backward compatibility,
5912 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5913 * is still used if either of the driver or user space application
5914 * doesn't support the 6 GHz band.
5915 */
5916 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
5917
Sunil Ravia04bd252022-05-02 22:54:18 -07005918 /*
5919 * 16-bit attribute of bits indicating the AP power modes supported by
5920 * the channel (u16).
5921 * Note: Currently, only 3 bits are used in the attribute and each bit
5922 * corresponds to the power mode mentioned in enum
5923 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
5924 * set if the associated mode is supported.
5925 */
5926 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
5927 = 14,
5928 /* Array of nested attributes for each power mode. It takes attr as
5929 * defined in enum
5930 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5931 */
5932 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
Paul Stewart092955c2017-02-06 09:13:09 -08005933 /* keep last */
5934 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5935 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5936 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5937};
5938
5939/**
Sunil Ravia04bd252022-05-02 22:54:18 -07005940 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
5941 * values that the vendor external ACS channel power attribute
5942 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
5943 * take.
5944 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
5945 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
5946 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
5947 */
5948enum qca_wlan_vendor_external_acs_chan_power_level {
5949 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
5950 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
5951 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
5952};
5953
5954/**
5955 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
5956 * attributes for power mode type and power values corresponding to that.
5957 * These attributes are sent as part of
5958 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
5959 */
5960enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
5961 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
5962 /*
5963 * Power mode (u8) takes the values defined in enum
5964 * qca_wlan_vendor_external_acs_chan_power_mode
5965 */
5966 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
5967 = 1,
5968 /*
5969 * Indicates if power value is a PSD/EIRP value (flag). If flag is
5970 * present, it indicates a PSD value.
5971 */
5972 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
5973 /*
5974 * Power value (u32) PSD/EIRP as indicated by
5975 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
5976 * for power mode corresponding to the
5977 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
5978 * Units for PSD - dBm/MHz
5979 * Units for EIRP - dBm
5980 */
5981 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
5982 = 3,
5983 /* keep last */
5984 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
5985 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
5986 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
5987};
5988
5989/**
Paul Stewart092955c2017-02-06 09:13:09 -08005990 * qca_wlan_vendor_attr_pcl: Represents attributes for
5991 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07005992 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5993 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08005994 */
5995enum qca_wlan_vendor_attr_pcl {
5996 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5997
5998 /* Channel number (u8) */
5999 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
6000 /* Channel weightage (u8) */
6001 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006002 /* Channel frequency (u32) in MHz */
6003 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
6004 /* Channel flags (u32)
6005 * bit 0 set: channel to be used for GO role,
6006 * bit 1 set: channel to be used on CLI role,
6007 * bit 2 set: channel must be considered for operating channel
6008 * selection & peer chosen operating channel should be
6009 * one of the channels with this flag set,
6010 * bit 3 set: channel should be excluded in GO negotiation
6011 */
6012 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Sunil Ravia04bd252022-05-02 22:54:18 -07006013
6014 /* Keep last */
6015 QCA_WLAN_VENDOR_ATTR_PCL_LAST,
6016 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
Paul Stewart092955c2017-02-06 09:13:09 -08006017};
6018
6019/**
6020 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
6021 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
6022 * host driver.
6023 */
6024enum qca_wlan_vendor_attr_external_acs_event {
6025 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
6026
6027 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
6028 * This helps ACS module to understand why ACS needs to be started.
6029 */
6030 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
6031 /* Flag attribute to indicate if driver supports spectral scanning */
6032 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
6033 /* Flag attribute to indicate if 11ac is offloaded to firmware */
6034 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
6035 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07006036 * capability as part of scan operation
6037 */
Paul Stewart092955c2017-02-06 09:13:09 -08006038 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
6039 /* Flag attribute to indicate interface status is UP */
6040 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
6041 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07006042 * values.
6043 */
Paul Stewart092955c2017-02-06 09:13:09 -08006044 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
6045 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
6046 * This is the upper bound of channel width. ACS logic should try to get
6047 * a channel with the specified width and if not found, look for lower
6048 * values.
6049 */
6050 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
6051 /* This (u8) will hold values of one of enum nl80211_bands */
6052 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
6053 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07006054 * values
6055 */
Paul Stewart092955c2017-02-06 09:13:09 -08006056 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
6057 /* Array of (u32) supported frequency list among which ACS should choose
6058 * best frequency.
6059 */
6060 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
6061 /* Preferred channel list by the driver which will have array of nested
6062 * values as per enum qca_wlan_vendor_attr_pcl attribute.
6063 */
6064 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
6065 /* Array of nested attribute for each channel. It takes attr as defined
6066 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
6067 */
6068 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006069 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
6070 * It uses values defined in enum
6071 * qca_wlan_vendor_attr_external_acs_policy.
6072 */
6073 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006074 /* Reference RF Operating Parameter (RROP) availability information
6075 * (u16). It uses values defined in enum
6076 * qca_wlan_vendor_attr_rropavail_info.
6077 */
6078 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07006079 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger
6080 * for External ACS
6081 */
6082 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
Paul Stewart092955c2017-02-06 09:13:09 -08006083
6084 /* keep last */
6085 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
6086 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
6087 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
6088};
6089
6090/**
Hai Shalomc3565922019-10-28 11:58:20 -07006091 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08006092 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
6093 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07006094 *
6095 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
6096 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
6097 *
6098 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
6099 * Array of nested values for each channel with following attributes:
6100 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6101 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6102 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6103 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6104 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6105 * Note: If both the driver and user-space application supports the 6 GHz band,
6106 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
6107 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
6108 * To maintain backward compatibility,
6109 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
6110 * is still used if either of the driver or user space application doesn't
6111 * support the 6 GHz band.
6112 *
6113 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
6114 * Primary channel number
6115 * Note: If both the driver and user-space application supports the 6 GHz band,
6116 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
6117 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
6118 * To maintain backward compatibility,
6119 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
6120 * is still used if either of the driver or user space application doesn't
6121 * support the 6 GHz band.
6122 *
6123 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
6124 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
6125 * Note: If both the driver and user-space application supports the 6 GHz band,
6126 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
6127 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
6128 * To maintain backward compatibility,
6129 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
6130 * is still used if either of the driver or user space application
6131 * doesn't support the 6 GHz band.
6132 *
6133 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
6134 * VHT seg0 channel number
6135 * Note: If both the driver and user-space application supports the 6 GHz band,
6136 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
6137 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
6138 * To maintain backward compatibility,
6139 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
6140 * is still used if either of the driver or user space application
6141 * doesn't support the 6 GHz band.
6142 *
6143 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
6144 * VHT seg1 channel number
6145 * Note: If both the driver and user-space application supports the 6 GHz band,
6146 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
6147 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
6148 * To maintain backward compatibility,
6149 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
6150 * is still used if either of the driver or user space application
6151 * doesn't support the 6 GHz band.
6152 *
6153 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
6154 * Takes one of enum nl80211_chan_width values.
6155 *
6156 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
6157 * Array of nested values for each channel with following attributes:
6158 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
6159 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
6160 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
6161 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
6162 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6163 * Note: If user-space application has no support of the 6 GHz band, this
6164 * attribute is optional.
6165 *
6166 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
6167 * Primary channel frequency in MHz
6168 * Note: If user-space application has no support of the 6 GHz band, this
6169 * attribute is optional.
6170 *
6171 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
6172 * Secondary channel frequency in MHz used for HT 40 MHz channels.
6173 * Note: If user-space application has no support of the 6 GHz band, this
6174 * attribute is optional.
6175 *
6176 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
6177 * VHT seg0 channel frequency in MHz
6178 * Note: If user-space application has no support of the 6GHz band, this
6179 * attribute is optional.
6180 *
6181 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
6182 * VHT seg1 channel frequency in MHz
6183 * Note: If user-space application has no support of the 6 GHz band, this
6184 * attribute is optional.
Paul Stewart092955c2017-02-06 09:13:09 -08006185 */
6186enum qca_wlan_vendor_attr_external_acs_channels {
6187 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
6188
6189 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
6190 */
6191 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
6192
6193 /* Array of nested values for each channel with following attributes:
6194 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
6195 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6196 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6197 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6198 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6199 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6200 */
6201 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
6202 /* This (u8) will hold values of one of enum nl80211_bands */
6203 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
6204 /* Primary channel (u8) */
6205 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
6206 /* Secondary channel (u8) used for HT 40 MHz channels */
6207 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
6208 /* VHT seg0 channel (u8) */
6209 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
6210 /* VHT seg1 channel (u8) */
6211 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
6212 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
6213 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
6214
Hai Shalomc3565922019-10-28 11:58:20 -07006215 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
6216 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
6217 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
6218 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
6219 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
6220
Paul Stewart092955c2017-02-06 09:13:09 -08006221 /* keep last */
6222 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
6223 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
6224 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
6225};
6226
6227enum qca_chip_power_save_failure_reason {
6228 /* Indicates if the reason for the failure is due to a protocol
6229 * layer/module.
6230 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006231 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08006232 /* Indicates if the reason for the failure is due to a hardware issue.
6233 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006234 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006235};
6236
6237/**
6238 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
6239 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
6240 * information leading to the power save failure.
6241 */
6242enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07006243 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
6244 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08006245 * These reasons are represented by
6246 * enum qca_chip_power_save_failure_reason.
6247 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006248 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006249
Roshan Pius3a1667e2018-07-03 15:17:14 -07006250 /* keep last */
6251 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
6252 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
6253 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
6254};
6255
6256/**
6257 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
6258 * data types for which the stats have to get collected.
6259 */
6260enum qca_wlan_vendor_nud_stats_data_pkt_flags {
6261 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
6262 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
6263 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
6264 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
6265 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
6266 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
6267 * to represent the stats of respective data type.
6268 */
6269 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
6270 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
6271 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
6272};
6273
6274enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
6275 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
6276 /* Represents the data packet type to be monitored (u32).
6277 * Host driver tracks the stats corresponding to each data frame
6278 * represented by these flags.
6279 * These data packets are represented by
6280 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
6281 */
6282 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
6283 /* Name corresponding to the DNS frame for which the respective DNS
6284 * stats have to get monitored (string). Max string length 255.
6285 */
6286 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
6287 /* source port on which the respective proto stats have to get
6288 * collected (u32).
6289 */
6290 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
6291 /* destination port on which the respective proto stats have to get
6292 * collected (u32).
6293 */
6294 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
6295 /* IPv4 address for which the destined data packets have to be
6296 * monitored. (in network byte order), u32.
6297 */
6298 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
6299 /* IPv6 address for which the destined data packets have to be
6300 * monitored. (in network byte order), 16 bytes array.
6301 */
6302 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
6303
6304 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
6305 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
6306 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006307};
6308
6309/**
6310 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
6311 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
6312 * information to start/stop the NUD statistics collection.
6313 */
6314enum qca_attr_nud_stats_set {
6315 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
6316
6317 /* Flag to start/stop the NUD statistics collection.
6318 * Start - If included, Stop - If not included
6319 */
6320 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006321 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08006322 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006323 /* Represents the list of data packet types to be monitored.
6324 * Host driver tracks the stats corresponding to each data frame
6325 * represented by these flags.
6326 * These data packets are represented by
6327 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
6328 */
6329 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08006330
6331 /* keep last */
6332 QCA_ATTR_NUD_STATS_SET_LAST,
6333 QCA_ATTR_NUD_STATS_SET_MAX =
6334 QCA_ATTR_NUD_STATS_SET_LAST - 1,
6335};
6336
Roshan Pius3a1667e2018-07-03 15:17:14 -07006337enum qca_attr_nud_data_stats {
6338 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
6339 /* Data packet type for which the stats are collected (u32).
6340 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
6341 */
6342 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
6343 /* Name corresponding to the DNS frame for which the respective DNS
6344 * stats are monitored (string). Max string length 255.
6345 */
6346 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
6347 /* source port on which the respective proto stats are collected (u32).
6348 */
6349 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
6350 /* destination port on which the respective proto stats are collected
6351 * (u32).
6352 */
6353 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
6354 /* IPv4 address for which the destined data packets have to be
6355 * monitored. (in network byte order), u32.
6356 */
6357 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
6358 /* IPv6 address for which the destined data packets have to be
6359 * monitored. (in network byte order), 16 bytes array.
6360 */
6361 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
6362 /* Data packet Request count received from netdev (u32). */
6363 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
6364 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
6365 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
6366 /* Data packet Request count received by lower MAC from upper MAC
6367 * (u32)
6368 */
6369 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
6370 /* Data packet Request count successfully transmitted by the device
6371 * (u32)
6372 */
6373 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
6374 /* Data packet Response count received by lower MAC (u32) */
6375 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
6376 /* Data packet Response count received by upper MAC (u32) */
6377 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
6378 /* Data packet Response count delivered to netdev (u32) */
6379 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
6380 /* Data Packet Response count that are dropped out of order (u32) */
6381 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
6382
6383 /* keep last */
6384 QCA_ATTR_NUD_DATA_STATS_LAST,
6385 QCA_ATTR_NUD_DATA_STATS_MAX =
6386 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
6387};
6388
Paul Stewart092955c2017-02-06 09:13:09 -08006389/**
6390 * qca_attr_nud_stats_get: Attributes to vendor subcmd
6391 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
6392 * NUD statistics collected when queried.
6393 */
6394enum qca_attr_nud_stats_get {
6395 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006396 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006397 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006398 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006399 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006400 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006401 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006402 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006403 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006404 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006405 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006406 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006407 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006408 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006409 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006410 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006411 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
6412 /* Flag indicating if the station's link to the AP is active.
6413 * Active Link - If included, Inactive link - If not included
6414 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006415 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08006416 /* Flag indicating if there is any duplicate address detected (DAD).
6417 * Yes - If detected, No - If not detected.
6418 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006419 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006420 /* List of Data packet types for which the stats are requested.
6421 * This list does not carry ARP stats as they are done by the
6422 * above attributes. Represented by enum qca_attr_nud_data_stats.
6423 */
6424 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08006425
6426 /* keep last */
6427 QCA_ATTR_NUD_STATS_GET_LAST,
6428 QCA_ATTR_NUD_STATS_GET_MAX =
6429 QCA_ATTR_NUD_STATS_GET_LAST - 1,
6430};
6431
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006432enum qca_wlan_btm_candidate_status {
6433 QCA_STATUS_ACCEPT = 0,
6434 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
6435 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
6436 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
6437 QCA_STATUS_REJECT_LOW_RSSI = 4,
6438 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
6439 QCA_STATUS_REJECT_UNKNOWN = 6,
6440};
6441
6442enum qca_wlan_vendor_attr_btm_candidate_info {
6443 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
6444
6445 /* 6-byte MAC address representing the BSSID of transition candidate */
6446 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
6447 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
6448 * returned by the driver. It says whether the BSSID provided in
6449 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
6450 * the driver, if not it specifies the reason for rejection.
6451 * Note that the user-space can overwrite the transition reject reason
6452 * codes provided by driver based on more information.
6453 */
6454 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
6455
6456 /* keep last */
6457 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
6458 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
6459 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
6460};
6461
6462enum qca_attr_trace_level {
6463 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
6464 /*
6465 * Nested array of the following attributes:
6466 * QCA_ATTR_TRACE_LEVEL_MODULE,
6467 * QCA_ATTR_TRACE_LEVEL_MASK.
6468 */
6469 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
6470 /*
6471 * Specific QCA host driver module. Please refer to the QCA host
6472 * driver implementation to get the specific module ID.
6473 */
6474 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
6475 /* Different trace level masks represented in the QCA host driver. */
6476 QCA_ATTR_TRACE_LEVEL_MASK = 3,
6477
6478 /* keep last */
6479 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
6480 QCA_ATTR_TRACE_LEVEL_MAX =
6481 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
6482};
6483
6484/**
6485 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
6486 */
6487enum qca_wlan_vendor_attr_get_he_capabilities {
6488 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
6489 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07006490 * (u8 attribute: 0 = not supported, 1 = supported)
6491 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006492 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
6493 /* HE PHY capabilities, array of 3 u32 values */
6494 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
6495 /* HE MAC capabilities (u32 attribute) */
6496 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
6497 /* HE MCS map (u32 attribute) */
6498 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
6499 /* Number of SS (u32 attribute) */
6500 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
6501 /* RU count (u32 attribute) */
6502 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
6503 /* PPE threshold data, array of 8 u32 values */
6504 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
6505
6506 /* keep last */
6507 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
6508 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
6509 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
6510};
6511
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006512/**
6513 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6514 */
6515enum qca_wlan_vendor_attr_spectral_scan {
6516 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6517 /* Number of times the chip enters spectral scan mode before
6518 * deactivating spectral scans. When set to 0, chip will enter spectral
6519 * scan mode continuously. u32 attribute.
6520 */
6521 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6522 /* Spectral scan period. Period increment resolution is 256*Tclk,
6523 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6524 */
6525 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6526 /* Spectral scan priority. u32 attribute. */
6527 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6528 /* Number of FFT data points to compute. u32 attribute. */
6529 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6530 /* Enable targeted gain change before starting the spectral scan FFT.
6531 * u32 attribute.
6532 */
6533 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6534 /* Restart a queued spectral scan. u32 attribute. */
6535 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6536 /* Noise floor reference number for the calculation of bin power.
6537 * u32 attribute.
6538 */
6539 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6540 /* Disallow spectral scan triggers after TX/RX packets by setting
6541 * this delay value to roughly SIFS time period or greater.
6542 * u32 attribute.
6543 */
6544 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6545 /* Number of strong bins (inclusive) per sub-channel, below
6546 * which a signal is declared a narrow band tone. u32 attribute.
6547 */
6548 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6549 /* Specify the threshold over which a bin is declared strong (for
6550 * scan bandwidth analysis). u32 attribute.
6551 */
6552 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6553 /* Spectral scan report mode. u32 attribute. */
6554 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6555 /* RSSI report mode, if the ADC RSSI is below
6556 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6557 * then FFTs will not trigger, but timestamps and summaries get
6558 * reported. u32 attribute.
6559 */
6560 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6561 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
6562 * to ensure spectral scan reporting with normal error code.
6563 * u32 attribute.
6564 */
6565 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6566 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
6567 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6568 * u32 attribute.
6569 */
6570 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6571 /* Format of FFT report to software for spectral scan triggered FFTs.
6572 * 0: No FFT report (only spectral scan summary report)
6573 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6574 * report
6575 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6576 * bins (in-band) per FFT + spectral scan summary report
6577 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6578 * bins (all) per FFT + spectral scan summary report
6579 * u32 attribute.
6580 */
6581 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6582 /* Number of LSBs to shift out in order to scale the FFT bins.
6583 * u32 attribute.
6584 */
6585 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6586 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6587 * in dBm power. u32 attribute.
6588 */
6589 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6590 /* Per chain enable mask to select input ADC for search FFT.
6591 * u32 attribute.
6592 */
6593 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6594 /* An unsigned 64-bit integer provided by host driver to identify the
6595 * spectral scan request. This attribute is included in the scan
6596 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6597 * and used as an attribute in
6598 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6599 * specific scan to be stopped.
6600 */
6601 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006602 /* Skip interval for FFT reports. u32 attribute */
6603 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6604 /* Set to report only one set of FFT results.
6605 * u32 attribute.
6606 */
6607 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6608 /* Debug level for spectral module in driver.
6609 * 0 : Verbosity level 0
6610 * 1 : Verbosity level 1
6611 * 2 : Verbosity level 2
6612 * 3 : Matched filterID display
6613 * 4 : One time dump of FFT report
6614 * u32 attribute.
6615 */
6616 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6617 /* Type of spectral scan request. u32 attribute.
6618 * It uses values defined in enum
6619 * qca_wlan_vendor_attr_spectral_scan_request_type.
6620 */
6621 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07006622 /* This specifies the frequency span over which spectral
6623 * scan would be carried out. Its value depends on the
6624 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6625 * the relation is as follows.
6626 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6627 * Not applicable. Spectral scan would happen in the
6628 * operating span.
6629 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6630 * Center frequency (in MHz) of the span of interest or
6631 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07006632 * in the span of interest. For 80+80 MHz agile spectral scan
6633 * request it represents center frequency (in MHz) of the primary
6634 * 80 MHz span or for convenience, center frequency (in MHz) of any
6635 * channel in the primary 80 MHz span. If agile spectral scan is
6636 * initiated without setting a valid frequency it returns the
6637 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07006638 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
6639 * u32 attribute.
6640 */
6641 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
6642 /* Spectral scan mode. u32 attribute.
6643 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6644 * If this attribute is not present, it is assumed to be
6645 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
6646 */
6647 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
6648 /* Spectral scan error code. u32 attribute.
6649 * It uses values defined in enum
6650 * qca_wlan_vendor_spectral_scan_error_code.
6651 * This attribute is included only in failure scenarios.
6652 */
6653 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
6654 /* 8-bit unsigned value to enable/disable debug of the
6655 * Spectral DMA ring.
6656 * 1-enable, 0-disable
6657 */
6658 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
6659 /* 8-bit unsigned value to enable/disable debug of the
6660 * Spectral DMA buffers.
6661 * 1-enable, 0-disable
6662 */
6663 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07006664 /* This specifies the frequency span over which spectral scan would be
6665 * carried out. Its value depends on the value of
6666 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
6667 * follows.
6668 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6669 * Not applicable. Spectral scan would happen in the operating span.
6670 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6671 * This attribute is applicable only for agile spectral scan
6672 * requests in 80+80 MHz mode. It represents center frequency (in
6673 * MHz) of the secondary 80 MHz span or for convenience, center
6674 * frequency (in MHz) of any channel in the secondary 80 MHz span.
6675 * u32 attribute.
6676 */
6677 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006678 /* This attribute specifies the bandwidth to be used for spectral scan
6679 * operation. This is an u8 attribute and uses the values in enum
6680 * nl80211_chan_width. This is an optional attribute.
6681 * If this attribute is not populated, the driver should configure the
6682 * spectral scan bandwidth to the maximum value supported by the target
6683 * for the current operating bandwidth.
6684 */
6685 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07006686 /* Spectral FFT recapture flag attribute, to enable FFT recapture.
6687 * Recapture can only be enabled for scan period greater than 52 us.
6688 * If this attribute is enabled, re-triggers will be enabled when AGC
6689 * gain changes.
6690 */
6691 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006692
6693 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
6694 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
6695 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
6696};
6697
Roshan Pius3a1667e2018-07-03 15:17:14 -07006698/**
6699 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
6700 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
6701 */
6702enum qca_wlan_vendor_attr_spectral_diag_stats {
6703 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
6704 /* Number of spectral TLV signature mismatches.
6705 * u64 attribute.
6706 */
6707 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
6708 /* Number of spectral phyerror events with insufficient length when
6709 * parsing for secondary 80 search FFT report. u64 attribute.
6710 */
6711 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
6712 /* Number of spectral phyerror events without secondary 80
6713 * search FFT report. u64 attribute.
6714 */
6715 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
6716 /* Number of spectral phyerror events with vht operation segment 1 id
6717 * mismatches in search fft report. u64 attribute.
6718 */
6719 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
6720 /* Number of spectral phyerror events with vht operation segment 2 id
6721 * mismatches in search fft report. u64 attribute.
6722 */
6723 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
6724
6725 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
6726 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
6727 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
6728};
6729
6730/**
6731 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
6732 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
6733 */
6734enum qca_wlan_vendor_attr_spectral_cap {
6735 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
6736 /* Flag attribute to indicate phydiag capability */
6737 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
6738 /* Flag attribute to indicate radar detection capability */
6739 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
6740 /* Flag attribute to indicate spectral capability */
6741 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
6742 /* Flag attribute to indicate advanced spectral capability */
6743 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
6744 /* Spectral hardware generation. u32 attribute.
6745 * It uses values defined in enum
6746 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
6747 */
6748 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08006749 /* Spectral bin scaling formula ID. u16 attribute.
6750 * It uses values defined in enum
6751 * qca_wlan_vendor_spectral_scan_cap_formula_id.
6752 */
6753 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
6754 /* Spectral bin scaling param - low level offset.
6755 * s16 attribute.
6756 */
6757 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
6758 /* Spectral bin scaling param - high level offset.
6759 * s16 attribute.
6760 */
6761 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
6762 /* Spectral bin scaling param - RSSI threshold.
6763 * s16 attribute.
6764 */
6765 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
6766 /* Spectral bin scaling param - default AGC max gain.
6767 * u8 attribute.
6768 */
6769 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07006770 /* Flag attribute to indicate agile spectral scan capability
6771 * for 20/40/80 MHz modes.
6772 */
Hai Shalom81f62d82019-07-22 12:10:00 -07006773 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07006774 /* Flag attribute to indicate agile spectral scan capability
6775 * for 160 MHz mode.
6776 */
6777 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
6778 /* Flag attribute to indicate agile spectral scan capability
6779 * for 80+80 MHz mode.
6780 */
6781 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07006782 /* Number of spectral detectors used for scan in 20 MHz.
6783 * u32 attribute.
6784 */
6785 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
6786 /* Number of spectral detectors used for scan in 40 MHz.
6787 * u32 attribute.
6788 */
6789 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
6790 /* Number of spectral detectors used for scan in 80 MHz.
6791 * u32 attribute.
6792 */
6793 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
6794 /* Number of spectral detectors used for scan in 160 MHz.
6795 * u32 attribute.
6796 */
6797 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
6798 /* Number of spectral detectors used for scan in 80+80 MHz.
6799 * u32 attribute.
6800 */
6801 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006802 /* Flag attribute to indicate agile spectral scan capability
6803 * for 320 MHz mode.
6804 */
6805 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
6806 /* Number of spectral detectors used for scan in 320 MHz.
6807 * u32 attribute.
6808 */
6809 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006810
6811 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
6812 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
6813 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
6814};
6815
6816/**
6817 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
6818 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
6819 */
6820enum qca_wlan_vendor_attr_spectral_scan_status {
6821 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
6822 /* Flag attribute to indicate whether spectral scan is enabled */
6823 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
6824 /* Flag attribute to indicate whether spectral scan is in progress*/
6825 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07006826 /* Spectral scan mode. u32 attribute.
6827 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6828 * If this attribute is not present, normal mode
6829 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
6830 * requested.
6831 */
6832 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006833
6834 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
6835 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
6836 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
6837};
6838
6839/**
6840 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
6841 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
6842 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
6843 * spectral scan request types.
6844 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
6845 * set the spectral parameters and start scan.
6846 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
6847 * only set the spectral parameters.
6848 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
6849 * only start the spectral scan.
6850 */
6851enum qca_wlan_vendor_attr_spectral_scan_request_type {
6852 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
6853 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
6854 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
6855};
6856
6857/**
Hai Shalom81f62d82019-07-22 12:10:00 -07006858 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
6859 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
6860 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
6861 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
6862 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
6863 * spectral scan modes.
6864 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
6865 * spectral scan in the current operating span.
6866 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
6867 * spectral scan in the configured agile span.
6868 */
6869enum qca_wlan_vendor_spectral_scan_mode {
6870 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
6871 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
6872};
6873
6874/**
6875 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
6876 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
6877 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
6878 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
6879 * of a parameter is not supported.
6880 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
6881 * mode is not supported.
6882 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
6883 * has invalid value.
6884 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
6885 * is not initialized.
6886 */
6887enum qca_wlan_vendor_spectral_scan_error_code {
6888 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
6889 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
6890 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
6891 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
6892};
6893
6894/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07006895 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
6896 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
6897 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6898 * spectral hardware generation.
6899 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
6900 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
6901 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
6902 */
6903enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
6904 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
6905 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
6906 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
6907};
6908
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006909enum qca_wlan_vendor_tos {
6910 QCA_WLAN_VENDOR_TOS_BK = 0,
6911 QCA_WLAN_VENDOR_TOS_BE = 1,
6912 QCA_WLAN_VENDOR_TOS_VI = 2,
6913 QCA_WLAN_VENDOR_TOS_VO = 3,
6914};
6915
6916/**
6917 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
6918 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
6919 */
6920enum qca_wlan_vendor_attr_active_tos {
6921 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
6922 /* Type Of Service - Represented by qca_wlan_vendor_tos */
6923 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
6924 /* Flag attribute representing the start (attribute included) or stop
6925 * (attribute not included) of the respective TOS.
6926 */
6927 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
6928};
6929
6930enum qca_wlan_vendor_hang_reason {
6931 /* Unspecified reason */
6932 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
6933 /* No Map for the MAC entry for the received frame */
6934 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
6935 /* Peer deletion timeout happened */
6936 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
6937 /* Peer unmap timeout */
6938 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
6939 /* Scan request timed out */
6940 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
6941 /* Consecutive Scan attempt failures */
6942 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
6943 /* Unable to get the message buffer */
6944 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
6945 /* Current command processing is timedout */
6946 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
6947 /* Timeout for an ACK from FW for suspend request */
6948 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
6949 /* Timeout for an ACK from FW for resume request */
6950 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
6951 /* Transmission timeout for consecutive data frames */
6952 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
6953 /* Timeout for the TX completion status of data frame */
6954 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
6955 /* DXE failure for TX/RX, DXE resource unavailability */
6956 QCA_WLAN_HANG_DXE_FAILURE = 12,
6957 /* WMI pending commands exceed the maximum count */
6958 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07006959 /* Timeout for peer STA connection accept command's response from the
6960 * FW in AP mode. This command is triggered when a STA (peer) connects
6961 * to AP (DUT).
6962 */
6963 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
6964 /* Timeout for the AP connection accept command's response from the FW
6965 * in STA mode. This command is triggered when the STA (DUT) connects
6966 * to an AP (peer).
6967 */
6968 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
6969 /* Timeout waiting for the response to the MAC HW mode change command
6970 * sent to FW as a part of MAC mode switch among DBS (Dual Band
6971 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
6972 * Channel Concurrency) mode.
6973 */
6974 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
6975 /* Timeout waiting for the response from FW to configure the MAC HW's
6976 * mode. This operation is to configure the single/two MACs in either
6977 * SCC/MCC/DBS mode.
6978 */
6979 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
6980 /* Timeout waiting for response of VDEV start command from the FW */
6981 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
6982 /* Timeout waiting for response of VDEV restart command from the FW */
6983 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
6984 /* Timeout waiting for response of VDEV stop command from the FW */
6985 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
6986 /* Timeout waiting for response of VDEV delete command from the FW */
6987 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
6988 /* Timeout waiting for response of peer all delete request command to
6989 * the FW on a specific VDEV.
6990 */
6991 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08006992 /* WMI sequence mismatch between WMI command and Tx completion */
6993 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
6994 /* Write to Device HAL register failed */
6995 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
6996 /* No credit left to send the wow_wakeup_from_sleep to firmware */
6997 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
6998 /* Bus failure */
6999 QCA_WLAN_HANG_BUS_FAILURE = 26,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007000 /* tasklet/credit latency found */
7001 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007002};
7003
7004/**
7005 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
7006 * QCA_NL80211_VENDOR_SUBCMD_HANG.
7007 */
7008enum qca_wlan_vendor_attr_hang {
7009 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
7010 /* Reason for the hang - u32 attribute with a value from enum
7011 * qca_wlan_vendor_hang_reason.
7012 */
7013 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07007014 /* The binary blob data associated with the hang reason specified by
7015 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
7016 * contain the required dump to analyze the reason for the hang.
7017 * NLA_BINARY attribute, the max size is 1024 bytes.
7018 */
7019 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007020
7021 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
7022 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
7023 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
7024};
7025
Roshan Pius3a1667e2018-07-03 15:17:14 -07007026/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08007027 * enum qca_wlan_vendor_flush_pending_policy: Represents values for
7028 * the policy to flush pending frames, configured via
7029 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
7030 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
7031 *
7032 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
7033 * the flush policy configured before. This command basically disables the
7034 * flush config set by the user.
7035 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
7036 * the flush policy to be immediate. All pending packets for the peer/TID are
7037 * flushed when this command/policy is received.
7038 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
7039 * the flush policy to the end of TWT SP. All pending packets for the peer/TID
7040 * are flushed when the end of TWT SP is reached.
7041 */
7042enum qca_wlan_vendor_flush_pending_policy {
7043 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
7044 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
7045 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
7046};
7047
7048/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007049 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
7050 * flushing pending traffic in firmware.
7051 *
7052 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
7053 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
7054 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
7055 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
Hai Shaloma20dcd72022-02-04 13:43:00 -08007056 * flush packets with access category. This is optional. See below.
7057 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
7058 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
7059 * bit to 1 to act upon the TID. This is optional. Either this attribute or
7060 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
7061 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
7062 * it is an error.
7063 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
7064 * packets corresponding to the peer/TID provided. It is a u32 value,
7065 * represented by %enum qca_wlan_vendor_flush_pending_policy. This
7066 * value is honored only when TID mask is provided. This is not honored when AC
7067 * mask is provided.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007068 */
7069enum qca_wlan_vendor_attr_flush_pending {
7070 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
7071 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
7072 QCA_WLAN_VENDOR_ATTR_AC = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007073 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
7074 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007075
7076 /* keep last */
7077 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
7078 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
7079 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
7080};
7081
7082/**
Hai Shalom74f70d42019-02-11 14:42:39 -08007083 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
7084 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
7085 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7086 * Spectral bin scaling formula ID.
7087 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
7088 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
7089 * and RSSI threshold based formula.
7090 */
7091enum qca_wlan_vendor_spectral_scan_cap_formula_id {
7092 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
7093 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
7094};
7095
7096/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007097 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
7098 * RF Operating Parameter (RROP) information is available, and if so, at which
7099 * point in the application-driver interaction sequence it can be retrieved by
7100 * the application from the driver. This point may vary by architecture and
7101 * other factors. This is a u16 value.
7102 */
7103enum qca_wlan_vendor_attr_rropavail_info {
7104 /* RROP information is unavailable. */
7105 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
7106 /* RROP information is available and the application can retrieve the
7107 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
7108 * event from the driver.
7109 */
7110 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
7111 /* RROP information is available only after a vendor specific scan
7112 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
7113 * successfully completed. The application can retrieve the information
7114 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
7115 * the driver.
7116 */
7117 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
7118};
7119
7120/**
7121 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
7122 * Representative RF Operating Parameter (RROP) information. It is sent for the
7123 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
7124 * intended for use by external Auto Channel Selection applications. It provides
7125 * guidance values for some RF parameters that are used by the system during
7126 * operation. These values could vary by channel, band, radio, and so on.
7127 */
7128enum qca_wlan_vendor_attr_rrop_info {
7129 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
7130
7131 /* Representative Tx Power List (RTPL) which has an array of nested
7132 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
7133 */
7134 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
7135
7136 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
7137 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
7138 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
7139};
7140
7141/**
7142 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
7143 * entry instances in the Representative Tx Power List (RTPL). It provides
7144 * simplified power values intended for helping external Auto channel Selection
7145 * applications compare potential Tx power performance between channels, other
7146 * operating conditions remaining identical. These values are not necessarily
7147 * the actual Tx power values that will be used by the system. They are also not
7148 * necessarily the max or average values that will be used. Instead, they are
7149 * relative, summarized keys for algorithmic use computed by the driver or
7150 * underlying firmware considering a number of vendor specific factors.
7151 */
7152enum qca_wlan_vendor_attr_rtplinst {
7153 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
7154
Hai Shalomfdcde762020-04-02 11:19:20 -07007155 /* Primary channel number (u8).
7156 * Note: If both the driver and user space application support the
7157 * 6 GHz band, this attribute is deprecated and
7158 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
7159 * maintain backward compatibility,
7160 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
7161 * driver or user space application or both do not support the 6 GHz
7162 * band.
7163 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007164 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
7165 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
7166 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
7167 /* Representative Tx power in dBm (s32) with emphasis on range. */
7168 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07007169 /* Primary channel center frequency (u32) in MHz */
7170 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007171
7172 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
7173 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
7174 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
7175};
7176
7177/**
7178 * enum qca_wlan_vendor_attr_config_latency_level - Level for
7179 * wlan latency module.
7180 *
7181 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
7182 * power saving which would causing data exchange out of service, this
7183 * would be a big impact on latency. For latency sensitive applications over
7184 * Wi-Fi are intolerant to such operations and thus would configure them
7185 * to meet their respective needs. It is well understood by such applications
7186 * that altering the default behavior would degrade the Wi-Fi functionality
7187 * w.r.t the above pointed WLAN operations.
7188 *
7189 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
7190 * Default WLAN operation level which throughput orientated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08007191 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
7192 * Use XR level to benefit XR (extended reality) application to achieve
7193 * latency and power by via constraint scan/roaming/adaptive PS.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007194 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
Sunil Ravia04bd252022-05-02 22:54:18 -07007195 * Use low latency level to benefit application like concurrent
Roshan Pius3a1667e2018-07-03 15:17:14 -07007196 * downloading or video streaming via constraint scan/adaptive PS.
7197 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
7198 * Use ultra low latency level to benefit for gaming/voice
7199 * application via constraint scan/roaming/adaptive PS.
7200 */
7201enum qca_wlan_vendor_attr_config_latency_level {
7202 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
7203 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007204 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
7205 /* legacy name */
7206 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
7207 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007208 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
7209 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
7210
7211 /* keep last */
7212 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
7213 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
7214 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
7215};
7216
7217/**
7218 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
7219 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7220 */
7221enum qca_wlan_vendor_attr_mac {
7222 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
7223
7224 /* MAC mode info list which has an array of nested values as
7225 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
7226 */
7227 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
7228
7229 /* keep last */
7230 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
7231 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
7232 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
7233};
7234
7235/**
7236 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
7237 * Wi-Fi netdev interface on a respective MAC.
7238 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
7239 */
7240enum qca_wlan_vendor_attr_mac_iface_info {
7241 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
7242 /* Wi-Fi netdev's interface index (u32) */
7243 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
7244 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
7245 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
7246
7247 /* keep last */
7248 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
7249 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
7250 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
7251};
7252
7253/**
7254 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
7255 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
7256 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7257 */
7258enum qca_wlan_vendor_attr_mac_info {
7259 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
7260 /* Hardware MAC ID associated for the MAC (u32) */
7261 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
7262 /* Band supported by the MAC at a given point.
7263 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
7264 * nl80211_band.
7265 */
7266 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
7267 /* Refers to list of WLAN netdev interfaces associated with this MAC.
7268 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
7269 */
7270 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
7271
7272 /* keep last */
7273 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
7274 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
7275 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
7276};
7277
7278/**
7279 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
7280 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
7281 */
7282enum qca_wlan_vendor_attr_get_logger_features {
7283 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
7284 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
7285 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
7286 /* keep last */
7287 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
7288 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
7289 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
7290};
7291
7292/**
7293 * enum wifi_logger_supported_features - Values for supported logger features
7294 */
7295enum wifi_logger_supported_features {
7296 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
7297 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
7298 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
7299 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
7300 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
7301 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
7302 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
7303 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
7304 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
7305};
7306
7307/**
7308 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
7309 * capabilities features
7310 */
7311enum qca_wlan_tdls_caps_features_supported {
7312 WIFI_TDLS_SUPPORT = (1 << (0)),
7313 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
7314 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
7315};
7316
7317/**
7318 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
7319 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
7320 */
7321enum qca_wlan_vendor_attr_tdls_get_capabilities {
7322 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
7323 /* Indicates the max concurrent sessions */
7324 /* Unsigned 32-bit value */
7325 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
7326 /* Indicates the support for features */
7327 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
7328 */
7329 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
7330
7331 /* keep last */
7332 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
7333 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
7334 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
7335};
7336
7337/**
7338 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
7339 * command used as value for the attribute
7340 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
7341 */
7342enum qca_wlan_offloaded_packets_sending_control {
7343 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
7344 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
7345 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
7346};
7347
7348/**
7349 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
7350 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
7351 */
7352enum qca_wlan_vendor_attr_offloaded_packets {
7353 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
7354 /* Takes valid value from the enum
7355 * qca_wlan_offloaded_packets_sending_control
7356 * Unsigned 32-bit value
7357 */
7358 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
7359 /* Unsigned 32-bit value */
7360 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
7361 /* array of u8 len: Max packet size */
7362 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
7363 /* 6-byte MAC address used to represent source MAC address */
7364 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
7365 /* 6-byte MAC address used to represent destination MAC address */
7366 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
7367 /* Unsigned 32-bit value, in milli seconds */
7368 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07007369 /* This optional unsigned 16-bit attribute is used for specifying
7370 * ethernet protocol type. If not specified ethertype defaults to IPv4.
7371 */
7372 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007373
7374 /* keep last */
7375 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
7376 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
7377 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
7378};
7379
7380/**
7381 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
7382 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
7383 */
7384enum qca_wlan_rssi_monitoring_control {
7385 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
7386 QCA_WLAN_RSSI_MONITORING_START,
7387 QCA_WLAN_RSSI_MONITORING_STOP,
7388};
7389
7390/**
7391 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
7392 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
7393 */
7394enum qca_wlan_vendor_attr_rssi_monitoring {
7395 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
7396 /* Takes valid value from the enum
7397 * qca_wlan_rssi_monitoring_control
7398 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
7399 */
7400 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
7401 /* Unsigned 32-bit value */
7402 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
7403 /* Signed 8-bit value in dBm */
7404 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
7405 /* Signed 8-bit value in dBm */
7406 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
7407 /* attributes to be used/received in callback */
7408 /* 6-byte MAC address used to represent current BSSID MAC address */
7409 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
7410 /* Signed 8-bit value indicating the current RSSI */
7411 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
7412 /* keep last */
7413 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
7414 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
7415 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
7416};
7417
7418/**
7419 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
7420 * QCA_NL80211_VENDOR_SUBCMD_NDP.
7421 */
7422enum qca_wlan_vendor_attr_ndp_params {
7423 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
7424 /* Unsigned 32-bit value
7425 * enum of sub commands values in qca_wlan_ndp_sub_cmd
7426 */
7427 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
7428 /* Unsigned 16-bit value */
7429 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
7430 /* NL attributes for data used NDP SUB cmds */
7431 /* Unsigned 32-bit value indicating a service info */
7432 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
7433 /* Unsigned 32-bit value; channel frequency in MHz */
7434 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
7435 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
7436 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
7437 /* Interface name on which NDP is being created */
7438 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
7439 /* Unsigned 32-bit value for security */
7440 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
7441 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
7442 /* Unsigned 32-bit value for QoS */
7443 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
7444 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
7445 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
7446 /* Unsigned 32-bit value for NDP instance Id */
7447 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
7448 /* Array of instance Ids */
7449 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
7450 /* Unsigned 32-bit value for initiator/responder NDP response code
7451 * accept/reject
7452 */
7453 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
7454 /* NDI MAC address. An array of 6 Unsigned int8 */
7455 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
7456 /* Unsigned 32-bit value errors types returned by driver
7457 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7458 * NanStatusType includes these values.
7459 */
7460 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
7461 /* Unsigned 32-bit value error values returned by driver
7462 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
7463 * NanInternalStatusType includes these values.
7464 */
7465 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
7466 /* Unsigned 32-bit value for Channel setup configuration
7467 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7468 * NanDataPathChannelCfg includes these values.
7469 */
7470 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
7471 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
7472 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
7473 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
7474 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
7475 /* Security Context Identifier that contains the PMKID
7476 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
7477 */
7478 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
7479 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
7480 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
7481 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
7482 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
7483 /* Unsigned 32-bit bitmap indicating schedule update
7484 * BIT_0: NSS Update
7485 * BIT_1: Channel list update
7486 */
7487 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
7488 /* Unsigned 32-bit value for NSS */
7489 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
7490 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
7491 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
7492 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
7493 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
7494 */
7495 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
7496 /* Array of channel/band width */
7497 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
7498 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
7499 * This attribute is used and optional for ndp request, ndp response,
7500 * ndp indication, and ndp confirm.
7501 */
7502 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
7503 /* Unsigned 16-bit value indicating transport port used by NDP.
7504 * This attribute is used and optional for ndp response, ndp indication,
7505 * and ndp confirm.
7506 */
7507 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
7508 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
7509 * the Internet Assigned Numbers Authority (IANA) as per:
7510 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
7511 * This attribute is used and optional for ndp response, ndp indication,
7512 * and ndp confirm.
7513 */
7514 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08007515 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
7516 * 1:support 0:not support
7517 */
7518 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07007519 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first
7520 * 48 bits of the SHA-256 hash of the Service Name.
7521 * A lower-case representation of the Service Name shall be used to
7522 * calculate the Service ID.
7523 * Array of u8: length is 6 bytes
7524 * This attribute is used and optional for ndp indication.
7525 */
7526 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007527
7528 /* keep last */
7529 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
7530 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
7531 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
7532};
7533
7534enum qca_wlan_ndp_sub_cmd {
7535 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
Sunil Ravia04bd252022-05-02 22:54:18 -07007536 /* Command to create a NAN data path interface.
7537 * This command was initially designed to both create and start a NAN
7538 * data path interface. However, changes to Linux 5.12 no longer allow
7539 * interface creation via vendor commands. When the driver advertises
7540 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
7541 * userspace must explicitly first create the interface using
7542 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
7543 * to start the interface.
7544 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007545 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
Sunil Ravia04bd252022-05-02 22:54:18 -07007546 /* Command to delete a NAN data path interface.
7547 * This command was initially designed to both stop and delete a NAN
7548 * data path interface. However, changes to Linux 5.12 no longer allow
7549 * interface deletion via vendor commands. When the driver advertises
7550 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
7551 * userspace must explicitly delete the interface using
7552 * NL80211_CMD_DEL_INTERFACE after calling this command.
7553 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007554 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
7555 /* Command to initiate a NAN data path session */
7556 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
7557 /* Command to notify if the NAN data path session was sent */
7558 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
7559 /* Command to respond to NAN data path session */
7560 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
7561 /* Command to notify on the responder about the response */
7562 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
7563 /* Command to initiate a NAN data path end */
7564 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
7565 /* Command to notify the if end request was sent */
7566 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
7567 /* Command to notify the peer about the end request */
7568 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
7569 /* Command to confirm the NAN data path session is complete */
7570 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
7571 /* Command to indicate the peer about the end request being received */
7572 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
7573 /* Command to indicate the peer of schedule update */
7574 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
7575};
7576
7577/**
7578 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
7579 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
7580 */
7581enum qca_wlan_vendor_attr_nd_offload {
7582 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
7583 /* Flag to set Neighbour Discovery offload */
7584 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
7585 /* Keep last */
7586 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
7587 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
7588 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
7589};
7590
7591/**
7592 * enum packet_filter_sub_cmd - Packet filter sub commands
7593 */
7594enum packet_filter_sub_cmd {
7595 /**
7596 * Write packet filter program and/or data. The driver/firmware should
7597 * disable APF before writing into local buffer and re-enable APF after
7598 * writing is done.
7599 */
7600 QCA_WLAN_SET_PACKET_FILTER = 1,
7601 /* Get packet filter feature capabilities from driver */
7602 QCA_WLAN_GET_PACKET_FILTER = 2,
7603 /**
7604 * Write packet filter program and/or data. User space will send the
7605 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
7606 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
7607 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
7608 * enable/disable is given to user space with this command. Also,
7609 * user space sends the length of program portion in the buffer within
7610 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
7611 */
7612 QCA_WLAN_WRITE_PACKET_FILTER = 3,
7613 /* Read packet filter program and/or data */
7614 QCA_WLAN_READ_PACKET_FILTER = 4,
7615 /* Enable APF feature */
7616 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
7617 /* Disable APF feature */
7618 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
7619};
7620
7621/**
7622 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
7623 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
7624 */
7625enum qca_wlan_vendor_attr_packet_filter {
7626 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
7627 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
7628 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
7629 /* Unsigned 32-bit value indicating the packet filter version */
7630 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
7631 /* Unsigned 32-bit value indicating the packet filter id */
7632 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
7633 /**
7634 * Unsigned 32-bit value indicating the packet filter size including
7635 * program + data.
7636 */
7637 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
7638 /* Unsigned 32-bit value indicating the packet filter current offset */
7639 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
7640 /* Program and/or data in bytes */
7641 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
7642 /* Unsigned 32-bit value of the length of the program section in packet
7643 * filter buffer.
7644 */
7645 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
7646
7647 /* keep last */
7648 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
7649 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
7650 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
7651};
7652
7653/**
7654 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
7655 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
7656 */
7657enum qca_wlan_vendor_drv_info {
7658 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
7659 /* Maximum Message size info between firmware & HOST
7660 * Unsigned 32-bit value
7661 */
7662 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
7663 /* keep last */
7664 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
7665 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
7666 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
7667};
7668
7669/**
7670 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
7671 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
7672 */
7673enum qca_wlan_vendor_attr_wake_stats {
7674 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
7675 /* Unsigned 32-bit value indicating the total count of wake event */
7676 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
7677 /* Array of individual wake count, each index representing wake reason
7678 */
7679 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
7680 /* Unsigned 32-bit value representing wake count array */
7681 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
7682 /* Unsigned 32-bit total wake count value of driver/fw */
7683 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
7684 /* Array of wake stats of driver/fw */
7685 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
7686 /* Unsigned 32-bit total wake count value of driver/fw */
7687 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
7688 /* Unsigned 32-bit total wake count value of packets received */
7689 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
7690 /* Unsigned 32-bit wake count value unicast packets received */
7691 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
7692 /* Unsigned 32-bit wake count value multicast packets received */
7693 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
7694 /* Unsigned 32-bit wake count value broadcast packets received */
7695 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
7696 /* Unsigned 32-bit wake count value of ICMP packets */
7697 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
7698 /* Unsigned 32-bit wake count value of ICMP6 packets */
7699 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
7700 /* Unsigned 32-bit value ICMP6 router advertisement */
7701 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
7702 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
7703 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
7704 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
7705 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
7706 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
7707 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
7708 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
7709 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
7710 /* Unsigned 32-bit wake count value of receive side multicast */
7711 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
7712 /* Unsigned 32-bit wake count value of a given RSSI breach */
7713 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
7714 /* Unsigned 32-bit wake count value of low RSSI */
7715 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
7716 /* Unsigned 32-bit value GSCAN count */
7717 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
7718 /* Unsigned 32-bit value PNO complete count */
7719 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
7720 /* Unsigned 32-bit value PNO match count */
7721 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
7722 /* keep last */
7723 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
7724 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
7725 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
7726};
7727
7728/**
Hai Shalomfdcde762020-04-02 11:19:20 -07007729 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07007730 * configured by userspace to the driver/firmware.
7731 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
7732 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07007733 * The driver/firmware takes actions requested by userspace such as throttling
7734 * wifi TX etc. in order to mitigate high temperature.
7735 *
7736 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
7737 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
7738 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
7739 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
7740 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
7741 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
7742 */
7743enum qca_wlan_vendor_thermal_level {
7744 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
7745 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
7746 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
7747 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
7748 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
7749 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
7750};
7751
7752/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007753 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
7754 * cmd value. Used for NL attributes for data used by
7755 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7756 */
7757enum qca_wlan_vendor_attr_thermal_cmd {
7758 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
7759 /* The value of command, driver will implement different operations
7760 * according to this value. It uses values defined in
7761 * enum qca_wlan_vendor_attr_thermal_cmd_type.
7762 * u32 attribute.
7763 */
7764 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07007765 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07007766 * driver/firmware, or get thermal level from the driver/firmware.
7767 * Used in request or response, u32 attribute,
7768 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07007769 */
7770 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
7771 /* Userspace uses this attribute to configure the time in which the
7772 * driver/firmware should complete applying settings it received from
7773 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
7774 * command type. Used in request, u32 attribute, value is in
7775 * milliseconds. A value of zero indicates to apply the settings
7776 * immediately. The driver/firmware can delay applying the configured
7777 * thermal settings within the time specified in this attribute if
7778 * there is any critical ongoing operation.
7779 */
7780 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007781 /* Nested attribute, the driver/firmware uses this attribute to report
7782 * thermal statistics of different thermal levels to userspace when
7783 * requested using the
7784 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
7785 * type. This attribute contains a nested array of records of thermal
7786 * statistics of multiple levels. The attributes used inside this nested
7787 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
7788 */
7789 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007790
7791 /* keep last */
7792 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
7793 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
7794 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
7795};
7796
7797/**
7798 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
7799 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
7800 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
7801 * thermal command types sent to driver.
7802 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
7803 * get thermal shutdown configuration parameters for display. Parameters
7804 * responded from driver are defined in
7805 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
7806 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
7807 * get temperature. Host should respond with a temperature data. It is defined
7808 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
7809 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
7810 * suspend action.
7811 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
7812 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07007813 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
7814 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07007815 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
7816 * thermal level from the driver/firmware. The driver should respond with a
7817 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Hai Shaloma20dcd72022-02-04 13:43:00 -08007818 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
7819 * current thermal statistics from the driver/firmware. The driver should
7820 * respond with statistics of all thermal levels encapsulated in the attribute
7821 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
7822 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
7823 * the current thermal statistics for all thermal levels maintained in the
7824 * driver/firmware and start counting from zero again.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007825 */
7826enum qca_wlan_vendor_attr_thermal_cmd_type {
7827 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
7828 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
7829 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
7830 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07007831 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07007832 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007833 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
7834 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007835};
7836
7837/**
7838 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
7839 * to get chip temperature by user.
7840 * enum values are used for NL attributes for data used by
7841 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
7842 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7843 */
7844enum qca_wlan_vendor_attr_thermal_get_temperature {
7845 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
7846 /* Temperature value (degree Celsius) from driver.
7847 * u32 attribute.
7848 */
7849 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
7850
7851 /* keep last */
7852 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
7853 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
7854 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
7855};
7856
7857/**
7858 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
7859 * to get configuration parameters of thermal shutdown feature. Enum values are
7860 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
7861 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7862 */
7863enum qca_wlan_vendor_attr_get_thermal_params_rsp {
7864 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
7865 /* Indicate if the thermal shutdown feature is enabled.
7866 * NLA_FLAG attribute.
7867 */
7868 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
7869 /* Indicate if the auto mode is enabled.
7870 * Enable: Driver triggers the suspend/resume action.
7871 * Disable: User space triggers the suspend/resume action.
7872 * NLA_FLAG attribute.
7873 */
7874 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
7875 /* Thermal resume threshold (degree Celsius). Issue the resume command
7876 * if the temperature value is lower than this threshold.
7877 * u16 attribute.
7878 */
7879 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
7880 /* Thermal warning threshold (degree Celsius). FW reports temperature
7881 * to driver if it's higher than this threshold.
7882 * u16 attribute.
7883 */
7884 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
7885 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
7886 * if the temperature value is higher than this threshold.
7887 * u16 attribute.
7888 */
7889 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
7890 /* FW reports temperature data periodically at this interval (ms).
7891 * u16 attribute.
7892 */
7893 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
7894
7895 /* keep last */
7896 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
7897 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
7898 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
7899};
7900
7901/**
7902 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
7903 * report thermal events from driver to user space.
7904 * enum values are used for NL attributes for data used by
7905 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
7906 */
7907enum qca_wlan_vendor_attr_thermal_event {
7908 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
7909 /* Temperature value (degree Celsius) from driver.
7910 * u32 attribute.
7911 */
7912 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
7913 /* Indication of resume completion from power save mode.
7914 * NLA_FLAG attribute.
7915 */
7916 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07007917 /* Thermal level from the driver.
7918 * u32 attribute. Possible values are defined in
7919 * enum qca_wlan_vendor_thermal_level.
7920 */
7921 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007922
7923 /* keep last */
7924 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
7925 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
7926 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
7927};
7928
7929/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08007930 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
7931 * to get thermal status from the driver/firmware.
7932 * enum values are used for NL attributes encapsulated inside the
7933 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
7934 *
7935 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
7936 * of a thermal level in Celsius. u32 size.
7937 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
7938 * of a thermal level in Celsius. u32 size.
7939 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
7940 * thermal level in milliseconds. u32 size.
7941 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
7942 * of times the temperature crossed into the temperature range defined by the
7943 * thermal level from both higher and lower directions. u32 size.
7944 */
7945enum qca_wlan_vendor_attr_thermal_stats {
7946 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
7947 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
7948 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
7949 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
7950 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
7951
7952 /* keep last */
7953 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
7954 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
7955 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
7956};
7957
7958/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007959 * enum he_fragmentation_val - HE fragmentation support values
7960 * Indicates level of dynamic fragmentation that is supported by
7961 * a STA as a recipient.
7962 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
7963 * (HE MAC Capabilities Information field) and are used in HE Capabilities
7964 * element to advertise the support. These values are validated in the driver
7965 * to check the device capability and advertised in the HE Capabilities
7966 * element. These values are used to configure testbed device to allow the
7967 * advertised hardware capabilities to be downgraded for testing purposes.
7968 *
7969 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
7970 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
7971 * contained within an MPDU or S-MPDU, no support for dynamic fragments
7972 * within an A-MPDU that is not an S-MPDU.
7973 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
7974 * contained within an MPDU or S-MPDU and support for up to one dynamic
7975 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
7976 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
7977 * MPDU or S-MPDU.
7978 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
7979 * contained within an MPDU or S-MPDU and support for multiple dynamic
7980 * fragments for each MSDU and for each A-MSDU if supported by the
7981 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
7982 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
7983 */
7984enum he_fragmentation_val {
7985 HE_FRAG_DISABLE,
7986 HE_FRAG_LEVEL1,
7987 HE_FRAG_LEVEL2,
7988 HE_FRAG_LEVEL3,
7989};
7990
7991/**
7992 * enum he_mcs_config - HE MCS support configuration
7993 *
7994 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
7995 * These values are used in driver to configure the HE MCS map to advertise
7996 * Tx/Rx MCS map in HE capability and these values are applied for all the
7997 * streams supported by the device. To configure MCS for different bandwidths,
7998 * vendor command needs to be sent using this attribute with appropriate value.
7999 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8000 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
8001 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
8002 * These values are used to configure testbed device to allow the advertised
8003 * hardware capabilities to be downgraded for testing purposes. The enum values
8004 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
8005 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
8006 * These values are validated in the driver before setting the MCS map and
8007 * driver returns error if the input is other than these enum values.
8008 *
8009 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
8010 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
8011 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
8012 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
8013 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
8014 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
8015 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
8016 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
8017 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
8018 */
8019enum he_mcs_config {
8020 HE_80_MCS0_7 = 0,
8021 HE_80_MCS0_9 = 1,
8022 HE_80_MCS0_11 = 2,
8023 HE_160_MCS0_7 = 4,
8024 HE_160_MCS0_9 = 5,
8025 HE_160_MCS0_11 = 6,
8026 HE_80P80_MCS0_7 = 8,
8027 HE_80P80_MCS0_9 = 9,
8028 HE_80P80_MCS0_11 = 10,
8029};
8030
8031/**
8032 * enum qca_wlan_ba_session_config - BA session configuration
8033 *
8034 * Indicates the configuration values for BA session configuration attribute.
8035 *
8036 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8037 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8038 */
8039enum qca_wlan_ba_session_config {
8040 QCA_WLAN_ADD_BA = 1,
8041 QCA_WLAN_DELETE_BA = 2,
8042};
8043
8044/**
8045 * enum qca_wlan_ac_type - Access category type
8046 *
8047 * Indicates the access category type value.
8048 *
8049 * @QCA_WLAN_AC_BE: BE access category
8050 * @QCA_WLAN_AC_BK: BK access category
8051 * @QCA_WLAN_AC_VI: VI access category
8052 * @QCA_WLAN_AC_VO: VO access category
8053 * @QCA_WLAN_AC_ALL: All ACs
8054 */
8055enum qca_wlan_ac_type {
8056 QCA_WLAN_AC_BE = 0,
8057 QCA_WLAN_AC_BK = 1,
8058 QCA_WLAN_AC_VI = 2,
8059 QCA_WLAN_AC_VO = 3,
8060 QCA_WLAN_AC_ALL = 4,
8061};
8062
8063/**
8064 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8065 *
8066 * Indicates the HE LTF configuration value.
8067 *
8068 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
8069 * based on the GI setting
8070 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8071 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8072 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8073 */
8074enum qca_wlan_he_ltf_cfg {
8075 QCA_WLAN_HE_LTF_AUTO = 0,
8076 QCA_WLAN_HE_LTF_1X = 1,
8077 QCA_WLAN_HE_LTF_2X = 2,
8078 QCA_WLAN_HE_LTF_4X = 3,
8079};
8080
Hai Shalomc9e41a12018-07-31 14:41:42 -07008081/**
8082 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8083 *
8084 * Indicates the HE trigger frame MAC padding duration value.
8085 *
8086 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8087 * process the trigger frame.
8088 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8089 * trigger frame.
8090 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8091 * trigger frame.
8092 */
8093enum qca_wlan_he_mac_padding_dur {
8094 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8095 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8096 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8097};
8098
Hai Shalom74f70d42019-02-11 14:42:39 -08008099/**
8100 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8101 *
8102 * Indicates the HE Operating mode control channel width setting value.
8103 *
8104 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8105 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8106 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8107 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8108 */
8109enum qca_wlan_he_om_ctrl_ch_bw {
8110 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8111 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8112 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8113 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8114};
8115
8116/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008117 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8118 *
8119 * Indicates the frame types to use for keep alive data.
8120 *
8121 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8122 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8123 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8124 */
8125enum qca_wlan_keep_alive_data_type {
8126 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8127 QCA_WLAN_KEEP_ALIVE_DATA = 1,
8128 QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8129};
8130
8131/**
Hai Shalom74f70d42019-02-11 14:42:39 -08008132 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8133 * HE operating mode control transmit request. These attributes are
8134 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8135 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8136 *
8137 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8138 * indicates the maximum number of spatial streams, NSS, that the STA
8139 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8140 * and is set to NSS - 1.
8141 *
8142 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8143 * indicates the operating channel width supported by the STA for both
8144 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8145 *
8146 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8147 * indicates the all trigger based UL MU operations by the STA.
8148 * 0 - UL MU operations are enabled by the STA.
8149 * 1 - All triggered UL MU transmissions are suspended by the STA.
8150 *
8151 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8152 * indicates the maximum number of space-time streams, NSTS, that
8153 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07008154 *
8155 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8156 * combined with the UL MU Disable subfield and the recipient's setting
8157 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8158 * capabilities to determine which HE TB PPDUs are possible by the
8159 * STA to transmit.
8160 * 0 - UL MU data operations are enabled by the STA.
8161 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8162 * bit is not set, else UL MU Tx is suspended.
8163 *
Hai Shalom74f70d42019-02-11 14:42:39 -08008164 */
8165enum qca_wlan_vendor_attr_he_omi_tx {
8166 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8167 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8168 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8169 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8170 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07008171 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08008172
8173 /* keep last */
8174 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8175 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8176 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8177};
8178
Hai Shalom899fcc72020-10-19 14:38:18 -07008179 /**
8180 * enum qca_wlan_vendor_phy_mode - Different PHY modes
8181 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8182 *
8183 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8184 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8185 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8186 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8187 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8188 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8189 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8190 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8191 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8192 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8193 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8194 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8195 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8196 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8197 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8198 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8199 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8200 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8201 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8202 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8203 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8204 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8205 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8206 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8207 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8208 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8209 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8210 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8211 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8212 */
8213enum qca_wlan_vendor_phy_mode {
8214 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8215 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8216 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8217 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8218 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8219 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8220 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8221 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8222 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8223 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8224 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8225 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8226 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8227 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8228 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8229 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8230 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8231 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8232 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8233 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8234 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8235 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8236 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8237 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8238 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8239 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8240 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8241 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8242 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8243};
8244
Roshan Pius3a1667e2018-07-03 15:17:14 -07008245/* Attributes for data used by
8246 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8247 */
8248enum qca_wlan_vendor_attr_wifi_test_config {
8249 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8250 /* 8-bit unsigned value to configure the driver to enable/disable
8251 * WMM feature. This attribute is used to configure testbed device.
8252 * 1-enable, 0-disable
8253 */
8254 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8255
8256 /* 8-bit unsigned value to configure the driver to accept/reject
8257 * the addba request from peer. This attribute is used to configure
8258 * the testbed device.
8259 * 1-accept addba, 0-reject addba
8260 */
8261 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8262
8263 /* 8-bit unsigned value to configure the driver to send or not to
8264 * send the addba request to peer.
8265 * This attribute is used to configure the testbed device.
8266 * 1-send addba, 0-do not send addba
8267 */
8268 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8269
8270 /* 8-bit unsigned value to indicate the HE fragmentation support.
8271 * Uses enum he_fragmentation_val values.
8272 * This attribute is used to configure the testbed device to
8273 * allow the advertised hardware capabilities to be downgraded
8274 * for testing purposes.
8275 */
8276 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8277
8278 /* 8-bit unsigned value to indicate the HE MCS support.
8279 * Uses enum he_mcs_config values.
8280 * This attribute is used to configure the testbed device to
8281 * allow the advertised hardware capabilities to be downgraded
8282 * for testing purposes.
8283 */
8284 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8285
8286 /* 8-bit unsigned value to configure the driver to allow or not to
8287 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8288 * This attribute is used to configure the testbed device.
8289 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
8290 */
8291 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8292
8293 /* 8-bit unsigned value to configure the driver to add a
8294 * new BA session or delete the existing BA session for
8295 * given TID. ADDBA command uses the buffer size and TID
8296 * configuration if user specifies the values else default
8297 * value for buffer size is used for all TIDs if the TID
8298 * also not specified. For DEL_BA command TID value is
8299 * required to process the command.
8300 * Uses enum qca_wlan_ba_session_config values.
8301 * This attribute is used to configure the testbed device.
8302 */
8303 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
8304
Hai Shalomce48b4a2018-09-05 11:41:35 -07008305 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07008306 * request and response frames.
8307 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07008308 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008309 */
8310 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
8311
8312 /* 8-bit unsigned value to configure the buffer size in addba
8313 * request and response frames.
8314 * This attribute is used to configure the testbed device.
8315 */
8316 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
8317
8318 /* 8-bit unsigned value to configure the no ack policy.
8319 * To configure no ack policy, access category value is
8320 * required to process the command.
8321 * This attribute is used to configure the testbed device.
8322 * 1 - enable no ack, 0 - disable no ack.
8323 */
8324 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
8325
8326 /* 8-bit unsigned value to configure the AC for no ack policy
8327 * This attribute is used to configure the testbed device.
8328 * Uses the enum qca_wlan_ac_type values.
8329 */
8330 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
8331
8332 /* 8-bit unsigned value to configure the HE LTF
8333 * This attribute is used to configure the testbed device.
8334 * Uses the enum qca_wlan_he_ltf_cfg values.
8335 */
8336 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
8337
8338 /* 8-bit unsigned value to configure the tx beamformee.
8339 * This attribute is used to configure the testbed device.
8340 * 1-enable, 0-disable.
8341 */
8342 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
8343
8344 /* 8-bit unsigned value to configure the tx beamformee number
8345 * of space-time streams.
8346 * This attribute is used to configure the testbed device.
8347 * The range of the value is 0 to 8.
8348 */
8349 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
8350
8351 /* 8-bit unsigned value to configure the MU EDCA params for given AC
8352 * This attribute is used to configure the testbed device.
8353 * Uses the enum qca_wlan_ac_type values.
8354 */
8355 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
8356
8357 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
8358 * To configure MU EDCA AIFSN value, MU EDCA access category value
8359 * is required to process the command.
8360 * This attribute is used to configure the testbed device.
8361 */
8362 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
8363
8364 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
8365 * given AC.
8366 * To configure MU EDCA ECW min value, MU EDCA access category value
8367 * is required to process the command.
8368 * This attribute is used to configure the testbed device.
8369 */
8370 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
8371
8372 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
8373 * given AC.
8374 * To configure MU EDCA ECW max value, MU EDCA access category value
8375 * is required to process the command.
8376 * This attribute is used to configure the testbed device.
8377 */
8378 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
8379
8380 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
8381 * To configure MU EDCA timer value, MU EDCA access category value
8382 * is required to process the command.
8383 * This attribute is used to configure the testbed device.
8384 */
8385 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
8386
Hai Shalomc9e41a12018-07-31 14:41:42 -07008387 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
8388 * duration.
8389 * This attribute is used to configure the testbed device.
8390 * Uses the enum qca_wlan_he_mac_padding_dur values.
8391 */
8392 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
8393
Hai Shalomce48b4a2018-09-05 11:41:35 -07008394 /* 8-bit unsigned value to override the MU EDCA params to defaults
8395 * regardless of the AP beacon MU EDCA params. If it is enabled use
8396 * the default values else use the MU EDCA params from AP beacon.
8397 * This attribute is used to configure the testbed device.
8398 * 1-enable, 0-disable.
8399 */
8400 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
8401
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008402 /* 8-bit unsigned value to configure the support for receiving
8403 * an MPDU that contains an operating mode control subfield.
8404 * This attribute is used to configure the testbed device.
8405 * 1-enable, 0-disable.
8406 */
8407 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
8408
8409 /* Nested attribute values required to setup the TWT session.
8410 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
8411 * information to set up the session. It contains broadcast flags,
8412 * set_up flags, trigger value, flow type, flow ID, wake interval
8413 * exponent, protection, target wake time, wake duration, wake interval
8414 * mantissa. These nested attributes are used to setup a host triggered
8415 * TWT session.
8416 */
8417 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
8418
8419 /* This nested attribute is used to terminate the current TWT session.
8420 * It does not currently carry any attributes.
8421 */
8422 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
8423
8424 /* This nested attribute is used to suspend the current TWT session.
8425 * It does not currently carry any attributes.
8426 */
8427 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
8428
8429 /* Nested attribute values to indicate the request for resume.
8430 * This attribute is used to resume the TWT session.
8431 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
8432 * parameters required to resume the TWT session.
8433 */
8434 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
8435
Hai Shalom74f70d42019-02-11 14:42:39 -08008436 /* 8-bit unsigned value to set the HE operating mode control
8437 * (OM CTRL) Channel Width subfield.
8438 * The Channel Width subfield indicates the operating channel width
8439 * supported by the STA for both reception and transmission.
8440 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
8441 * This setting is cleared with the
8442 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8443 * flag attribute to reset defaults.
8444 * This attribute is used to configure the testbed device.
8445 */
8446 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
8447
8448 /* 8-bit unsigned value to configure the number of spatial
8449 * streams in HE operating mode control field.
8450 * This setting is cleared with the
8451 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8452 * flag attribute to reset defaults.
8453 * This attribute is used to configure the testbed device.
8454 */
8455 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
8456
8457 /* Flag attribute to configure the UL MU disable bit in
8458 * HE operating mode control field.
8459 * This setting is cleared with the
8460 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8461 * flag attribute to reset defaults.
8462 * This attribute is used to configure the testbed device.
8463 */
8464 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
8465
8466 /* Flag attribute to clear the previously set HE operating mode
8467 * control field configuration.
8468 * This attribute is used to configure the testbed device to reset
8469 * defaults to clear any previously set HE operating mode control
8470 * field configuration.
8471 */
8472 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
8473
8474 /* 8-bit unsigned value to configure HE single user PPDU
8475 * transmission. By default this setting is disabled and it
8476 * is disabled in the reset defaults of the device configuration.
8477 * This attribute is used to configure the testbed device.
8478 * 1-enable, 0-disable
8479 */
8480 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
8481
8482 /* 8-bit unsigned value to configure action frame transmission
8483 * in HE trigger based PPDU transmission.
8484 * By default this setting is disabled and it is disabled in
8485 * the reset defaults of the device configuration.
8486 * This attribute is used to configure the testbed device.
8487 * 1-enable, 0-disable
8488 */
8489 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
8490
8491 /* Nested attribute to indicate HE operating mode control field
8492 * transmission. It contains operating mode control field Nss,
8493 * channel bandwidth, Tx Nsts and UL MU disable attributes.
8494 * These nested attributes are used to send HE operating mode control
8495 * with configured values.
8496 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
8497 * This attribute is used to configure the testbed device.
8498 */
8499 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
8500
8501 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
8502 * support for the reception of a frame that carries an HE variant
8503 * HT Control field.
8504 * This attribute is used to configure the testbed device.
8505 * 1-enable, 0-disable
8506 */
8507 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
8508
Hai Shalom021b0b52019-04-10 11:17:58 -07008509 /* 8-bit unsigned value to configure VHT support in 2.4G band.
8510 * This attribute is used to configure the testbed device.
8511 * 1-enable, 0-disable
8512 */
8513 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
8514
8515 /* 8-bit unsigned value to configure HE testbed defaults.
8516 * This attribute is used to configure the testbed device.
8517 * 1-set the device HE capabilities to testbed defaults.
8518 * 0-reset the device HE capabilities to supported config.
8519 */
8520 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
8521
8522 /* 8-bit unsigned value to configure TWT request support.
8523 * This attribute is used to configure the testbed device.
8524 * 1-enable, 0-disable.
8525 */
8526 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
8527
Hai Shalom899fcc72020-10-19 14:38:18 -07008528 /* 8-bit unsigned value to configure protection for Management
8529 * frames when PMF is enabled for the association.
8530 * This attribute is used to configure the testbed device.
8531 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
8532 */
8533 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
8534
8535 /* Flag attribute to inject Disassociation frame to the connected AP.
8536 * This attribute is used to configure the testbed device.
8537 */
8538 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
8539
8540 /* 8-bit unsigned value to configure an override for the RSNXE Used
8541 * subfield in the MIC control field of the FTE in FT Reassociation
8542 * Request frame.
8543 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
8544 * This attribute is used to configure the testbed device.
8545 * This attribute can be configured only when STA is in associated state
8546 * and the configuration is valid until the disconnection.
8547 */
8548 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
8549
8550 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
8551 * Switch Announcement) when STA is in connected state.
8552 * 0 - Default behavior, 1 - Ignore CSA.
8553 * This attribute is used to configure the testbed device.
8554 * This attribute can be configured only when STA is in associated state
8555 * and the configuration is valid until the disconnection.
8556 */
8557 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
8558
8559 /* Nested attribute values required to configure OCI (Operating Channel
8560 * Information). Attributes defined in enum
8561 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
8562 * This attribute is used to configure the testbed device.
8563 * This attribute can be configured only when STA is in associated state
8564 * and the configuration is valid until the disconnection.
8565 */
8566 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
8567
8568 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
8569 * Query timeout. If this configuration is enabled STA shall not send
8570 * Deauthentication frmae when SA Query times out (mainly, after a
8571 * channel switch when OCV is enabled).
8572 * 0 - Default behavior, 1 - Ignore SA Query timeout.
8573 * This attribute is used to configure the testbed device.
8574 * This attribute can be configured only when STA is in associated state
8575 * and the configuration is valid until the disconnection.
8576 */
8577 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
8578
8579 /* 8-bit unsigned value to configure the driver/firmware to start or
8580 * stop transmitting FILS discovery frames.
8581 * 0 - Stop transmitting FILS discovery frames
8582 * 1 - Start transmitting FILS discovery frames
8583 * This attribute is used to configure the testbed device.
8584 * This attribute can be configured only in AP mode and the
8585 * configuration is valid until AP restart.
8586 */
8587 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
8588
Hai Shalom60840252021-02-19 19:02:11 -08008589 /* 8-bit unsigned value to configure the driver/firmware to enable or
8590 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
8591 * information field.
8592 * 0 - Disable full bandwidth UL MU-MIMO subfield
8593 * 1 - Enable full bandwidth UL MU-MIMO subfield
8594 * This attribute is used to configure the testbed device.
8595 */
8596 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
8597
8598 /* 16-bit unsigned value to configure the driver with a specific BSS
8599 * max idle period to advertise in the BSS Max Idle Period element
8600 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
8601 * This attribute is used to configure the testbed device.
8602 */
8603 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
8604
8605 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
8606 * for data transmission.
8607 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
8608 * This attribute is used to configure the testbed device.
8609 */
8610 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
8611
8612 /* 8-bit unsigned value to configure the driver to disable data and
8613 * management response frame transmission to test the BSS max idle
8614 * feature.
8615 * 0 - Default behavior, 1 - Disable data and management response Tx.
8616 * This attribute is used to configure the testbed device.
8617 */
8618 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
8619
8620 /* 8-bit unsigned value to configure the driver/firmware to enable or
8621 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
8622 * information field.
8623 * 0 - Disable Punctured Preamble Rx subfield
8624 * 1 - Enable Punctured Preamble Rx subfield
8625 * This attribute is used to configure the testbed device.
8626 */
8627 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
8628
Hai Shaloma20dcd72022-02-04 13:43:00 -08008629 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
8630 * requirement mismatch for 6 GHz connection.
8631 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
8632 * This attribute is used to configure the testbed device.
8633 */
8634 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
8635
8636 /* 8-bit unsigned value to configure the driver to allow 6 GHz
8637 * connection with all security modes.
8638 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
8639 * modes.
8640 * This attribute is used for testing purposes.
8641 */
8642 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
8643
8644 /* 8-bit unsigned value to configure the driver to transmit data with
8645 * ER SU PPDU type.
8646 *
8647 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
8648 * This attribute is used for testing purposes.
8649 */
8650 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
8651
8652 /* 8-bit unsigned value to configure the driver to use Data or
8653 * Management frame type for keep alive data.
8654 * Uses enum qca_wlan_keep_alive_data_type values.
8655 *
8656 * This attribute is used for testing purposes.
8657 */
8658 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
8659
8660 /* 8-bit unsigned value to configure the driver to use scan request
8661 * BSSID value in Probe Request frame RA(A1) during the scan. The
8662 * driver saves this configuration and applies this setting to all user
8663 * space scan requests until the setting is cleared. If this
8664 * configuration is set, the driver uses the BSSID value from the scan
8665 * request to set the RA(A1) in the Probe Request frames during the
8666 * scan.
8667 *
8668 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
8669 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
8670 * This attribute is used for testing purposes.
8671 */
8672 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
8673
8674 /* 8-bit unsigned value to configure the driver to enable/disable the
8675 * BSS max idle period support.
8676 *
8677 * 0 - Disable the BSS max idle support.
8678 * 1 - Enable the BSS max idle support.
8679 * This attribute is used for testing purposes.
8680 */
8681 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
8682
8683 /* 8-bit unsigned value to configure the driver/firmware to enable or
8684 * disable Rx control frame to MultiBSS subfield in the HE MAC
8685 * capabilities information field.
8686 * 0 - Disable Rx control frame to MultiBSS subfield
8687 * 1 - Enable Rx control frame to MultiBSS subfield
8688 * This attribute is used to configure the testbed device.
8689 */
8690 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
8691
8692 /* 8-bit unsigned value to configure the driver/firmware to enable or
8693 * disable Broadcast TWT support subfield in the HE MAC capabilities
8694 * information field.
8695 * 0 - Disable Broadcast TWT support subfield
8696 * 1 - Enable Broadcast TWT support subfield
8697 * This attribute is used to configure the testbed device.
8698 */
8699 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
8700
Sunil Ravia04bd252022-05-02 22:54:18 -07008701 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
8702 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
8703 * to 1, and if the firmware supports this capability too, the STA
8704 * advertises this capability to the AP over Association Request frame.
8705 * This attribute will not have any effect on legacy devices with no
8706 * IEEE 802.11be support.
8707 * 0 - Default behavior
8708 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
8709 * This attribute is used to configure the testbed device.
8710 */
8711 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
8712
Roshan Pius3a1667e2018-07-03 15:17:14 -07008713 /* keep last */
8714 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
8715 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
8716 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
8717};
8718
8719/**
Hai Shalom899fcc72020-10-19 14:38:18 -07008720 * enum qca_wlan_twt_operation - Operation of the config TWT request
8721 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -08008722 * The response for the respective operations can be either synchronous or
8723 * asynchronous (wherever specified). If synchronous, the response to this
8724 * operation is obtained in the corresponding vendor command reply to the user
8725 * space. For the asynchronous case the response is obtained as an event with
8726 * the same operation type.
8727 *
8728 * Drivers shall support either of these modes but not both simultaneously.
8729 * This support for asynchronous mode is advertised through the flag
8730 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
8731 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -07008732 *
8733 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
8734 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08008735 * qca_wlan_vendor_attr_twt_setup. Depending upon the
8736 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
8737 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008738 *
8739 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
8740 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08008741 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008742 *
8743 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
8744 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8745 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008746 * This terminate can either get triggered by the user space or can as well be
8747 * a notification from the firmware if it initiates a terminate.
8748 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8749 * the request from user space can either be a synchronous or asynchronous
8750 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008751 *
8752 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
8753 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8754 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008755 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8756 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008757 *
8758 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
8759 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8760 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008761 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
8762 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8763 * capability, this is either a synchronous or asynchronous operation.
8764 *
8765 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
8766 * combination of suspend and resume in a single request. Required parameters
8767 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
8768 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
8769 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8770 * capability, this is either a synchronous or asynchronous operation.
8771 *
8772 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
8773 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
8774 * session is setup. It's a synchronous operation.
8775 *
8776 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
8777 * Valid only after the TWT session is setup. It's a synchronous operation.
8778 *
8779 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
8780 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
8781 * operation.
8782 *
Sunil Ravia04bd252022-05-02 22:54:18 -07008783 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
Hai Shalom60840252021-02-19 19:02:11 -08008784 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008785 *
8786 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
8787 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
8788 * the enum qca_wlan_vendor_attr_twt_set_param.
Sunil Ravia04bd252022-05-02 22:54:18 -07008789 *
8790 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
8791 * related information for example TWT required bit in AP capabilities etc.
8792 * The reason for the notification is sent using
8793 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
Hai Shalom899fcc72020-10-19 14:38:18 -07008794 */
8795enum qca_wlan_twt_operation {
8796 QCA_WLAN_TWT_SET = 0,
8797 QCA_WLAN_TWT_GET = 1,
8798 QCA_WLAN_TWT_TERMINATE = 2,
8799 QCA_WLAN_TWT_SUSPEND = 3,
8800 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -08008801 QCA_WLAN_TWT_NUDGE = 5,
8802 QCA_WLAN_TWT_GET_STATS = 6,
8803 QCA_WLAN_TWT_CLEAR_STATS = 7,
8804 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
8805 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008806 QCA_WLAN_TWT_SET_PARAM = 10,
Sunil Ravia04bd252022-05-02 22:54:18 -07008807 QCA_WLAN_TWT_NOTIFY = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07008808};
8809
8810/**
8811 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
8812 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8813 *
8814 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
8815 * operation of this request. Possible values are defined in enum
8816 * qca_wlan_twt_operation. The parameters for the respective operation is
8817 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
8818 *
8819 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
8820 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -08008821 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008822 * enum qca_wlan_vendor_attr_twt_set_param, or
8823 * enum qca_wlan_vendor_attr_twt_stats based on the operation.
Sunil Ravia04bd252022-05-02 22:54:18 -07008824 *
8825 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
8826 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
8827 * The values used by this attribute are defined in
8828 * enum qca_wlan_vendor_twt_status.
Hai Shalom899fcc72020-10-19 14:38:18 -07008829 */
8830enum qca_wlan_vendor_attr_config_twt {
8831 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
8832 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
8833 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
Sunil Ravia04bd252022-05-02 22:54:18 -07008834 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
Hai Shalom899fcc72020-10-19 14:38:18 -07008835
8836 /* keep last */
8837 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
8838 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
8839 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
8840};
8841
8842/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008843 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
8844 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8845 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
8846 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
8847 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
8848 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
8849 * statistics of an unassociated station by specifying the MAC address in
8850 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
8851 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
8852 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
8853 * the statistics of all unassociated stations by specifying the Broadcast MAC
8854 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
8855 * above procedure. In the response, driver shall specify statistics
8856 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
8857 */
8858enum qca_wlan_vendor_attr_bss_filter {
8859 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
8860 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
8861 /* Other BSS filter type, unsigned 8 bit value. One of the values
8862 * in enum qca_wlan_vendor_bss_filter_type.
8863 */
8864 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
8865 /* Other BSS filter action, unsigned 8 bit value. One of the values
8866 * in enum qca_wlan_vendor_bss_filter_action.
8867 */
8868 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
8869 /* Array of nested attributes where each entry is the statistics
8870 * information of the specified station that belong to another BSS.
8871 * Attributes for each entry are taken from enum
8872 * qca_wlan_vendor_bss_filter_sta_stats.
8873 * Other BSS station configured in
8874 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
8875 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
8876 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
8877 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
8878 */
8879 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
8880
8881 /* keep last */
8882 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
8883 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
8884 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
8885};
8886
8887/**
8888 * enum qca_wlan_vendor_bss_filter_type - Type of
8889 * filter used in other BSS filter operations. Used by the vendor command
8890 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8891 *
8892 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
8893 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
8894 */
8895enum qca_wlan_vendor_bss_filter_type {
8896 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
8897 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
8898};
8899
8900/**
8901 * enum qca_wlan_vendor_bss_filter_action - Type of
8902 * action in other BSS filter operations. Used by the vendor command
8903 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8904 *
8905 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
8906 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
8907 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
8908 */
8909enum qca_wlan_vendor_bss_filter_action {
8910 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
8911 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
8912 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
8913};
8914
8915/**
8916 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
8917 * the statistics of a specific unassociated station belonging to another BSS.
8918 * The statistics provides information of the unassociated station
8919 * filtered by other BSS operation - such as MAC, signal value.
8920 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8921 *
8922 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
8923 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
8924 * of the station. Unsigned 8 bit number containing RSSI.
8925 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
8926 * driver for the last received RSSI. Unsigned 64 bit number containing
8927 * nanoseconds from the boottime.
8928 */
8929enum qca_wlan_vendor_bss_filter_sta_stats {
8930 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
8931 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
8932 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
8933 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
8934
8935 /* keep last */
8936 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
8937 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
8938 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
8939};
8940
Hai Shalomce48b4a2018-09-05 11:41:35 -07008941/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
8942 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
8943 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
8944 */
8945enum qca_wlan_nan_ext_subcmd_type {
8946 /* Subcmd of type NAN Enable Request */
8947 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
8948 /* Subcmd of type NAN Disable Request */
8949 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
8950};
8951
8952/**
8953 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
8954 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
8955 */
8956enum qca_wlan_vendor_attr_nan_params {
8957 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
8958 /* Carries NAN command for firmware component. Every vendor command
8959 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
8960 * payload containing the NAN command. NLA_BINARY attribute.
8961 */
8962 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
8963 /* Indicates the type of NAN command sent with
8964 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
8965 * describes the possible range of values. This attribute is mandatory
8966 * if the command being issued is either
8967 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
8968 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
8969 */
8970 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
8971 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
8972 * band. This attribute is mandatory when command type is
8973 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
8974 */
8975 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
8976 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
8977 * band. This attribute is optional and should be included when command
8978 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
8979 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
8980 */
8981 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
8982
8983 /* keep last */
8984 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
8985 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
8986 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
8987};
8988
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008989/**
Hai Shalom60840252021-02-19 19:02:11 -08008990 * qca_wlan_twt_setup_state: Represents the TWT session states.
8991 *
8992 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
8993 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
8994 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
8995 */
8996enum qca_wlan_twt_setup_state {
8997 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
8998 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
8999 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9000};
9001
9002/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009003 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9004 * TWT (Target Wake Time) setup request. These attributes are sent as part of
9005 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -07009006 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9007 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009008 *
9009 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9010 * Disable (flag attribute not present) - Individual TWT
9011 * Enable (flag attribute present) - Broadcast TWT.
9012 * Individual means the session is between the STA and the AP.
9013 * This session is established using a separate negotiation between
9014 * STA and AP.
9015 * Broadcast means the session is across multiple STAs and an AP. The
9016 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009017 * This is used in
9018 * 1. TWT SET Request and Response
9019 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009020 *
9021 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9022 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -07009023 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009024 *
9025 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9026 * Enable (flag attribute present) - TWT with trigger support.
9027 * Disable (flag attribute not present) - TWT without trigger support.
9028 * Trigger means the AP will send the trigger frame to allow STA to send data.
9029 * Without trigger, the STA will wait for the MU EDCA timer before
9030 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -07009031 * This is used in
9032 * 1. TWT SET Request and Response
9033 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009034 *
9035 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9036 * 0 - Announced TWT - In this mode, STA may skip few service periods to
9037 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9038 * NULL frame to AP.
9039 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009040 * This is a required parameter for
9041 * 1. TWT SET Request and Response
9042 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009043 *
9044 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9045 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -07009046 * If not provided then dialog ID will be set to zero.
9047 * This is an optional parameter for
9048 * 1. TWT SET Request and Response
9049 * 2. TWT GET Request and Response
9050 * 3. TWT TERMINATE Request and Response
9051 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -08009052 * Flow ID values from 0 to 254 represent a single TWT session
9053 * Flow ID value of 255 represents all TWT sessions for the following
9054 * 1. TWT TERMINATE Request and Response
9055 * 2. TWT SUSPEND Request and Response
9056 * 4. TWT CLEAR STATISTICS request
9057 * 5. TWT GET STATISTICS request and response
9058 * If an invalid dialog ID is provided, status
9059 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009060 *
9061 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9062 * This attribute (exp) is used along with the mantissa to derive the
9063 * wake interval using the following formula:
9064 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9065 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07009066 * This is a required parameter for
9067 * 1. TWT SET Request and Response
9068 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009069 *
9070 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9071 * Enable (flag attribute present) - Protection required.
9072 * Disable (flag attribute not present) - Protection not required.
9073 * If protection is enabled, then the AP will use protection
9074 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -07009075 * This is used in
9076 * 1. TWT SET Request and Response
9077 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009078 *
9079 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9080 * This attribute is used as the SP offset which is the offset from
9081 * TSF after which the wake happens. The units are in microseconds. If
9082 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -07009083 * This is an optional parameter for
9084 * 1. TWT SET Request and Response
9085 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009086 *
9087 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07009088 * This is the duration of the service period. This is specified as
9089 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9090 * This is a required parameter for
9091 * 1. TWT SET Request and Response
9092 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009093 *
9094 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9095 * This attribute is used to configure wake interval mantissa.
9096 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -07009097 * This is a required parameter for
9098 * 1. TWT SET Request and Response
9099 * 2. TWT GET Response
9100 *
9101 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9102 * This field is applicable for TWT response only.
9103 * This contains status values in enum qca_wlan_vendor_twt_status
9104 * and is passed to the userspace. This is used in TWT SET operation.
9105 * This is a required parameter for
9106 * 1. TWT SET Response
9107 * 2. TWT TERMINATE Response
9108 * 3. TWT SUSPEND Response
9109 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -08009110 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -07009111 *
9112 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9113 * This field is applicable for TWT response only.
9114 * This field contains response type from the TWT responder and is
9115 * passed to the userspace. The values for this field are defined in
9116 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9117 * response.
9118 *
9119 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
Hai Shaloma20dcd72022-02-04 13:43:00 -08009120 * In TWT setup command this field contains absolute TSF that will
9121 * be used by TWT requester during setup.
9122 * In TWT response this field contains absolute TSF value of the
9123 * wake time received from the TWT responder and is passed to
9124 * the userspace.
9125 * This is an optional parameter for
9126 * 1. TWT SET Request
Hai Shalom899fcc72020-10-19 14:38:18 -07009127 * This is a required parameter for
9128 * 1. TWT SET Response
9129 * 2. TWT GET Response
9130 *
9131 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9132 * Enable (flag attribute present) - Indicates that the TWT responder
9133 * supports reception of TWT information frame from the TWT requestor.
9134 * Disable (flag attribute not present) - Indicates that the responder
9135 * doesn't support reception of TWT information frame from requestor.
9136 * This is used in
9137 * 1. TWT SET Response
9138 * 2. TWT GET Response
9139 *
9140 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9141 * Represents the MAC address of the peer for which the TWT session
9142 * is being configured. This is used in AP mode to represent the respective
Hai Shaloma20dcd72022-02-04 13:43:00 -08009143 * client.
9144 * In AP mode, this is a required parameter in response for
9145 * 1. TWT SET
9146 * 2. TWT GET
9147 * 3. TWT TERMINATE
9148 * 4. TWT SUSPEND
Hai Shalom899fcc72020-10-19 14:38:18 -07009149 * In STA mode, this is an optional parameter in request and response for
9150 * the above four TWT operations.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009151 * In AP mode, this is a required parameter in request for
9152 * 1. TWT GET
9153 * 2. TWT TERMINATE
Hai Shalom60840252021-02-19 19:02:11 -08009154 *
9155 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9156 * Minimum tolerance limit of wake interval parameter in microseconds.
9157 *
9158 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9159 * Maximum tolerance limit of wake interval parameter in microseconds.
9160 *
9161 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9162 * Minimum tolerance limit of wake duration parameter in microseconds.
9163 *
9164 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9165 * Maximum tolerance limit of wake duration parameter in microseconds.
9166 *
9167 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9168 * TWT state for the given dialog id. The values for this are represented
9169 * by enum qca_wlan_twt_setup_state.
9170 * This is obtained through TWT GET operation.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009171 *
9172 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9173 * This attribute is used to configure wake interval mantissa.
9174 * The unit is microseconds. This attribute, when specified, takes
9175 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9176 * This parameter is used for
9177 * 1. TWT SET Request and Response
9178 * 2. TWT GET Response
9179 *
9180 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9181 * This attribute is used to configure Broadcast TWT ID.
9182 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9183 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9184 * This parameter is used for
9185 * 1. TWT SET Request
9186 * 2. TWT TERMINATE Request
9187 *
9188 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9189 * This attribute is used to configure Broadcast TWT recommendation.
9190 * The Broadcast TWT Recommendation subfield contains a value that indicates
9191 * recommendations on the types of frames that are transmitted by TWT
9192 * scheduled STAs and scheduling AP during the broadcast TWT SP.
9193 * The allowed values are 0 - 3.
9194 * This parameter is used for
9195 * 1. TWT SET Request
9196 *
9197 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9198 * This attribute is used to configure Broadcast TWT Persistence.
9199 * The Broadcast TWT Persistence subfield indicates the number of
9200 * TBTTs during which the Broadcast TWT SPs corresponding to this
9201 * broadcast TWT Parameter set are present. The number of beacon intervals
9202 * during which the Broadcast TWT SPs are present is equal to the value in the
9203 * Broadcast TWT Persistence subfield plus 1 except that the value 255
9204 * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9205 * This parameter is used for
9206 * 1. TWT SET Request
9207 *
9208 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9209 * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9210 * from TWT response frame.
9211 * This parameter is used for
9212 * 1. TWT SET Response
9213 * 2. TWT GET Response
9214 *
9215 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9216 * This attribute is used to configure the announce timeout value (in us) in
9217 * the firmware. This timeout value is only applicable for the announced TWT. If
9218 * the timeout value is non-zero the firmware waits up to the timeout value to
9219 * use Data frame as an announcement frame. If the timeout value is 0 the
9220 * firmware sends an explicit QoS NULL frame as the announcement frame on SP
9221 * start. The default value in the firmware is 0.
9222 * This parameter is used for
9223 * 1. TWT SET Request
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009224 */
9225enum qca_wlan_vendor_attr_twt_setup {
9226 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9227 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9228 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9229 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9230 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9231 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9232 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9233 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9234 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9235 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9236 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9237
Hai Shalom899fcc72020-10-19 14:38:18 -07009238 /* TWT Response only attributes */
9239 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9240 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9241 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9242 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9243
9244 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -08009245 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9246 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9247 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9248 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9249 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07009250
Hai Shaloma20dcd72022-02-04 13:43:00 -08009251 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9252
9253 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9254 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9255 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9256
9257 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9258 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9259
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009260 /* keep last */
9261 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9262 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9263 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9264};
9265
9266/**
Hai Shalom899fcc72020-10-19 14:38:18 -07009267 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9268 * TWT operation
9269 *
9270 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9271 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9272 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9273 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9274 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9275 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9276 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9277 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9278 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9279 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9280 * request/response frame
9281 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9282 * frame
9283 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9284 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9285 * unknown reason
9286 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9287 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -08009288 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9289 * invalid IE in the received TWT frame
9290 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9291 * the responder are not in the specified range
9292 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9293 * session due to request from the responder. Used on the TWT_TERMINATE
9294 * notification from the firmware.
9295 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9296 * session due to roaming. Used on the TWT_TERMINATE notification from the
9297 * firmware.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009298 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9299 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
9300 * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9301 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9302 * request due to roaming in progress.
9303 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9304 * setup request due to channel switch in progress.
9305 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9306 * request due to scan in progress.
9307 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9308 * terminate an existing TWT session on power save exit request from userspace.
9309 * Used on the TWT_TERMINATE notification from the driver/firmware.
Sunil Ravia04bd252022-05-02 22:54:18 -07009310 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
9311 * required bit in its capabilities.
9312 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
9313 * the TWT required bit(1->0) in its capabilities.
Hai Shalom899fcc72020-10-19 14:38:18 -07009314 */
9315enum qca_wlan_vendor_twt_status {
9316 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9317 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9318 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9319 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9320 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9321 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9322 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9323 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9324 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9325 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9326 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9327 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9328 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9329 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -08009330 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9331 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9332 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9333 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009334 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9335 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9336 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9337 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9338 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
Sunil Ravia04bd252022-05-02 22:54:18 -07009339 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
9340 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
Hai Shalom899fcc72020-10-19 14:38:18 -07009341};
9342
9343/**
9344 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009345 * TWT (Target Wake Time) resume request. These attributes are sent as part of
9346 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -07009347 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9348 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009349 *
9350 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -07009351 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9352 * These attributes are used as the SP offset which is the offset from TSF after
9353 * which the wake happens. The units are in microseconds. Please note that
9354 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9355 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9356 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9357 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009358 *
9359 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9360 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -07009361 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9362 * and 4 for 64 bits.
9363 *
9364 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9365 * Flow ID is the unique identifier for each TWT session. This attribute
9366 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -08009367 * Flow ID values from 0 to 254 represent a single TWT session
9368 * Flow ID value of 255 represents all TWT sessions.
9369 * If an invalid dialog id is provided, status
9370 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -07009371 *
9372 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9373 * Represents the MAC address of the peer to which TWT Resume is
9374 * being sent. This is used in AP mode to represent the respective
9375 * client and is a required parameter. In STA mode, this is an optional
9376 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009377 */
9378enum qca_wlan_vendor_attr_twt_resume {
9379 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9380 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9381 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -07009382 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9383 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9384 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009385
9386 /* keep last */
9387 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9388 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9389 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9390};
9391
9392/**
Hai Shalom60840252021-02-19 19:02:11 -08009393 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9394 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9395 * and resume in a single request. These attributes are sent as part of
9396 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9397 *
9398 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9399 * Flow ID is the unique identifier for each TWT session. This attribute
9400 * represents the respective TWT session to suspend and resume.
9401 * Flow ID values from 0 to 254 represent a single TWT session
9402 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9403 * and response.
9404 * If an invalid dialog id is provided, status
9405 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9406 *
9407 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9408 * This attribute is used as the SP offset which is the offset from
9409 * TSF after which the wake happens. The units are in microseconds.
9410 *
9411 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9412 * This attribute represents the next TWT subfield size.
9413 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9414 * and 4 for 64 bits.
9415 *
9416 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9417 * Represents the MAC address of the peer to which TWT Suspend and Resume is
9418 * being sent. This is used in AP mode to represent the respective
9419 * client and is a required parameter. In STA mode, this is an optional
9420 * parameter.
9421 *
9422 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9423 * This field contains absolute TSF value of the time at which the TWT
9424 * session will be resumed.
9425 */
9426enum qca_wlan_vendor_attr_twt_nudge {
9427 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
9428 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
9429 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
9430 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
9431 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
9432 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
9433
9434 /* keep last */
9435 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
9436 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
9437 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
9438};
9439
9440/**
9441 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
9442 * TWT (Target Wake Time) get statistics and clear statistics request.
9443 * These attributes are sent as part of
9444 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9445 *
9446 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
9447 * Flow ID is the unique identifier for each TWT session. This attribute
9448 * represents the respective TWT session for get and clear TWT statistics.
9449 * Flow ID values from 0 to 254 represent a single TWT session
9450 * Flow ID value of 255 represents all TWT sessions in
9451 * 1) TWT GET STATISTICS request and response
9452 * 2) TWT CLEAR STATISTICS request
9453 *
9454 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
9455 * Represents the MAC address of the peer for which TWT Statistics
9456 * is required.
9457 * In AP mode this is used to represent the respective
9458 * client and is a required parameter for
9459 * 1) TWT GET STATISTICS request and response
9460 * 2) TWT CLEAR STATISTICS request and response
9461 * In STA mode, this is an optional parameter.
9462 *
9463 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
9464 * This is the duration of the service period in microseconds.
9465 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9466 *
9467 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
9468 * Average of the actual wake duration observed so far. Unit is microseconds.
9469 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9470 *
9471 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
9472 * The number of TWT service periods elapsed so far.
9473 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9474 *
9475 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9476 * This is the minimum value of the wake duration observed across
9477 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9478 * microseconds.
9479 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9480 *
9481 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
9482 * This is the maximum value of wake duration observed across
9483 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9484 * microseconds.
9485 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9486 *
9487 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
9488 * Average number of MPDUs transmitted successfully across
9489 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9490 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9491 *
9492 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
9493 * Average number of MPDUs received successfully across
9494 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9495 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9496 *
9497 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
9498 * Average number of bytes transmitted successfully across
9499 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9500 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9501 *
9502 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
9503 * Average number of bytes received successfully across
9504 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9505 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9506 *
9507 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
9508 * Status of the TWT GET STATISTICS request.
9509 * This contains status values in enum qca_wlan_vendor_twt_status
9510 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9511 */
9512enum qca_wlan_vendor_attr_twt_stats {
9513 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
9514 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
9515 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
9516 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
9517 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
9518 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
9519 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
9520 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
9521 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
9522 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
9523 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
9524 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
9525 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
9526
9527 /* keep last */
9528 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
9529 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
9530 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
9531};
9532
9533/**
9534 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
9535 * supported by the device and the peer.
9536 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
9537 *
9538 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
9539 * TWT non-scheduling STA. This capability is advertised in the HE
9540 * Capability/Extended Capabilities information element in the
9541 * Association Request frame by the device.
9542 *
9543 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
9544 * the TWT scheduling AP. This capability is advertised in the Extended
9545 * Capabilities/HE Capabilities information element.
9546 *
9547 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
9548 * for the broadcast TWT functionality. On the responder side, this indicates
9549 * support for the role of broadcast TWT scheduling functionality. This
9550 * capability is advertised in the HE Capabilities information element.
9551 *
9552 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
9553 * This capability is advertised in the HE Capabilities information element.
9554 *
9555 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
9556 * that it mandates the associated HE STAs to support TWT. This capability is
9557 * advertised by AP in the HE Operation Parameters field of the HE Operation
9558 * information element.
9559 */
9560enum qca_wlan_twt_capa {
9561 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
9562 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
9563 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
9564 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
9565 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
9566};
9567
9568/**
9569 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
9570 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
9571 * operation.
9572 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
9573 * Represents the MAC address of the peer for which the TWT capabilities
9574 * are being queried. This is used in AP mode to represent the respective
9575 * client. In STA mode, this is an optional parameter.
9576 *
9577 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
9578 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
9579 * enum qca_wlan_twt_capa.
9580 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
9581 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
9582 * enum qca_wlan_twt_capa.
9583 */
9584enum qca_wlan_vendor_attr_twt_capability {
9585 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
9586 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
9587 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
9588 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
9589
9590 /* keep last */
9591 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
9592 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
9593 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
9594};
9595
9596/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009597 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
9598 * TWT (Target Wake Time) related parameters. It is used when
9599 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
9600 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9601 *
9602 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
9603 * This attribute configures AC parameters to be used for all TWT
9604 * sessions in AP mode.
9605 * Uses the enum qca_wlan_ac_type values.
9606 */
9607enum qca_wlan_vendor_attr_twt_set_param {
9608 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
9609 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
9610
9611 /* keep last */
9612 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
9613 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
9614 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
9615};
9616
9617/**
Hai Shalom899fcc72020-10-19 14:38:18 -07009618 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
9619 * the TWT responder
9620 *
9621 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
9622 * parameters that are different from TWT requesting STA suggested
9623 * or demanded TWT parameters
9624 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
9625 * parameters that are different from TWT requesting STA TWT suggested
9626 * or demanded parameters
9627 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
9628 * setup
9629 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
9630 * setup.
9631 */
9632enum qca_wlan_vendor_twt_setup_resp_type {
9633 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
9634 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
9635 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
9636 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
9637};
9638
9639/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009640 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
9641 * Represents the setup type being requested for TWT.
9642 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
9643 * parameters but relying on AP to fill the parameters during the negotiation.
9644 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
9645 * values which the AP may accept or AP may provide alternative parameters
9646 * which the STA may accept.
9647 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
9648 * alternate parameters than the requested ones.
9649 */
9650enum qca_wlan_vendor_twt_setup_req_type {
9651 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
9652 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
9653 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
9654};
9655
9656/**
9657 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
9658 *
9659 * Indicates the type of roam scan event sent by firmware/driver.
9660 *
9661 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
9662 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
9663 */
9664enum qca_wlan_roam_scan_event_type {
9665 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
9666 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
9667};
9668
9669/**
9670 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
9671 *
9672 * Indicates the reason for triggering roam scan by firmware/driver.
9673 *
9674 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
9675 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
9676 */
9677enum qca_wlan_roam_scan_trigger_reason {
9678 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
9679 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
9680};
9681
9682/**
9683 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
9684 * roam scan related details from driver/firmware to user space. enum values
9685 * are used for NL attributes sent with
9686 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
9687 */
9688enum qca_wlan_vendor_attr_roam_scan {
9689 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
9690 /* Encapsulates type of roam scan event being reported. enum
9691 * qca_wlan_roam_scan_event_type describes the possible range of
9692 * values. u32 attribute.
9693 */
9694 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
9695 /* Encapsulates reason for triggering roam scan. enum
9696 * qca_wlan_roam_scan_trigger_reason describes the possible range of
9697 * values. u32 attribute.
9698 */
9699 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
9700
9701 /* keep last */
9702 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
9703 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
9704 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
9705};
9706
9707/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009708 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
9709 * transport modes and is used by the attribute
9710 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
9711 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
9712 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
9713 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
9714 * data. The data shall be encapsulated within
9715 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
9716 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
9717 */
9718enum qca_wlan_vendor_cfr_data_transport_modes {
9719 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
9720 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
9721};
9722
9723/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009724 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
9725 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
9726 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -07009727 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
9728 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
9729 * with phase
9730 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009731 */
9732enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009733 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -07009734 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
9735 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
9736};
9737
9738/**
9739 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
9740 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
9741 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
9742 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
9743 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
9744 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
9745 * is provided by one or more of below attributes:
9746 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
9747 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
9748 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
9749 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
9750 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
9751 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
9752 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
9753 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
9754 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
9755 */
9756enum qca_wlan_vendor_cfr_capture_type {
9757 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
9758 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
9759 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
9760 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
9761 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
9762 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009763};
9764
9765/**
9766 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
9767 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
9768 * Channel Frequency Response capture parameters and enable periodic CFR
9769 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -07009770 *
9771 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
9772 * MAC address of peer. This is for CFR version 1 only.
9773 *
9774 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
9775 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
9776 * capture. If this attribute is not present, peer CFR capture is disabled.
9777 *
9778 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
9779 * BW of measurement, attribute uses the values in enum nl80211_chan_width
9780 * Supported values: 20, 40, 80, 80+80, 160.
9781 * Note that all targets may not support all bandwidths.
9782 * This attribute is mandatory for version 1 if attribute
9783 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9784 *
9785 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
9786 * Periodicity of CFR measurement in milliseconds.
9787 * Periodicity should be a multiple of Base timer.
9788 * Current Base timer value supported is 10 milliseconds (default).
9789 * 0 for one shot capture.
9790 * This attribute is mandatory for version 1 if attribute
9791 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9792 *
9793 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
9794 * Method used to capture Channel Frequency Response.
9795 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
9796 * This attribute is mandatory for version 1 if attribute
9797 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9798 *
9799 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
9800 * Enable periodic CFR capture.
9801 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
9802 * If this attribute is not present, periodic CFR capture is disabled.
9803 *
9804 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
9805 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
9806 * can't be enabled at same time. This attribute is mandatory if target
9807 * support both versions and use one of them.
9808 *
9809 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
9810 * This attribute is mandatory for version 2 if
9811 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
9812 * Bits 15:0 bitfield indicates which group is to be enabled.
9813 * Bits 31:16 Reserved for future use.
9814 *
9815 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
9816 * CFR capture duration in microsecond. This attribute is mandatory for
9817 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
9818 *
9819 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
9820 * CFR capture interval in microsecond. This attribute is mandatory for
9821 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
9822 *
9823 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
9824 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
9825 * This attribute is mandatory for version 2.
9826 *
9827 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
9828 * Bitfield indicating which user in the current UL MU transmissions are
9829 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
9830 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
9831 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
9832 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
9833 * reserved for future use. This is for CFR version 2 only.
9834 *
9835 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
9836 * Indicates the number of consecutive RX frames to be skipped before CFR
9837 * capture is enabled again. This is for CFR version 2 only.
9838 *
9839 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
9840 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
9841 *
9842 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
9843 * the following group attributes:
9844 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
9845 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
9846 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
9847 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
9848 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
9849 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
9850 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
9851 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
9852 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
9853 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
9854 *
9855 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
9856 * Target supports multiple groups for some configurations. The group number
9857 * can be any value between 0 and 15. This is for CFR version 2 only.
9858 *
9859 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
9860 * Transmitter address which is used to filter frames. This MAC address takes
9861 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
9862 * version 2 only.
9863 *
9864 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
9865 * Receiver address which is used to filter frames. This MAC address takes
9866 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
9867 * version 2 only.
9868 *
9869 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
9870 * Mask of transmitter address which is used to filter frames. This is for CFR
9871 * version 2 only.
9872 *
9873 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
9874 * Mask of receiver address which is used to filter frames. This is for CFR
9875 * version 2 only.
9876 *
9877 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
9878 * Indicates frames with a specific NSS will be filtered for CFR capture.
9879 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
9880 * capture to be done for frames matching the NSS specified within this bitmask.
9881 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
9882 * bit 0 : NSS 1
9883 * bit 1 : NSS 2
9884 * ...
9885 * bit 7 : NSS 8
9886 *
9887 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
9888 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
9889 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
9890 * capture to be done for frames matching the bandwidths specified within this
9891 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
9892 * numerated in enum nl80211_band (although not all bands may be supported
9893 * by a given device).
9894 *
9895 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
9896 * Management frames matching the subtype filter categories will be filtered in
9897 * by MAC for CFR capture. This is a bitmask in which each bit represents the
9898 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
9899 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
9900 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
9901 *
9902 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
9903 * Control frames matching the subtype filter categories will be filtered in by
9904 * MAC for CFR capture. This is a bitmask in which each bit represents the
9905 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
9906 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
9907 *
9908 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
9909 * Data frames matching the subtype filter categories will be filtered in by
9910 * MAC for CFR capture. This is a bitmask in which each bit represents the
9911 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
9912 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009913 *
9914 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
9915 * Userspace can use this attribute to specify the driver about which transport
9916 * mode shall be used by the driver to send CFR data to userspace. Uses values
9917 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
9918 * not present, the driver shall use the default transport mechanism which is
9919 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
9920 *
9921 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
9922 * Userspace can use this attribute to specify the nl port id of the application
9923 * which receives the CFR data and processes it further so that the drivers can
9924 * unicast the netlink events to a specific application. Optionally included
9925 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
9926 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
9927 * shall multicast the netlink events when this attribute is not included.
9928 *
9929 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
9930 * This attribute will be used by the driver to encapsulate and send CFR data
9931 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
9932 * asynchronous event when the driver is configured to send CFR data using
9933 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009934 */
9935enum qca_wlan_vendor_peer_cfr_capture_attr {
9936 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009937 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009938 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009939 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009940 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009941 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009942 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -07009943 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
9944 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
9945 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
9946 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
9947 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
9948 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
9949 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
9950 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
9951 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
9952 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
9953 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
9954 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
9955 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
9956 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
9957 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
9958 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
9959 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
9960 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
9961 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009962 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
9963 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
9964 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009965
9966 /* Keep last */
9967 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
9968 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
9969 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
9970};
9971
Hai Shalom74f70d42019-02-11 14:42:39 -08009972/**
9973 * enum qca_wlan_throughput_level - Current throughput level
9974 *
9975 * Indicates the current level of throughput calculated by the driver. The
9976 * driver may choose different thresholds to decide whether the throughput level
9977 * is low or medium or high based on variety of parameters like physical link
9978 * capacity of the current connection, the number of packets being dispatched
9979 * per second, etc. The throughput level events might not be consistent with the
9980 * actual current throughput value being observed.
9981 *
9982 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
9983 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
9984 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
9985 */
9986enum qca_wlan_throughput_level {
9987 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
9988 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
9989 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
9990};
9991
9992/**
9993 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
9994 * report throughput changes from the driver to user space. enum values are used
9995 * for netlink attributes sent with
9996 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
9997 */
9998enum qca_wlan_vendor_attr_throughput_change {
9999 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10000 /* Indicates the direction of throughput in which the change is being
10001 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10002 */
10003 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10004 /* Indicates the newly observed throughput level. enum
10005 * qca_wlan_throughput_level describes the possible range of values.
10006 * u8 attribute.
10007 */
10008 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10009 /* Indicates the driver's guidance on the new value to be set to
10010 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
10011 * driver may optionally include this attribute.
10012 */
10013 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10014 /* Indicates the driver's guidance on the new value to be set to
10015 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
10016 * values are from -31 to 31. The driver may optionally include this
10017 * attribute.
10018 */
10019 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10020 /* Indicates the driver's guidance on the new value to be set to
10021 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
10022 * optionally include this attribute.
10023 */
10024 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10025
10026 /* keep last */
10027 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10028 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10029 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10030};
10031
10032/**
10033 * enum qca_coex_config_profiles - This enum defines different types of
10034 * traffic streams that can be prioritized one over the other during coex
10035 * scenarios.
10036 * The types defined in this enum are categorized in the below manner.
10037 * 0 - 31 values corresponds to WLAN
10038 * 32 - 63 values corresponds to BT
10039 * 64 - 95 values corresponds to Zigbee
10040 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10041 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10042 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10043 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10044 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10045 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10046 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10047 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10048 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10049 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10050 * @QCA_BT_A2DP: Prioritize BT A2DP
10051 * @QCA_BT_BLE: Prioritize BT BLE
10052 * @QCA_BT_SCO: Prioritize BT SCO
10053 * @QCA_ZB_LOW: Prioritize Zigbee Low
10054 * @QCA_ZB_HIGH: Prioritize Zigbee High
10055 */
10056enum qca_coex_config_profiles {
10057 /* 0 - 31 corresponds to WLAN */
10058 QCA_WIFI_STA_DISCOVERY = 0,
10059 QCA_WIFI_STA_CONNECTION = 1,
10060 QCA_WIFI_STA_CLASS_3_MGMT = 2,
10061 QCA_WIFI_STA_DATA = 3,
10062 QCA_WIFI_STA_ALL = 4,
10063 QCA_WIFI_SAP_DISCOVERY = 5,
10064 QCA_WIFI_SAP_CONNECTION = 6,
10065 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10066 QCA_WIFI_SAP_DATA = 8,
10067 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -070010068 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -080010069 /* 32 - 63 corresponds to BT */
10070 QCA_BT_A2DP = 32,
10071 QCA_BT_BLE = 33,
10072 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -070010073 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -080010074 /* 64 - 95 corresponds to Zigbee */
10075 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -070010076 QCA_ZB_HIGH = 65,
10077 QCA_ZB_CASE_MAX = 95,
10078 /* 0xff is default value if the u8 profile value is not set. */
10079 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
10080};
10081
10082/**
10083 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10084 * This enum defines the valid set of values of coex configuration types. These
10085 * values may used by attribute
10086 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10087 *
10088 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10089 * weights to default values.
10090 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10091 * weights with configurability value.
10092 */
10093enum qca_vendor_attr_coex_config_types {
10094 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10095 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10096 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -080010097};
10098
10099/**
10100 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
10101 *
10102 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
10103 * length array of 8-bit values from enum qca_coex_config_profiles.
10104 * FW will prioritize the profiles in the order given in the array encapsulated
10105 * in this attribute.
10106 * For example:
10107 * -----------------------------------------------------------------------
10108 * | 1 | 34 | 32 | 65 |
10109 * -----------------------------------------------------------------------
10110 * If the attribute contains the values defined in above array then it means
10111 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
10112 * 2) BT_SCO has priority over BT_A2DP.
10113 * 3) BT_A2DP has priority over ZIGBEE HIGH.
10114 * Profiles which are not listed in this array shall not be preferred over the
10115 * profiles which are listed in the array as a part of this attribute.
10116 */
10117enum qca_vendor_attr_coex_config {
10118 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10119 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
10120
10121 /* Keep last */
10122 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
10123 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
10124 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
10125};
10126
10127/**
Hai Shalom021b0b52019-04-10 11:17:58 -070010128 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10129 * attributes
10130 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10131 *
10132 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10133 * Indicate config type.
10134 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
10135 *
10136 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10137 * Indicate the Priority 1 profiles.
10138 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10139 * In same priority level, maximum to 4 profiles can be set here.
10140 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10141 * Indicate the Priority 2 profiles.
10142 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10143 * In same priority level, maximum to 4 profiles can be set here.
10144 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10145 * Indicate the Priority 3 profiles.
10146 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10147 * In same priority level, maximum to 4 profiles can be set here.
10148 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10149 * Indicate the Priority 4 profiles.
10150 * The profiles are 8-bit values from enum qca_coex_config_profiles.
10151 * In same priority level, maximum to 4 profiles can be set here.
10152 * NOTE:
10153 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10154 * arrangement:
10155 * 1: In the same u32 attribute (priority x), the profiles enum values own
10156 * same priority level.
10157 * 2: 0xff is default value if the u8 profile value is not set.
10158 * 3: max to 4 rules/profiles in same priority level.
10159 * 4: max to 4 priority level (priority 1 - priority 4)
10160 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
10161 * hybrid rules not support.
10162 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10163 * remain blank to reset all parameters.
10164 * For example:
10165 *
10166 * If the attributes as follow:
10167 * priority 1:
10168 * ------------------------------------
10169 * | 0xff | 0 | 1 | 2 |
10170 * ------------------------------------
10171 * priority 2:
10172 * -------------------------------------
10173 * | 0xff | 0xff | 0xff | 32 |
10174 * -------------------------------------
10175 * priority 3:
10176 * -------------------------------------
10177 * | 0xff | 0xff | 0xff | 65 |
10178 * -------------------------------------
10179 * then it means:
10180 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10181 * owns same priority level.
10182 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10183 * has priority over BT_A2DP and ZB_HIGH.
10184 * 3: BT_A2DP has priority over ZB_HIGH.
10185 */
Hai Shalom021b0b52019-04-10 11:17:58 -070010186enum qca_vendor_attr_coex_config_three_way {
10187 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10188 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10189 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10190 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10191 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10192 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10193
10194 /* Keep last */
10195 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10196 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10197 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10198};
10199
10200/**
Hai Shalom74f70d42019-02-11 14:42:39 -080010201 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
10202 *
10203 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
10204 * (STA/AP) for the connected link.
10205 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
10206 * &struct nl80211_sta_flag_update for the respective connected link. MAC
10207 * address of the peer represented by
10208 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
10209 */
10210enum qca_wlan_vendor_attr_link_properties {
10211 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
10212 /* 1 - 3 are reserved */
10213 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
10214 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
10215
10216 /* Keep last */
10217 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
10218 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
10219 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
10220};
10221
Hai Shalom021b0b52019-04-10 11:17:58 -070010222/**
10223 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10224 * This enum defines the valid set of values of peer stats cache types. These
10225 * values are used by attribute
10226 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
10227 *
10228 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
10229 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
10230 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
10231 * statistics
10232 */
10233enum qca_vendor_attr_peer_stats_cache_type {
10234 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10235
10236 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10237 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10238 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10239};
10240
10241/**
10242 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10243 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10244 * Information in these attributes is used to flush peer rate statistics from
10245 * the driver to user application.
10246 *
10247 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10248 * Indicate peer statistics cache type.
10249 * The statistics types are 32-bit values from
10250 * enum qca_vendor_attr_peer_stats_cache_type.
10251 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10252 * of size 6 octets, representing the peer MAC address.
10253 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10254 * containing buffer of statistics to send to application layer entity.
10255 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10256 * representing a cookie for peer unique session.
10257 */
10258enum qca_wlan_vendor_attr_peer_stats_cache_params {
10259 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10260
10261 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10262 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10263 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10264 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10265
10266 /* Keep last */
10267 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10268 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10269 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10270};
10271
10272/**
10273 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
10274 * This enum defines all the possible states of Zigbee, which can be
10275 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
10276 *
10277 * @ZIGBEE_IDLE: Zigbee in idle state
10278 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
10279 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
10280 * @ZIGBEE_JOIN: Zigbee joining network
10281 * @ZIGBEE_NETWORK_UP: Zigbee network is up
10282 * @ZIGBEE_HMI: Zigbee in HMI mode
10283 */
10284enum qca_mpta_helper_attr_zigbee_state {
10285 ZIGBEE_IDLE = 0,
10286 ZIGBEE_FORM_NETWORK = 1,
10287 ZIGBEE_WAIT_JOIN = 2,
10288 ZIGBEE_JOIN = 3,
10289 ZIGBEE_NETWORK_UP = 4,
10290 ZIGBEE_HMI = 5,
10291};
10292
10293/*
10294 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
10295 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10296 */
10297enum qca_mpta_helper_vendor_attr {
10298 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10299 /* Optional attribute used to update Zigbee state.
10300 * enum qca_mpta_helper_attr_zigbee_state.
10301 * NLA_U32 attribute.
10302 */
10303 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10304 /* Optional attribute used to configure WLAN duration for Shape-OCS
10305 * during interrupt.
10306 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10307 * Value range 0 ~ 300 (ms).
10308 * NLA_U32 attribute.
10309 */
10310 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10311 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
10312 * during interrupt.
10313 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10314 * Value range 0 ~ 300 (ms).
10315 * NLA_U32 attribute.
10316 */
10317 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10318 /* Optional attribute used to configure WLAN duration for Shape-OCS
10319 * monitor period.
10320 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10321 * Value range 0 ~ 300 (ms)
10322 * NLA_U32 attribute
10323 */
10324 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10325 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
10326 * monitor period.
10327 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10328 * Value range 0 ~ 300 (ms)
10329 * NLA_U32 attribute
10330 */
10331 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10332 /* Optional attribute used to configure OCS interrupt duration.
10333 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10334 * Value range 1000 ~ 20000 (ms)
10335 * NLA_U32 attribute
10336 */
10337 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10338 /* Optional attribute used to configure OCS monitor duration.
10339 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10340 * Value range 1000 ~ 20000 (ms)
10341 * NLA_U32 attribute
10342 */
10343 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10344 /* Optional attribute used to notify WLAN firmware the current Zigbee
10345 * channel.
10346 * Value range 11 ~ 26
10347 * NLA_U32 attribute
10348 */
10349 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10350 /* Optional attribute used to configure WLAN mute duration.
10351 * Value range 0 ~ 400 (ms)
10352 * NLA_U32 attribute
10353 */
10354 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10355
10356 /* keep last */
10357 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10358 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10359 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10360};
10361
Hai Shalom81f62d82019-07-22 12:10:00 -070010362/**
10363 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10364 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
10365 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10366 *
10367 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10368 * to request the driver to start reporting Beacon frames.
10369 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
10370 * request the driver to stop reporting Beacon frames.
10371 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10372 * userspace to report received Beacon frames.
10373 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10374 * to indicate that the driver is going to pause reporting Beacon frames.
10375 */
10376enum qca_wlan_vendor_beacon_reporting_op_types {
10377 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10378 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10379 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10380 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10381};
10382
10383/**
10384 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
10385 * of reasons for which the driver is pausing reporting Beacon frames. Will be
10386 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10387 *
10388 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10389 * reasons.
10390 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10391 * driver/firmware is starting a scan.
10392 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10393 * driver/firmware disconnects from the ESS and indicates the disconnection to
10394 * userspace (non-seamless roaming case). This reason code will be used by the
10395 * driver/firmware to indicate stopping of beacon report events. Userspace will
10396 * need to start beacon reporting again (if desired) by sending vendor command
10397 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10398 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10399 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10400 * completed.
10401 */
10402enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10403 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10404 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10405 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10406};
10407
10408/*
10409 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10410 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10411 */
10412enum qca_wlan_vendor_attr_beacon_reporting_params {
10413 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10414 /* Specifies the type of operation that the vendor command/event is
10415 * intended for. Possible values for this attribute are defined in
10416 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10417 */
10418 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10419 /* Optionally set by userspace to request the driver to report Beacon
10420 * frames using asynchronous vendor events when the
10421 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10422 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10423 * If this flag is not set, the driver will only update Beacon frames in
10424 * cfg80211 scan cache but not send any vendor events.
10425 */
10426 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10427 /* Optionally used by userspace to request the driver/firmware to report
10428 * Beacon frames periodically when the
10429 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10430 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10431 * u32 attribute, indicates the period of Beacon frames to be reported
10432 * and in the units of beacon interval.
10433 * If this attribute is missing in the command, then the default value
10434 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10435 * Zero is an invalid value.
10436 * If a valid value is received for this attribute, the driver will
10437 * update the cfg80211 scan cache periodically as per the value received
10438 * in this attribute in addition to updating the cfg80211 scan cache
10439 * when there is significant change in Beacon frame IEs.
10440 */
10441 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10442 /* Used by the driver to encapsulate the SSID when the
10443 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10444 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10445 * u8 array with a maximum size of 32.
10446 *
10447 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10448 * will be taken from the SSID element of the received Beacon frame.
10449 *
10450 * When generating beacon report from Multiple BSSID Beacon frame and if
10451 * the BSSID of the current connected BSS matches the BSSID of the
10452 * transmitting BSS, the SSID will be taken from the SSID element of the
10453 * received Beacon frame.
10454 *
10455 * When generating beacon report from Multiple BSSID Beacon frame and if
10456 * the BSSID of the current connected BSS matches the BSSID of one of
10457 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
10458 * included in the nontransmitted BSS profile whose derived BSSID is
10459 * same as the BSSID of the current connected BSS. When there is no
10460 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
10461 * of current connected* BSS, this attribute will not be present.
10462 */
10463 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
10464 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
10465 * currently connected to when the
10466 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10467 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
10468 * fixed size of 6 bytes.
10469 *
10470 * When generating beacon report from a Multiple BSSID beacon and the
10471 * current connected BSSID matches one of the nontransmitted BSSIDs in a
10472 * Multiple BSSID set, this BSSID will be that particular nontransmitted
10473 * BSSID and not the transmitted BSSID (i.e., the transmitting address
10474 * of the Beacon frame).
10475 */
10476 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
10477 /* Used by the driver to encapsulate the frequency in MHz on which
10478 * the Beacon frame was received when the
10479 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
10480 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10481 * u32 attribute.
10482 */
10483 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
10484 /* Used by the driver to encapsulate the Beacon interval
10485 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10486 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10487 * u16 attribute. The value will be copied from the Beacon frame and the
10488 * units are TUs.
10489 */
10490 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
10491 /* Used by the driver to encapsulate the Timestamp field from the Beacon
10492 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
10493 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10494 * u64 attribute.
10495 */
10496 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
10497 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
10498 * Beacon frame is received in the driver when the
10499 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10500 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
10501 * the units of nanoseconds. This value is expected to have accuracy of
10502 * about 10 ms.
10503 */
10504 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
10505 /* Used by the driver to encapsulate the IEs of the Beacon frame from
10506 * which this event is generated when the
10507 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10508 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
10509 */
10510 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
10511 /* Used by the driver to specify the reason for the driver/firmware to
10512 * pause sending beacons to userspace when the
10513 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10514 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
10515 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
10516 * attribute.
10517 */
10518 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
10519 /* Used by the driver to specify whether the driver will automatically
10520 * resume reporting beacon events to userspace later (for example after
10521 * the ongoing off-channel activity is completed etc.) when the
10522 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10523 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
10524 */
10525 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
10526 /* Optionally set by userspace to request the driver not to resume
10527 * beacon reporting after a pause is completed, when the
10528 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10529 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10530 * If this flag is set, the driver will not resume beacon reporting
10531 * after any pause in beacon reporting is completed. Userspace has to
10532 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
10533 * to initiate beacon reporting again. If this flag is set in the recent
10534 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
10535 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
10536 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
10537 * set by the driver. Setting this flag until and unless there is a
10538 * specific need is not recommended as there is a chance of some beacons
10539 * received after pause command and next start command being not
10540 * reported.
10541 */
10542 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
10543
10544 /* Keep last */
10545 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
10546 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
10547 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
10548};
10549
10550/**
10551 * enum qca_vendor_interop_issues_ap_type - Interop issue types
10552 * This enum defines the valid set of values of interop issue types. These
10553 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
10554 *
10555 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
10556 * when the STA's Qpower feature is enabled.
10557 */
10558enum qca_vendor_interop_issues_ap_type {
10559 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
10560 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
10561};
10562
10563/**
10564 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
10565 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
10566 *
10567 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
10568 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
10569 * 32-bit unsigned value. The values defined in enum
10570 * qca_vendor_interop_issues_ap_type are used.
10571 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
10572 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
10573 * It is present and mandatory for the command but is not used for the event
10574 * since only a single BSSID is reported in an event.
10575 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
10576 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
10577 * attribute in command case and without such encapsulation in the event case.
10578 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
10579 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
10580 */
10581enum qca_vendor_attr_interop_issues_ap {
10582 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
10583 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
10584 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
10585 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
10586 /* keep last */
10587 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
10588 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
10589 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
10590};
10591
Hai Shalomc3565922019-10-28 11:58:20 -070010592/**
10593 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
10594 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
10595 *
10596 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
10597 * a virtual device.
10598 *
10599 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
10600 * a physical device.
10601 */
10602enum qca_vendor_oem_device_type {
10603 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
10604 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
10605};
10606
10607/**
10608 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
10609 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
10610 *
Hai Shalom899fcc72020-10-19 14:38:18 -070010611 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
10612 * used to set/query the data to/from the firmware. On query, the same
10613 * attribute is used to carry the respective data in the reply sent by the
10614 * driver to userspace. The request to set/query the data and the format of the
10615 * respective data from the firmware are embedded in the attribute. The
10616 * maximum size of the attribute payload is 1024 bytes.
10617 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
10618 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070010619 *
10620 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
10621 * based on this field. This optional attribute is included to specify whether
10622 * the device type is a virtual device or a physical device for the
10623 * command/event. This attribute can be omitted for a virtual device (default)
10624 * command/event.
10625 * This u8 attribute is used to carry information for the device type using
10626 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -070010627 *
10628 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
10629 * is set when the userspace queries data from the firmware. This attribute
10630 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070010631 */
10632enum qca_wlan_vendor_attr_oem_data_params {
10633 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
10634 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
10635 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070010636 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -070010637
10638 /* keep last */
10639 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
10640 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
10641 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
10642};
10643
10644/**
10645 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
10646 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
10647 *
10648 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
10649 * Nested attribute containing multiple ranges with following attributes:
Hai Shaloma20dcd72022-02-04 13:43:00 -080010650 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
10651 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
10652 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
Hai Shalomc3565922019-10-28 11:58:20 -070010653 *
10654 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
10655 * Starting center frequency in MHz.
10656 *
10657 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
10658 * Ending center frequency in MHz.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010659 *
10660 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
10661 * s32 attribute, optional. It is a per frequency range attribute.
10662 * The maximum TX power limit from user space is to be applied on an
10663 * unrestricted interface for corresponding frequency range. It is also
10664 * possible that the actual TX power may be even lower than this cap due to
10665 * other considerations such as regulatory compliance, SAR, etc. In absence of
10666 * this attribute the driver shall follow current behavior which means
10667 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
10668 * power derived by the driver based on regulatory/SAR during interface up.
10669 *
10670 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
10671 * u32 attribute, optional. Indicates all the interface types which are
10672 * restricted for all frequency ranges provided in
10673 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
10674 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
10675 * This attribute encapsulates bitmasks of interface types defined in
10676 * enum nl80211_iftype. If an interface is marked as restricted the driver must
10677 * move to a safe channel and if no safe channel is available the driver shall
10678 * terminate that interface functionality. In absence of this attribute,
10679 * interface (SAP/P2P) can still continue operating on an unsafe channel with
10680 * TX power limit derived from either
10681 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
10682 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
10683 * is not provided.
Hai Shalomc3565922019-10-28 11:58:20 -070010684 */
10685enum qca_wlan_vendor_attr_avoid_frequency_ext {
10686 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
10687 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
10688 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
10689 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010690 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
10691 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
Hai Shalomc3565922019-10-28 11:58:20 -070010692
10693 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
10694 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
10695 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
10696};
10697
10698/*
10699 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
10700 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
10701 */
10702enum qca_wlan_vendor_attr_add_sta_node_params {
10703 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
10704 /* 6 byte MAC address of STA */
10705 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
10706 /* Authentication algorithm used by the station of size u16;
10707 * defined in enum nl80211_auth_type.
10708 */
10709 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
10710
10711 /* keep last */
10712 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
10713 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
10714 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
10715};
10716
10717/**
10718 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
10719 * This enum defines the valid set of values of BT coex chain mode.
10720 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
10721 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10722 *
10723 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
10724 * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
10725 */
10726enum qca_btc_chain_mode {
10727 QCA_BTC_CHAIN_SHARED = 0,
10728 QCA_BTC_CHAIN_SEPARATED = 1,
10729};
10730
10731/**
10732 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
10733 * chain mode.
10734 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10735 *
10736 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
10737 * Indicates the BT coex chain mode, are 32-bit values from
10738 * enum qca_btc_chain_mode. This attribute is mandatory.
10739 *
10740 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
10741 * If set, vdev should be restarted when BT coex chain mode is updated.
10742 * This attribute is optional.
10743 */
10744enum qca_vendor_attr_btc_chain_mode {
10745 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
10746 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
10747 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
10748
10749 /* Keep last */
10750 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
10751 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
10752 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
10753};
10754
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010755/**
10756 * enum qca_vendor_wlan_sta_flags - Station feature flags
10757 * Bits will be set to 1 if the corresponding features are enabled.
10758 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
10759 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
10760 for the station
10761 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
10762 for the station
10763 */
10764enum qca_vendor_wlan_sta_flags {
10765 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
10766 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
10767 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
10768};
10769
10770/**
10771 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
10772 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
10773 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
10774 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
10775 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
10776 */
10777enum qca_vendor_wlan_sta_guard_interval {
10778 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
10779 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
10780 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
10781 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
10782};
10783
10784/**
10785 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
10786 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
10787 *
10788 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -070010789 * Required attribute in request for AP mode only, 6-byte MAC address,
10790 * corresponding to the station's MAC address for which information is
10791 * requested. For STA mode this is not required as the info always correspond
10792 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010793 *
10794 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
10795 * Optionally used in response, u32 attribute, contains a bitmap of different
10796 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
10797 *
10798 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
10799 * Optionally used in response, u32 attribute, possible values are defined in
10800 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
10801 * Guard interval used by the station.
10802 *
10803 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
10804 * Optionally used in response, u32 attribute, used in AP mode only.
10805 * Value indicates the number of data frames received from station with retry
10806 * bit set to 1 in FC.
10807 *
10808 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
10809 * Optionally used in response, u32 attribute, used in AP mode only.
10810 * Counter for number of data frames with broadcast or multicast address in
10811 * the destination address received from the station.
10812 *
10813 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
10814 * Optionally used in response, u32 attribute, used in both STA and AP modes.
10815 * Value indicates the number of data frames successfully transmitted only
10816 * after retrying the packets and for which the TX status has been updated
10817 * back to host from target.
10818 *
10819 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070010820 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010821 * Value indicates the number of data frames not transmitted successfully even
10822 * after retrying the packets for the number of times equal to the total number
10823 * of retries allowed for that packet and for which the TX status has been
10824 * updated back to host from target.
10825 *
10826 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
10827 * Optionally used in response, u32 attribute, used in AP mode only.
10828 * Counter in the target for the number of data frames successfully transmitted
10829 * to the station.
10830 *
10831 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
10832 * Optionally used in response, u32 attribute, used in AP mode only.
10833 * Value indicates the number of data frames successfully transmitted only
10834 * after retrying the packets.
10835 *
10836 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070010837 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010838 * Value indicates the number of data frames not transmitted successfully even
10839 * after retrying the packets for the number of times equal to the total number
10840 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -070010841 *
10842 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
10843 * the STA mode only. Represent the number of probe requests sent by the STA
10844 * while attempting to roam on missing certain number of beacons from the
10845 * connected AP. If queried in the disconnected state, this represents the
10846 * count for the last connected state.
10847 *
10848 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
10849 * the STA mode. Represent the number of probe responses received by the station
10850 * while attempting to roam on missing certain number of beacons from the
10851 * connected AP. When queried in the disconnected state, this represents the
10852 * count when in last connected state.
10853 *
10854 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
10855 * STA mode only. Represents the total number of frames sent out by STA
10856 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
10857 * only for the connect session. Represents the count of last connected session,
10858 * when queried in the disconnected state.
10859 *
10860 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
10861 * Total number of RTS sent out by the STA. This data is maintained per connect
10862 * session. Represents the count of last connected session, when queried in the
10863 * disconnected state.
10864 *
10865 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
10866 * STA mode.Represent the number of RTS transmission failure that reach retry
10867 * limit. This data is maintained per connect session. Represents the count of
10868 * last connected session, when queried in the disconnected state.
10869 *
10870 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
10871 * the STA mode. Represent the total number of non aggregated frames transmitted
10872 * by the STA. This data is maintained per connect session. Represents the count
10873 * of last connected session, when queried in the disconnected state.
10874 *
10875 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
10876 * STA mode. Represent the total number of aggregated frames transmitted by the
10877 * STA. This data is maintained per connect session. Represents the count of
10878 * last connected session, when queried in the disconnected state.
10879 *
10880 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
10881 * the STA mode. Represents the number of received frames with a good PLCP. This
10882 * data is maintained per connect session. Represents the count of last
10883 * connected session, when queried in the disconnected state.
10884 *
10885 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
10886 * used in the STA mode. Represents the number of occasions that no valid
10887 * delimiter is detected by A-MPDU parser. This data is maintained per connect
10888 * session. Represents the count of last connected session, when queried in the
10889 * disconnected state.
10890 *
10891 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
10892 * STA mode. Represents the number of frames for which CRC check failed in the
10893 * MAC. This data is maintained per connect session. Represents the count of
10894 * last connected session, when queried in the disconnected state.
10895 *
10896 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
10897 * STA mode. Represents the number of unicast ACKs received with good FCS. This
10898 * data is maintained per connect session. Represents the count of last
10899 * connected session, when queried in the disconnected state.
10900 *
10901 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
10902 * mode. Represents the number of received Block Acks. This data is maintained
10903 * per connect session. Represents the count of last connected session, when
10904 * queried in the disconnected state.
10905 *
10906 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
10907 * mode. Represents the number of beacons received from the connected BSS. This
10908 * data is maintained per connect session. Represents the count of last
10909 * connected session, when queried in the disconnected state.
10910 *
10911 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
10912 * STA mode. Represents the number of beacons received by the other BSS when in
10913 * connected state (through the probes done by the STA). This data is maintained
10914 * per connect session. Represents the count of last connected session, when
10915 * queried in the disconnected state.
10916 *
10917 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
10918 * the STA mode. Represents the number of received DATA frames with good FCS and
10919 * matching Receiver Address when in connected state. This data is maintained
10920 * per connect session. Represents the count of last connected session, when
10921 * queried in the disconnected state.
10922 *
10923 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
10924 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
10925 * when in the connected state. This data is maintained per connect session.
10926 * Represents the count of last connected session, when queried in the
10927 * disconnected state.
10928 *
10929 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
10930 * STA mode. This represents the target power in dBm for the transmissions done
10931 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
10932 * connect session. Represents the count of last connected session, when
10933 * queried in the disconnected state.
10934 *
10935 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
10936 * STA mode. This represents the Target power in dBm for transmissions done to
10937 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
10938 * session. Represents the count of last connected session, when queried in the
10939 * disconnected state.
10940 *
10941 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
10942 * STA mode. This represents the Target power in dBm for transmissions done to
10943 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
10944 * Represents the count of last connected session, when queried in the
10945 * disconnected state.
10946 *
10947 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
10948 * STA mode. This represents the Target power in dBm for transmissions done to
10949 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
10950 * session. Represents the count of last connected session, when queried in
10951 * the disconnected state.
10952 *
10953 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
10954 * STA mode. This represents the Target power in dBm for for transmissions done
10955 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
10956 * Represents the count of last connected session, when queried in the
10957 * disconnected state.
10958 *
10959 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
10960 * in the STA mode. This represents the Nested attribute representing the
10961 * overflow counts of each receive buffer allocated to the hardware during the
10962 * STA's connection. The number of hw buffers might vary for each WLAN
10963 * solution and hence this attribute represents the nested array of all such
10964 * HW buffer count. This data is maintained per connect session. Represents
10965 * the count of last connected session, when queried in the disconnected state.
10966 *
10967 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
10968 * allowed as per the regulatory requirements for the current or last connected
10969 * session. Used in the STA mode.
10970 *
10971 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
10972 * (dBm) used by the station in its latest unicast frame while communicating
10973 * to the AP in the connected state. When queried in the disconnected state,
10974 * this represents the TX power used by the STA with last AP communication
10975 * when in connected state.
10976 *
10977 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
10978 * level used to adjust the RX sensitivity. Represents the current ANI level
10979 * when queried in the connected state. When queried in the disconnected
10980 * state, this corresponds to the latest ANI level at the instance of
10981 * disconnection.
10982 *
10983 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
10984 * the raw information elements from Beacon frames. Represents the Beacon frames
10985 * of the current BSS in the connected state. When queried in the disconnected
10986 * state, these IEs correspond to the last connected BSSID.
10987 *
10988 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
10989 * containing the raw information elements from Probe Response frames.
10990 * Represents the Probe Response frames of the current BSS in the connected
10991 * state. When queried in the disconnected state, these IEs correspond to the
10992 * last connected BSSID.
10993 *
10994 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
10995 * disconnect reason for the last disconnection if the disconnection is
10996 * triggered from the host driver. The values are referred from
10997 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070010998 *
10999 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11000 * only. This represents the number of group addressed robust management frames
11001 * received from this station with an invalid MIC or a missing MME when PMF is
11002 * enabled.
11003 *
11004 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11005 * only. This represents the number of group addressed robust management frames
11006 * received from this station with the packet number less than or equal to the
11007 * last received packet number when PMF is enabled.
11008 *
11009 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11010 * mode only. This represents the number of Beacon frames received from this
11011 * station with an invalid MIC or a missing MME when beacon protection is
11012 * enabled.
11013 *
11014 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11015 * only. This represents number of Beacon frames received from this station with
11016 * the packet number less than or equal to the last received packet number when
11017 * beacon protection is enabled.
11018 *
11019 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11020 * STA mode only. The driver uses this attribute to populate the connection
11021 * failure reason codes and the values are defined in
11022 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11023 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11024 * a connection failure indication from the driver. The driver shall not
11025 * include this attribute in response to the
11026 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
11027 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080011028 *
11029 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11030 * used by the station in its last TX frame while communicating to the AP in the
11031 * connected state. When queried in the disconnected state, this represents the
11032 * rate used by the STA in the last TX frame to the AP when it was connected.
11033 * This attribute is used for STA mode only.
11034 *
11035 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11036 * This represents the rate index used by the STA for the last TX frame to the
11037 * AP. When queried in the disconnected state, this gives the last RIX used by
11038 * the STA in the last TX frame to the AP when it was connected.
11039 *
11040 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11041 * mode only. This represents the number of times the STA TSF goes out of sync
11042 * from the AP after the connection. If queried in the disconnected state, this
11043 * gives the count of TSF out of sync for the last connection.
11044 *
11045 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11046 * mode only. This represents the roam trigger reason for the last roaming
11047 * attempted by the firmware. This can be queried either in connected state or
11048 * disconnected state. Each bit of this attribute represents the different
11049 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11050 *
11051 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11052 * only. This represents the roam fail reason for the last failed roaming
11053 * attempt by the firmware. Different roam failure reason codes are specified
11054 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11055 * connected state or disconnected state.
11056 *
11057 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11058 * STA mode only. This represents the roam invoke fail reason for the last
11059 * failed roam invoke. Different roam invoke failure reason codes
11060 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11061 * queried either in connected state or disconnected state.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011062 *
11063 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11064 * This represents the average congestion duration of uplink frames in MAC
11065 * queue in unit of ms. This can be queried either in connected state or
11066 * disconnected state.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011067 */
11068enum qca_wlan_vendor_attr_get_sta_info {
11069 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11070 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11071 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11072 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11073 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11074 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11075 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11076 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11077 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11078 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11079 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070011080 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11081 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11082 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11083 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11084 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11085 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11086 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11087 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11088 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11089 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11090 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11091 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11092 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11093 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11094 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11095 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11096 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11097 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11098 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11099 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11100 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11101 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11102 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11103 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11104 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11105 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
11106 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
11107 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070011108 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11109 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11110 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11111 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11112 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080011113 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11114 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11115 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11116 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11117 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11118 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011119 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080011120
11121 /* keep last */
11122 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11123 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11124 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11125};
11126
Hai Shalomfdcde762020-04-02 11:19:20 -070011127/**
11128 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
11129 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
11130 *
11131 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
11132 * Used in STA mode. This attribute represents the list of channel center
11133 * frequencies in MHz (u32) the station has learnt during the last connection
11134 * or roaming attempt. This information shall not signify the channels for
11135 * an explicit scan request from the user space. Host drivers can update this
11136 * information to the user space in both connected and disconnected state.
11137 * In the disconnected state this information shall signify the channels
11138 * scanned in the last connection/roam attempt that lead to the disconnection.
11139 */
11140enum qca_wlan_vendor_attr_update_sta_info {
11141 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
11142 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
11143
11144 /* keep last */
11145 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
11146 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
11147 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
11148};
11149
11150/**
11151 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11152 * Used when the driver triggers the STA to disconnect from the AP.
11153 *
11154 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11155 * disconnection with the AP due to unspecified reasons.
11156 *
11157 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11158 * disconnection with the AP due to a roaming failure. This roaming is triggered
11159 * internally (host driver/firmware).
11160 *
11161 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11162 * the AP when the user/external triggered roaming fails.
11163 *
11164 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11165 * by the host driver whenever gateway reachability failure is detected and the
11166 * driver disconnects with AP.
11167 *
11168 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11169 * the AP on a channel switch announcement from it with an unsupported channel.
11170 *
11171 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11172 * with indoor channels disabled and if the STA is connected on one of these
11173 * disabled channels, the host driver disconnected the STA with this reason
11174 * code.
11175 *
11176 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11177 * explicit request from the user to disable the current operating channel.
11178 *
11179 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11180 * the internal host driver/firmware recovery.
11181 *
11182 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11183 * a timeout for the key installations from the user space.
11184 *
11185 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11186 * STA on a band change request from the user space to a different band from the
11187 * current operation channel/band.
11188 *
11189 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11190 * interface down trigger from the user space.
11191 *
11192 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11193 * STA on getting continuous transmission failures for multiple Data frames.
11194 *
11195 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11196 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11197 * represents inactivity from AP on such transmissions.
11198
11199 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11200 * disconnection when SA Query times out (AP does not respond to SA Query).
11201 *
11202 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11203 * STA on missing the beacons continuously from the AP.
11204 *
11205 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11206 * able to move to the channel mentioned by the AP in CSA.
11207 *
11208 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11209 */
11210enum qca_disconnect_reason_codes {
11211 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11212 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11213 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11214 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11215 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11216 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11217 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11218 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11219 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11220 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11221 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11222 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11223 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11224 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11225 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11226 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11227 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11228};
11229
11230/**
11231 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11232 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11233 *
11234 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11235 * This attribute represents the driver specific reason codes (local
11236 * driver/firmware initiated reasons for disconnection) defined
11237 * in enum qca_disconnect_reason_codes.
11238 */
11239enum qca_wlan_vendor_attr_driver_disconnect_reason {
11240 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11241 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11242
11243 /* keep last */
11244 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11245 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11246 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11247};
11248
Hai Shalom899fcc72020-10-19 14:38:18 -070011249/**
11250 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11251 *
11252 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11253 */
11254enum qca_wlan_tspec_operation {
11255 QCA_WLAN_TSPEC_ADD = 0,
11256 QCA_WLAN_TSPEC_DEL = 1,
11257 QCA_WLAN_TSPEC_GET = 2,
11258};
11259
11260/**
11261 * enum qca_wlan_tspec_direction - Direction in TSPEC
11262 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11263 *
11264 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11265 */
11266enum qca_wlan_tspec_direction {
11267 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11268 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11269 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11270 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11271};
11272
11273/**
11274 * enum qca_wlan_tspec_ack_policy - MAC acknowledgement policy in TSPEC
11275 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11276 *
11277 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11278 */
11279enum qca_wlan_tspec_ack_policy {
11280 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11281 QCA_WLAN_TSPEC_NO_ACK = 1,
11282 /* Reserved */
11283 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11284};
11285
11286/**
11287 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11288 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11289 *
11290 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11291 * u8 attribute. Specify the TSPEC operation of this request. Possible values
11292 * are defined in enum qca_wlan_tspec_operation.
11293 * Mandatory attribute for all kinds of config TSPEC requests.
11294 *
11295 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11296 * u8 attribute. TS ID. Possible values are 0-7.
11297 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11298 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11299 *
11300 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11301 * u8 attribute. Direction of data carried by the TS. Possible values are
11302 * defined in enum qca_wlan_tspec_direction.
11303 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11304 *
11305 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11306 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11307 * with the TS. set - enabled, not set - disabled.
11308 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11309 *
11310 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11311 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
11312 * belonging to this TS. Possible values are 0-7.
11313 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11314 *
11315 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11316 * u8 attribute. Indicate whether MAC acknowledgements are required for
11317 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11318 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11319 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11320 *
11321 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11322 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11323 * belonging to this TS.
11324 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11325 *
11326 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11327 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11328 * belonging to this TS.
11329 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11330 *
11331 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11332 * u32 attribute. Specify the minimum interval in microseconds between the
11333 * start of two successive SPs.
11334 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11335 *
11336 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11337 * u32 attribute. Specify the maximum interval in microseconds between the
11338 * start of two successive SPs.
11339 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11340 *
11341 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11342 * u32 attribute. Specify the minimum interval in microseconds that can elapse
11343 * without arrival or transfer of an MPDU belonging to the TS before this TS
11344 * is deleted by the MAC entity at the HC.
11345 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11346 *
11347 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11348 * u32 attribute. Specify the minimum interval in microseconds that can elapse
11349 * without arrival or transfer of an MSDU belonging to the TS before the
11350 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11351 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11352 * interval is always less than or equal to the inactivity interval.
11353 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11354 *
11355 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11356 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11357 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11358 * bounds of this TSPEC.
11359 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11360 *
11361 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11362 * u32 attribute. Indicate the average data rate in bps specified at the MAC
11363 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11364 * bounds of this TSPEC.
11365 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11366 *
11367 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11368 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11369 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11370 * the bounds of this TSPEC.
11371 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11372 *
11373 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11374 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11375 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11376 * value of 0 indicates that there are no bursts.
11377 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11378 *
11379 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11380 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11381 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11382 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11383 *
11384 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11385 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11386 * and above the stated application rates required to transport an MSDU/A-MSDU
11387 * belonging to the TS in this TSPEC.
11388 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11389 */
11390enum qca_wlan_vendor_attr_config_tspec {
11391 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11392 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11393 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11394 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11395 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11396 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11397 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11398 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11399 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11400 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11401 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11402 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11403 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11404 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11405 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11406 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11407 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11408 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11409 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11410
11411 /* keep last */
11412 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11413 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11414 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11415};
11416
11417/**
11418 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
11419 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
11420 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
11421 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
11422 * frame
11423 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
11424 * Request frame.
11425 */
11426enum qca_wlan_vendor_oci_override_frame_type {
11427 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
11428 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
11429 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
11430 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
11431};
11432
11433/**
11434 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
11435 * OCI override request. These attributes are used inside nested attribute
11436 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
11437 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
11438 *
11439 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
11440 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
11441 * attribute to specify the frame type in which the OCI is to be overridden.
11442 *
11443 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
11444 * OCI frequency (in MHz) to override in the specified frame type.
11445 */
11446enum qca_wlan_vendor_attr_oci_override {
11447 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
11448 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
11449 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
11450
11451 /* keep last */
11452 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
11453 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
11454 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
11455};
11456
11457/**
11458 * enum qca_wlan_medium_assess_type - Type of medium assess request
11459 *
11460 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11461 */
11462enum qca_wlan_medium_assess_type {
11463 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11464 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11465};
11466
11467/**
11468 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11469 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11470 *
11471 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11472 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11473 * Specify the type of medium assess request and indicate its type in response.
11474 * Possible values are defined in enum qca_wlan_medium_assess_type.
11475 *
11476 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11477 * u32 attribute. Mandatory in CCA request.
11478 * Specify the assessment period in terms of seconds. Assessment result will be
11479 * sent as the response to the CCA request after the assessment period.
11480 *
11481 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11482 * u32 attribute. Mandatory in response to CCA request.
11483 * Total timer tick count of the assessment cycle.
11484 *
11485 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11486 * u32 attribute. Mandatory in response to CCA request.
11487 * Timer tick count of idle time in the assessment cycle.
11488 *
11489 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11490 * u32 attribute. Mandatory in response to CCA request.
11491 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11492 *
11493 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11494 * u32 attribute. Mandatory in response to CCA request.
11495 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11496 *
11497 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11498 * s32 attribute. Mandatory in response to CCA request.
11499 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11500 *
11501 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11502 * s32 attribute. Mandatory in response to CCA request.
11503 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
11504 *
11505 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
11506 * u8 attribute. Mandatory in congestion report request.
11507 * 1-enable 0-disable.
11508 *
11509 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
11510 * u8 attribute. Mandatory in congestion report enable request and will be
11511 * ignored if present in congestion report disable request. Possible values are
11512 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
11513 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
11514 * congestion percentage reaches the configured threshold.
11515 *
11516 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
11517 * u8 attribute. Optional in congestion report enable request and will be
11518 * ignored if present in congestion report disable request.
11519 * Specify the interval of congestion report event in terms of seconds. Possible
11520 * values are 1-255. Default value 1 will be used if this attribute is omitted
11521 * or using invalid values.
11522 *
11523 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
11524 * u8 attribute. Mandatory in congestion report event.
11525 * Indicate the actual congestion percentage. Possible values are 0-100.
11526 */
11527enum qca_wlan_vendor_attr_medium_assess {
11528 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
11529 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
11530
11531 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
11532 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
11533 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
11534 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
11535 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
11536 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
11537 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
11538
11539 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
11540 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
11541 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
11542 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
11543
11544 /* keep last */
11545 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
11546 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
11547 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
11548};
11549
11550/**
11551 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
11552 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
11553 *
11554 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
11555 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
11556 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
11557 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011558 *
11559 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
11560 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
11561 *
11562 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
11563 * u8 attribute, required. Indicates group id of Tx VDEV.
11564 *
11565 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
11566 * Nested attribute. This attribute shall be used by the driver to send
11567 * group information. The attributes defined in enum
11568 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
11569 * are nested in this attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -070011570 */
11571enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
11572 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
11573 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011574 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
11575 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
11576 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
Hai Shalom899fcc72020-10-19 14:38:18 -070011577
11578 /* keep last */
11579 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
11580 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
11581 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
11582};
11583
11584/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011585 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
11586 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
11587 *
11588 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
11589 * u32 attribute, required. Contains interface index.
11590 *
11591 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
11592 * u8 attribute, required. 0 - means vdev is in down state.
11593 * 1 - means vdev is in up state.
11594 */
11595enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
11596 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
11597 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
11598 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
11599
11600 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
11601 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
11602 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
11603};
11604
11605/**
11606 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
11607 *
11608 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
11609 * STA interface has to be given while selecting the connection policies
11610 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
11611 * An interface is set as primary through the attribute
11612 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
11613 * applicable if the primary interface has not been set earlier.
11614 *
11615 * The intention is not to downgrade the primary STA performance, such as:
11616 * - Do not reduce the number of TX/RX chains of primary connection.
11617 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
11618 * chains.
11619 * - If using MCC, should set the MCC duty cycle of the primary connection to
11620 * be higher than the secondary connection.
11621 *
11622 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
11623 * subsequent STA connection shall be chosen to balance with the existing
11624 * concurrent STA's performance.
11625 * Such as
11626 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
11627 * capability.
11628 * - If using MCC, set the MCC duty cycle of the primary connection to be equal
11629 * to the secondary.
11630 * - Prefer BSSID candidates which will help provide the best "overall"
11631 * performance for all the STA connections.
11632 */
11633enum qca_wlan_concurrent_sta_policy_config {
11634 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
11635 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
11636};
11637
11638/**
Sunil8cd6f4d2022-06-28 18:40:46 +000011639 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
Hai Shaloma20dcd72022-02-04 13:43:00 -080011640 *
Sunil8cd6f4d2022-06-28 18:40:46 +000011641 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
11642 * interface.
11643 *
11644 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
11645 * to meet gaming audio latency requirements.
11646 *
11647 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
11648 * concurrencies to meet lossless audio streaming requirements.
11649 */
11650enum qca_wlan_concurrent_ap_policy_config {
11651 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
11652 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
11653 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
11654};
11655
11656/**
11657 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
11658 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
11659 *
11660 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
Hai Shaloma20dcd72022-02-04 13:43:00 -080011661 * u8 attribute. Configures the concurrent STA policy configuration.
11662 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
Sunil8cd6f4d2022-06-28 18:40:46 +000011663
11664 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
11665 * u8 attribute. Configures the concurrent AP policy configuration.
11666 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011667 */
Sunil8cd6f4d2022-06-28 18:40:46 +000011668enum qca_wlan_vendor_attr_concurrent_policy {
11669 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
11670 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
11671 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011672
11673 /* keep last */
Sunil8cd6f4d2022-06-28 18:40:46 +000011674 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
11675 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
11676 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011677
11678};
11679
Sunil8cd6f4d2022-06-28 18:40:46 +000011680/* Compatibility defines for previously used enum
11681 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
11682 * in any new implementation.
11683 */
11684#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
11685 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
11686#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
11687 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
11688#define qca_wlan_vendor_attr_concurrent_sta_policy \
11689 qca_wlan_vendor_attr_concurrent_policy
11690
Hai Shaloma20dcd72022-02-04 13:43:00 -080011691/**
Hai Shalom899fcc72020-10-19 14:38:18 -070011692 * enum qca_sta_connect_fail_reason_codes - Defines values carried
11693 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
11694 * attribute.
11695 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
11696 * for unicast Probe Request frame.
11697 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
11698 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
11699 * auth request.
11700 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
11701 * received from AP.
11702 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
11703 * Association Request frame.
11704 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
11705 * Association Request frame.
11706 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
11707 * frame is not received from AP.
11708 */
11709enum qca_sta_connect_fail_reason_codes {
11710 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
11711 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
11712 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
11713 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
11714 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
11715 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
11716 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
11717};
11718
Hai Shaloma20dcd72022-02-04 13:43:00 -080011719/**
11720 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
11721 * filters defined in this enum are used in attribute
11722 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
11723 *
11724 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
11725 * shall filter the channels which are not usable because of coexistence with
11726 * cellular radio.
11727 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
11728 * shall filter the channels which are not usable because of existing active
11729 * interfaces in the driver and will result in Multi Channel Concurrency, etc.
11730 *
11731 */
11732enum qca_wlan_vendor_usable_channels_filter {
11733 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
11734 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
11735};
11736
11737/**
11738 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
11739 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
11740 *
11741 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
11742 * u32 attribute, required. Indicates the center frequency of the primary
11743 * channel in MHz.
11744 *
11745 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
11746 * u32 attribute. Indicates the center frequency of the primary segment of the
11747 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
11748 * 160 MHz, and 320 MHz channels.
11749 *
11750 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
11751 * u32 attribute. Indicates the center frequency of the secondary segment of
11752 * 80+80 channel in MHz. This attribute is required only when
11753 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
11754 *
11755 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
11756 * u32 attribute, required. Indicates the bandwidth of the channel, possible
11757 * values are defined in enum nl80211_chan_width.
11758 *
11759 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
11760 * u32 attribute, required. Indicates all the interface types for which this
11761 * channel is usable. This attribute encapsulates bitmasks of interface types
11762 * defined in enum nl80211_iftype.
11763 *
11764 */
11765enum qca_wlan_vendor_attr_chan_info {
11766 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
11767 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
11768 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
11769 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
11770 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
11771 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
11772
11773 /* keep last */
11774 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
11775 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
11776 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
11777};
11778
11779/**
11780 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
11781 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
11782 *
11783 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
11784 * u32 attribute. Indicates the bands from which the channels should be reported
11785 * in response. This attribute encapsulates bit masks of bands defined in enum
11786 * nl80211_band. Optional attribute, if not present in the request the driver
11787 * shall return channels from all supported bands.
11788 *
11789 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
11790 * u32 attribute. Indicates all the interface types for which the usable
11791 * channels information is requested. This attribute encapsulates bitmasks of
11792 * interface types defined in enum nl80211_iftype. Optional attribute, if not
11793 * present in the request the driver shall send information of all supported
11794 * interface modes.
11795 *
11796 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
11797 * u32 attribute. This attribute carries information of all filters that shall
11798 * be applied while populating usable channels information by the driver. This
11799 * attribute carries bit masks of different filters defined in enum
11800 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
11801 * in the request the driver shall send information of channels without applying
11802 * any of the filters that can be configured through this attribute.
11803 *
11804 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
11805 * Nested attribute. This attribute shall be used by the driver to send
11806 * usability information of each channel. The attributes defined in enum
11807 * qca_wlan_vendor_attr_chan_info are used inside this attribute.
11808 */
11809enum qca_wlan_vendor_attr_usable_channels {
11810 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
11811 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
11812 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
11813 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
11814 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
11815
11816 /* keep last */
11817 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
11818 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
11819 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
11820};
11821
11822/**
11823 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
11824 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
11825 *
11826 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
11827 * the list of radar history entries.
11828 * Each entry contains freq, timestamp, and radar signal detect flag.
11829 * The driver shall add an entry when CAC has finished, or radar signal
11830 * has been detected post AP beaconing. The driver shall maintain at least
11831 * 8 entries in order to save CAC result for a 160 MHz channel.
11832 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
11833 * Channel frequency in MHz.
11834 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
11835 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
11836 * or radar detection.
11837 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
11838 * This flag indicates radar signal has been detected.
11839 */
11840enum qca_wlan_vendor_attr_radar_history {
11841 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
11842
11843 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
11844 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
11845 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
11846 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
11847
11848 /* keep last */
11849 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
11850 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
11851 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
11852};
11853
11854/**
11855 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
11856 *
11857 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
11858 * target exited MCC state and cleared the quota information. In the
11859 * command it clears MCC quota setting and restores adaptive scheduling.
11860 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
11861 * will not be changed.
11862 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
11863 * and the target may change the quota based on the data activity.
11864 */
11865enum qca_wlan_vendor_mcc_quota_type {
11866 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
11867 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
11868 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
11869};
11870
11871/**
11872 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
11873 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
11874 * quota information or as a command to set the required MCC quota for an
11875 * interface.
11876 *
11877 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
11878 * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
11879 * In a command this specifies the MCC quota type to be set for the interface.
11880 * In an event this provides the current quota type in force.
11881 * This is required in a command and an event.
11882 *
11883 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
11884 * the list of channel quota entries.
11885 * In an event each entry contains the frequency and respective time quota for
11886 * all the MCC interfaces.
11887 * In a command it specifies the interface index and respective time quota.
11888 * In a command only one entry (ifindex, quota pair) may be specified.
11889 *
11890 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
11891 * Channel frequency in MHz. This is present only in an event.
11892 *
11893 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
11894 * Channel time quota expressed as percentage.
11895 * This is present in an event and a command.
11896 * In an command, the user shall specify the quota to be allocated for the
11897 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
11898 * In an event this provides the existing quota for the channel.
11899 *
11900 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
11901 * Specifies the interface index (netdev) for which the corresponding
11902 * configurations are applied. This is required in a command only. Only one
11903 * interface index may be specified. If not specified, the configuration is
11904 * rejected.
11905 */
11906enum qca_wlan_vendor_attr_mcc_quota {
11907 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
11908 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
11909 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
11910 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
11911 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
11912 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
11913
11914 /* keep last */
11915 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
11916 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
11917 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
11918};
11919
11920/**
Sunil8cd6f4d2022-06-28 18:40:46 +000011921 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
11922 * radio configurations present in each radio combination.
11923 *
11924 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
11925 * the band info in the radio configuration. Uses the enum qca_set_band values.
11926 *
11927 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
11928 * the number of antennas info in the radio configuration.
11929 */
11930enum qca_wlan_vendor_attr_supported_radio_cfg {
11931 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
11932 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
11933 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
11934
11935 /* keep last */
11936 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
11937 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
11938 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
11939};
11940
11941/**
11942 * enum qca_wlan_vendor_attr_radio_combination - Attributes for
11943 * radio combinations supported by the device.
11944 *
11945 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
11946 * provides the radio configurations present in the radio combination.
11947 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
11948 * This attribute provides the values for radio combination matrix.
11949 * For standalone config, the number of config values is one and the config
11950 * carries the band and antenna information for standalone configuration. For
11951 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
11952 * configuration the number of config values is two and the config carries the
11953 * band and antenna information for each simultaneous radio.
11954 */
11955enum qca_wlan_vendor_attr_radio_combination {
11956 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
11957 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
11958
11959 /* keep last */
11960 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
11961 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
11962 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
11963};
11964
11965/**
11966 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
11967 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
11968 *
11969 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
11970 * provides the radio combinations supported by the device.
11971 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
11972 * For example, in the radio combination matrix for a device which has two
11973 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
11974 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
11975 * combinations is 5 and the radio combinations are
11976 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
11977 * {{5 GHz 2X2}}, //Standalone 5 GHz
11978 * {{6 GHz 2X2}}, //Standalone 6 GHz
11979 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
11980 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
11981 * The band and antenna info together as nested data provides one radio config.
11982 * Standalone configuration has one config with band and antenna nested data.
11983 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
11984 * have two nested band and antenna info data.
11985 */
11986enum qca_wlan_vendor_attr_radio_combination_matrix {
11987 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
11988 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
11989
11990 /* keep last */
11991 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
11992 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
11993 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
11994};
11995
11996/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011997 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
11998 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
11999 *
12000 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
12001 * Enable mDNS offload. This attribute is mandatory to enable
12002 * mDNS offload feature. If this attribute is not present, mDNS offload
12003 * is disabled.
12004 *
12005 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
12006 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
12007 * attribute is mandatory when enabling the feature, and not required when
12008 * disabling the feature.
12009 *
12010 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
12011 * the following attributes:
12012 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
12013 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
12014 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
12015 *
12016 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
12017 * It consists of a hostname and ".local" as the domain name. The character
12018 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
12019 * It is used to compare the domain in the "QU" query. Only 1 FQDN is
12020 * supported per vdev.
12021 * For example: myphone.local
12022 *
12023 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
12024 * u16 attribute. It specifies the total number of resource records present
12025 * in the answer section of the answer payload. This attribute is needed by the
12026 * firmware to populate the mDNS response frame for mDNS queries without having
12027 * to parse the answer payload.
12028 *
12029 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
12030 * attribute sent by the mdnsResponder from userspace. It contains resource
12031 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
12032 * payload is passed down to the firmware and is transmitted in response to
12033 * mDNS queries.
12034 * The maximum supported size of the answer payload is 512 bytes.
12035 */
12036enum qca_wlan_vendor_attr_mdns_offload {
12037 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
12038 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
12039 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
12040 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
12041 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
12042 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
12043 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
12044
12045 /* keep last */
12046 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
12047 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
12048 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
12049};
12050
12051/**
12052 * qca_wlan_vendor_monitor_data_frame_type - Represent the various
12053 * Data frame types to be sent over the monitor interface.
12054 */
12055enum qca_wlan_vendor_monitor_data_frame_type {
12056 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
12057 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
12058 */
12059 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
12060 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
12061 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
12062 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
12063 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
12064 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
12065 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
12066 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
12067 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
12068 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
12069 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
12070 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
12071 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
12072 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
12073 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
12074 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
12075 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
12076};
12077
12078/**
12079 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
12080 * Management frame types to be sent over the monitor interface.
12081 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
12082 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
12083 * except the Beacon frame.
12084 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
12085 * BSSID Beacon frames. Valid only in the connected state.
12086 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
12087 * the Beacon frames obtained during the scan (off channel and connected
12088 * channel), when in connected state.
12089 */
12090enum qca_wlan_vendor_monitor_mgmt_frame_type {
12091 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
12092 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
12093 */
12094 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
12095 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
12096 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
12097};
12098
12099/**
12100 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
12101 * Control frame types to be sent over the monitor interface.
12102 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
12103 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
12104 */
12105enum qca_wlan_vendor_monitor_ctrl_frame_type {
12106 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
12107 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
12108 */
12109 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
12110};
12111
12112/**
12113 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
12114 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
12115 * monitor mode.
12116 *
12117 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
12118 * Represents the TX Data frame types to be monitored (u32). These Data frames
12119 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
12120 *
12121 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
12122 * Represents the RX Data frame types to be monitored (u32). These Data frames
12123 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
12124 *
12125 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
12126 * Represents the TX Management frame types to be monitored (u32). These
12127 * Management frames are represented by
12128 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
12129 *
12130 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
12131 * Represents the RX Management frame types to be monitored (u32). These
12132 * Management frames are represented by
12133 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
12134 *
12135 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
12136 * Represents the TX Control frame types to be monitored (u32). These Control
12137 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
12138 *
12139 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
12140 * Represents the RX Control frame types to be monitored (u32). These Control
12141 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
12142 *
12143 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
12144 * attribute.
12145 * Represents the interval in milliseconds only for the connected Beacon frames,
12146 * expecting the connected BSS's Beacon frames to be sent on the monitor
12147 * interface at this specific interval.
12148 */
12149enum qca_wlan_vendor_attr_set_monitor_mode {
12150 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
12151 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
12152 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
12153 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
12154 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
12155 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
12156 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
12157 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
12158
12159 /* keep last */
12160 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
12161 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
12162 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
12163};
12164
12165/**
12166 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
12167 * Bits will be set to 1 if the corresponding state is enabled.
12168 *
12169 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
12170 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
12171 */
12172enum qca_wlan_vendor_roam_scan_state {
12173 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
12174 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
12175};
12176
12177/**
12178 * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
12179 * Bits will be set to 1 if the corresponding event is notified.
12180 *
12181 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
12182 * carries the trigger reason. When set, it is expected that the roam event
12183 * carries the respective reason via the attribute
12184 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
12185 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
12186 *
12187 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
12188 * carries the roam fail reason. When set, it is expected that the roam event
12189 * carries the respective reason via the attribute
12190 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
12191 * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
12192 *
12193 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
12194 * event carries the roam invoke fail reason. When set, it is expected that
12195 * the roam event carries the respective reason via the attribute
12196 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
12197 *
12198 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
12199 * carries the roam scan state. When set, it is expected that the roam event
12200 * carries the respective scan state via the attribute
12201 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
12202 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
12203 */
12204enum qca_wlan_vendor_roam_event_type {
12205 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
12206 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
12207 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
12208 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
12209};
12210
12211/**
12212 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
12213 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
12214 *
12215 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
12216 * representing the BSSID of the AP to which the roam is attempted.
12217 *
12218 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
12219 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
12220 * attempted.
12221 *
12222 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
12223 * on which the roam is attempted.
12224 *
12225 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
12226 * STA mode only. This represents the roam fail reason for the last failed
12227 * roaming attempt by the firmware for the specific BSSID. Different roam
12228 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
12229 */
12230enum qca_wlan_vendor_attr_roam_events_candidate_info {
12231 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
12232 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
12233 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
12234 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
12235 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
12236
12237 /* keep last */
12238 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
12239 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
12240 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
12241};
12242
12243/**
12244 * enum qca_wlan_vendor_attr_roam_events - Used by the
12245 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
12246 * roam events to the driver or notify these events from the driver.
12247 *
12248 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
12249 * driver/firmware to enable/disable the notification of roam events. It's a
12250 * mandatory attribute and used only in the request from the userspace to the
12251 * host driver. 1-Enable, 0-Disable.
12252 * If the roaming is totally offloaded to the firmware, this request when
12253 * enabled shall mandate the firmware to notify all the relevant roam events
12254 * represented by the below attributes. If the host is in the suspend mode,
12255 * the behavior of the firmware to notify these events is guided by
12256 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
12257 * these events in the suspend state, the firmware is expected to wake up the
12258 * host before the respective events are notified. Please note that such a
12259 * request to get the events in the suspend state will have a definite power
12260 * implication.
12261 *
12262 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
12263 * that the roam events need to be notified in the suspend state too. By
12264 * default, these roam events are notified in the resume state. With this flag,
12265 * the roam events are notified in both resume and suspend states.
12266 * This attribute is used in the request from the userspace to the host driver.
12267 *
12268 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
12269 * Represents the different roam event types, signified by the enum
12270 * qca_wlan_vendor_roam_event_type.
12271 * Each bit of this attribute represents the different roam even types reported
12272 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12273 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12274 *
12275 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
12276 * mode only. This represents the roam trigger reason for the last roaming
12277 * attempted by the firmware. Each bit of this attribute represents the
12278 * different roam trigger reason code which are defined in enum
12279 * qca_vendor_roam_triggers.
12280 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12281 *
12282 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
12283 * STA mode only. This represents the roam invoke fail reason for the last
12284 * failed roam invoke. Different roam invoke failure reason codes
12285 * are specified in enum qca_vendor_roam_invoke_fail_reasons.
12286 *
12287 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
12288 * for which the roam is attempted. Each entry is a nested attribute defined
12289 * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
12290 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12291 *
12292 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
12293 * the scan state on which the roam events need to be notified. The values for
12294 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
12295 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12296 *
12297 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
12298 * u32 values. List of frequencies in MHz considered for a roam scan.
12299 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12300 */
12301enum qca_wlan_vendor_attr_roam_events {
12302 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
12303 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
12304 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
12305 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
12306 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
12307 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
12308 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
12309 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
12310 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
12311
12312 /* keep last */
12313 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
12314 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
12315 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST -1,
12316};
12317
12318/**
12319 * enum qca_wlan_ratemask_params_type - Rate mask config type
12320 *
12321 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
12322 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
12323 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
12324 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
12325 */
12326enum qca_wlan_ratemask_params_type {
12327 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
12328 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
12329 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
12330 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
12331};
12332
12333/**
12334 * enum qca_wlan_vendor_attr_ratemask_params - Used by the
12335 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
12336 * This is used to set the rate mask value to be used in rate selection.
12337 *
12338 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
12339 * Array of nested containing attributes
12340 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
12341 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
12342 *
12343 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
12344 * the different PHY types to which the rate mask config is to be applied.
12345 * The values for this attribute are referred from enum
12346 * qca_wlan_vendor_ratemask_params_type.
12347 *
12348 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
12349 * A bit value of 1 represents rate is enabled and a value of 0
12350 * represents rate is disabled.
12351 * For HE targets, 12 bits correspond to one NSS setting.
12352 * b0-13 => NSS1, MCS 0-13
12353 * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
12354 * For VHT targets, 10 bits correspond to one NSS setting.
12355 * b0-9 => NSS1, MCS 0-9
12356 * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
12357 * For HT targets, 8 bits correspond to one NSS setting.
12358 * b0-7 => NSS1, MCS 0-7
12359 * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
12360 * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
12361 */
12362enum qca_wlan_vendor_attr_ratemask_params {
12363 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
12364 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
12365 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
12366 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
12367
12368 /* keep last */
12369 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
12370 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
12371 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
12372};
12373
Sunil8cd6f4d2022-06-28 18:40:46 +000012374/**
12375 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
12376 * traffic.
12377 *
12378 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
12379 * Send audio traffic through the host processor.
12380 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
12381 * Send audio traffic using the low power DSP to/from the encoder.
12382 */
12383enum qca_wlan_audio_data_path {
12384 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
12385 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
12386};
12387
12388/**
12389 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
12390 * for) or drop existing PASN security association for the listed the
12391 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
12392 * to userspace.
12393 *
12394 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
12395 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
12396 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
12397 * the driver to userspace to inform that the existing PASN keys of the
12398 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
12399 * not valid anymore.
12400 */
12401enum qca_wlan_vendor_pasn_action {
12402 QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
12403 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
12404};
12405
12406/**
12407 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
12408 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
12409 *
12410 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
12411 * event from the driver to userspace and represents the local MAC address
12412 * to be used for PASN handshake. When this attribute is present, userspace
12413 * shall use the source address specified in this attribute by the driver
12414 * for PASN handshake with peer device.
12415 * This attribute is required in a command response from userspace to the
12416 * driver and represents the MAC address that was used in PASN handshake
12417 * with the peer device.
12418 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
12419 * peer device to which PASN handshake is requested in an event from the
12420 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
12421 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
12422 * Indicates the MAC address of the peer device for which the keys are to
12423 * be invalidated in an event from the driver to userspace when
12424 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
12425 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
12426 * Indicates the MAC address of the peer device for which the status is
12427 * being sent in a status report from userspace to the driver.
12428 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
12429 * in the event from the driver to userspace. When set, userspace is
12430 * required to derive LTF key seed from KDK and set it to the driver.
12431 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
12432 * attribute is used in the command response from userspace to the driver.
12433 * If present, it indicates the successful PASN handshake with the peer. If
12434 * this flag is not present, it indicates that the PASN handshake with the
12435 * peer device failed.
12436 */
12437enum qca_wlan_vendor_attr_pasn_peer {
12438 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
12439 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
12440 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
12441 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
12442 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
12443
12444 /* keep last */
12445 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
12446 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
12447 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
12448};
12449
12450/**
12451 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
12452 * QCA_NL80211_VENDOR_SUBCMD_PASN command.
12453 *
12454 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
12455 * defined in enum qca_wlan_vendor_pasn_action and used only in an event
12456 * from the driver to userspace.
12457 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
12458 * details for each peer and used in both an event and a command response.
12459 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
12460 * defined in enum qca_wlan_vendor_attr_pasn_peer.
12461 */
12462enum qca_wlan_vendor_attr_pasn {
12463 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
12464 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
12465 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
12466
12467 /* keep last */
12468 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
12469 QCA_WLAN_VENDOR_ATTR_PASN_MAX =
12470 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
12471};
12472
12473/**
12474 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
12475 * the ranging security context derived from PASN for each peer. Used in
12476 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
12477 *
12478 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
12479 * context for the peer.
12480 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
12481 * context for the peer.
12482 */
12483enum qca_wlan_vendor_secure_ranging_ctx_action {
12484 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
12485 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
12486};
12487
12488/**
12489 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
12490 * used for deriving PASN keys to the driver. Used in
12491 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
12492 * @QCA_WLAN_VENDOR_SHA_256: SHA-256
12493 * @QCA_WLAN_VENDOR_SHA_384: SHA-384
12494 */
12495enum qca_wlan_vendor_sha_type {
12496 QCA_WLAN_VENDOR_SHA_256,
12497 QCA_WLAN_VENDOR_SHA_384,
12498};
12499
12500/**
12501 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
12502 * to set security context for the PASN peer from userspace to the driver.
12503 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
12504 *
12505 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
12506 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
12507 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
12508 * was used during the PASN handshake.
12509 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
12510 * the peer device for which secure ranging context is being configured.
12511 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
12512 * hash algorithm to be used, possible values are defined in enum
12513 * qca_wlan_vendor_sha_type.
12514 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
12515 * the temporal key generated from the PASN handshake. The length of this
12516 * attribute is dependent on the value of
12517 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
12518 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
12519 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
12520 * (e.g., 0x000FAC04).
12521 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
12522 * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
12523 * The length of this attribute is dependent on the value of
12524 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
12525
12526 */
12527enum qca_wlan_vendor_attr_secure_ranging_ctx {
12528 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
12529 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
12530 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
12531 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
12532 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
12533 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
12534 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
12535 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
12536
12537 /* keep last */
12538 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
12539 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
12540 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
12541};
12542
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080012543#endif /* QCA_VENDOR_H */