blob: 0f7d3af352fdd23d26d2e7f776dc3a05096e850b [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 *
Hai Shaloma20dcd72022-02-04 13:43:00 -0800714 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to
715 * configure the concurrent session policies when multiple STA interfaces
716 * are (getting) active. The attributes used by this command are defined
717 * in enum qca_wlan_vendor_attr_concurrent_sta_policy.
718 *
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.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800791 */
792enum qca_nl80211_vendor_subcmds {
793 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
794 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700795 /* subcmds 2..8 not yet allocated */
796 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800797 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700798 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700799 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800800 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800801 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
802 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
803 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
804 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
805 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
806 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
807 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
808 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
809 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
810 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
811 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
812 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
813 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
814 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
815 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
816 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
817 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
818 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
819 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
820 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
821 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
822 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
823 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
824 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
825 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
826 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
827 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
828 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
829 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
830 /* 43..49 - reserved for QCA */
831 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
832 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
833 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700834 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800835 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
836 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800837 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
838 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
839 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
840 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
841 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800842 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
843 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
844 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
845 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
846 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
847 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
848 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
849 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
850 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
851 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
852 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
853 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
854 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700855 /* Wi-Fi configuration subcommands */
856 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
857 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700858 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
859 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
860 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
861 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
862 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
863 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
864 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
865 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
866 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
867 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
868 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -0700869 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700870 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
871 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
872 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
873 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
874 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
875 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
876 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
877 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
878 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -0700879 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700880 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
881 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
882 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
883 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800884 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
885 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
886 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
887 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
888 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800889 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -0700890 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
891 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700892 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -0700893 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
894 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700895 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700896 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
897 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
898 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700899 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
900 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700901 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
902 /* FTM/indoor location subcommands */
903 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
904 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
905 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
906 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
907 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
908 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
909 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
910 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
911 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700912 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
913 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800914 /* DMG low level RF sector operations */
915 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
916 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
917 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
918 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
919 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800920 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800921 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800922 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -0800923 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
924 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
925 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
926 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800927 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
928 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700929 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
930 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
931 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
932 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
933 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700934 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
935 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
936 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
937 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
938 /* Flush peer pending data */
939 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
940 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
941 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
942 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
943 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
944 /* Thermal shutdown commands to protect wifi chip */
945 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
946 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
947 /* Wi-Fi test configuration subcommand */
948 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
949 /* Frame filter operations for other BSSs/unassociated STAs */
950 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700951 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800952 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
953 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -0800954 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
955 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
956 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -0700957 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
958 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
959 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -0700960 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
961 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -0700962 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
963 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
964 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
965 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800966 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -0700967 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
968 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
969 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -0700970 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
971 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
972 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
973 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
974 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
975 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
976 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Hai Shaloma20dcd72022-02-04 13:43:00 -0800977 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197,
978 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
979 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
980 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
981 /* 201 - reserved for QCA */
982 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
983 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
984 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
985 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800986};
987
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700988enum qca_wlan_vendor_attr {
989 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
990 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
991 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700992 /* Used only when driver sends vendor events to the userspace under the
993 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
994 * commands to the driver.
995 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700996 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -0700997 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
998 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -0700999 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1000 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001001 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -07001002 * by enum qca_roaming_policy.
1003 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001004 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1005 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001006 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1007 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001008 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001009 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1010 /* Unsigned 32-bit value. */
1011 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1012 /* Unsigned 32-bit value */
1013 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1014 /* Unsigned 32-bit value */
1015 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07001016 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1017 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1018 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1019 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1020 */
Ravi Joshie6ccb162015-07-16 17:45:41 -07001021 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001022 /* Dummy (NOP) attribute for 64 bit padding */
1023 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1024 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
1025 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1026 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1027 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1028 */
1029 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1030 /* Indoor location capabilities, returned by
1031 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1032 * see enum qca_wlan_vendor_attr_loc_capa.
1033 */
1034 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1035 /* Array of nested attributes containing information about each peer
1036 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1037 * for supported attributes for each peer.
1038 */
1039 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1040 /* Array of nested attributes containing measurement results for
1041 * one or more peers, reported by the
1042 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1043 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1044 * attributes.
1045 */
1046 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1047 /* Flag attribute for enabling or disabling responder functionality. */
1048 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1049 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1050 * command to specify the LCI report that will be sent by
1051 * the responder during a measurement exchange. The format is
1052 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1053 */
1054 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1055 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1056 * command to specify the location civic report that will
1057 * be sent by the responder during a measurement exchange.
1058 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1059 */
1060 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1061 /* Session/measurement completion status code,
1062 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1063 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1064 * see enum qca_vendor_attr_loc_session_status.
1065 */
1066 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1067 /* Initial dialog token used by responder (0 if not specified),
1068 * unsigned 8 bit value.
1069 */
1070 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1071 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1072 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1073 * AOA measurements are needed as part of an FTM session.
1074 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1075 * enum qca_wlan_vendor_attr_aoa_type.
1076 */
1077 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1078 /* A bit mask (unsigned 32 bit value) of antenna arrays used
1079 * by indoor location measurements. Refers to the antenna
1080 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1081 */
1082 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1083 /* AOA measurement data. Its contents depends on the AOA measurement
1084 * type and antenna array mask:
1085 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1086 * phase of the strongest CIR path for each antenna in the measured
1087 * array(s).
1088 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1089 * values, phase and amplitude of the strongest CIR path for each
1090 * antenna in the measured array(s).
1091 */
1092 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001093 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1094 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -07001095 * the corresponding antenna RSSI value
1096 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001097 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1098 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001099 * to report the specific antenna RSSI value (unsigned 32 bit value)
1100 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001101 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001102 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1103 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1104 /* TSF timer value, unsigned 64 bit value.
1105 * May be returned by various commands.
1106 */
1107 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1108 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1109 * 0..127 for sector indices or 65535 as special value used to
1110 * unlock sector selection in
1111 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1112 */
1113 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1114 /* DMG RF sector type, unsigned 8 bit value. One of the values
1115 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1116 */
1117 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1118 /* Bitmask of DMG RF modules for which information is requested. Each
1119 * bit corresponds to an RF module with the same index as the bit
1120 * number. Unsigned 32 bit number but only low 8 bits can be set since
1121 * all DMG chips currently have up to 8 RF modules.
1122 */
1123 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1124 /* Array of nested attributes where each entry is DMG RF sector
1125 * configuration for a single RF module.
1126 * Attributes for each entry are taken from enum
1127 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1128 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1129 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1130 */
1131 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1132 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1133 * to report frame aggregation statistics to userspace.
1134 */
1135 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1136 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001137 /* Unsigned 8-bit value representing MBO transition reason code as
1138 * provided by the AP used by subcommand
1139 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1140 * specified by the userspace in the request to the driver.
1141 */
1142 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1143 /* Array of nested attributes, BSSID and status code, used by subcommand
1144 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1145 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1146 * The userspace space specifies the list/array of candidate BSSIDs in
1147 * the order of preference in the request. The driver specifies the
1148 * status code, for each BSSID in the list, in the response. The
1149 * acceptable candidates are listed in the order preferred by the
1150 * driver.
1151 */
1152 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001153 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1154 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1155 */
1156 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1157 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1158 * to define the number of antennas to use for BRP.
1159 * different purpose in each ANT_LIMIT_MODE:
1160 * DISABLE - ignored
1161 * EFFECTIVE - upper limit to number of antennas to be used
1162 * FORCE - exact number of antennas to be used
1163 * unsigned 8 bit value
1164 */
1165 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1166 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001167 * to report the corresponding antenna index to the chain RSSI value
1168 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001169 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001170 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1171 * the specific antenna EVM value (unsigned 32 bit value). With a
1172 * determinate group of antennas, the driver specifies the EVM value
1173 * for each antenna ID, and application extract them in user space.
1174 */
1175 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001176 /*
1177 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1178 * wlan firmware current state. FW state is an unsigned 8 bit value,
1179 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1180 */
1181 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001182
Hai Shalom899fcc72020-10-19 14:38:18 -07001183 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1184 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1185 * of single values from enum qca_set_band are valid. This attribute
1186 * uses bitmask combinations to define the respective allowed band
1187 * combinations and this attributes takes precedence over
1188 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1189 */
1190 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1191
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001192 /* keep last */
1193 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1194 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1195};
1196
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001197enum qca_roaming_policy {
1198 QCA_ROAMING_NOT_ALLOWED,
1199 QCA_ROAMING_ALLOWED_WITHIN_ESS,
1200};
1201
Hai Shalom021b0b52019-04-10 11:17:58 -07001202/**
1203 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1204 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1205 *
1206 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1207 * reasons.
1208 *
1209 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1210 * the configured threshold.
1211 *
1212 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1213 * beacon misses from the then connected AP.
1214 *
1215 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1216 * by the connected AP.
1217 *
1218 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1219 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1220 *
1221 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1222 * or environment being very noisy or congested.
1223 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08001224 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
Hai Shalom021b0b52019-04-10 11:17:58 -07001225 * from the user (user space).
1226 *
1227 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1228 * the connected AP.
1229 *
1230 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1231 * breaching out the configured threshold.
Hai Shaloma20dcd72022-02-04 13:43:00 -08001232 *
1233 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1234 * transition request.
1235 *
1236 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1237 * data activity with the AP and the current RSSI falls below a certain
1238 * threshold.
1239 *
1240 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1241 * Disassociation frames received from the connected AP.
1242 *
1243 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1244 * that happens when there is no candidate AP found during the poor RSSI scan
1245 * trigger.
1246 *
1247 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1248 * obtained from an external scan (not aimed at roaming).
1249 *
1250 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1251 * established when the station is connected in the 2.4 GHz band.
Hai Shalom021b0b52019-04-10 11:17:58 -07001252 */
1253enum qca_roam_reason {
1254 QCA_ROAM_REASON_UNKNOWN,
1255 QCA_ROAM_REASON_PER,
1256 QCA_ROAM_REASON_BEACON_MISS,
1257 QCA_ROAM_REASON_POOR_RSSI,
1258 QCA_ROAM_REASON_BETTER_RSSI,
1259 QCA_ROAM_REASON_CONGESTION,
1260 QCA_ROAM_REASON_USER_TRIGGER,
1261 QCA_ROAM_REASON_BTM,
1262 QCA_ROAM_REASON_BSS_LOAD,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001263 QCA_ROAM_REASON_WTC,
1264 QCA_ROAM_REASON_IDLE,
1265 QCA_ROAM_REASON_DISCONNECTION,
1266 QCA_ROAM_REASON_PERIODIC_TIMER,
1267 QCA_ROAM_REASON_BACKGROUND_SCAN,
1268 QCA_ROAM_REASON_BT_ACTIVITY,
Hai Shalom021b0b52019-04-10 11:17:58 -07001269};
1270
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001271enum qca_wlan_vendor_attr_roam_auth {
1272 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
1273 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1274 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1275 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1276 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1277 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1278 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1279 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001280 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001281 /* Indicates the status of re-association requested by user space for
1282 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1283 * Type u16.
1284 * Represents the status code from AP. Use
1285 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1286 * real status code for failures.
1287 */
1288 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1289 /* This attribute indicates that the old association was maintained when
1290 * a re-association is requested by user space and that re-association
1291 * attempt fails (i.e., cannot connect to the requested BSS, but can
1292 * remain associated with the BSS with which the association was in
1293 * place when being requested to roam). Used along with
1294 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1295 * re-association status. Type flag.
1296 * This attribute is applicable only for re-association failure cases.
1297 */
1298 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1299 /* This attribute specifies the PMK if one was newly generated during
1300 * FILS roaming. This is added to the PMKSA cache and is used in
1301 * subsequent connections with PMKSA caching.
1302 */
1303 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1304 /* This attribute specifies the PMKID used/generated for the current
1305 * FILS roam. This is used in subsequent connections with PMKSA caching.
1306 */
1307 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1308 /* A 16-bit unsigned value specifying the next sequence number to use
1309 * in ERP message in the currently associated realm. This is used in
1310 * doing subsequent ERP based connections in the same realm.
1311 */
1312 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001313 /* A 16-bit unsigned value representing the reasons for the roaming.
1314 * Defined by enum qca_roam_reason.
1315 */
1316 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
1317
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001318 /* keep last */
1319 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1320 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1321 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1322};
1323
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001324enum qca_wlan_vendor_attr_p2p_listen_offload {
1325 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1326 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1327 * of the social channels.
1328 */
1329 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1330 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1331 */
1332 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1333 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1334 */
1335 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1336 /* A 32-bit unsigned value; number of interval times the firmware needs
1337 * to run the offloaded P2P listen operation before it stops.
1338 */
1339 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1340 /* An array of arbitrary binary data with one or more 8-byte values.
1341 * The device types include both primary and secondary device types.
1342 */
1343 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1344 /* An array of unsigned 8-bit characters; vendor information elements.
1345 */
1346 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1347 /* A 32-bit unsigned value; a control flag to indicate whether listen
1348 * results need to be flushed to wpa_supplicant.
1349 */
1350 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1351 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1352 * event.
1353 */
1354 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1355 /* keep last */
1356 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1357 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1358 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1359};
1360
Hai Shalomc3565922019-10-28 11:58:20 -07001361/**
1362 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1363 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1364 *
1365 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1366 * Used with event to notify the primary channel number selected in ACS
1367 * operation.
1368 * Note: If both the driver and user-space application supports the 6 GHz band,
1369 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1370 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1371 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1372 * is still used if either of the driver or user space application doesn't
1373 * support the 6 GHz band.
1374 *
1375 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1376 * Used with event to notify the secondary channel number selected in ACS
1377 * operation.
1378 * Note: If both the driver and user-space application supports the 6 GHz band,
1379 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1380 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1381 * To maintain backward compatibility,
1382 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1383 * the driver or user space application doesn't support 6 GHz band.
1384 *
1385 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1386 * (a) Used with command to configure hw_mode from
1387 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1388 * (b) Also used with event to notify the hw_mode of selected primary channel
1389 * in ACS operation.
1390 *
1391 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1392 * Used with command to configure ACS operation for HT mode.
1393 * Disable (flag attribute not present) - HT disabled and
1394 * Enable (flag attribute present) - HT enabled.
1395 *
1396 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1397 * Used with command to configure ACS operation for HT40 mode.
1398 * Disable (flag attribute not present) - HT40 disabled and
1399 * Enable (flag attribute present) - HT40 enabled.
1400 *
1401 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1402 * Used with command to configure ACS operation for VHT mode.
1403 * Disable (flag attribute not present) - VHT disabled and
1404 * Enable (flag attribute present) - VHT enabled.
1405 *
1406 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1407 * mandatory with event.
1408 * If specified in command path, ACS operation is configured with the given
1409 * channel width (in MHz).
1410 * In event path, specifies the channel width of the primary channel selected.
1411 *
1412 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1413 * Used with command to configure channel list using an array of
1414 * channel numbers (u8).
1415 * Note: If both the driver and user-space application supports the 6 GHz band,
1416 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1417 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1418 *
1419 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1420 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001421 * ACS operation. The value is the index of the channel center frequency for
1422 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1423 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001424 * Note: If both the driver and user-space application supports the 6 GHz band,
1425 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1426 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1427 * To maintain backward compatibility,
1428 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1429 * the driver or user space application doesn't support the 6 GHz band.
1430 *
1431 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1432 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001433 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1434 * The value is the index of the channel center frequency for 160 MHz channels
1435 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1436 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001437 * Note: If both the driver and user-space application supports the 6 GHz band,
1438 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1439 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1440 * To maintain backward compatibility,
1441 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1442 * the driver or user space application doesn't support the 6 GHz band.
1443 *
1444 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1445 * Used with command to configure the channel list using an array of channel
1446 * center frequencies in MHz (u32).
1447 * Note: If both the driver and user-space application supports the 6 GHz band,
1448 * the driver first parses the frequency list and if it fails to get a frequency
1449 * list, parses the channel list specified using
1450 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1451 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1452 *
1453 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1454 * Used with event to notify the primary channel center frequency (MHz) selected
1455 * in ACS operation.
1456 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1457 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1458 *
1459 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1460 * Used with event to notify the secondary channel center frequency (MHz)
1461 * selected in ACS operation.
1462 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1463 * includes this attribute along with
1464 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1465 *
1466 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1467 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1468 * selected in ACS operation.
1469 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1470 * includes this attribute along with
1471 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1472 *
1473 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1474 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1475 * selected in ACS operation.
1476 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1477 * includes this attribute along with
1478 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07001479 *
1480 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1481 * Used with command to notify the driver of EDMG request for ACS
1482 * operation.
1483 *
1484 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1485 * Used with event to notify the EDMG channel number selected in ACS
1486 * operation.
1487 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shaloma20dcd72022-02-04 13:43:00 -08001488 *
1489 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
1490 * Used with event to notify the puncture pattern selected in ACS operation.
1491 * Encoding for this attribute will follow the convention used in the Disabled
1492 * Subchannel Bitmap field of the EHT Operation IE.
1493 *
1494 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
1495 * Used with command to configure ACS operation for EHT mode.
1496 * Disable (flag attribute not present) - EHT disabled and
1497 * Enable (flag attribute present) - EHT enabled.
Hai Shalomc3565922019-10-28 11:58:20 -07001498 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001499enum qca_wlan_vendor_attr_acs_offload {
1500 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07001501 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1502 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1503 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1504 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1505 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1506 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1507 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1508 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1509 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1510 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1511 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1512 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1513 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1514 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1515 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07001516 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1517 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001518 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
1519 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
Hai Shalomc3565922019-10-28 11:58:20 -07001520
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001521 /* keep last */
1522 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1523 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1524 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1525};
1526
Hai Shalomc3565922019-10-28 11:58:20 -07001527/**
1528 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1529 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1530 *
1531 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1532 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1533 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1534 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1535 * @QCA_ACS_MODE_IEEE80211ANY: all modes
1536 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1537 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001538enum qca_wlan_vendor_acs_hw_mode {
1539 QCA_ACS_MODE_IEEE80211B,
1540 QCA_ACS_MODE_IEEE80211G,
1541 QCA_ACS_MODE_IEEE80211A,
1542 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001543 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07001544 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001545};
1546
1547/**
1548 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1549 *
1550 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1551 * management offload, a mechanism where the station's firmware
1552 * does the exchange with the AP to establish the temporal keys
1553 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001554 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1555 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001556 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07001557 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001558 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1559 * Listen offload; a mechanism where the station's firmware takes care of
1560 * responding to incoming Probe Request frames received from other P2P
1561 * Devices whilst in Listen state, rather than having the user space
1562 * wpa_supplicant do it. Information from received P2P requests are
1563 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001564 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1565 * specific features.
1566 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1567 * features.
1568 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1569 * specific features only. If a Device sets this bit but not the
1570 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1571 * this Device may not support all OCE AP functionalities but can support
1572 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001573 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1574 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07001575 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07001576 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1577 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07001578 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1579 * and applying thermal configuration through
1580 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1581 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1582 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08001583 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1584 * With Adaptive 11r feature, access points advertise the vendor
1585 * specific IEs and MDE but do not include FT AKM in the RSNE.
1586 * The Adaptive 11r supported stations are expected to identify
1587 * such vendor specific IEs and connect to the AP in FT mode though
1588 * the profile is configured in non-FT mode.
1589 * The driver-based SME cases also need to have this support for
1590 * Adaptive 11r to handle the connection and roaming scenarios.
1591 * This flag indicates the support for the same to the user space.
1592 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1593 * concurrent network sessions on different Wi-Fi bands. This feature
1594 * capability is attributed to the hardware's capability to support
1595 * the same (e.g., DBS).
1596 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1597 * responses for the respective TWT operations are asynchronous (separate
1598 * event message) from the driver. If not specified, the responses are
1599 * synchronous (in vendor command reply) to the request. Each TWT
1600 * operation is specifically mentioned (against its respective
1601 * documentation) to support either of these or both modes.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001602 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1603 */
1604enum qca_wlan_vendor_features {
1605 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001606 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001607 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001608 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001609 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1610 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
1611 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001612 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Hai Shalom021b0b52019-04-10 11:17:58 -07001613 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07001614 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
1615 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07001616 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08001617 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
1618 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
1619 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001620 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1621};
1622
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001623/**
1624 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1625 *
1626 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1627 * the offloaded data.
1628 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1629 * data.
1630 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1631 * indication.
1632 */
1633enum qca_wlan_vendor_attr_data_offload_ind {
1634 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1635 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1636 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1637 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1638
1639 /* keep last */
1640 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1641 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1642 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1643};
Ravi Joshie6ccb162015-07-16 17:45:41 -07001644
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001645/**
1646 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1647 * OCB config
1648 *
1649 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1650 * configuration
1651 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1652 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1653 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1654 * scheduled
1655 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1656 * information
1657 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1658 * active state configuration
1659 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1660 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1661 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1662 * use in the case that a packet is sent without a TX control header
1663 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1664 * last TA received that the local time set by TA is synchronous to other
1665 * communicating OCB STAs.
1666 */
1667enum qca_wlan_vendor_attr_ocb_set_config {
1668 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1669 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1670 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1671 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1672 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1673 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1674 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1675 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1676 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1677 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1678 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1679 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1680 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1681};
1682
1683/**
1684 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1685 * UTC time
1686 *
1687 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1688 * 10 bytes
1689 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1690 * 5 bytes
1691 */
1692enum qca_wlan_vendor_attr_ocb_set_utc_time {
1693 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1694 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1695 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1696 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1697 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1698 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1699};
1700
1701/**
1702 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1703 * to start sending timing advert frames
1704 *
1705 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1706 * on which to send the frames
1707 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1708 * the frame is sent in 5 seconds
1709 */
1710enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1711 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1712 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1713 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1714 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1715 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1716 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1717};
1718
1719/**
1720 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1721 * to stop timing advert
1722 *
1723 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1724 * frequency on which to stop the timing advert
1725 */
1726enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1727 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1728 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1729 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1730 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1731 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1732};
1733
1734/**
1735 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1736 * get TSF timer value
1737 *
1738 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1739 * timer
1740 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1741 */
1742enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1743 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1744 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1745 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1746 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1747 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1748 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1749};
1750
Ravi Joshie6ccb162015-07-16 17:45:41 -07001751enum qca_vendor_attr_get_preferred_freq_list {
1752 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1753 /* A 32-unsigned value; the interface type/mode for which the preferred
1754 * frequency list is requested (see enum qca_iface_type for possible
1755 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1756 * kernel and in the kernel response back to user-space.
1757 */
1758 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1759 /* An array of 32-unsigned values; values are frequency (MHz); sent
1760 * from kernel space to user space.
1761 */
1762 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001763 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1764 * attribute. Each element contains frequency (MHz), weight, and flag
1765 * bit mask indicating how the frequency should be used in P2P
1766 * negotiation; sent from kernel space to user space.
1767 */
1768 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001769 /* keep last */
1770 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1771 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1772 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1773};
1774
1775enum qca_vendor_attr_probable_oper_channel {
1776 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1777 /* 32-bit unsigned value; indicates the connection/iface type likely to
1778 * come on this channel (see enum qca_iface_type).
1779 */
1780 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1781 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1782 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1783 /* keep last */
1784 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1785 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1786 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1787};
1788
1789enum qca_iface_type {
1790 QCA_IFACE_TYPE_STA,
1791 QCA_IFACE_TYPE_AP,
1792 QCA_IFACE_TYPE_P2P_CLIENT,
1793 QCA_IFACE_TYPE_P2P_GO,
1794 QCA_IFACE_TYPE_IBSS,
1795 QCA_IFACE_TYPE_TDLS,
1796};
1797
1798enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07001799 QCA_SETBAND_AUTO = 0,
1800 QCA_SETBAND_5G = BIT(0),
1801 QCA_SETBAND_2G = BIT(1),
1802 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07001803};
1804
Dmitry Shmidt17022322016-04-06 13:28:42 -07001805/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001806 * enum qca_access_policy - Access control policy
1807 *
1808 * Access control policy is applied on the configured IE
1809 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1810 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1811 *
1812 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1813 * the specific configuration (IE) set, i.e., allow all the
1814 * connections which do not match the configuration.
1815 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1816 * the specific configuration (IE) set, i.e., deny all the
1817 * connections which do not match the configuration.
1818 */
1819enum qca_access_policy {
1820 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1821 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1822};
1823
1824/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08001825 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
1826 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
1827 * Specify the TSF command. Possible values are defined in
1828 * &enum qca_tsf_cmd.
1829 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
1830 * This attribute contains TSF timer value. This attribute is only available
1831 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
1832 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
1833 * This attribute contains SOC timer value at TSF capture. This attribute is
1834 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
1835 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
1836 * This attribute is used to provide TSF sync interval and only applicable when
1837 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
1838 * driver will use the default value. Time unit is in milliseconds.
Dmitry Shmidt17022322016-04-06 13:28:42 -07001839 */
1840enum qca_vendor_attr_tsf_cmd {
1841 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1842 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1843 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1844 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001845 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001846 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1847 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1848 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1849};
1850
1851/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08001852 * enum qca_tsf_cmd: TSF driver commands
Dmitry Shmidt17022322016-04-06 13:28:42 -07001853 * @QCA_TSF_CAPTURE: Initiate TSF Capture
1854 * @QCA_TSF_GET: Get TSF capture value
1855 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
Hai Shaloma20dcd72022-02-04 13:43:00 -08001856 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
1857 * will automatically send TSF report to the host. To query
1858 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
1859 * initiated first.
1860 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
1861 * will not automatically send TSF report to the host. If
1862 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
1863 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
1864 * operation needs to be initiated.
1865 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
1866 * fetches TSF and host time mapping from the firmware with interval configured
1867 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
1868 * interval value is not provided the driver will use the default value. The
1869 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
1870 * command.
1871 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
Dmitry Shmidt17022322016-04-06 13:28:42 -07001872 */
1873enum qca_tsf_cmd {
1874 QCA_TSF_CAPTURE,
1875 QCA_TSF_GET,
1876 QCA_TSF_SYNC_GET,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001877 QCA_TSF_AUTO_REPORT_ENABLE,
1878 QCA_TSF_AUTO_REPORT_DISABLE,
1879 QCA_TSF_SYNC_START,
1880 QCA_TSF_SYNC_STOP,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001881};
1882
1883/**
1884 * enum qca_vendor_attr_wisa_cmd
1885 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1886 * WISA setup vendor commands
1887 */
1888enum qca_vendor_attr_wisa_cmd {
1889 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
1890 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
1891 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
1892 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
1893 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
1894};
1895
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001896/* IEEE 802.11 Vendor Specific elements */
1897
1898/**
1899 * enum qca_vendor_element_id - QCA Vendor Specific element types
1900 *
1901 * These values are used to identify QCA Vendor Specific elements. The
1902 * payload of the element starts with the three octet OUI (OUI_QCA) and
1903 * is followed by a single octet type which is defined by this enum.
1904 *
1905 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1906 * This element can be used to specify preference order for supported
1907 * channels. The channels in this list are in preference order (the first
1908 * one has the highest preference) and are described as a pair of
1909 * (global) Operating Class and Channel Number (each one octet) fields.
1910 *
1911 * This extends the standard P2P functionality by providing option to have
1912 * more than one preferred operating channel. When this element is present,
1913 * it replaces the preference indicated in the Operating Channel attribute.
1914 * For supporting other implementations, the Operating Channel attribute is
1915 * expected to be used with the highest preference channel. Similarly, all
1916 * the channels included in this Preferred channel list element are
1917 * expected to be included in the Channel List attribute.
1918 *
1919 * This vendor element may be included in GO Negotiation Request, P2P
1920 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001921 *
1922 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1923 * This element can be used for pre-standard publication testing of HE
1924 * before P802.11ax draft assigns the element ID. The payload of this
1925 * vendor specific element is defined by the latest P802.11ax draft.
1926 * Please note that the draft is still work in progress and this element
1927 * payload is subject to change.
1928 *
1929 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1930 * This element can be used for pre-standard publication testing of HE
1931 * before P802.11ax draft assigns the element ID. The payload of this
1932 * vendor specific element is defined by the latest P802.11ax draft.
1933 * Please note that the draft is still work in progress and this element
1934 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08001935 *
1936 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1937 * element).
1938 * This element can be used for pre-standard publication testing of HE
1939 * before P802.11ax draft assigns the element ID extension. The payload of
1940 * this vendor specific element is defined by the latest P802.11ax draft
1941 * (not including the Element ID Extension field). Please note that the
1942 * draft is still work in progress and this element payload is subject to
1943 * change.
1944 *
1945 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1946 * This element can be used for pre-standard publication testing of HE
1947 * before P802.11ax draft assigns the element ID extension. The payload of
1948 * this vendor specific element is defined by the latest P802.11ax draft
1949 * (not including the Element ID Extension field). Please note that the
1950 * draft is still work in progress and this element payload is subject to
1951 * change.
1952 *
1953 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1954 * This element can be used for pre-standard publication testing of HE
1955 * before P802.11ax draft assigns the element ID extension. The payload of
1956 * this vendor specific element is defined by the latest P802.11ax draft
1957 * (not including the Element ID Extension field). Please note that the
1958 * draft is still work in progress and this element payload is subject to
1959 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07001960 *
1961 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001962 */
1963enum qca_vendor_element_id {
1964 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001965 QCA_VENDOR_ELEM_HE_CAPAB = 1,
1966 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08001967 QCA_VENDOR_ELEM_RAPS = 3,
1968 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
1969 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07001970 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001971};
1972
1973/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08001974 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
1975 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
1976 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
1977 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
1978 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
1979 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
1980 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
1981 */
1982enum qca_wlan_vendor_scan_priority {
1983 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
1984 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
1985 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
1986 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
1987 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
1988};
1989
1990/**
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001991 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1992 *
1993 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1994 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1995 * with frequencies to be scanned (in MHz)
1996 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1997 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1998 * rates to be included
1999 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07002000 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002001 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2002 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07002003 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002004 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07002005 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002006 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07002007 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002008 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002009 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08002010 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2011 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07002012 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2013 * microseconds. This is a common value which applies across all
2014 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002015 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2016 * other scan requests. It is a u32 attribute and takes values from enum
2017 * qca_wlan_vendor_scan_priority. This is an optional attribute.
2018 * If this attribute is not configured, the driver shall use
2019 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002020 */
2021enum qca_wlan_vendor_attr_scan {
2022 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002023 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2024 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2025 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2026 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2027 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2028 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2029 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2030 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2031 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2032 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2033 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07002034 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002035 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002036 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2037 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2038 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2039};
2040
2041/**
2042 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07002043 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002044 *
2045 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002046 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002047 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2048 */
2049enum scan_status {
2050 VENDOR_SCAN_STATUS_NEW_RESULTS,
2051 VENDOR_SCAN_STATUS_ABORTED,
2052 VENDOR_SCAN_STATUS_MAX,
2053};
2054
2055/**
2056 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2057 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2058 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2059 */
2060enum qca_vendor_attr_ota_test {
2061 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2062 /* 8-bit unsigned value to indicate if OTA test is enabled */
2063 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2064 /* keep last */
2065 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2066 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2067 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2068};
2069
2070/**
2071 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2072 *
2073 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2074 */
2075enum qca_vendor_attr_txpower_scale {
2076 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2077 /* 8-bit unsigned value to indicate the scaling of tx power */
2078 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2079 /* keep last */
2080 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2081 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2082 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2083};
2084
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002085/**
2086 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2087 *
2088 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2089 */
2090enum qca_vendor_attr_txpower_decr_db {
2091 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2092 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002093 * a virtual interface.
2094 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002095 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2096 /* keep last */
2097 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2098 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2099 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2100};
2101
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002102/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002103 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2104 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002105 */
2106enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002107 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002108 /* Unsigned 32-bit value to set the DTIM period.
2109 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2110 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2111 * DTIM beacons.
2112 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002113 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002114 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2115 * used to calculate statistics like average the TSF offset or average
2116 * number of frame leaked.
2117 * For instance, upon Beacon frame reception:
2118 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
2119 * For instance, when evaluating leaky APs:
2120 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
2121 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002122 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002123 /* Unsigned 32-bit value to configure guard time, i.e., when
2124 * implementing IEEE power management based on frame control PM bit, how
2125 * long the driver waits before shutting down the radio and after
2126 * receiving an ACK frame for a Data frame with PM bit set.
2127 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002128 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002129 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002130 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002131 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002132 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002133 /* Unsigned 32-bit value to configure the number of continuous
2134 * Beacon Miss which shall be used by the firmware to penalize
2135 * the RSSI.
2136 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002137 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002138 /* Unsigned 8-bit value to configure the channel avoidance indication
2139 * behavior. Firmware to send only one indication and ignore duplicate
2140 * indications when set to avoid multiple Apps wakeups.
2141 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002142 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002143 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002144 * aggregation.
2145 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002146 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002147 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002148 * aggregation.
2149 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002150 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002151 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002152 * retry threshold (0 disable, 31 max).
2153 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002154 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002155 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002156 * retry threshold (0 disable, 31 max).
2157 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002158 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002159 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002160 * retry threshold (0 disable, 31 max).
2161 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002162 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002163 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002164 * retry threshold (0 disable, 31 max).
2165 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002166 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002167 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002168 * 2G/5G band (0~63, units in us)
2169 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002170 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002171 /* Unsigned 32-bit value to configure the number of unicast TX fail
2172 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07002173 * reached.
2174 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002175 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002176 /* Attribute used to set scan default IEs to the driver.
2177 *
2178 * These IEs can be used by scan operations that will be initiated by
2179 * the driver/firmware.
2180 *
2181 * For further scan requests coming to the driver, these IEs should be
2182 * merged with the IEs received along with scan request coming to the
2183 * driver. If a particular IE is present in the scan default IEs but not
2184 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07002185 * sent in the Probe Request frames for that scan request.
2186 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002187 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002188 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002189 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002190 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002191 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002192 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002193 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002194 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002195 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2196 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002197 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002198 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002199 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2200 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002201 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002202 /* Unsigned 32-bit, defining the access policy.
2203 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002204 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2205 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002206 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002207 /* Sets the list of full set of IEs for which a specific access policy
2208 * has to be applied. Used along with
2209 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002210 * Zero length payload can be used to clear this access constraint.
2211 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002212 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002213 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
2214 * corresponding configurations are applied. If the interface index is
2215 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07002216 * wiphy.
2217 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002218 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002219 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002220 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002221 /* 8-bit unsigned value to configure the driver and below layers to
2222 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07002223 * 1-Ignore, 0-Don't ignore
2224 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002225 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002226 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07002227 * 1-Enable, 0-Disable
2228 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002229 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002230 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002231 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002232 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002233 * 1-Enable, 0-Disable
2234 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002235 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002236 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002237 * the unit is micro-second
2238 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002239 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2240 /* 32-bit unsigned value to set reorder timeout for AC_VO */
2241 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2242 /* 32-bit unsigned value to set reorder timeout for AC_VI */
2243 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2244 /* 32-bit unsigned value to set reorder timeout for AC_BE */
2245 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2246 /* 32-bit unsigned value to set reorder timeout for AC_BK */
2247 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2248 /* 6-byte MAC address to point out the specific peer */
2249 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
2250 /* 32-bit unsigned value to set window size for specific peer */
2251 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002252 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2253 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2254 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2255 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002256 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2257 * station device while in disconnect state. The attribute use the
2258 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2259 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2260 * 10 MHz channel width, the station will not connect to a BSS using 20
2261 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07002262 * clear this constraint.
2263 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002264 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2265 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07002266 * for 2G/5G band (units in us)
2267 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002268 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2269 /* 32-bit unsigned value to set probe period */
2270 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2271 /* 32-bit unsigned value to set stay period */
2272 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2273 /* 32-bit unsigned value to set snr diff */
2274 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2275 /* 32-bit unsigned value to set probe dwell time */
2276 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2277 /* 32-bit unsigned value to set mgmt snr weight */
2278 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2279 /* 32-bit unsigned value to set data snr weight */
2280 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2281 /* 32-bit unsigned value to set ack snr weight */
2282 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2283 /* 32-bit unsigned value to configure the listen interval.
2284 * This is in units of beacon intervals. This configuration alters
2285 * the negotiated listen interval with the AP during the connection.
2286 * It is highly recommended to configure a value less than or equal to
2287 * the one negotiated during the association. Configuring any greater
2288 * value can have adverse effects (frame loss, AP disassociating STA,
2289 * etc.).
2290 */
2291 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2292 /*
2293 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2294 * disable operations that would cause the AP/GO to leave its operating
2295 * channel.
2296 *
2297 * This will restrict the scans to the AP/GO operating channel and the
2298 * channels of the other band, if DBS is supported.A STA/CLI interface
2299 * brought up after this setting is enabled, will be restricted to
2300 * connecting to devices only on the AP/GO interface's operating channel
2301 * or on the other band in DBS case. P2P supported channel list is
2302 * modified, to only include AP interface's operating-channel and the
2303 * channels of the other band if DBS is supported.
2304 *
2305 * These restrictions are only applicable as long as the AP/GO interface
2306 * is alive. If the AP/GO interface is brought down then this
2307 * setting/restriction is forgotten.
2308 *
2309 * If this variable is set on an AP/GO interface while a multi-channel
2310 * concurrent session is active, it has no effect on the operation of
2311 * the current interfaces, other than restricting the scan to the AP/GO
2312 * operating channel and the other band channels if DBS is supported.
2313 * However, if the STA is brought down and restarted then the new STA
2314 * connection will either be formed on the AP/GO channel or on the
2315 * other band in a DBS case. This is because of the scan being
2316 * restricted on these channels as mentioned above.
2317 *
2318 * 1-Restrict / 0-Don't restrict offchannel operations.
2319 */
2320 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2321 /*
2322 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2323 * on an interface.
2324 * 1 - Enable, 0 - Disable.
2325 */
2326 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2327
2328 /*
2329 * 8 bit unsigned value to globally enable/disable scan
2330 * 1 - Enable, 0 - Disable.
2331 */
2332 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2333
2334 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07002335 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002336 */
2337 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2338
2339 /* Unsigned 32-bit value to configure the number of continuous
2340 * Beacon Miss which shall be used by the firmware to penalize
2341 * the RSSI for BTC.
2342 */
2343 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2344
2345 /* 8-bit unsigned value to configure the driver and below layers to
2346 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002347 * 0-enable, 1-disable
2348 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002349 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002350
Roshan Pius3a1667e2018-07-03 15:17:14 -07002351 /* 16-bit unsigned value to configure the level of WLAN latency
2352 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2353 */
2354 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2355
2356 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2357 * the connect interface. Exclusively used for the scenarios where the
2358 * device is used as a test bed device with special functionality and
2359 * not recommended for production. This helps driver to not validate the
2360 * RSNE passed from user space and thus allow arbitrary IE data to be
2361 * used for testing purposes.
2362 * 1-enable, 0-disable.
2363 * Applications set/reset this configuration. If not reset, this
2364 * parameter remains in use until the driver is unloaded.
2365 */
2366 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2367
2368 /* 8-bit unsigned value to trigger green Tx power saving.
2369 * 1-Enable, 0-Disable
2370 */
2371 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2372
Hai Shalomc3565922019-10-28 11:58:20 -07002373 /* Attribute to configure disconnect IEs to the driver.
2374 * This carries an array of unsigned 8-bit characters.
2375 *
2376 * If this is configured, driver shall fill the IEs in disassoc/deauth
2377 * frame.
2378 * These IEs are expected to be considered only for the next
2379 * immediate disconnection (disassoc/deauth frame) originated by
2380 * the DUT, irrespective of the entity (user space/driver/firmware)
2381 * triggering the disconnection.
2382 * The host drivers are not expected to use the IEs set through
2383 * this interface for further disconnections after the first immediate
2384 * disconnection initiated post the configuration.
2385 * If the IEs are also updated through cfg80211 interface (after the
2386 * enhancement to cfg80211_disconnect), host driver is expected to
2387 * take the union of IEs from both of these interfaces and send in
2388 * further disassoc/deauth frames.
2389 */
Hai Shalomfdcde762020-04-02 11:19:20 -07002390 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07002391
2392 /* 8-bit unsigned value for ELNA bypass.
2393 * 1-Enable, 0-Disable
2394 */
2395 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2396
Hai Shalomfdcde762020-04-02 11:19:20 -07002397 /* 8-bit unsigned value. This attribute enables/disables the host driver
2398 * to send the Beacon Report Response with failure reason for the
2399 * scenarios where STA cannot honor the Beacon Report Request from AP.
2400 * 1-Enable, 0-Disable.
2401 */
2402 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2403
2404 /* 8-bit unsigned value. This attribute enables/disables the host driver
2405 * to send roam reason information in the Reassociation Request frame to
2406 * the target AP when roaming within the same ESS.
2407 * 1-Enable, 0-Disable.
2408 */
2409 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2410
Hai Shalom899fcc72020-10-19 14:38:18 -07002411 /* 32-bit unsigned value to configure different PHY modes to the
2412 * driver/firmware. The possible values are defined in
2413 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2414 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2415 * the driver.
2416 */
2417 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2418
2419 /* 8-bit unsigned value to configure the maximum supported channel width
2420 * for STA mode. If this value is configured when STA is in connected
2421 * state, it should not exceed the negotiated channel width. If it is
2422 * configured when STA is in disconnected state, the configured value
2423 * will take effect for the next immediate connection.
2424 * Possible values are:
2425 * NL80211_CHAN_WIDTH_20
2426 * NL80211_CHAN_WIDTH_40
2427 * NL80211_CHAN_WIDTH_80
2428 * NL80211_CHAN_WIDTH_80P80
2429 * NL80211_CHAN_WIDTH_160
2430 */
2431 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2432
2433 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2434 * This attribute is only applicable for STA mode. When dynamic
2435 * bandwidth adjustment is disabled, STA will use static channel width
2436 * the value of which is negotiated during connection.
2437 * 1-enable (default), 0-disable
2438 */
2439 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2440
2441 /* 8-bit unsigned value to configure the maximum number of subframes of
2442 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2443 * it is decided by the hardware.
2444 */
2445 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2446
2447 /* 8-bit unsigned value to configure the maximum number of subframes of
2448 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2449 * it is decided by the hardware.
2450 */
2451 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2452
2453 /* 8-bit unsigned value. This attribute is used to dynamically
2454 * enable/disable the LDPC capability of the device. When configured in
2455 * the disconnected state, the updated configuration will be considered
2456 * for the immediately following connection attempt. If this
2457 * configuration is modified while the device is in the connected state,
2458 * the LDPC TX will be updated with this configuration immediately,
2459 * while the LDPC RX configuration update will take place starting from
2460 * the subsequent association attempt.
2461 * 1-Enable, 0-Disable.
2462 */
2463 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2464
2465 /* 8-bit unsigned value. This attribute is used to dynamically
2466 * enable/disable the TX STBC capability of the device. When configured
2467 * in the disconnected state, the updated configuration will be
2468 * considered for the immediately following connection attempt. If the
2469 * connection is formed with TX STBC enabled and if this configuration
2470 * is disabled during that association, the TX will be impacted
2471 * immediately. Further connection attempts will disable TX STBC.
2472 * However, enabling the TX STBC for a connected session with disabled
2473 * capability is not allowed and will fail.
2474 * 1-Enable, 0-Disable.
2475 */
2476 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2477
2478 /* 8-bit unsigned value. This attribute is used to dynamically
2479 * enable/disable the RX STBC capability of the device. When configured
2480 * in the disconnected state, the updated configuration will be
2481 * considered for the immediately following connection attempt. If the
2482 * configuration is modified in the connected state, there will be no
2483 * impact for the current association, but further connection attempts
2484 * will use the updated configuration.
2485 * 1-Enable, 0-Disable.
2486 */
2487 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2488
2489 /* 8-bit unsigned value. This attribute is used to dynamically configure
2490 * the number of spatial streams. When configured in the disconnected
2491 * state, the updated configuration will be considered for the
2492 * immediately following connection attempt. If the NSS is updated after
2493 * the connection, the updated NSS value is notified to the peer using
2494 * the Operating Mode Notification/Spatial Multiplexing Power Save
2495 * frame. The updated NSS value after the connection shall not be
2496 * greater than the one negotiated during the connection. Any such
2497 * higher value configuration shall be returned with a failure.
Hai Shalom60840252021-02-19 19:02:11 -08002498 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2499 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2500 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2501 * configure the asymmetric NSS configuration (such as 1X2).
Hai Shalom899fcc72020-10-19 14:38:18 -07002502 */
2503 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
2504 /* 8-bit unsigned value to trigger Optimized Power Management:
2505 * 1-Enable, 0-Disable
2506 */
2507 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2508
2509 /* 8-bit unsigned value. This attribute takes the QoS/access category
2510 * value represented by the enum qca_wlan_ac_type and expects the driver
2511 * to upgrade the UDP frames to this access category. The value of
2512 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2513 * DSCP value configured in the frame with the intention to only upgrade
2514 * the access category. That said, it is not intended to downgrade the
2515 * access category for the frames.
2516 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2517 * disabled, as BK is of the lowest priority and an upgrade to it does
2518 * not result in any changes for the frames.
2519 */
2520 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2521
2522 /* 8-bit unsigned value. This attribute is used to dynamically configure
2523 * the number of chains to be used for transmitting data. This
2524 * configuration is allowed only when in connected state and will be
2525 * effective until disconnected. The driver rejects this configuration
2526 * if the number of spatial streams being used in the current connection
2527 * cannot be supported by this configuration.
2528 */
2529 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2530 /* 8-bit unsigned value. This attribute is used to dynamically configure
2531 * the number of chains to be used for receiving data. This
2532 * configuration is allowed only when in connected state and will be
2533 * effective until disconnected. The driver rejects this configuration
2534 * if the number of spatial streams being used in the current connection
2535 * cannot be supported by this configuration.
2536 */
2537 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2538
2539 /* 8-bit unsigned value to configure ANI setting type.
2540 * See &enum qca_wlan_ani_setting for possible values.
2541 */
2542 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2543 /* 32-bit signed value to configure ANI level. This is used when
2544 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2545 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2546 * is invalid, the driver will return a failure.
2547 */
2548 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2549
Hai Shalom60840252021-02-19 19:02:11 -08002550 /* 8-bit unsigned value. This attribute is used to dynamically configure
2551 * the number of spatial streams used for transmitting the data. When
2552 * configured in the disconnected state, the configured value will
2553 * be considered for the following connection attempt.
2554 * If the NSS is updated after the connection, the updated NSS value
2555 * is notified to the peer using the Operating Mode Notification/Spatial
2556 * Multiplexing Power Save frame.
2557 * The TX NSS value configured after the connection shall not be greater
2558 * than the value negotiated during the connection. Any such higher
2559 * value configuration shall be treated as invalid configuration by
2560 * the driver. This attribute shall be configured along with
2561 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2562 * configuration (such as 2X2 or 1X1) or the asymmetric
2563 * configuration (such as 1X2).
2564 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2565 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
2566 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
2567 */
2568 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
2569
2570 /* 8-bit unsigned value. This attribute is used to dynamically configure
2571 * the number of spatial streams used for receiving the data. When
2572 * configured in the disconnected state, the configured value will
2573 * be considered for the following connection attempt.
2574 * If the NSS is updated after the connection, the updated NSS value
2575 * is notified to the peer using the Operating Mode Notification/Spatial
2576 * Multiplexing Power Save frame.
2577 * The RX NSS value configured after the connection shall not be greater
2578 * than the value negotiated during the connection. Any such higher
2579 * value configuration shall be treated as invalid configuration by
2580 * the driver. This attribute shall be configured along with
2581 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
2582 * configuration (such as 2X2 or 1X1) or the asymmetric
2583 * configuration (such as 1X2).
2584 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2585 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
2586 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
2587 */
2588 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
2589
Hai Shaloma20dcd72022-02-04 13:43:00 -08002590 /*
2591 * 8-bit unsigned value. This attribute, when set, indicates whether the
2592 * specified interface is the primary STA interface when there are more
2593 * than one STA interfaces concurrently active.
2594 *
2595 * This configuration helps the firmware/hardware to support certain
2596 * features (e.g., roaming) on this primary interface, if the same
2597 * cannot be supported on the concurrent STA interfaces simultaneously.
2598 *
2599 * This configuration is only applicable for a single STA interface on
2600 * a device and gives the priority for it only over other concurrent STA
2601 * interfaces.
2602 *
2603 * If the device is a multi wiphy/soc, this configuration applies to a
2604 * single STA interface across the wiphys.
2605 *
2606 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
2607 */
2608 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
2609
2610 /*
2611 * 8-bit unsigned value. This attribute can be used to configure the
2612 * driver to enable/disable FT-over-DS feature. Possible values for
2613 * this attribute are 1-Enable and 0-Disable.
2614 */
2615 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
2616
2617 /*
2618 * 8-bit unsigned value. This attribute can be used to configure the
2619 * firmware to enable/disable ARP/NS offload feature. Possible values
2620 * for this attribute are 0-Disable and 1-Enable.
2621 *
2622 * This attribute is only applicable for STA/P2P-Client interface,
2623 * and is optional, default behavior is ARP/NS offload enabled.
2624 *
2625 * This attribute can be set in disconnected and connected state, and
2626 * will restore to the default behavior if the interface is closed.
2627 */
2628 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
2629
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002630 /* keep last */
2631 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
2632 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
2633 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
2634};
2635
Hai Shalomfdcde762020-04-02 11:19:20 -07002636/* Compatibility defines for previously used incorrect enum
2637 * qca_wlan_vendor_attr_config names. These values should not be used in any
2638 * new implementation. */
2639#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
2640 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
2641#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
2642 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
2643
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002644/**
Hai Shalom899fcc72020-10-19 14:38:18 -07002645 * enum qca_wlan_ani_setting - ANI setting type
2646 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
2647 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
2648 */
2649enum qca_wlan_ani_setting {
2650 QCA_WLAN_ANI_SETTING_AUTO = 0,
2651 QCA_WLAN_ANI_SETTING_FIXED = 1,
2652};
2653
2654/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002655 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07002656 *
2657 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
2658 * Channel number on which Access Point should restart.
2659 * Note: If both the driver and user space application supports the 6 GHz band,
2660 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
2661 * should be used.
2662 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
2663 * is still used if either of the driver or user space application doesn't
2664 * support the 6 GHz band.
2665 *
2666 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
2667 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002668 */
2669enum qca_wlan_vendor_attr_sap_config {
2670 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002671 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
2672
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002673 /* List of frequencies on which AP is expected to operate.
2674 * This is irrespective of ACS configuration. This list is a priority
2675 * based one and is looked for before the AP is created to ensure the
2676 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
2677 * the system.
2678 */
2679 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07002680 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002681
2682 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
2683 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
2684 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
2685};
2686
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002687/**
2688 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
2689 * conditional channel switch
2690 */
2691enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
2692 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
2693 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07002694 * order)
2695 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002696 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
2697 /* Status of the conditional switch (u32).
2698 * 0: Success, Non-zero: Failure
2699 */
2700 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
2701
2702 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
2703 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
2704 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
2705};
2706
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002707/**
2708 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07002709 *
2710 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
2711 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
2712 * for the available values.
2713 *
2714 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
2715 * value to specify the GPIO number.
2716 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2717 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
2718 *
2719 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
2720 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
2721 * for the available values.
2722 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2723 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
2724 *
Hai Shalom60840252021-02-19 19:02:11 -08002725 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002726 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
2727 * for the available values.
2728 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002729 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2730 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2731 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2732 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07002733 *
Hai Shalom60840252021-02-19 19:02:11 -08002734 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002735 * value to specify the GPIO interrupt mode. Please refer to enum
2736 * qca_gpio_interrupt_mode for the available values.
2737 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002738 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2739 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2740 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2741 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07002742 *
Hai Shalom60840252021-02-19 19:02:11 -08002743 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002744 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
2745 * for the available values.
2746 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002747 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2748 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2749 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2750 * attribute is present.
2751 *
2752 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
2753 * Value to specify the mux config. Meaning of a given value is dependent
2754 * on the target chipset and GPIO pin. Must be of the range 0-15.
2755 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2756 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
2757 *
2758 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
2759 * Value to specify the drive, refer to enum qca_gpio_drive.
2760 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2761 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
2762 *
2763 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
2764 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2765 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
2766 * other parameters for the given GPIO will be obtained from internal
2767 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
2768 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002769 */
2770enum qca_wlan_gpio_attr {
2771 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
2772 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07002773 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002774 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07002775 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002776 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07002777 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002778 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07002779 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002780 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07002781 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
2782 /* Unsigned 32-bit attribute for GPIO direction to configure */
2783 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08002784 /* Unsigned 32-bit attribute for GPIO mux config */
2785 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
2786 /* Unsigned 32-bit attribute for GPIO drive */
2787 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
2788 /* Flag attribute for using internal GPIO configuration */
2789 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002790
2791 /* keep last */
2792 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
2793 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
2794 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
2795};
2796
2797/**
Hai Shalom899fcc72020-10-19 14:38:18 -07002798 * enum gpio_cmd_type - GPIO configuration command type
2799 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
2800 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
2801 */
2802enum qca_gpio_cmd_type {
2803 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
2804 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
2805};
2806
2807/**
2808 * enum qca_gpio_pull_type - GPIO pull type
2809 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
2810 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
2811 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
2812 */
2813enum qca_gpio_pull_type {
2814 QCA_WLAN_GPIO_PULL_NONE = 0,
2815 QCA_WLAN_GPIO_PULL_UP = 1,
2816 QCA_WLAN_GPIO_PULL_DOWN = 2,
2817 QCA_WLAN_GPIO_PULL_MAX,
2818};
2819
2820/**
2821 * enum qca_gpio_direction - GPIO direction
2822 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
2823 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
2824 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
2825 */
2826enum qca_gpio_direction {
2827 QCA_WLAN_GPIO_INPUT = 0,
2828 QCA_WLAN_GPIO_OUTPUT = 1,
2829 QCA_WLAN_GPIO_DIR_MAX,
2830};
2831
2832/**
2833 * enum qca_gpio_value - GPIO Value
2834 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
2835 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
2836 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
2837 */
2838enum qca_gpio_value {
2839 QCA_WLAN_GPIO_LEVEL_LOW = 0,
2840 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
2841 QCA_WLAN_GPIO_LEVEL_MAX,
2842};
2843
2844/**
2845 * enum gpio_interrupt_mode - GPIO interrupt mode
2846 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
2847 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
2848 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
2849 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
2850 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
2851 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
2852 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
2853 */
2854enum qca_gpio_interrupt_mode {
2855 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
2856 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
2857 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
2858 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
2859 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
2860 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
2861 QCA_WLAN_GPIO_INTMODE_MAX,
2862};
2863
2864/**
Hai Shalom60840252021-02-19 19:02:11 -08002865 * enum qca_gpio_drive - GPIO drive
2866 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
2867 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
2868 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
2869 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
2870 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
2871 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
2872 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
2873 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
2874 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
2875 */
2876enum qca_gpio_drive {
2877 QCA_WLAN_GPIO_DRIVE_2MA = 0,
2878 QCA_WLAN_GPIO_DRIVE_4MA = 1,
2879 QCA_WLAN_GPIO_DRIVE_6MA = 2,
2880 QCA_WLAN_GPIO_DRIVE_8MA = 3,
2881 QCA_WLAN_GPIO_DRIVE_10MA = 4,
2882 QCA_WLAN_GPIO_DRIVE_12MA = 5,
2883 QCA_WLAN_GPIO_DRIVE_14MA = 6,
2884 QCA_WLAN_GPIO_DRIVE_16MA = 7,
2885 QCA_WLAN_GPIO_DRIVE_MAX,
2886};
2887
2888/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07002889 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
2890 * MSDUQ depth threshold per peer per tid in the target
2891 *
2892 * Associated Vendor Command:
2893 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
2894 */
2895enum qca_wlan_set_qdepth_thresh_attr {
2896 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
2897 /* 6-byte MAC address */
2898 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
2899 /* Unsigned 32-bit attribute for holding the TID */
2900 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
2901 /* Unsigned 32-bit attribute for holding the update mask
2902 * bit 0 - Update high priority msdu qdepth threshold
2903 * bit 1 - Update low priority msdu qdepth threshold
2904 * bit 2 - Update UDP msdu qdepth threshold
2905 * bit 3 - Update Non UDP msdu qdepth threshold
2906 * rest of bits are reserved
2907 */
2908 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
2909 /* Unsigned 32-bit attribute for holding the threshold value */
2910 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
2911
2912 /* keep last */
2913 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
2914 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
2915 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
2916};
2917
2918/**
Hai Shalomc3565922019-10-28 11:58:20 -07002919 * enum qca_acs_dfs_mode - Defines different types of DFS channel
2920 * configurations for ACS operation.
2921 *
2922 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
2923 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
2924 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
2925 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
2926 */
2927enum qca_acs_dfs_mode {
2928 QCA_ACS_DFS_MODE_NONE = 0,
2929 QCA_ACS_DFS_MODE_ENABLE = 1,
2930 QCA_ACS_DFS_MODE_DISABLE = 2,
2931 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
2932};
2933
2934/**
2935 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
2936 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
2937 *
2938 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
2939 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
2940 *
2941 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
2942 * channel number hint for ACS operation, if valid channel is specified then
2943 * ACS operation gives priority to this channel.
2944 * Note: If both the driver and user space application supports the 6 GHz band,
2945 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
2946 * should be used.
2947 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
2948 * is still used if either of the driver or user space application doesn't
2949 * support the 6 GHz band.
2950 *
2951 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
2952 * Channel center frequency (MHz) hint for ACS operation, if a valid center
2953 * frequency is specified, ACS operation gives priority to this channel.
2954 */
2955enum qca_wlan_vendor_attr_acs_config {
2956 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
2957 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
2958 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
2959 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
2960
2961 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
2962 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
2963 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
2964};
2965
2966/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002967 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
2968 */
2969enum qca_wlan_vendor_attr_get_hw_capability {
2970 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
2971 /* Antenna isolation
2972 * An attribute used in the response.
2973 * The content of this attribute is encoded in a byte array. Each byte
2974 * value is an antenna isolation value. The array length is the number
2975 * of antennas.
2976 */
2977 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
2978 /* Request HW capability
2979 * An attribute used in the request.
2980 * The content of this attribute is a u32 array for one or more of
2981 * hardware capabilities (attribute IDs) that are being requested. Each
2982 * u32 value has a value from this
2983 * enum qca_wlan_vendor_attr_get_hw_capability
2984 * identifying which capabilities are requested.
2985 */
2986 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
2987
2988 /* keep last */
2989 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
2990 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
2991 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
2992};
2993
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002994/**
2995 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
2996 * offload which is an extension for LL_STATS.
2997 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
2998 * If MAC counters do not exceed the threshold, FW will report monitored
2999 * link layer counters periodically as this setting. The first report is
3000 * always triggered by this timer.
3001 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
3002 * For each MAC layer counter, FW holds two copies. One is the current value.
3003 * The other is the last report. Once a current counter's increment is larger
3004 * than the threshold, FW will indicate that counter to host even if the
3005 * monitoring timer does not expire.
3006 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
3007 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
3008 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
3009 * failure code.
3010 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
3011 * 1: TX packet discarded
3012 * 2: No ACK
3013 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003014 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
3015 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
3016 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
3017 * Threshold for all monitored parameters. If per counter dedicated threshold
3018 * is not enabled, this threshold will take effect.
3019 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
3020 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
3021 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
3022 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
3023 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
3024 * Bit0: TX counter unit in MSDU
3025 * Bit1: TX counter unit in MPDU
3026 * Bit2: TX counter unit in PPDU
3027 * Bit3: TX counter unit in byte
3028 * Bit4: Dropped MSDUs
3029 * Bit5: Dropped Bytes
3030 * Bit6: MPDU retry counter
3031 * Bit7: MPDU failure counter
3032 * Bit8: PPDU failure counter
3033 * Bit9: MPDU aggregation counter
3034 * Bit10: MCS counter for ACKed MPDUs
3035 * Bit11: MCS counter for Failed MPDUs
3036 * Bit12: TX Delay counter
3037 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
3038 * Bit0: MAC RX counter unit in MPDU
3039 * Bit1: MAC RX counter unit in byte
3040 * Bit2: PHY RX counter unit in PPDU
3041 * Bit3: PHY RX counter unit in byte
3042 * Bit4: Disorder counter
3043 * Bit5: Retry counter
3044 * Bit6: Duplication counter
3045 * Bit7: Discard counter
3046 * Bit8: MPDU aggregation size counter
3047 * Bit9: MCS counter
3048 * Bit10: Peer STA power state change (wake to sleep) counter
3049 * Bit11: Peer STA power save counter, total time in PS mode
3050 * Bit12: Probe request counter
3051 * Bit13: Other management frames counter
3052 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
3053 * Bit0: Idle time
3054 * Bit1: TX time
3055 * Bit2: time RX in current bss
3056 * Bit3: Out of current bss time
3057 * Bit4: Wireless medium busy time
3058 * Bit5: RX in bad condition time
3059 * Bit6: TX in bad condition time
3060 * Bit7: time wlan card not available
3061 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
3062 * Bit0: Per channel SNR counter
3063 * Bit1: Per channel noise floor counter
3064 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
3065 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
3066 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
3067 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
3068 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
3069 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
3070 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
3071 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
3072 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
3073 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
3074 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
3075 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
3076 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
3077 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
3078 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
3079 * aggregation stats buffer length
3080 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
3081 * buffer for ACKed MPDUs.
3082 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
3083 * buffer for failed MPDUs.
3084 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
3085 * length of delay stats array.
3086 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
3087 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
3088 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
3089 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
3090 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
3091 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
3092 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
3093 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
3094 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
3095 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
3096 * flagged as retransmissions
3097 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
3098 * flagged as duplicated
3099 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
3100 * packets discarded
3101 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
3102 * stats buffer.
3103 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
3104 * stats buffer.
3105 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
3106 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
3107 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
3108 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
3109 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
3110 * requests received
3111 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
3112 * frames received
3113 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
3114 * there is no TX, nor RX, nor interference.
3115 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
3116 * transmitting packets.
3117 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
3118 * for receiving.
3119 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
3120 * interference detected.
3121 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
3122 * receiving packets with errors.
3123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
3124 * TX no-ACK.
3125 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
3126 * the chip is unable to work in normal conditions.
3127 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
3128 * receiving packets in current BSS.
3129 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
3130 * receiving packets not in current BSS.
3131 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
3132 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
3133 * This is a container for per antenna signal stats.
3134 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
3135 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
3136 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
3137 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07003138 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
3139 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
3140 * message, user layer APP could call gettimeofday to get another
3141 * timestamp and calculate transfer delay for the message.
3142 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
3143 * Real period for this measurement, unit in us.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003144 */
3145enum qca_wlan_vendor_attr_ll_stats_ext {
3146 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
3147
3148 /* Attributes for configurations */
3149 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
3150 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
3151
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003152 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003153 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
3154
3155 /* TX failure event */
3156 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
3157 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
3158 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
3159
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003160 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
3161 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
3162
3163 /* MAC counters */
3164 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
3165 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
3166 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
3167 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
3168 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
3169 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
3170 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
3171 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
3172 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
3173 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
3174 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
3175 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
3176
3177 /* Sub-attributes for PEER_AC_TX */
3178 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
3179 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
3180 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
3181 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
3182 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
3183 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
3184 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
3185 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
3186 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
3187 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
3188 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
3189 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
3190 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
3191 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
3192 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
3193 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
3194 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
3195
3196 /* Sub-attributes for PEER_AC_RX */
3197 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
3198 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
3199 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
3200 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
3201 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
3202 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
3203 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
3204 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
3205 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
3206 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
3207 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
3208 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
3209 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
3210 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
3211 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
3212 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
3213
3214 /* Sub-attributes for CCA_BSS */
3215 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
3216 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
3217 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
3218 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
3219 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
3220 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
3221 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
3222
3223 /* sub-attribute for BSS_RX_TIME */
3224 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
3225 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
3226
3227 /* Sub-attributes for PEER_SIGNAL */
3228 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
3229 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
3230 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
3231 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
3232
3233 /* Sub-attributes for IFACE_BSS */
3234 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
3235 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
3236
Roshan Pius3a1667e2018-07-03 15:17:14 -07003237 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
3238 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
3239
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003240 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
3241 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
3242 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
3243};
3244
3245/* Attributes for FTM commands and events */
3246
3247/**
3248 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
3249 *
3250 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
3251 * enum qca_wlan_vendor_attr_loc_capa_flags.
3252 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
3253 * of measurement sessions that can run concurrently.
3254 * Default is one session (no session concurrency).
3255 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
3256 * peers that are supported in running sessions. For example,
3257 * if the value is 8 and maximum number of sessions is 2, you can
3258 * have one session with 8 unique peers, or 2 sessions with 4 unique
3259 * peers each, and so on.
3260 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
3261 * of bursts per peer, as an exponent (2^value). Default is 0,
3262 * meaning no multi-burst support.
3263 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
3264 * of measurement exchanges allowed in a single burst.
3265 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
3266 * types. A bit mask (unsigned 32 bit value), each bit corresponds
3267 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
3268 */
3269enum qca_wlan_vendor_attr_loc_capa {
3270 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
3271 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
3272 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
3273 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
3274 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
3275 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
3276 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
3277 /* keep last */
3278 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
3279 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
3280 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
3281};
3282
3283/**
3284 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
3285 *
3286 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
3287 * can be configured as an FTM responder (for example, an AP that
3288 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
3289 * will be supported if set.
3290 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
3291 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
3292 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003293 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003294 * supports immediate (ASAP) response.
3295 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
3296 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
3297 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
3298 * requesting AOA measurements as part of an FTM session.
3299 */
3300enum qca_wlan_vendor_attr_loc_capa_flags {
3301 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
3302 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
3303 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
3304 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
3305 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
3306};
3307
3308/**
3309 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
3310 * a single peer in a measurement session.
3311 *
3312 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
3313 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
3314 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003315 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003316 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
3317 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
3318 * list of supported attributes.
3319 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
3320 * secure measurement.
3321 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
3322 * measurement every <value> bursts. If 0 or not specified,
3323 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003324 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
3325 * the measurement frames are exchanged. Optional; if not
3326 * specified, try to locate the peer in the kernel scan
3327 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003328 */
3329enum qca_wlan_vendor_attr_ftm_peer_info {
3330 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
3331 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
3332 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003333 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003334 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
3335 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003336 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003337 /* keep last */
3338 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
3339 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
3340 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
3341};
3342
3343/**
3344 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
3345 * per-peer
3346 *
3347 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
3348 * immediate (ASAP) response from peer.
3349 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
3350 * LCI report from peer. The LCI report includes the absolute
3351 * location of the peer in "official" coordinates (similar to GPS).
3352 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
3353 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
3354 * Location civic report from peer. The LCR includes the location
3355 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
3356 * 11.24.6.7 for more information.
3357 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
3358 * request a secure measurement.
3359 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
3360 */
3361enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
3362 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
3363 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
3364 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
3365 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
3366};
3367
3368/**
3369 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
3370 *
3371 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
3372 * to perform in a single burst.
3373 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
3374 * perform, specified as an exponent (2^value).
3375 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
3376 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
3377 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
3378 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
3379 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
3380 */
3381enum qca_wlan_vendor_attr_ftm_meas_param {
3382 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
3383 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
3384 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
3385 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
3386 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
3387 /* keep last */
3388 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
3389 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
3390 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
3391};
3392
3393/**
3394 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
3395 *
3396 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
3397 * peer.
3398 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
3399 * request for this peer.
3400 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
3401 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
3402 * to measurement results for this peer.
3403 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
3404 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
3405 * request failed and peer requested not to send an additional request
3406 * for this number of seconds.
3407 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
3408 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3409 * 9.4.2.22.10.
3410 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
3411 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3412 * 9.4.2.22.13.
3413 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
3414 * overridden some measurement request parameters. See
3415 * enum qca_wlan_vendor_attr_ftm_meas_param.
3416 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
3417 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
3418 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
3419 * results. Each entry is a nested attribute defined
3420 * by enum qca_wlan_vendor_attr_ftm_meas.
3421 */
3422enum qca_wlan_vendor_attr_ftm_peer_result {
3423 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
3424 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
3425 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
3426 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
3427 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
3428 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
3429 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
3430 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
3431 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
3432 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
3433 /* keep last */
3434 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
3435 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
3436 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
3437};
3438
3439/**
3440 * enum qca_wlan_vendor_attr_ftm_peer_result_status
3441 *
3442 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
3443 * will be provided. Peer may have overridden some measurement parameters,
3444 * in which case overridden parameters will be report by
3445 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
3446 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
3447 * of performing the measurement request. No more results will be sent
3448 * for this peer in this session.
3449 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
3450 * failed, and requested not to send an additional request for number
3451 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
3452 * attribute.
3453 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
3454 * failed. Request was not sent over the air.
3455 */
3456enum qca_wlan_vendor_attr_ftm_peer_result_status {
3457 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
3458 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
3459 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
3460 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
3461};
3462
3463/**
3464 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
3465 * for measurement result, per-peer
3466 *
3467 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
3468 * measurement completed for this peer. No more results will be reported
3469 * for this peer in this session.
3470 */
3471enum qca_wlan_vendor_attr_ftm_peer_result_flags {
3472 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
3473};
3474
3475/**
3476 * enum qca_vendor_attr_loc_session_status: Session completion status code
3477 *
3478 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
3479 * successfully.
3480 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
3481 * by request.
3482 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
3483 * was invalid and was not started.
3484 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
3485 * and did not complete normally (for example out of resources).
3486 */
3487enum qca_vendor_attr_loc_session_status {
3488 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
3489 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
3490 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
3491 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
3492};
3493
3494/**
3495 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
3496 *
3497 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
3498 * recorded by responder, in picoseconds.
3499 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3500 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
3501 * initiator, in picoseconds.
3502 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3503 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
3504 * initiator, in picoseconds.
3505 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3506 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
3507 * responder, in picoseconds.
3508 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3509 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
3510 * during this measurement exchange. Optional and will be provided if
3511 * the hardware can measure it.
3512 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
3513 * responder. Not always provided.
3514 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3515 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
3516 * responder. Not always provided.
3517 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3518 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
3519 * initiator. Not always provided.
3520 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3521 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
3522 * initiator. Not always provided.
3523 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3524 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
3525 */
3526enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003527 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003528 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
3529 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
3530 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
3531 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
3532 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
3533 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
3534 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
3535 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
3536 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
3537 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
3538 /* keep last */
3539 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
3540 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
3541 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
3542};
3543
3544/**
3545 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
3546 *
3547 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
3548 * CIR (channel impulse response) path for each antenna.
3549 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
3550 * of the strongest CIR path for each antenna.
3551 */
3552enum qca_wlan_vendor_attr_aoa_type {
3553 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
3554 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
3555 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
3556};
3557
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003558/**
3559 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
3560 * validate encryption engine
3561 *
3562 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
3563 * This will be included if the request is for decryption; if not included,
3564 * the request is treated as a request for encryption by default.
3565 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
3566 * indicating the key cipher suite. Takes same values as
3567 * NL80211_ATTR_KEY_CIPHER.
3568 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
3569 * Key Id to be used for encryption
3570 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
3571 * Key (TK) to be used for encryption/decryption
3572 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
3573 * Packet number to be specified for encryption/decryption
3574 * 6 bytes for TKIP/CCMP/GCMP.
3575 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
3576 * representing the 802.11 packet (header + payload + FCS) that
3577 * needs to be encrypted/decrypted.
3578 * Encrypted/decrypted response from the driver will also be sent
3579 * to userspace with the same attribute.
3580 */
3581enum qca_wlan_vendor_attr_encryption_test {
3582 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
3583 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
3584 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
3585 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
3586 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
3587 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
3588 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
3589
3590 /* keep last */
3591 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
3592 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
3593 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
3594};
3595
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003596/**
3597 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
3598 * sector for DMG RF sector operations.
3599 *
3600 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
3601 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
3602 */
3603enum qca_wlan_vendor_attr_dmg_rf_sector_type {
3604 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
3605 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
3606 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
3607};
3608
3609/**
Hai Shalom021b0b52019-04-10 11:17:58 -07003610 * enum qca_wlan_vendor_attr_fw_state - State of firmware
3611 *
3612 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
3613 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
3614 */
3615enum qca_wlan_vendor_attr_fw_state {
3616 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
3617 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
3618 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
3619};
3620
3621/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003622 * BRP antenna limit mode
3623 *
3624 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
3625 * antenna limit, BRP will be performed as usual.
3626 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
3627 * antennas limit. the hardware may use less antennas than the
3628 * maximum limit.
3629 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
3630 * use exactly the specified number of antennas for BRP.
3631 */
3632enum qca_wlan_vendor_attr_brp_ant_limit_mode {
3633 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
3634 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
3635 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
3636 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
3637};
3638
3639/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003640 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
3641 * DMG RF sector configuration for a single RF module.
3642 * The values are defined in a compact way which closely matches
3643 * the way it is stored in HW registers.
3644 * The configuration provides values for 32 antennas and 8 distribution
3645 * amplifiers, and together describes the characteristics of the RF
3646 * sector - such as a beam in some direction with some gain.
3647 *
3648 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
3649 * of RF module for this configuration.
3650 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
3651 * amplifier gain index. Unsigned 32 bit number containing
3652 * bits for all 32 antennas.
3653 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
3654 * amplifier gain index. Unsigned 32 bit number containing
3655 * bits for all 32 antennas.
3656 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
3657 * amplifier gain index. Unsigned 32 bit number containing
3658 * bits for all 32 antennas.
3659 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
3660 * for first 16 antennas, 2 bits per antenna.
3661 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
3662 * for last 16 antennas, 2 bits per antenna.
3663 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
3664 * DTYPE values (3 bits) for each distribution amplifier, followed
3665 * by X16 switch bits for each distribution amplifier. There are
3666 * total of 8 distribution amplifiers.
3667 */
3668enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
3669 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
3670 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
3671 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
3672 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
3673 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
3674 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
3675 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
3676 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
3677
3678 /* keep last */
3679 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
3680 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
3681 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
3682};
3683
3684enum qca_wlan_vendor_attr_ll_stats_set {
3685 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
3686 /* Unsigned 32-bit value */
3687 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
3688 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
3689 /* keep last */
3690 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
3691 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
3692 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
3693};
3694
3695enum qca_wlan_vendor_attr_ll_stats_clr {
3696 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
3697 /* Unsigned 32bit bitmap for clearing statistics
3698 * All radio statistics 0x00000001
3699 * cca_busy_time (within radio statistics) 0x00000002
3700 * All channel stats (within radio statistics) 0x00000004
3701 * All scan statistics (within radio statistics) 0x00000008
3702 * All interface statistics 0x00000010
3703 * All tx rate statistics (within interface statistics) 0x00000020
3704 * All ac statistics (with in interface statistics) 0x00000040
3705 * All contention (min, max, avg) statistics (within ac statisctics)
3706 * 0x00000080.
3707 */
3708 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
3709 /* Unsigned 8 bit value: Request to stop statistics collection */
3710 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
3711
3712 /* Unsigned 32 bit bitmap: Response from the driver
3713 * for the cleared statistics
3714 */
3715 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
3716 /* Unsigned 8 bit value: Response from driver/firmware
3717 * for the stop request
3718 */
3719 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
3720 /* keep last */
3721 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
3722 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
3723 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
3724};
3725
3726enum qca_wlan_vendor_attr_ll_stats_get {
3727 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
3728 /* Unsigned 32 bit value provided by the caller issuing the GET stats
3729 * command. When reporting the stats results, the driver uses the same
3730 * value to indicate which GET request the results correspond to.
3731 */
3732 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
3733 /* Unsigned 32 bit value - bit mask to identify what statistics are
3734 * requested for retrieval.
3735 * Radio Statistics 0x00000001
3736 * Interface Statistics 0x00000020
3737 * All Peer Statistics 0x00000040
3738 * Peer Statistics 0x00000080
3739 */
3740 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
3741 /* keep last */
3742 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
3743 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
3744 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
3745};
3746
3747enum qca_wlan_vendor_attr_ll_stats_results {
3748 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
3749 /* Unsigned 32bit value. Used by the driver; must match the request id
3750 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
3751 */
3752 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
3753
3754 /* Unsigned 32 bit value */
3755 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
3756 /* Unsigned 32 bit value */
3757 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
3758 /* Unsigned 32 bit value */
3759 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
3760 /* Unsigned 32 bit value */
3761 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
3762 /* Signed 32 bit value */
3763 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
3764 /* Signed 32 bit value */
3765 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
3766 /* Signed 32 bit value */
3767 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
3768
3769 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
3770 * nested within the interface stats.
3771 */
3772
3773 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
3774 * Type = enum wifi_interface_mode.
3775 */
3776 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
3777 /* Interface MAC address. An array of 6 Unsigned int8 */
3778 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
3779 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
3780 * AUTHENTICATING, etc. valid for STA, CLI only.
3781 */
3782 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
3783 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
3784 */
3785 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
3786 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
3787 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
3788 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
3789 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
3790 /* BSSID. An array of 6 unsigned 8 bit values */
3791 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
3792 /* Country string advertised by AP. An array of 3 unsigned 8 bit
3793 * values.
3794 */
3795 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
3796 /* Country string for this association. An array of 3 unsigned 8 bit
3797 * values.
3798 */
3799 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
3800
3801 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
3802 * be nested within the interface stats.
3803 */
3804
3805 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
3806 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
3807 /* Unsigned int 32 value corresponding to respective AC */
3808 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
3809 /* Unsigned int 32 value corresponding to respective AC */
3810 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
3811 /* Unsigned int 32 value corresponding to respective AC */
3812 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
3813 /* Unsigned int 32 value corresponding to respective AC */
3814 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
3815 /* Unsigned int 32 value corresponding to respective AC */
3816 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
3817 /* Unsigned int 32 value corresponding to respective AC */
3818 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
3819 /* Unsigned int 32 value corresponding to respective AC */
3820 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
3821 /* Unsigned int 32 value corresponding to respective AC */
3822 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
3823 /* Unsigned int 32 value corresponding to respective AC */
3824 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
3825 /* Unsigned int 32 values corresponding to respective AC */
3826 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
3827 /* Unsigned int 32 values corresponding to respective AC */
3828 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
3829 /* Unsigned int 32 values corresponding to respective AC */
3830 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
3831 /* Unsigned int 32 values corresponding to respective AC */
3832 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
3833 /* Unsigned int 32 values corresponding to respective AC */
3834 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
3835 /* Unsigned 32 bit value. Number of peers */
3836 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
3837
3838 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
3839 * nested within the interface stats.
3840 */
3841
3842 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
3843 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
3844 /* MAC addr corresponding to respective peer. An array of 6 unsigned
3845 * 8 bit values.
3846 */
3847 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
3848 /* Unsigned int 32 bit value representing capabilities corresponding
3849 * to respective peer.
3850 */
3851 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
3852 /* Unsigned 32 bit value. Number of rates */
3853 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
3854
3855 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3856 * are nested within the rate stat.
3857 */
3858
3859 /* Wi-Fi Rate - separate attributes defined for individual fields */
3860
3861 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
3862 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
3863 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
3864 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
3865 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
3866 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
3867 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07003868 * in the units of 0.5 Mbps HT/VHT it would be MCS index
3869 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003870 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
3871
3872 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
3873 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
3874
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003875 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
3876 * nested within the peer info stats.
3877 */
3878
3879 /* Unsigned int 32 bit value. Number of successfully transmitted data
3880 * packets, i.e., with ACK received corresponding to the respective
3881 * rate.
3882 */
3883 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
3884 /* Unsigned int 32 bit value. Number of received data packets
3885 * corresponding to the respective rate.
3886 */
3887 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
3888 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
3889 * received corresponding to the respective rate.
3890 */
3891 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
3892 /* Unsigned int 32 bit value. Total number of data packet retries for
3893 * the respective rate.
3894 */
3895 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
3896 /* Unsigned int 32 bit value. Total number of short data packet retries
3897 * for the respective rate.
3898 */
3899 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
3900 /* Unsigned int 32 bit value. Total number of long data packet retries
3901 * for the respective rate.
3902 */
3903 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
3904
3905 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
3906 /* Unsigned 32 bit value. Total number of msecs the radio is awake
3907 * accruing over time.
3908 */
3909 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
3910 /* Unsigned 32 bit value. Total number of msecs the radio is
3911 * transmitting accruing over time.
3912 */
3913 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
3914 /* Unsigned 32 bit value. Total number of msecs the radio is in active
3915 * receive accruing over time.
3916 */
3917 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
3918 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3919 * to all scan accruing over time.
3920 */
3921 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
3922 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3923 * to NAN accruing over time.
3924 */
3925 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
3926 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3927 * to GSCAN accruing over time.
3928 */
3929 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
3930 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3931 * to roam scan accruing over time.
3932 */
3933 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
3934 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3935 * to PNO scan accruing over time.
3936 */
3937 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
3938 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3939 * to Hotspot 2.0 scans and GAS exchange accruing over time.
3940 */
3941 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
3942 /* Unsigned 32 bit value. Number of channels. */
3943 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
3944
3945 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
3946 * be nested within the channel stats.
3947 */
3948
3949 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
3950 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
3951 /* Unsigned 32 bit value. Primary 20 MHz channel. */
3952 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
3953 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
3954 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
3955 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
3956 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
3957
3958 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
3959 * nested within the radio stats.
3960 */
3961
3962 /* Unsigned int 32 bit value representing total number of msecs the
3963 * radio is awake on that channel accruing over time, corresponding to
3964 * the respective channel.
3965 */
3966 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
3967 /* Unsigned int 32 bit value representing total number of msecs the CCA
3968 * register is busy accruing over time corresponding to the respective
3969 * channel.
3970 */
3971 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
3972
3973 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
3974
3975 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07003976 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003977 */
3978 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
3979
3980 /* Signifies the nested list of peer info attributes
3981 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
3982 */
3983 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
3984
3985 /* Signifies the nested list of rate info attributes
3986 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3987 */
3988 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
3989
3990 /* Signifies the nested list of wmm info attributes
3991 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
3992 */
3993 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
3994
3995 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
3996 * that more stats, e.g., peers or radio, are to follow in the next
3997 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
3998 * Otherwise, it is set to 0.
3999 */
4000 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
4001
4002 /* Unsigned 64 bit value */
4003 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
4004
4005 /* Unsigned 32 bit value */
4006 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
4007
4008 /* Unsigned 32 bit value */
4009 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
4010
4011 /* Unsigned 32 bit value */
4012 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
4013
4014 /* Unsigned 32 bit value */
4015 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
4016
4017 /* Unsigned 32 bit value */
4018 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
4019
4020 /* Number of msecs the radio spent in transmitting for each power level
4021 */
4022 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
4023
4024 /* Unsigned 32 bit value */
4025 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
4026 /* Unsigned 32 bit value */
4027 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
4028 /* Unsigned 32 bit value */
4029 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
4030 /* Unsigned 32 bit value */
4031 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
4032
Roshan Pius3a1667e2018-07-03 15:17:14 -07004033 /* Unsigned int 32 value.
4034 * Pending MSDUs corresponding to respective AC.
4035 */
4036 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
4037
Hai Shalom899fcc72020-10-19 14:38:18 -07004038 /* u32 value representing total time in milliseconds for which the radio
4039 * is transmitting on this channel. This attribute will be nested
4040 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4041 */
4042 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
4043 /* u32 value representing total time in milliseconds for which the radio
4044 * is receiving all 802.11 frames intended for this device on this
4045 * channel. This attribute will be nested within
4046 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4047 */
4048 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Hai Shaloma20dcd72022-02-04 13:43:00 -08004049 /* u8 value representing the channel load percentage. Possible values
4050 * are 0-100.
4051 */
4052 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
4053 /* u8 value representing the time slicing duty cycle percentage.
4054 * Possible values are 0-100.
4055 */
4056 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004057 /* keep last */
4058 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
4059 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
4060 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
4061};
4062
Roshan Pius3a1667e2018-07-03 15:17:14 -07004063enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004064 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
4065 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
4066 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
4067 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
4068
4069 /* keep last */
4070 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
4071 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
4072 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
4073};
4074
4075/**
4076 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
4077 * TDLS configuration to the host driver.
4078 *
4079 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
4080 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
4081 * represents the different TDLS trigger modes.
4082 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
4083 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
4084 * of packets shall meet the criteria for implicit TDLS setup.
4085 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
4086 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
4087 * to initiate a TDLS setup.
4088 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
4089 * a TDLS Discovery to the peer.
4090 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
4091 * discovery attempts to know the TDLS capability of the peer. A peer is
4092 * marked as TDLS not capable if there is no response for all the attempts.
4093 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
4094 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
4095 * number of TX / RX frames meet the criteria for TDLS teardown.
4096 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
4097 * of Tx/Rx packets within a duration
4098 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
4099 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
4100 * corresponding to the RSSI of the peer below which a TDLS setup is
4101 * triggered.
4102 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
4103 * corresponding to the RSSI of the peer above which a TDLS teardown is
4104 * triggered.
4105 */
4106enum qca_wlan_vendor_attr_tdls_configuration {
4107 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
4108 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
4109
4110 /* Attributes configuring the TDLS Implicit Trigger */
4111 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
4112 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
4113 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
4114 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
4115 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
4116 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
4117 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
4118 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
4119
4120 /* keep last */
4121 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
4122 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
4123 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
4124};
4125
4126/**
4127 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
4128 * the driver
4129 *
4130 * The following are the different values for
4131 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
4132 *
4133 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
4134 * the TDLS connection to a respective peer comes from the user space.
4135 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
4136 * TDLS_DISCOVER to do this.
4137 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
4138 * setup/teardown to the eligible peer once the configured criteria
4139 * (such as TX/RX threshold, RSSI) is met. The attributes
4140 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
4141 * the different configuration criteria for the TDLS trigger from the
4142 * host driver.
4143 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
4144 * the TDLS setup / teardown through the implicit mode only to the
4145 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
4146 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
4147 * External mode works on top of the implicit mode. Thus the host driver
4148 * is expected to configure in TDLS Implicit mode too to operate in
4149 * External mode.
4150 * Configuring External mode alone without Implicit mode is invalid.
4151 *
4152 * All the above implementations work as expected only when the host driver
4153 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
4154 * that the TDLS message exchange is not internal to the host driver, but
4155 * depends on wpa_supplicant to do the message exchange.
4156 */
4157enum qca_wlan_vendor_tdls_trigger_mode {
4158 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
4159 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
4160 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
4161};
4162
Dmitry Shmidt29333592017-01-09 12:27:11 -08004163/**
4164 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
4165 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
4166 * that is hard-coded in the Board Data File (BDF).
4167 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
4168 * that is hard-coded in the Board Data File (BDF).
4169 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
4170 * that is hard-coded in the Board Data File (BDF).
4171 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
4172 * that is hard-coded in the Board Data File (BDF).
4173 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
4174 * that is hard-coded in the Board Data File (BDF).
4175 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
4176 * source of SAR power limits, thereby disabling the SAR power
4177 * limit feature.
4178 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
4179 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004180 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
4181 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004182 *
4183 * This enumerates the valid set of values that may be supplied for
4184 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07004185 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
4186 * the response to an instance of the
4187 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004188 */
4189enum qca_vendor_attr_sar_limits_selections {
4190 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
4191 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
4192 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
4193 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
4194 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
4195 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
4196 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004197 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004198};
4199
4200/**
4201 * enum qca_vendor_attr_sar_limits_spec_modulations -
4202 * SAR limits specification modulation
4203 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
4204 * CCK modulation
4205 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
4206 * OFDM modulation
4207 *
4208 * This enumerates the valid set of values that may be supplied for
4209 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
4210 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
4211 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07004212 * command or in the response to an instance of the
4213 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004214 */
4215enum qca_vendor_attr_sar_limits_spec_modulations {
4216 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
4217 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
4218};
4219
4220/**
4221 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
4222 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004223 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08004224 * select which SAR power limit table should be used. Valid
4225 * values are enumerated in enum
4226 * %qca_vendor_attr_sar_limits_selections. The existing SAR
4227 * power limit selection is unchanged if this attribute is not
4228 * present.
4229 *
4230 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
4231 * which specifies the number of SAR power limit specifications
4232 * which will follow.
4233 *
4234 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
4235 * limit specifications. The number of specifications is
4236 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
4237 * specification contains a set of
4238 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
4239 * specification is uniquely identified by the attributes
4240 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
4241 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
4242 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
4243 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07004244 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
4245 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
4246 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
4247 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
4248 * needed based upon the value of
4249 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004250 *
4251 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
4252 * indicate for which band this specification applies. Valid
4253 * values are enumerated in enum %nl80211_band (although not all
4254 * bands may be supported by a given device). If the attribute is
4255 * not supplied then the specification will be applied to all
4256 * supported bands.
4257 *
4258 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
4259 * to indicate for which antenna chain this specification
4260 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
4261 * attribute is not supplied then the specification will be
4262 * applied to all chains.
4263 *
4264 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
4265 * value to indicate for which modulation scheme this
4266 * specification applies. Valid values are enumerated in enum
4267 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
4268 * is not supplied then the specification will be applied to all
4269 * modulation schemes.
4270 *
4271 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
4272 * value to specify the actual power limit value in units of 0.5
4273 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07004274 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4275 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004276 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07004277 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
4278 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
4279 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4280 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
4281 *
4282 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
4283 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004284 */
4285enum qca_vendor_attr_sar_limits {
4286 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
4287 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
4288 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
4289 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
4290 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
4291 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
4292 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
4293 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004294 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004295
4296 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
4297 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
4298 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
4299};
4300
4301/**
4302 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
4303 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07004304 *
4305 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
4306 * should be set to any U8 value to indicate that the driver version
4307 * should be returned. When enabled in this manner, in a response this
4308 * attribute will contain a string representation of the driver version.
4309 *
4310 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
4311 * should be set to any U8 value to indicate that the firmware version
4312 * should be returned. When enabled in this manner, in a response this
4313 * attribute will contain a string representation of the firmware version.
4314 *
4315 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
4316 * should be set to any U32 value to indicate that the current radio
4317 * index should be returned. When enabled in this manner, in a response
4318 * this attribute will contain a U32 radio index value.
4319 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08004320 */
4321enum qca_wlan_vendor_attr_get_wifi_info {
4322 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4323 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
4324 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07004325 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004326
4327 /* keep last */
4328 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4329 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
4330 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4331};
4332
4333/*
4334 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
4335 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
4336 */
4337enum qca_wlan_vendor_attr_wifi_logger_start {
4338 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4339 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4340 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4341 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4342
4343 /* keep last */
4344 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4345 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
4346 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4347};
4348
4349enum qca_wlan_vendor_attr_logger_results {
4350 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4351
4352 /* Unsigned 32-bit value; must match the request Id supplied by
4353 * Wi-Fi HAL in the corresponding subcmd NL msg.
4354 */
4355 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4356
4357 /* Unsigned 32-bit value; used to indicate the size of memory
4358 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004359 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08004360 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4361
4362 /* keep last */
4363 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
4364 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
4365 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
4366};
4367
Hai Shalomc3565922019-10-28 11:58:20 -07004368/**
4369 * enum qca_scan_freq_list_type: Frequency list types
4370 *
4371 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
4372 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4373 * a preferred frequency list for roaming.
4374 *
4375 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
4376 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4377 * a specific frequency list for roaming.
4378 */
4379enum qca_scan_freq_list_type {
4380 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
4381 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
4382};
4383
4384/**
4385 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
4386 *
4387 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
4388 * List of frequencies in MHz to be considered for a roam scan.
4389 *
4390 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
4391 * Type of frequency list scheme being configured/gotten as defined by the
4392 * enum qca_scan_freq_list_type.
4393 */
4394enum qca_vendor_attr_scan_freq_list_scheme {
4395 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
4396 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
4397
4398 /* keep last */
4399 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
4400 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
4401 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
4402};
4403
Hai Shalom899fcc72020-10-19 14:38:18 -07004404/**
4405 * enum qca_roam_scan_scheme: Scan scheme
4406 *
4407 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
4408 * Indicates the driver to not scan on a Roam Trigger scenario, but
4409 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
4410 * disconnect from the current connected AP by notifying a failure
4411 * code in the BTM response.
4412 *
4413 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
4414 * trigger partial frequency scans. These frequencies are the ones learned
4415 * or maintained by the driver based on the probability of finding the
4416 * BSSIDs in the ESS for which the roaming is triggered.
4417 *
4418 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
4419 * trigger the scan on all the valid frequencies to find better
4420 * candidates to roam.
4421 */
4422enum qca_roam_scan_scheme {
4423 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
4424 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
4425 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
4426};
4427
Hai Shalomc3565922019-10-28 11:58:20 -07004428/*
4429 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
4430 *
4431 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
4432 * a bad packet error rates (PER).
4433 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
4434 * based on beacon misses from the connected AP.
4435 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
4436 * due to poor RSSI of the connected AP.
4437 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
4438 * upon finding a BSSID with a better RSSI than the connected BSSID.
4439 * Here the RSSI of the current BSSID need not be poor.
4440 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
4441 * by triggering a periodic scan to find a better AP to roam.
4442 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
4443 * when the connected channel environment is too noisy/congested.
4444 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
4445 * when BTM Request frame is received from the connected AP.
4446 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
4447 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07004448 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
4449 * based on the request from the user (space).
4450 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
4451 * device receives Deauthentication/Disassociation frame from connected AP.
4452 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
4453 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
4454 * is determined to be a poor one.
4455 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
4456 * based on continuous TX Data frame failures to the connected AP.
4457 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
4458 * based on the scan results obtained from an external scan (not triggered
4459 * to aim roaming).
Hai Shalomc3565922019-10-28 11:58:20 -07004460 *
4461 * Set the corresponding roam trigger reason bit to consider it for roam
4462 * trigger.
4463 * Userspace can set multiple bits and send to the driver. The driver shall
4464 * consider all of them to trigger/initiate a roam scan.
4465 */
4466enum qca_vendor_roam_triggers {
4467 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
4468 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
4469 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
4470 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
4471 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
4472 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
4473 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
4474 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07004475 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
4476 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
4477 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
4478 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
4479 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Hai Shalomc3565922019-10-28 11:58:20 -07004480};
4481
Hai Shalom60840252021-02-19 19:02:11 -08004482/*
4483 * enum qca_vendor_roam_fail_reasons: Defines the various roam
4484 * fail reasons. This enum value is used in
4485 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
4486 *
4487 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
4488 * able to trigger the scan.
4489 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
4490 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
4491 * scan.
4492 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
4493 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
4494 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
4495 * status code.
4496 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
4497 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
4498 * frame.
4499 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
4500 * with error status code.
4501 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
4502 * received.
4503 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
4504 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
4505 * frame.
4506 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
4507 * internally before transmission.
4508 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
4509 * Request frame.
4510 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
4511 * dropped internally.
4512 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
4513 * times out.
4514 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
4515 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
4516 * internally.
4517 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
4518 * M2 frame.
4519 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
4520 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
4521 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
4522 * internally.
4523 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
4524 * frame.
4525 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
4526 * started for final beacon miss case.
4527 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
4528 * received from the AP during roaming handoff.
4529 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
4530 * or host is suspended and gives the indication of the last roamed AP only
4531 * when the Apps is resumed. If the Apps is resumed while the roaming is in
4532 * progress, this ongoing roaming is aborted and the last roamed AP is
4533 * indicated to host.
4534 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
4535 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
4536 * out.
4537 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
4538 */
4539enum qca_vendor_roam_fail_reasons {
4540 QCA_ROAM_FAIL_REASON_NONE = 0,
4541 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
4542 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
4543 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
4544 QCA_ROAM_FAIL_REASON_HOST = 4,
4545 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
4546 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
4547 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
4548 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
4549 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
4550 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
4551 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
4552 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
4553 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
4554 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
4555 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
4556 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
4557 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
4558 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
4559 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
4560 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
4561 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
4562 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
4563 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
4564 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
4565 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
4566 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
4567 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
4568 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
4569 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
4570};
4571
4572/*
4573 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
4574 * invoke fail reasons. This enum value is used in
4575 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
4576 *
4577 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
4578 * in roam invoke command.
4579 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
4580 * enabled.
4581 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
4582 * length is invalid.
4583 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
4584 * in progress.
4585 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
4586 * of the AP in the roam invoke command to firmware. This reason is sent by the
4587 * firmware when the given AP is configured to be ignored or SSID/security
4588 * does not match.
4589 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
4590 * firmware internal reasons.
4591 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
4592 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
4593 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
4594 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
4595 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
4596 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
4597 */
4598enum qca_vendor_roam_invoke_fail_reasons {
4599 QCA_ROAM_INVOKE_STATUS_NONE = 0,
4600 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
4601 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
4602 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
4603 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
4604 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
4605 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
4606 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
4607 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
4608 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
4609 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
4610 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
4611 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
4612
4613};
4614
Hai Shalomc3565922019-10-28 11:58:20 -07004615/**
4616 * enum qca_vendor_attr_roam_candidate_selection_criteria:
4617 *
4618 * Each attribute carries a weightage in percentage (%).
4619 *
4620 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
4621 * Represents the weightage to be given for the RSSI selection
4622 * criteria among other parameters.
4623 *
4624 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
4625 * Represents the weightage to be given for the rate selection
4626 * criteria among other parameters.
4627 *
4628 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
4629 * Represents the weightage to be given for the band width selection
4630 * criteria among other parameters.
4631 *
4632 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
4633 * Represents the weightage to be given for the band selection
4634 * criteria among other parameters.
4635 *
4636 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
4637 * Represents the weightage to be given for the NSS selection
4638 * criteria among other parameters.
4639 *
4640 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
4641 * Represents the weightage to be given for the channel congestion
4642 * selection criteria among other parameters.
4643 *
4644 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
4645 * Represents the weightage to be given for the beamforming selection
4646 * criteria among other parameters.
4647 *
4648 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
4649 * Represents the weightage to be given for the OCE selection
4650 * criteria among other parameters.
4651 */
4652enum qca_vendor_attr_roam_candidate_selection_criteria {
4653 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
4654 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
4655 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
4656 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
4657 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
4658 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
4659 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
4660 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
4661
4662 /* keep last */
4663 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
4664 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
4665 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
4666};
4667
4668/**
4669 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
4670 * The following attributes are used to set/get/clear the respective
4671 * configurations to/from the driver.
4672 * For the get, the attribute for the configuration to be queried shall
4673 * carry any of its acceptable values to the driver. In return, the driver
4674 * shall send the configured values within the same attribute to the user
4675 * space.
4676 *
4677 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
4678 * Signifies to enable/disable roam control in driver.
4679 * 1-enable, 0-disable
4680 * Enable: Mandates the driver to do the further roams using the
4681 * configuration parameters set through
4682 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
4683 * Disable: Disables the driver/firmware roaming triggered through
4684 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
4685 * expected to continue with the default configurations.
4686 *
4687 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
4688 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
4689 * Roam control status is obtained through this attribute.
4690 *
4691 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
4692 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
4693 * is to be cleared in the driver.
4694 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
4695 * and shall be ignored if used with other sub commands.
4696 * If this attribute is specified along with subcmd
4697 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
4698 * all other attributes, if there are any.
4699 * If this attribute is not specified when the subcmd
4700 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
4701 * clear the data corresponding to the attributes specified.
4702 *
4703 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
4704 * list of frequencies and its type, represented by
4705 * enum qca_vendor_attr_scan_freq_list_scheme.
4706 * Frequency list and its type are mandatory for this attribute to set
4707 * the frequencies.
4708 * Frequency type is mandatory for this attribute to get the frequencies
4709 * and the frequency list is obtained through
4710 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
4711 * Frequency list type is mandatory for this attribute to clear the
4712 * frequencies.
4713 *
4714 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
4715 * Carries the value of scan period in seconds to set.
4716 * The value of scan period is obtained with the same attribute for get.
4717 * Clears the scan period in the driver when specified with clear command.
4718 * Scan period is the idle time in seconds between each subsequent
4719 * channel scans.
4720 *
4721 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
4722 * Carries the value of full scan period in seconds to set.
4723 * The value of full scan period is obtained with the same attribute for
4724 * get.
4725 * Clears the full scan period in the driver when specified with clear
4726 * command. Full scan period is the idle period in seconds between two
4727 * successive full channel roam scans.
4728 *
4729 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
4730 * Carries a bitmap of the roam triggers specified in
4731 * enum qca_vendor_roam_triggers.
4732 * The driver shall enable roaming by enabling corresponding roam triggers
4733 * based on the trigger bits sent with this attribute.
4734 * If this attribute is not configured, the driver shall proceed with
4735 * default behavior.
4736 * The bitmap configured is obtained with the same attribute for get.
4737 * Clears the bitmap configured in driver when specified with clear
4738 * command.
4739 *
4740 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
4741 * weightage in percentage (%) to be given for each selection criteria.
4742 * Different roam candidate selection criteria are represented by
4743 * enum qca_vendor_attr_roam_candidate_selection_criteria.
4744 * The driver shall select the roam candidate based on corresponding
4745 * candidate selection scores sent.
4746 *
4747 * An empty nested attribute is used to indicate that no specific
4748 * preference score/criteria is configured (i.e., to disable this mechanism
4749 * in the set case and to show that the mechanism is disabled in the get
4750 * case).
4751 *
4752 * Userspace can send multiple attributes out of this enum to the driver.
4753 * Since this attribute represents the weight/percentage of preference for
4754 * the respective selection criteria, it is preferred to configure 100%
4755 * total weightage. The value in each attribute or cumulative weight of the
4756 * values in all the nested attributes should not exceed 100%. The driver
4757 * shall reject such configuration.
4758 *
4759 * If the weights configured through this attribute are less than 100%,
4760 * the driver shall honor the weights (x%) passed for the corresponding
4761 * selection criteria and choose/distribute rest of the weight (100-x)%
4762 * for the other selection criteria, based on its internal logic.
4763 *
4764 * The selection criteria configured is obtained with the same
4765 * attribute for get.
4766 *
4767 * Clears the selection criteria configured in the driver when specified
4768 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07004769 *
4770 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
4771 * Represents value of the scan frequency scheme from enum
4772 * qca_roam_scan_scheme.
4773 * It's an optional attribute. If this attribute is not configured, the
4774 * driver shall proceed with default behavior.
4775 *
4776 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
4777 * signifying the RSSI threshold of the current connected AP, indicating
4778 * the driver to trigger roam only when the current connected AP's RSSI
4779 * is less than this threshold.
4780 *
4781 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
4782 * signifying the RSSI threshold of the candidate AP, indicating
4783 * the driver to trigger roam only to the candidate AP with RSSI
Hai Shaloma20dcd72022-02-04 13:43:00 -08004784 * better than this threshold. If RSSI thresholds for candidate APs found
4785 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
4786 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
4787 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
4788 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
4789 * take precedence over the value configured using the
4790 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -07004791 *
4792 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
4793 * user defined reason code to be sent to the AP in response to AP's
4794 * request to trigger the roam if the roaming cannot be triggered.
4795 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
4796 *
4797 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
4798 * Carries a bitmap of the roam triggers specified in
4799 * enum qca_vendor_roam_triggers.
4800 * Represents the roam triggers for which the specific scan scheme from
4801 * enum qca_roam_scan_scheme has to be applied.
4802 * It's an optional attribute. If this attribute is not configured, but
4803 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
4804 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
4805 * all the roams.
4806 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
4807 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
4808 * driver shall proceed with the default behavior.
Hai Shaloma20dcd72022-02-04 13:43:00 -08004809 *
4810 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
4811 * in dBm, signifying the RSSI threshold of the candidate AP found in the
4812 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
4813 * AP found in the 2.4 GHz band only if its RSSI value is better than this
4814 * threshold. Optional attribute. If this attribute is not included, the
4815 * threshold value specified by the
4816 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
4817 *
4818 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
4819 * dBm, signifying the RSSI threshold of the candidate AP found in the 5
4820 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
4821 * found in the 5 GHz band only if its RSSI value is better than this
4822 * threshold. Optional attribute. If this attribute is not included, the
4823 * threshold value specified by tge
4824 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
4825 *
4826 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
4827 * dBm, signifying the RSSI threshold of the candidate AP found in the 6
4828 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
4829 * found in the 6 GHz band only if its RSSI value is better than this
4830 * threshold. Optional attribute. If this attribute is not included, the
4831 * threshold value specified by the
4832 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
4833 *
4834 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
4835 * Carries bitmask value of bits from &enum qca_set_band and represents
4836 * all the bands in which roaming is allowed. The configuration is valid
4837 * until next disconnection. If this attribute is not present, the
4838 * existing configuration shall be used. By default, roaming is allowed on
4839 * all bands supported by the local device. When the value is set to
4840 * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
4841 *
4842 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
4843 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
4844 * bands. If this attribute is not configured, the driver shall proceed
4845 * with default behavior.
4846 *
4847 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
4848 * Optional parameter. Scan dwell time for passive channels in the 5 GHz
4849 * band. If this attribute is not configured, the driver shall proceed with
4850 * default behavior.
4851 *
4852 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
4853 * Optional parameter. The minimum duration to stay on the connected AP
4854 * channel during the channel scanning. If this attribute is not
4855 * configured, the driver shall proceed with default behavior.
4856 *
4857 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
4858 * Optional parameter. The maximum duration for which the radio can scan
4859 * foreign channels consecutively without coming back to home channel. If
4860 * this attribute is not configured, the driver shall proceed with default
4861 * behavior.
4862 *
4863 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
4864 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
4865 * If this attribute is not configured, the driver shall proceed with
4866 * default behavior.
4867 *
4868 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
4869 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning
4870 * Channels. If this attribute is not configured, the driver shall proceed
4871 * with default behavior.
Hai Shalomc3565922019-10-28 11:58:20 -07004872 */
4873enum qca_vendor_attr_roam_control {
4874 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
4875 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
4876 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
4877 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
4878 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
4879 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
4880 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
4881 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07004882 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
4883 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
4884 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
4885 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
4886 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shaloma20dcd72022-02-04 13:43:00 -08004887 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
4888 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
4889 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
4890 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
4891 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
4892 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
4893 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
4894 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
4895 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
4896 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
Hai Shalomc3565922019-10-28 11:58:20 -07004897
4898 /* keep last */
4899 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
4900 QCA_ATTR_ROAM_CONTROL_MAX =
4901 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
4902};
4903
4904/*
4905 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
4906 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
4907 *
4908 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
4909 * Represents the different roam sub commands referred by
4910 * enum qca_wlan_vendor_roaming_subcmd.
4911 *
4912 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
4913 * Represents the Request ID for the specific set of commands.
4914 * This also helps to map specific set of commands to the respective
4915 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07004916 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07004917 * matching ID.
4918 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08004919 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
4920 * 32-bit value. Represents the number of allowlist SSIDs configured.
Hai Shalomc3565922019-10-28 11:58:20 -07004921 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08004922 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
4923 * to carry the list of allowlist SSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07004924 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08004925 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
4926 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs
Hai Shalomc3565922019-10-28 11:58:20 -07004927 * represent the list of SSIDs to which the firmware/driver can consider
4928 * to roam to.
4929 *
4930 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
4931 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
4932 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
4933 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
4934 *
4935 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
4936 * value, RSSI threshold above which 5GHz RSSI is favored.
4937 *
4938 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
4939 * value, RSSI threshold below which 5GHz RSSI is penalized.
4940 *
4941 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
4942 * value, factor by which 5GHz RSSI is boosted.
4943 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
4944 *
4945 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
4946 * value, factor by which 5GHz RSSI is penalized.
4947 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
4948 *
4949 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
4950 * value, maximum boost that can be applied to a 5GHz RSSI.
4951 *
4952 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
4953 * value, boost applied to current BSSID to ensure the currently
4954 * associated BSSID is favored so as to prevent ping-pong situations.
4955 *
4956 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
4957 * value, RSSI below which "Alert" roam is enabled.
4958 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
4959 * because the RSSI is low, or because many successive beacons have been
4960 * lost or other bad link conditions.
4961 *
4962 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
4963 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
Hai Shaloma20dcd72022-02-04 13:43:00 -08004964 * firmware is hunting for a better BSSID or allow listed SSID even though
Hai Shalomc3565922019-10-28 11:58:20 -07004965 * the RSSI of the link is good. The parameters enabling the roaming are
4966 * configured through the PARAM_A_BAND_XX attrbutes.
4967 *
4968 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
4969 * represents the BSSIDs preferred over others while evaluating them
4970 * for the roaming.
4971 *
4972 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
4973 * 32-bit value. Represents the number of preferred BSSIDs set.
4974 *
4975 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
4976 * address representing the BSSID to be preferred.
4977 *
4978 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
4979 * 32-bit value, representing the modifier to be applied to the RSSI of
4980 * the BSSID for the purpose of comparing it with other roam candidate.
4981 *
4982 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07004983 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07004984 *
4985 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07004986 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07004987 *
4988 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07004989 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07004990 *
4991 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07004992 * indicates this request to ignore the BSSID as a hint to the driver. The
4993 * driver can select this BSSID in the worst case (when no other BSSIDs are
4994 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07004995 *
4996 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
4997 * set/get/clear the roam control config as
4998 * defined @enum qca_vendor_attr_roam_control.
4999 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005000enum qca_wlan_vendor_attr_roaming_config_params {
5001 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
5002
5003 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
5004 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
5005
Hai Shaloma20dcd72022-02-04 13:43:00 -08005006 /* Attributes for wifi_set_ssid_allow_list */
5007 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
5008 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
5009 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005010
5011 /* Attributes for set_roam_params */
5012 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
5013 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
5014 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
5015 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
5016 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
5017 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
5018 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
5019
5020 /* Attribute for set_lazy_roam */
5021 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
5022
5023 /* Attribute for set_lazy_roam with preferences */
5024 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
5025 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
5026 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
5027 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
5028
Hai Shalom899fcc72020-10-19 14:38:18 -07005029 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005030 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
5031 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
5032 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07005033 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07005034 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005035
Hai Shalomc3565922019-10-28 11:58:20 -07005036 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
5037
Dmitry Shmidt29333592017-01-09 12:27:11 -08005038 /* keep last */
5039 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
5040 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
5041 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
5042};
5043
Hai Shaloma20dcd72022-02-04 13:43:00 -08005044/* old names for API compatibility */
5045#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
5046 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
5047#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
5048 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
5049#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
5050 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
5051
Dmitry Shmidt29333592017-01-09 12:27:11 -08005052/*
Hai Shalomc3565922019-10-28 11:58:20 -07005053 * enum qca_wlan_vendor_roaming_subcmd: Referred by
5054 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
5055 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005056 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
5057 * configure the allow list SSIDs. These are configured through
Hai Shalomc3565922019-10-28 11:58:20 -07005058 * the following attributes.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005059 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
5060 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
5061 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
Hai Shalomc3565922019-10-28 11:58:20 -07005062 *
5063 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
5064 * configure the Roam params. These parameters are evaluated on the GScan
5065 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
5066 * params.
5067 *
5068 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
5069 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
5070 * to enable/disable Lazy roam.
5071 *
5072 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
5073 * preference. Contains the attribute
5074 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
5075 * preference.
5076 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08005077 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
Hai Shalom899fcc72020-10-19 14:38:18 -07005078 * to ignore in roaming decision. Uses
5079 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07005080 *
5081 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
5082 * roam control config to the driver with the attribute
5083 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5084 *
5085 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
5086 * roam control config from driver with the attribute
5087 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5088 * For the get, the attribute for the configuration to be queried shall
5089 * carry any of its acceptable value to the driver. In return, the driver
5090 * shall send the configured values within the same attribute to the user
5091 * space.
5092 *
5093 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
5094 * roam control config in the driver with the attribute
5095 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5096 * The driver shall continue with its default roaming behavior when data
5097 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005098 */
Hai Shalomc3565922019-10-28 11:58:20 -07005099enum qca_wlan_vendor_roaming_subcmd {
5100 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005101 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
Hai Shalomc3565922019-10-28 11:58:20 -07005102 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
5103 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
5104 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
5105 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005106 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
Hai Shalomc3565922019-10-28 11:58:20 -07005107 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
5108 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
5109 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005110};
5111
Hai Shaloma20dcd72022-02-04 13:43:00 -08005112/* old names for API compatibility */
5113#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
5114 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
5115#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
5116 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
5117
Dmitry Shmidt29333592017-01-09 12:27:11 -08005118enum qca_wlan_vendor_attr_gscan_config_params {
5119 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
5120
5121 /* Unsigned 32-bit value */
5122 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
5123
5124 /* Attributes for data used by
5125 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
5126 */
5127 /* Unsigned 32-bit value */
5128 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
5129 = 2,
5130 /* Unsigned 32-bit value */
5131 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
5132 = 3,
5133
5134 /* Attributes for input params used by
5135 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
5136 */
5137
5138 /* Unsigned 32-bit value; channel frequency */
5139 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
5140 /* Unsigned 32-bit value; dwell time in ms. */
5141 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
5142 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
5143 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
5144 /* Unsigned 8-bit value; channel class */
5145 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
5146
5147 /* Unsigned 8-bit value; bucket index, 0 based */
5148 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
5149 /* Unsigned 8-bit value; band. */
5150 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
5151 /* Unsigned 32-bit value; desired period, in ms. */
5152 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
5153 /* Unsigned 8-bit value; report events semantics. */
5154 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
5155 /* Unsigned 32-bit value. Followed by a nested array of
5156 * GSCAN_CHANNEL_SPEC_* attributes.
5157 */
5158 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
5159
5160 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
5161 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5162 */
5163 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
5164
5165 /* Unsigned 32-bit value; base timer period in ms. */
5166 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
5167 /* Unsigned 32-bit value; number of APs to store in each scan in the
5168 * BSSID/RSSI history buffer (keep the highest RSSI APs).
5169 */
5170 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
5171 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
5172 * up AP.
5173 */
5174 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
5175 = 16,
5176
5177 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
5178 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
5179 * of the array is determined by NUM_BUCKETS.
5180 */
5181 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
5182
5183 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
5184 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
5185 */
5186 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
5187
5188 /* Unsigned 8-bit value */
5189 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
5190 = 19,
5191 /* Unsigned 32-bit value; maximum number of results to be returned. */
5192 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
5193 = 20,
5194
5195 /* An array of 6 x unsigned 8-bit value */
5196 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
5197 /* Signed 32-bit value */
5198 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
5199 /* Signed 32-bit value */
5200 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
5201 /* Unsigned 32-bit value */
5202 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
5203
5204 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
5205 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
5206 * array is determined by NUM_AP.
5207 */
5208 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
5209
5210 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
5211 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5212 */
5213 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
5214
5215 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
5216 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
5217 = 27,
5218 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
5219 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
5220 = 28,
5221 /* Unsigned 32-bit value; number of APs breaching threshold. */
5222 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
5223 /* Unsigned 32-bit value; number of APs. Followed by an array of
5224 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
5225 */
5226 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
5227 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
5228 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
5229 = 31,
5230 /* Unsigned 32-bit value. If max_period is non zero or different than
5231 * period, then this bucket is an exponential backoff bucket.
5232 */
5233 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
5234 /* Unsigned 32-bit value. */
5235 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
5236 /* Unsigned 32-bit value. For exponential back off bucket, number of
5237 * scans to perform for a given period.
5238 */
5239 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
5240 /* Unsigned 8-bit value; in number of scans, wake up AP after these
5241 * many scans.
5242 */
5243 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
5244 = 35,
5245
5246 /* Attributes for data used by
5247 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
5248 */
5249 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
5250 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
5251 = 36,
5252 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
5253 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
5254 * size of the array is determined by NUM_SSID.
5255 */
5256 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
5257 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
5258 * attributes.
5259 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
5260 */
5261 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
5262
5263 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5264 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
5265 /* Unsigned 8-bit value */
5266 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
5267 /* Signed 32-bit value */
5268 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
5269 /* Signed 32-bit value */
5270 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
5271 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
5272 */
5273 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
5274
5275 /* keep last */
5276 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
5277 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
5278 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
5279};
5280
5281enum qca_wlan_vendor_attr_gscan_results {
5282 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
5283
5284 /* Unsigned 32-bit value; must match the request Id supplied by
5285 * Wi-Fi HAL in the corresponding subcmd NL msg.
5286 */
5287 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
5288
5289 /* Unsigned 32-bit value; used to indicate the status response from
5290 * firmware/driver for the vendor sub-command.
5291 */
5292 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
5293
5294 /* GSCAN Valid Channels attributes */
5295 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
5296 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
5297 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
5298 * representing channel numbers.
5299 */
5300 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
5301
5302 /* GSCAN Capabilities attributes */
5303 /* Unsigned 32-bit value */
5304 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
5305 /* Unsigned 32-bit value */
5306 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
5307 /* Unsigned 32-bit value */
5308 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
5309 = 7,
5310 /* Unsigned 32-bit value */
5311 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
5312 = 8,
5313 /* Signed 32-bit value */
5314 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
5315 = 9,
5316 /* Unsigned 32-bit value */
5317 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
5318 /* Unsigned 32-bit value */
5319 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
5320 = 11,
5321 /* Unsigned 32-bit value */
5322 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
5323 = 12,
5324
5325 /* GSCAN Attributes used with
5326 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
5327 */
5328
5329 /* Unsigned 32-bit value */
5330 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
5331
5332 /* GSCAN attributes used with
5333 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
5334 */
5335
5336 /* An array of NUM_RESULTS_AVAILABLE x
5337 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
5338 */
5339 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
5340
5341 /* Unsigned 64-bit value; age of sample at the time of retrieval */
5342 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
5343 /* 33 x unsigned 8-bit value; NULL terminated SSID */
5344 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
5345 /* An array of 6 x unsigned 8-bit value */
5346 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
5347 /* Unsigned 32-bit value; channel frequency in MHz */
5348 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
5349 /* Signed 32-bit value */
5350 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
5351 /* Unsigned 32-bit value */
5352 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
5353 /* Unsigned 32-bit value */
5354 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
5355 /* Unsigned 16-bit value */
5356 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
5357 /* Unsigned 16-bit value */
5358 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
5359 /* Unsigned 32-bit value; size of the IE DATA blob */
5360 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
5361 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
5362 * information elements found in the beacon; this data should be a
5363 * packed list of wifi_information_element objects, one after the
5364 * other.
5365 */
5366 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
5367
5368 /* Unsigned 8-bit value; set by driver to indicate more scan results are
5369 * available.
5370 */
5371 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
5372
5373 /* GSCAN attributes for
5374 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
5375 */
5376 /* Unsigned 8-bit value */
5377 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
5378 /* Unsigned 32-bit value */
5379 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
5380
5381 /* GSCAN attributes for
5382 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
5383 */
5384 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5385 * to indicate number of results.
5386 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5387 * list of results.
5388 */
5389
5390 /* GSCAN attributes for
5391 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
5392 */
5393 /* An array of 6 x unsigned 8-bit value */
5394 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
5395 /* Unsigned 32-bit value */
5396 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
5397 = 30,
5398 /* Unsigned 32-bit value. */
5399 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
5400 = 31,
5401 /* A nested array of signed 32-bit RSSI values. Size of the array is
5402 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
5403 */
5404 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
5405 = 32,
5406
5407 /* GSCAN attributes used with
5408 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
5409 */
5410 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5411 * to indicate number of gscan cached results returned.
5412 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
5413 * the list of gscan cached results.
5414 */
5415
5416 /* An array of NUM_RESULTS_AVAILABLE x
5417 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
5418 */
5419 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
5420 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
5421 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
5422 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
5423 */
5424 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
5425 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5426 * to indicate number of wifi scan results/bssids retrieved by the scan.
5427 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5428 * list of wifi scan results returned for each cached result block.
5429 */
5430
5431 /* GSCAN attributes for
5432 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
5433 */
5434 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
5435 * number of results.
5436 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5437 * list of wifi scan results returned for each
5438 * wifi_passpoint_match_result block.
5439 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
5440 */
5441
5442 /* GSCAN attributes for
5443 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
5444 */
5445 /* Unsigned 32-bit value */
5446 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
5447 = 36,
5448 /* A nested array of
5449 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
5450 * attributes. Array size =
5451 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
5452 */
5453 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
5454
5455 /* Unsigned 32-bit value; network block id for the matched network */
5456 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
5457 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5458 * list of wifi scan results returned for each
5459 * wifi_passpoint_match_result block.
5460 */
5461 /* Unsigned 32-bit value */
5462 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
5463 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
5464 * ANQP data in the information_element format.
5465 */
5466 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
5467
5468 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5469 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
5470 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5471 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
5472 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5473 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
5474 = 43,
5475 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
Hai Shaloma20dcd72022-02-04 13:43:00 -08005476 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
Dmitry Shmidt29333592017-01-09 12:27:11 -08005477 = 44,
5478
5479 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
5480
Hai Shalomce48b4a2018-09-05 11:41:35 -07005481 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
5482 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07005483 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
Hai Shaloma20dcd72022-02-04 13:43:00 -08005484 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07005485 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
5486 */
Hai Shaloma20dcd72022-02-04 13:43:00 -08005487 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
Hai Shalomce48b4a2018-09-05 11:41:35 -07005488
Dmitry Shmidt29333592017-01-09 12:27:11 -08005489 /* keep last */
5490 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
5491 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
5492 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
5493};
5494
Hai Shaloma20dcd72022-02-04 13:43:00 -08005495/* old names for API compatibility */
5496#define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
5497 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
5498#define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
5499 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
5500
Dmitry Shmidt29333592017-01-09 12:27:11 -08005501enum qca_wlan_vendor_attr_pno_config_params {
5502 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
5503 /* Attributes for data used by
5504 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
5505 */
5506 /* Unsigned 32-bit value */
5507 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
5508 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
5509 * attributes. Array size =
5510 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
5511 */
5512 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
5513
5514 /* Unsigned 32-bit value */
5515 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
5516 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
5517 * realm, 0 if unspecified.
5518 */
5519 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
5520 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
5521 * match, 0 if unspecified.
5522 */
5523 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
5524 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
5525 * unspecified.
5526 */
5527 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
5528
5529 /* Attributes for data used by
5530 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
5531 */
5532 /* Unsigned 32-bit value */
5533 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
5534 /* Array of nested
5535 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
5536 * attributes. Array size =
5537 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
5538 */
5539 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
5540 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5541 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
5542 /* Signed 8-bit value; threshold for considering this SSID as found,
5543 * required granularity for this threshold is 4 dBm to 8 dBm.
5544 */
5545 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
5546 = 10,
5547 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
5548 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
5549 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
5550 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
5551 /* Unsigned 8-bit to indicate ePNO type;
5552 * It takes values from qca_wlan_epno_type
5553 */
5554 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
5555
5556 /* Nested attribute to send the channel list */
5557 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
5558
5559 /* Unsigned 32-bit value; indicates the interval between PNO scan
5560 * cycles in msec.
5561 */
5562 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
5563 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
5564 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
5565 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
5566 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
5567 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
5568 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
5569 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005570 /* Unsigned 32-bit value, representing the PNO Request ID */
5571 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005572
5573 /* keep last */
5574 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
5575 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
5576 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
5577};
5578
Paul Stewart092955c2017-02-06 09:13:09 -08005579/**
5580 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
5581 * the ACS has to be triggered. These values are used by
5582 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
5583 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
5584 */
5585enum qca_wlan_vendor_acs_select_reason {
5586 /* Represents the reason that the ACS triggered during the AP start */
5587 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
5588 /* Represents the reason that DFS found with the current channel */
5589 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
5590 /* Represents the reason that LTE co-exist in the current band. */
5591 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07005592 /* Represents the reason that generic, uncategorized interference has
5593 * been found in the current channel.
5594 */
5595 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
5596 /* Represents the reason that excessive 802.11 interference has been
5597 * found in the current channel.
5598 */
5599 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
5600 /* Represents the reason that generic Continuous Wave (CW) interference
5601 * has been found in the current channel.
5602 */
5603 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
5604 /* Represents the reason that Microwave Oven (MWO) interference has been
5605 * found in the current channel.
5606 */
5607 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
5608 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
5609 * (FHSS) interference has been found in the current channel. This may
5610 * include 802.11 waveforms.
5611 */
5612 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
5613 /* Represents the reason that non-802.11 generic Frequency-Hopping
5614 * Spread Spectrum (FHSS) interference has been found in the current
5615 * channel.
5616 */
5617 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
5618 /* Represents the reason that generic Wideband (WB) interference has
5619 * been found in the current channel. This may include 802.11 waveforms.
5620 */
5621 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
5622 /* Represents the reason that non-802.11 generic Wideband (WB)
5623 * interference has been found in the current channel.
5624 */
5625 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
5626 /* Represents the reason that Jammer interference has been found in the
5627 * current channel.
5628 */
5629 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Paul Stewart092955c2017-02-06 09:13:09 -08005630};
5631
5632/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005633 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
5634 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
5635 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
5636 * external ACS policies to select the channels w.r.t. the PCL weights.
5637 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
5638 * their PCL weights.)
5639 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
5640 * select a channel with non-zero PCL weight.
5641 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
5642 * channel with non-zero PCL weight.
5643 *
5644 */
5645enum qca_wlan_vendor_attr_external_acs_policy {
5646 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
5647 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
5648};
5649
5650/**
Paul Stewart092955c2017-02-06 09:13:09 -08005651 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
5652 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
5653 */
5654enum qca_wlan_vendor_channel_prop_flags {
5655 /* Bits 0, 1, 2, and 3 are reserved */
5656
5657 /* Turbo channel */
5658 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
5659 /* CCK channel */
5660 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
5661 /* OFDM channel */
5662 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
5663 /* 2.4 GHz spectrum channel. */
5664 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
5665 /* 5 GHz spectrum channel */
5666 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
5667 /* Only passive scan allowed */
5668 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
5669 /* Dynamic CCK-OFDM channel */
5670 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
5671 /* GFSK channel (FHSS PHY) */
5672 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
5673 /* Radar found on channel */
5674 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
5675 /* 11a static turbo channel only */
5676 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
5677 /* Half rate channel */
5678 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
5679 /* Quarter rate channel */
5680 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
5681 /* HT 20 channel */
5682 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
5683 /* HT 40 with extension channel above */
5684 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
5685 /* HT 40 with extension channel below */
5686 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
5687 /* HT 40 intolerant */
5688 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
5689 /* VHT 20 channel */
5690 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
5691 /* VHT 40 with extension channel above */
5692 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
5693 /* VHT 40 with extension channel below */
5694 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
5695 /* VHT 80 channel */
5696 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
5697 /* HT 40 intolerant mark bit for ACS use */
5698 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
5699 /* Channel temporarily blocked due to noise */
5700 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
5701 /* VHT 160 channel */
5702 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
5703 /* VHT 80+80 channel */
5704 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005705 /* HE 20 channel */
5706 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
5707 /* HE 40 with extension channel above */
5708 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
5709 /* HE 40 with extension channel below */
5710 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
5711 /* HE 40 intolerant */
5712 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
5713};
5714
5715/**
5716 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
5717 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
5718 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
5719 */
5720enum qca_wlan_vendor_channel_prop_flags_2 {
5721 /* HE 40 intolerant mark bit for ACS use */
5722 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
5723 /* HE 80 channel */
5724 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
5725 /* HE 160 channel */
5726 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
5727 /* HE 80+80 channel */
5728 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08005729};
5730
5731/**
5732 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
5733 * each channel. This is used by
5734 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
5735 */
5736enum qca_wlan_vendor_channel_prop_flags_ext {
5737 /* Radar found on channel */
5738 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
5739 /* DFS required on channel */
5740 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
5741 /* DFS required on channel for 2nd band of 80+80 */
5742 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
5743 /* If channel has been checked for DFS */
5744 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
5745 /* Excluded in 802.11d */
5746 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
5747 /* Channel Switch Announcement received on this channel */
5748 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
5749 /* Ad-hoc is not allowed */
5750 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
5751 /* Station only channel */
5752 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07005753 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08005754 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07005755 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08005756 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
5757};
5758
5759/**
5760 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5761 * information. These attributes are sent as part of
5762 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5763 * attributes correspond to a single channel.
5764 */
5765enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5766 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5767
5768 /* A bitmask (u32) with flags specified in
5769 * enum qca_wlan_vendor_channel_prop_flags.
5770 */
5771 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5772 /* A bitmask (u32) with flags specified in
5773 * enum qca_wlan_vendor_channel_prop_flags_ext.
5774 */
5775 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5776 /* frequency in MHz (u32) */
5777 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5778 /* maximum regulatory transmission power (u32) */
5779 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5780 /* maximum transmission power (u32) */
5781 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5782 /* minimum transmission power (u32) */
5783 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5784 /* regulatory class id (u8) */
5785 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5786 /* maximum antenna gain in (u8) */
5787 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5788 /* VHT segment 0 (u8) */
5789 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5790 /* VHT segment 1 (u8) */
5791 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005792 /* A bitmask (u32) with flags specified in
5793 * enum qca_wlan_vendor_channel_prop_flags_2.
5794 */
5795 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08005796
Hai Shalomc3565922019-10-28 11:58:20 -07005797 /*
5798 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5799 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5800 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5801 * along with
5802 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5803 *
5804 * If both the driver and user-space application supports the 6 GHz
5805 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5806 * is deprecated and
5807 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5808 * should be used.
5809 *
5810 * To maintain backward compatibility,
5811 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5812 * is still used if either of the driver or user space application
5813 * doesn't support the 6 GHz band.
5814 */
5815 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
5816
5817 /*
5818 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5819 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5820 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5821 * along with
5822 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5823 *
5824 * If both the driver and user-space application supports the 6 GHz
5825 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5826 * is deprecated and
5827 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5828 * should be considered.
5829 *
5830 * To maintain backward compatibility,
5831 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5832 * is still used if either of the driver or user space application
5833 * doesn't support the 6 GHz band.
5834 */
5835 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
5836
Paul Stewart092955c2017-02-06 09:13:09 -08005837 /* keep last */
5838 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5839 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5840 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5841};
5842
5843/**
5844 * qca_wlan_vendor_attr_pcl: Represents attributes for
5845 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07005846 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5847 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08005848 */
5849enum qca_wlan_vendor_attr_pcl {
5850 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5851
5852 /* Channel number (u8) */
5853 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
5854 /* Channel weightage (u8) */
5855 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005856 /* Channel frequency (u32) in MHz */
5857 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
5858 /* Channel flags (u32)
5859 * bit 0 set: channel to be used for GO role,
5860 * bit 1 set: channel to be used on CLI role,
5861 * bit 2 set: channel must be considered for operating channel
5862 * selection & peer chosen operating channel should be
5863 * one of the channels with this flag set,
5864 * bit 3 set: channel should be excluded in GO negotiation
5865 */
5866 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Paul Stewart092955c2017-02-06 09:13:09 -08005867};
5868
5869/**
5870 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
5871 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
5872 * host driver.
5873 */
5874enum qca_wlan_vendor_attr_external_acs_event {
5875 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
5876
5877 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
5878 * This helps ACS module to understand why ACS needs to be started.
5879 */
5880 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
5881 /* Flag attribute to indicate if driver supports spectral scanning */
5882 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
5883 /* Flag attribute to indicate if 11ac is offloaded to firmware */
5884 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
5885 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07005886 * capability as part of scan operation
5887 */
Paul Stewart092955c2017-02-06 09:13:09 -08005888 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
5889 /* Flag attribute to indicate interface status is UP */
5890 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
5891 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07005892 * values.
5893 */
Paul Stewart092955c2017-02-06 09:13:09 -08005894 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
5895 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
5896 * This is the upper bound of channel width. ACS logic should try to get
5897 * a channel with the specified width and if not found, look for lower
5898 * values.
5899 */
5900 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
5901 /* This (u8) will hold values of one of enum nl80211_bands */
5902 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
5903 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07005904 * values
5905 */
Paul Stewart092955c2017-02-06 09:13:09 -08005906 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
5907 /* Array of (u32) supported frequency list among which ACS should choose
5908 * best frequency.
5909 */
5910 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
5911 /* Preferred channel list by the driver which will have array of nested
5912 * values as per enum qca_wlan_vendor_attr_pcl attribute.
5913 */
5914 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
5915 /* Array of nested attribute for each channel. It takes attr as defined
5916 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
5917 */
5918 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005919 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
5920 * It uses values defined in enum
5921 * qca_wlan_vendor_attr_external_acs_policy.
5922 */
5923 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005924 /* Reference RF Operating Parameter (RROP) availability information
5925 * (u16). It uses values defined in enum
5926 * qca_wlan_vendor_attr_rropavail_info.
5927 */
5928 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Paul Stewart092955c2017-02-06 09:13:09 -08005929
5930 /* keep last */
5931 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
5932 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
5933 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
5934};
5935
5936/**
Hai Shalomc3565922019-10-28 11:58:20 -07005937 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08005938 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
5939 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07005940 *
5941 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
5942 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
5943 *
5944 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
5945 * Array of nested values for each channel with following attributes:
5946 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
5947 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
5948 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
5949 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
5950 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
5951 * Note: If both the driver and user-space application supports the 6 GHz band,
5952 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
5953 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
5954 * To maintain backward compatibility,
5955 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
5956 * is still used if either of the driver or user space application doesn't
5957 * support the 6 GHz band.
5958 *
5959 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
5960 * Primary channel number
5961 * Note: If both the driver and user-space application supports the 6 GHz band,
5962 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
5963 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
5964 * To maintain backward compatibility,
5965 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
5966 * is still used if either of the driver or user space application doesn't
5967 * support the 6 GHz band.
5968 *
5969 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
5970 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
5971 * Note: If both the driver and user-space application supports the 6 GHz band,
5972 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
5973 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
5974 * To maintain backward compatibility,
5975 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
5976 * is still used if either of the driver or user space application
5977 * doesn't support the 6 GHz band.
5978 *
5979 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
5980 * VHT seg0 channel number
5981 * Note: If both the driver and user-space application supports the 6 GHz band,
5982 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
5983 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
5984 * To maintain backward compatibility,
5985 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
5986 * is still used if either of the driver or user space application
5987 * doesn't support the 6 GHz band.
5988 *
5989 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
5990 * VHT seg1 channel number
5991 * Note: If both the driver and user-space application supports the 6 GHz band,
5992 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
5993 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
5994 * To maintain backward compatibility,
5995 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
5996 * is still used if either of the driver or user space application
5997 * doesn't support the 6 GHz band.
5998 *
5999 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
6000 * Takes one of enum nl80211_chan_width values.
6001 *
6002 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
6003 * Array of nested values for each channel with following attributes:
6004 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
6005 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
6006 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
6007 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
6008 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6009 * Note: If user-space application has no support of the 6 GHz band, this
6010 * attribute is optional.
6011 *
6012 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
6013 * Primary channel frequency in MHz
6014 * Note: If user-space application has no support of the 6 GHz band, this
6015 * attribute is optional.
6016 *
6017 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
6018 * Secondary channel frequency in MHz used for HT 40 MHz channels.
6019 * Note: If user-space application has no support of the 6 GHz band, this
6020 * attribute is optional.
6021 *
6022 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
6023 * VHT seg0 channel frequency in MHz
6024 * Note: If user-space application has no support of the 6GHz band, this
6025 * attribute is optional.
6026 *
6027 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
6028 * VHT seg1 channel frequency in MHz
6029 * Note: If user-space application has no support of the 6 GHz band, this
6030 * attribute is optional.
Paul Stewart092955c2017-02-06 09:13:09 -08006031 */
6032enum qca_wlan_vendor_attr_external_acs_channels {
6033 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
6034
6035 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
6036 */
6037 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
6038
6039 /* Array of nested values for each channel with following attributes:
6040 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
6041 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6042 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6043 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6044 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6045 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6046 */
6047 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
6048 /* This (u8) will hold values of one of enum nl80211_bands */
6049 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
6050 /* Primary channel (u8) */
6051 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
6052 /* Secondary channel (u8) used for HT 40 MHz channels */
6053 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
6054 /* VHT seg0 channel (u8) */
6055 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
6056 /* VHT seg1 channel (u8) */
6057 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
6058 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
6059 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
6060
Hai Shalomc3565922019-10-28 11:58:20 -07006061 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
6062 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
6063 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
6064 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
6065 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
6066
Paul Stewart092955c2017-02-06 09:13:09 -08006067 /* keep last */
6068 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
6069 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
6070 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
6071};
6072
6073enum qca_chip_power_save_failure_reason {
6074 /* Indicates if the reason for the failure is due to a protocol
6075 * layer/module.
6076 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006077 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08006078 /* Indicates if the reason for the failure is due to a hardware issue.
6079 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006080 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006081};
6082
6083/**
6084 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
6085 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
6086 * information leading to the power save failure.
6087 */
6088enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07006089 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
6090 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08006091 * These reasons are represented by
6092 * enum qca_chip_power_save_failure_reason.
6093 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006094 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006095
Roshan Pius3a1667e2018-07-03 15:17:14 -07006096 /* keep last */
6097 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
6098 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
6099 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
6100};
6101
6102/**
6103 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
6104 * data types for which the stats have to get collected.
6105 */
6106enum qca_wlan_vendor_nud_stats_data_pkt_flags {
6107 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
6108 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
6109 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
6110 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
6111 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
6112 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
6113 * to represent the stats of respective data type.
6114 */
6115 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
6116 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
6117 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
6118};
6119
6120enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
6121 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
6122 /* Represents the data packet type to be monitored (u32).
6123 * Host driver tracks the stats corresponding to each data frame
6124 * represented by these flags.
6125 * These data packets are represented by
6126 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
6127 */
6128 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
6129 /* Name corresponding to the DNS frame for which the respective DNS
6130 * stats have to get monitored (string). Max string length 255.
6131 */
6132 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
6133 /* source port on which the respective proto stats have to get
6134 * collected (u32).
6135 */
6136 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
6137 /* destination port on which the respective proto stats have to get
6138 * collected (u32).
6139 */
6140 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
6141 /* IPv4 address for which the destined data packets have to be
6142 * monitored. (in network byte order), u32.
6143 */
6144 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
6145 /* IPv6 address for which the destined data packets have to be
6146 * monitored. (in network byte order), 16 bytes array.
6147 */
6148 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
6149
6150 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
6151 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
6152 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08006153};
6154
6155/**
6156 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
6157 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
6158 * information to start/stop the NUD statistics collection.
6159 */
6160enum qca_attr_nud_stats_set {
6161 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
6162
6163 /* Flag to start/stop the NUD statistics collection.
6164 * Start - If included, Stop - If not included
6165 */
6166 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006167 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08006168 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006169 /* Represents the list of data packet types to be monitored.
6170 * Host driver tracks the stats corresponding to each data frame
6171 * represented by these flags.
6172 * These data packets are represented by
6173 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
6174 */
6175 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08006176
6177 /* keep last */
6178 QCA_ATTR_NUD_STATS_SET_LAST,
6179 QCA_ATTR_NUD_STATS_SET_MAX =
6180 QCA_ATTR_NUD_STATS_SET_LAST - 1,
6181};
6182
Roshan Pius3a1667e2018-07-03 15:17:14 -07006183enum qca_attr_nud_data_stats {
6184 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
6185 /* Data packet type for which the stats are collected (u32).
6186 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
6187 */
6188 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
6189 /* Name corresponding to the DNS frame for which the respective DNS
6190 * stats are monitored (string). Max string length 255.
6191 */
6192 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
6193 /* source port on which the respective proto stats are collected (u32).
6194 */
6195 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
6196 /* destination port on which the respective proto stats are collected
6197 * (u32).
6198 */
6199 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
6200 /* IPv4 address for which the destined data packets have to be
6201 * monitored. (in network byte order), u32.
6202 */
6203 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
6204 /* IPv6 address for which the destined data packets have to be
6205 * monitored. (in network byte order), 16 bytes array.
6206 */
6207 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
6208 /* Data packet Request count received from netdev (u32). */
6209 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
6210 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
6211 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
6212 /* Data packet Request count received by lower MAC from upper MAC
6213 * (u32)
6214 */
6215 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
6216 /* Data packet Request count successfully transmitted by the device
6217 * (u32)
6218 */
6219 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
6220 /* Data packet Response count received by lower MAC (u32) */
6221 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
6222 /* Data packet Response count received by upper MAC (u32) */
6223 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
6224 /* Data packet Response count delivered to netdev (u32) */
6225 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
6226 /* Data Packet Response count that are dropped out of order (u32) */
6227 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
6228
6229 /* keep last */
6230 QCA_ATTR_NUD_DATA_STATS_LAST,
6231 QCA_ATTR_NUD_DATA_STATS_MAX =
6232 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
6233};
6234
Paul Stewart092955c2017-02-06 09:13:09 -08006235/**
6236 * qca_attr_nud_stats_get: Attributes to vendor subcmd
6237 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
6238 * NUD statistics collected when queried.
6239 */
6240enum qca_attr_nud_stats_get {
6241 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006242 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006243 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006244 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006245 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006246 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006247 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006248 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006249 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006250 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006251 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006252 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006253 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006254 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006255 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006256 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08006257 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
6258 /* Flag indicating if the station's link to the AP is active.
6259 * Active Link - If included, Inactive link - If not included
6260 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006261 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08006262 /* Flag indicating if there is any duplicate address detected (DAD).
6263 * Yes - If detected, No - If not detected.
6264 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006265 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006266 /* List of Data packet types for which the stats are requested.
6267 * This list does not carry ARP stats as they are done by the
6268 * above attributes. Represented by enum qca_attr_nud_data_stats.
6269 */
6270 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08006271
6272 /* keep last */
6273 QCA_ATTR_NUD_STATS_GET_LAST,
6274 QCA_ATTR_NUD_STATS_GET_MAX =
6275 QCA_ATTR_NUD_STATS_GET_LAST - 1,
6276};
6277
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006278enum qca_wlan_btm_candidate_status {
6279 QCA_STATUS_ACCEPT = 0,
6280 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
6281 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
6282 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
6283 QCA_STATUS_REJECT_LOW_RSSI = 4,
6284 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
6285 QCA_STATUS_REJECT_UNKNOWN = 6,
6286};
6287
6288enum qca_wlan_vendor_attr_btm_candidate_info {
6289 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
6290
6291 /* 6-byte MAC address representing the BSSID of transition candidate */
6292 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
6293 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
6294 * returned by the driver. It says whether the BSSID provided in
6295 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
6296 * the driver, if not it specifies the reason for rejection.
6297 * Note that the user-space can overwrite the transition reject reason
6298 * codes provided by driver based on more information.
6299 */
6300 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
6301
6302 /* keep last */
6303 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
6304 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
6305 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
6306};
6307
6308enum qca_attr_trace_level {
6309 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
6310 /*
6311 * Nested array of the following attributes:
6312 * QCA_ATTR_TRACE_LEVEL_MODULE,
6313 * QCA_ATTR_TRACE_LEVEL_MASK.
6314 */
6315 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
6316 /*
6317 * Specific QCA host driver module. Please refer to the QCA host
6318 * driver implementation to get the specific module ID.
6319 */
6320 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
6321 /* Different trace level masks represented in the QCA host driver. */
6322 QCA_ATTR_TRACE_LEVEL_MASK = 3,
6323
6324 /* keep last */
6325 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
6326 QCA_ATTR_TRACE_LEVEL_MAX =
6327 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
6328};
6329
6330/**
6331 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
6332 */
6333enum qca_wlan_vendor_attr_get_he_capabilities {
6334 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
6335 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07006336 * (u8 attribute: 0 = not supported, 1 = supported)
6337 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006338 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
6339 /* HE PHY capabilities, array of 3 u32 values */
6340 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
6341 /* HE MAC capabilities (u32 attribute) */
6342 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
6343 /* HE MCS map (u32 attribute) */
6344 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
6345 /* Number of SS (u32 attribute) */
6346 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
6347 /* RU count (u32 attribute) */
6348 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
6349 /* PPE threshold data, array of 8 u32 values */
6350 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
6351
6352 /* keep last */
6353 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
6354 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
6355 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
6356};
6357
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006358/**
6359 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6360 */
6361enum qca_wlan_vendor_attr_spectral_scan {
6362 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6363 /* Number of times the chip enters spectral scan mode before
6364 * deactivating spectral scans. When set to 0, chip will enter spectral
6365 * scan mode continuously. u32 attribute.
6366 */
6367 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6368 /* Spectral scan period. Period increment resolution is 256*Tclk,
6369 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6370 */
6371 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6372 /* Spectral scan priority. u32 attribute. */
6373 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6374 /* Number of FFT data points to compute. u32 attribute. */
6375 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6376 /* Enable targeted gain change before starting the spectral scan FFT.
6377 * u32 attribute.
6378 */
6379 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6380 /* Restart a queued spectral scan. u32 attribute. */
6381 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6382 /* Noise floor reference number for the calculation of bin power.
6383 * u32 attribute.
6384 */
6385 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6386 /* Disallow spectral scan triggers after TX/RX packets by setting
6387 * this delay value to roughly SIFS time period or greater.
6388 * u32 attribute.
6389 */
6390 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6391 /* Number of strong bins (inclusive) per sub-channel, below
6392 * which a signal is declared a narrow band tone. u32 attribute.
6393 */
6394 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6395 /* Specify the threshold over which a bin is declared strong (for
6396 * scan bandwidth analysis). u32 attribute.
6397 */
6398 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6399 /* Spectral scan report mode. u32 attribute. */
6400 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6401 /* RSSI report mode, if the ADC RSSI is below
6402 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6403 * then FFTs will not trigger, but timestamps and summaries get
6404 * reported. u32 attribute.
6405 */
6406 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6407 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
6408 * to ensure spectral scan reporting with normal error code.
6409 * u32 attribute.
6410 */
6411 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6412 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
6413 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6414 * u32 attribute.
6415 */
6416 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6417 /* Format of FFT report to software for spectral scan triggered FFTs.
6418 * 0: No FFT report (only spectral scan summary report)
6419 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6420 * report
6421 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6422 * bins (in-band) per FFT + spectral scan summary report
6423 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6424 * bins (all) per FFT + spectral scan summary report
6425 * u32 attribute.
6426 */
6427 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6428 /* Number of LSBs to shift out in order to scale the FFT bins.
6429 * u32 attribute.
6430 */
6431 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6432 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6433 * in dBm power. u32 attribute.
6434 */
6435 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6436 /* Per chain enable mask to select input ADC for search FFT.
6437 * u32 attribute.
6438 */
6439 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6440 /* An unsigned 64-bit integer provided by host driver to identify the
6441 * spectral scan request. This attribute is included in the scan
6442 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6443 * and used as an attribute in
6444 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6445 * specific scan to be stopped.
6446 */
6447 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006448 /* Skip interval for FFT reports. u32 attribute */
6449 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6450 /* Set to report only one set of FFT results.
6451 * u32 attribute.
6452 */
6453 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6454 /* Debug level for spectral module in driver.
6455 * 0 : Verbosity level 0
6456 * 1 : Verbosity level 1
6457 * 2 : Verbosity level 2
6458 * 3 : Matched filterID display
6459 * 4 : One time dump of FFT report
6460 * u32 attribute.
6461 */
6462 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6463 /* Type of spectral scan request. u32 attribute.
6464 * It uses values defined in enum
6465 * qca_wlan_vendor_attr_spectral_scan_request_type.
6466 */
6467 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07006468 /* This specifies the frequency span over which spectral
6469 * scan would be carried out. Its value depends on the
6470 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6471 * the relation is as follows.
6472 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6473 * Not applicable. Spectral scan would happen in the
6474 * operating span.
6475 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6476 * Center frequency (in MHz) of the span of interest or
6477 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07006478 * in the span of interest. For 80+80 MHz agile spectral scan
6479 * request it represents center frequency (in MHz) of the primary
6480 * 80 MHz span or for convenience, center frequency (in MHz) of any
6481 * channel in the primary 80 MHz span. If agile spectral scan is
6482 * initiated without setting a valid frequency it returns the
6483 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07006484 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
6485 * u32 attribute.
6486 */
6487 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
6488 /* Spectral scan mode. u32 attribute.
6489 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6490 * If this attribute is not present, it is assumed to be
6491 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
6492 */
6493 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
6494 /* Spectral scan error code. u32 attribute.
6495 * It uses values defined in enum
6496 * qca_wlan_vendor_spectral_scan_error_code.
6497 * This attribute is included only in failure scenarios.
6498 */
6499 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
6500 /* 8-bit unsigned value to enable/disable debug of the
6501 * Spectral DMA ring.
6502 * 1-enable, 0-disable
6503 */
6504 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
6505 /* 8-bit unsigned value to enable/disable debug of the
6506 * Spectral DMA buffers.
6507 * 1-enable, 0-disable
6508 */
6509 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07006510 /* This specifies the frequency span over which spectral scan would be
6511 * carried out. Its value depends on the value of
6512 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
6513 * follows.
6514 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6515 * Not applicable. Spectral scan would happen in the operating span.
6516 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6517 * This attribute is applicable only for agile spectral scan
6518 * requests in 80+80 MHz mode. It represents center frequency (in
6519 * MHz) of the secondary 80 MHz span or for convenience, center
6520 * frequency (in MHz) of any channel in the secondary 80 MHz span.
6521 * u32 attribute.
6522 */
6523 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006524 /* This attribute specifies the bandwidth to be used for spectral scan
6525 * operation. This is an u8 attribute and uses the values in enum
6526 * nl80211_chan_width. This is an optional attribute.
6527 * If this attribute is not populated, the driver should configure the
6528 * spectral scan bandwidth to the maximum value supported by the target
6529 * for the current operating bandwidth.
6530 */
6531 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006532
6533 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
6534 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
6535 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
6536};
6537
Roshan Pius3a1667e2018-07-03 15:17:14 -07006538/**
6539 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
6540 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
6541 */
6542enum qca_wlan_vendor_attr_spectral_diag_stats {
6543 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
6544 /* Number of spectral TLV signature mismatches.
6545 * u64 attribute.
6546 */
6547 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
6548 /* Number of spectral phyerror events with insufficient length when
6549 * parsing for secondary 80 search FFT report. u64 attribute.
6550 */
6551 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
6552 /* Number of spectral phyerror events without secondary 80
6553 * search FFT report. u64 attribute.
6554 */
6555 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
6556 /* Number of spectral phyerror events with vht operation segment 1 id
6557 * mismatches in search fft report. u64 attribute.
6558 */
6559 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
6560 /* Number of spectral phyerror events with vht operation segment 2 id
6561 * mismatches in search fft report. u64 attribute.
6562 */
6563 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
6564
6565 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
6566 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
6567 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
6568};
6569
6570/**
6571 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
6572 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
6573 */
6574enum qca_wlan_vendor_attr_spectral_cap {
6575 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
6576 /* Flag attribute to indicate phydiag capability */
6577 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
6578 /* Flag attribute to indicate radar detection capability */
6579 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
6580 /* Flag attribute to indicate spectral capability */
6581 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
6582 /* Flag attribute to indicate advanced spectral capability */
6583 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
6584 /* Spectral hardware generation. u32 attribute.
6585 * It uses values defined in enum
6586 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
6587 */
6588 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08006589 /* Spectral bin scaling formula ID. u16 attribute.
6590 * It uses values defined in enum
6591 * qca_wlan_vendor_spectral_scan_cap_formula_id.
6592 */
6593 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
6594 /* Spectral bin scaling param - low level offset.
6595 * s16 attribute.
6596 */
6597 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
6598 /* Spectral bin scaling param - high level offset.
6599 * s16 attribute.
6600 */
6601 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
6602 /* Spectral bin scaling param - RSSI threshold.
6603 * s16 attribute.
6604 */
6605 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
6606 /* Spectral bin scaling param - default AGC max gain.
6607 * u8 attribute.
6608 */
6609 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07006610 /* Flag attribute to indicate agile spectral scan capability
6611 * for 20/40/80 MHz modes.
6612 */
Hai Shalom81f62d82019-07-22 12:10:00 -07006613 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07006614 /* Flag attribute to indicate agile spectral scan capability
6615 * for 160 MHz mode.
6616 */
6617 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
6618 /* Flag attribute to indicate agile spectral scan capability
6619 * for 80+80 MHz mode.
6620 */
6621 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07006622 /* Number of spectral detectors used for scan in 20 MHz.
6623 * u32 attribute.
6624 */
6625 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
6626 /* Number of spectral detectors used for scan in 40 MHz.
6627 * u32 attribute.
6628 */
6629 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
6630 /* Number of spectral detectors used for scan in 80 MHz.
6631 * u32 attribute.
6632 */
6633 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
6634 /* Number of spectral detectors used for scan in 160 MHz.
6635 * u32 attribute.
6636 */
6637 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
6638 /* Number of spectral detectors used for scan in 80+80 MHz.
6639 * u32 attribute.
6640 */
6641 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006642 /* Flag attribute to indicate agile spectral scan capability
6643 * for 320 MHz mode.
6644 */
6645 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
6646 /* Number of spectral detectors used for scan in 320 MHz.
6647 * u32 attribute.
6648 */
6649 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006650
6651 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
6652 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
6653 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
6654};
6655
6656/**
6657 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
6658 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
6659 */
6660enum qca_wlan_vendor_attr_spectral_scan_status {
6661 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
6662 /* Flag attribute to indicate whether spectral scan is enabled */
6663 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
6664 /* Flag attribute to indicate whether spectral scan is in progress*/
6665 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07006666 /* Spectral scan mode. u32 attribute.
6667 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6668 * If this attribute is not present, normal mode
6669 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
6670 * requested.
6671 */
6672 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006673
6674 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
6675 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
6676 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
6677};
6678
6679/**
6680 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
6681 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
6682 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
6683 * spectral scan request types.
6684 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
6685 * set the spectral parameters and start scan.
6686 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
6687 * only set the spectral parameters.
6688 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
6689 * only start the spectral scan.
6690 */
6691enum qca_wlan_vendor_attr_spectral_scan_request_type {
6692 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
6693 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
6694 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
6695};
6696
6697/**
Hai Shalom81f62d82019-07-22 12:10:00 -07006698 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
6699 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
6700 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
6701 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
6702 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
6703 * spectral scan modes.
6704 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
6705 * spectral scan in the current operating span.
6706 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
6707 * spectral scan in the configured agile span.
6708 */
6709enum qca_wlan_vendor_spectral_scan_mode {
6710 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
6711 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
6712};
6713
6714/**
6715 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
6716 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
6717 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
6718 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
6719 * of a parameter is not supported.
6720 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
6721 * mode is not supported.
6722 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
6723 * has invalid value.
6724 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
6725 * is not initialized.
6726 */
6727enum qca_wlan_vendor_spectral_scan_error_code {
6728 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
6729 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
6730 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
6731 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
6732};
6733
6734/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07006735 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
6736 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
6737 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6738 * spectral hardware generation.
6739 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
6740 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
6741 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
6742 */
6743enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
6744 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
6745 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
6746 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
6747};
6748
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006749enum qca_wlan_vendor_tos {
6750 QCA_WLAN_VENDOR_TOS_BK = 0,
6751 QCA_WLAN_VENDOR_TOS_BE = 1,
6752 QCA_WLAN_VENDOR_TOS_VI = 2,
6753 QCA_WLAN_VENDOR_TOS_VO = 3,
6754};
6755
6756/**
6757 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
6758 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
6759 */
6760enum qca_wlan_vendor_attr_active_tos {
6761 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
6762 /* Type Of Service - Represented by qca_wlan_vendor_tos */
6763 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
6764 /* Flag attribute representing the start (attribute included) or stop
6765 * (attribute not included) of the respective TOS.
6766 */
6767 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
6768};
6769
6770enum qca_wlan_vendor_hang_reason {
6771 /* Unspecified reason */
6772 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
6773 /* No Map for the MAC entry for the received frame */
6774 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
6775 /* Peer deletion timeout happened */
6776 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
6777 /* Peer unmap timeout */
6778 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
6779 /* Scan request timed out */
6780 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
6781 /* Consecutive Scan attempt failures */
6782 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
6783 /* Unable to get the message buffer */
6784 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
6785 /* Current command processing is timedout */
6786 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
6787 /* Timeout for an ACK from FW for suspend request */
6788 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
6789 /* Timeout for an ACK from FW for resume request */
6790 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
6791 /* Transmission timeout for consecutive data frames */
6792 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
6793 /* Timeout for the TX completion status of data frame */
6794 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
6795 /* DXE failure for TX/RX, DXE resource unavailability */
6796 QCA_WLAN_HANG_DXE_FAILURE = 12,
6797 /* WMI pending commands exceed the maximum count */
6798 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07006799 /* Timeout for peer STA connection accept command's response from the
6800 * FW in AP mode. This command is triggered when a STA (peer) connects
6801 * to AP (DUT).
6802 */
6803 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
6804 /* Timeout for the AP connection accept command's response from the FW
6805 * in STA mode. This command is triggered when the STA (DUT) connects
6806 * to an AP (peer).
6807 */
6808 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
6809 /* Timeout waiting for the response to the MAC HW mode change command
6810 * sent to FW as a part of MAC mode switch among DBS (Dual Band
6811 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
6812 * Channel Concurrency) mode.
6813 */
6814 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
6815 /* Timeout waiting for the response from FW to configure the MAC HW's
6816 * mode. This operation is to configure the single/two MACs in either
6817 * SCC/MCC/DBS mode.
6818 */
6819 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
6820 /* Timeout waiting for response of VDEV start command from the FW */
6821 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
6822 /* Timeout waiting for response of VDEV restart command from the FW */
6823 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
6824 /* Timeout waiting for response of VDEV stop command from the FW */
6825 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
6826 /* Timeout waiting for response of VDEV delete command from the FW */
6827 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
6828 /* Timeout waiting for response of peer all delete request command to
6829 * the FW on a specific VDEV.
6830 */
6831 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08006832 /* WMI sequence mismatch between WMI command and Tx completion */
6833 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
6834 /* Write to Device HAL register failed */
6835 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
6836 /* No credit left to send the wow_wakeup_from_sleep to firmware */
6837 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
6838 /* Bus failure */
6839 QCA_WLAN_HANG_BUS_FAILURE = 26,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006840 /* tasklet/credit latency found */
6841 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006842};
6843
6844/**
6845 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
6846 * QCA_NL80211_VENDOR_SUBCMD_HANG.
6847 */
6848enum qca_wlan_vendor_attr_hang {
6849 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
6850 /* Reason for the hang - u32 attribute with a value from enum
6851 * qca_wlan_vendor_hang_reason.
6852 */
6853 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07006854 /* The binary blob data associated with the hang reason specified by
6855 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
6856 * contain the required dump to analyze the reason for the hang.
6857 * NLA_BINARY attribute, the max size is 1024 bytes.
6858 */
6859 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006860
6861 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
6862 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
6863 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
6864};
6865
Roshan Pius3a1667e2018-07-03 15:17:14 -07006866/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08006867 * enum qca_wlan_vendor_flush_pending_policy: Represents values for
6868 * the policy to flush pending frames, configured via
6869 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
6870 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
6871 *
6872 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
6873 * the flush policy configured before. This command basically disables the
6874 * flush config set by the user.
6875 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
6876 * the flush policy to be immediate. All pending packets for the peer/TID are
6877 * flushed when this command/policy is received.
6878 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
6879 * the flush policy to the end of TWT SP. All pending packets for the peer/TID
6880 * are flushed when the end of TWT SP is reached.
6881 */
6882enum qca_wlan_vendor_flush_pending_policy {
6883 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
6884 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
6885 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
6886};
6887
6888/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07006889 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
6890 * flushing pending traffic in firmware.
6891 *
6892 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
6893 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
6894 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
6895 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
Hai Shaloma20dcd72022-02-04 13:43:00 -08006896 * flush packets with access category. This is optional. See below.
6897 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
6898 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
6899 * bit to 1 to act upon the TID. This is optional. Either this attribute or
6900 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
6901 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
6902 * it is an error.
6903 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
6904 * packets corresponding to the peer/TID provided. It is a u32 value,
6905 * represented by %enum qca_wlan_vendor_flush_pending_policy. This
6906 * value is honored only when TID mask is provided. This is not honored when AC
6907 * mask is provided.
Roshan Pius3a1667e2018-07-03 15:17:14 -07006908 */
6909enum qca_wlan_vendor_attr_flush_pending {
6910 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
6911 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
6912 QCA_WLAN_VENDOR_ATTR_AC = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006913 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
6914 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006915
6916 /* keep last */
6917 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
6918 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
6919 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
6920};
6921
6922/**
Hai Shalom74f70d42019-02-11 14:42:39 -08006923 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
6924 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
6925 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6926 * Spectral bin scaling formula ID.
6927 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
6928 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
6929 * and RSSI threshold based formula.
6930 */
6931enum qca_wlan_vendor_spectral_scan_cap_formula_id {
6932 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
6933 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
6934};
6935
6936/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07006937 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
6938 * RF Operating Parameter (RROP) information is available, and if so, at which
6939 * point in the application-driver interaction sequence it can be retrieved by
6940 * the application from the driver. This point may vary by architecture and
6941 * other factors. This is a u16 value.
6942 */
6943enum qca_wlan_vendor_attr_rropavail_info {
6944 /* RROP information is unavailable. */
6945 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
6946 /* RROP information is available and the application can retrieve the
6947 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
6948 * event from the driver.
6949 */
6950 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
6951 /* RROP information is available only after a vendor specific scan
6952 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
6953 * successfully completed. The application can retrieve the information
6954 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
6955 * the driver.
6956 */
6957 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
6958};
6959
6960/**
6961 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
6962 * Representative RF Operating Parameter (RROP) information. It is sent for the
6963 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
6964 * intended for use by external Auto Channel Selection applications. It provides
6965 * guidance values for some RF parameters that are used by the system during
6966 * operation. These values could vary by channel, band, radio, and so on.
6967 */
6968enum qca_wlan_vendor_attr_rrop_info {
6969 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
6970
6971 /* Representative Tx Power List (RTPL) which has an array of nested
6972 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
6973 */
6974 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
6975
6976 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
6977 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
6978 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
6979};
6980
6981/**
6982 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
6983 * entry instances in the Representative Tx Power List (RTPL). It provides
6984 * simplified power values intended for helping external Auto channel Selection
6985 * applications compare potential Tx power performance between channels, other
6986 * operating conditions remaining identical. These values are not necessarily
6987 * the actual Tx power values that will be used by the system. They are also not
6988 * necessarily the max or average values that will be used. Instead, they are
6989 * relative, summarized keys for algorithmic use computed by the driver or
6990 * underlying firmware considering a number of vendor specific factors.
6991 */
6992enum qca_wlan_vendor_attr_rtplinst {
6993 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
6994
Hai Shalomfdcde762020-04-02 11:19:20 -07006995 /* Primary channel number (u8).
6996 * Note: If both the driver and user space application support the
6997 * 6 GHz band, this attribute is deprecated and
6998 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
6999 * maintain backward compatibility,
7000 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
7001 * driver or user space application or both do not support the 6 GHz
7002 * band.
7003 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007004 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
7005 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
7006 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
7007 /* Representative Tx power in dBm (s32) with emphasis on range. */
7008 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07007009 /* Primary channel center frequency (u32) in MHz */
7010 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007011
7012 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
7013 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
7014 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
7015};
7016
7017/**
7018 * enum qca_wlan_vendor_attr_config_latency_level - Level for
7019 * wlan latency module.
7020 *
7021 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
7022 * power saving which would causing data exchange out of service, this
7023 * would be a big impact on latency. For latency sensitive applications over
7024 * Wi-Fi are intolerant to such operations and thus would configure them
7025 * to meet their respective needs. It is well understood by such applications
7026 * that altering the default behavior would degrade the Wi-Fi functionality
7027 * w.r.t the above pointed WLAN operations.
7028 *
7029 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
7030 * Default WLAN operation level which throughput orientated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08007031 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
7032 * Use XR level to benefit XR (extended reality) application to achieve
7033 * latency and power by via constraint scan/roaming/adaptive PS.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007034 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
7035 * Use low latency level to benifit application like concurrent
7036 * downloading or video streaming via constraint scan/adaptive PS.
7037 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
7038 * Use ultra low latency level to benefit for gaming/voice
7039 * application via constraint scan/roaming/adaptive PS.
7040 */
7041enum qca_wlan_vendor_attr_config_latency_level {
7042 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
7043 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007044 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
7045 /* legacy name */
7046 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
7047 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007048 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
7049 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
7050
7051 /* keep last */
7052 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
7053 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
7054 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
7055};
7056
7057/**
7058 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
7059 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7060 */
7061enum qca_wlan_vendor_attr_mac {
7062 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
7063
7064 /* MAC mode info list which has an array of nested values as
7065 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
7066 */
7067 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
7068
7069 /* keep last */
7070 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
7071 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
7072 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
7073};
7074
7075/**
7076 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
7077 * Wi-Fi netdev interface on a respective MAC.
7078 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
7079 */
7080enum qca_wlan_vendor_attr_mac_iface_info {
7081 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
7082 /* Wi-Fi netdev's interface index (u32) */
7083 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
7084 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
7085 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
7086
7087 /* keep last */
7088 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
7089 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
7090 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
7091};
7092
7093/**
7094 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
7095 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
7096 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7097 */
7098enum qca_wlan_vendor_attr_mac_info {
7099 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
7100 /* Hardware MAC ID associated for the MAC (u32) */
7101 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
7102 /* Band supported by the MAC at a given point.
7103 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
7104 * nl80211_band.
7105 */
7106 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
7107 /* Refers to list of WLAN netdev interfaces associated with this MAC.
7108 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
7109 */
7110 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
7111
7112 /* keep last */
7113 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
7114 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
7115 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
7116};
7117
7118/**
7119 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
7120 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
7121 */
7122enum qca_wlan_vendor_attr_get_logger_features {
7123 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
7124 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
7125 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
7126 /* keep last */
7127 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
7128 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
7129 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
7130};
7131
7132/**
7133 * enum wifi_logger_supported_features - Values for supported logger features
7134 */
7135enum wifi_logger_supported_features {
7136 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
7137 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
7138 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
7139 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
7140 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
7141 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
7142 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
7143 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
7144 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
7145};
7146
7147/**
7148 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
7149 * capabilities features
7150 */
7151enum qca_wlan_tdls_caps_features_supported {
7152 WIFI_TDLS_SUPPORT = (1 << (0)),
7153 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
7154 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
7155};
7156
7157/**
7158 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
7159 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
7160 */
7161enum qca_wlan_vendor_attr_tdls_get_capabilities {
7162 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
7163 /* Indicates the max concurrent sessions */
7164 /* Unsigned 32-bit value */
7165 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
7166 /* Indicates the support for features */
7167 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
7168 */
7169 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
7170
7171 /* keep last */
7172 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
7173 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
7174 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
7175};
7176
7177/**
7178 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
7179 * command used as value for the attribute
7180 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
7181 */
7182enum qca_wlan_offloaded_packets_sending_control {
7183 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
7184 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
7185 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
7186};
7187
7188/**
7189 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
7190 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
7191 */
7192enum qca_wlan_vendor_attr_offloaded_packets {
7193 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
7194 /* Takes valid value from the enum
7195 * qca_wlan_offloaded_packets_sending_control
7196 * Unsigned 32-bit value
7197 */
7198 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
7199 /* Unsigned 32-bit value */
7200 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
7201 /* array of u8 len: Max packet size */
7202 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
7203 /* 6-byte MAC address used to represent source MAC address */
7204 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
7205 /* 6-byte MAC address used to represent destination MAC address */
7206 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
7207 /* Unsigned 32-bit value, in milli seconds */
7208 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07007209 /* This optional unsigned 16-bit attribute is used for specifying
7210 * ethernet protocol type. If not specified ethertype defaults to IPv4.
7211 */
7212 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007213
7214 /* keep last */
7215 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
7216 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
7217 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
7218};
7219
7220/**
7221 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
7222 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
7223 */
7224enum qca_wlan_rssi_monitoring_control {
7225 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
7226 QCA_WLAN_RSSI_MONITORING_START,
7227 QCA_WLAN_RSSI_MONITORING_STOP,
7228};
7229
7230/**
7231 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
7232 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
7233 */
7234enum qca_wlan_vendor_attr_rssi_monitoring {
7235 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
7236 /* Takes valid value from the enum
7237 * qca_wlan_rssi_monitoring_control
7238 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
7239 */
7240 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
7241 /* Unsigned 32-bit value */
7242 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
7243 /* Signed 8-bit value in dBm */
7244 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
7245 /* Signed 8-bit value in dBm */
7246 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
7247 /* attributes to be used/received in callback */
7248 /* 6-byte MAC address used to represent current BSSID MAC address */
7249 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
7250 /* Signed 8-bit value indicating the current RSSI */
7251 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
7252 /* keep last */
7253 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
7254 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
7255 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
7256};
7257
7258/**
7259 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
7260 * QCA_NL80211_VENDOR_SUBCMD_NDP.
7261 */
7262enum qca_wlan_vendor_attr_ndp_params {
7263 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
7264 /* Unsigned 32-bit value
7265 * enum of sub commands values in qca_wlan_ndp_sub_cmd
7266 */
7267 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
7268 /* Unsigned 16-bit value */
7269 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
7270 /* NL attributes for data used NDP SUB cmds */
7271 /* Unsigned 32-bit value indicating a service info */
7272 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
7273 /* Unsigned 32-bit value; channel frequency in MHz */
7274 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
7275 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
7276 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
7277 /* Interface name on which NDP is being created */
7278 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
7279 /* Unsigned 32-bit value for security */
7280 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
7281 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
7282 /* Unsigned 32-bit value for QoS */
7283 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
7284 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
7285 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
7286 /* Unsigned 32-bit value for NDP instance Id */
7287 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
7288 /* Array of instance Ids */
7289 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
7290 /* Unsigned 32-bit value for initiator/responder NDP response code
7291 * accept/reject
7292 */
7293 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
7294 /* NDI MAC address. An array of 6 Unsigned int8 */
7295 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
7296 /* Unsigned 32-bit value errors types returned by driver
7297 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7298 * NanStatusType includes these values.
7299 */
7300 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
7301 /* Unsigned 32-bit value error values returned by driver
7302 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
7303 * NanInternalStatusType includes these values.
7304 */
7305 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
7306 /* Unsigned 32-bit value for Channel setup configuration
7307 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7308 * NanDataPathChannelCfg includes these values.
7309 */
7310 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
7311 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
7312 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
7313 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
7314 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
7315 /* Security Context Identifier that contains the PMKID
7316 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
7317 */
7318 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
7319 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
7320 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
7321 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
7322 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
7323 /* Unsigned 32-bit bitmap indicating schedule update
7324 * BIT_0: NSS Update
7325 * BIT_1: Channel list update
7326 */
7327 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
7328 /* Unsigned 32-bit value for NSS */
7329 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
7330 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
7331 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
7332 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
7333 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
7334 */
7335 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
7336 /* Array of channel/band width */
7337 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
7338 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
7339 * This attribute is used and optional for ndp request, ndp response,
7340 * ndp indication, and ndp confirm.
7341 */
7342 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
7343 /* Unsigned 16-bit value indicating transport port used by NDP.
7344 * This attribute is used and optional for ndp response, ndp indication,
7345 * and ndp confirm.
7346 */
7347 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
7348 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
7349 * the Internet Assigned Numbers Authority (IANA) as per:
7350 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
7351 * This attribute is used and optional for ndp response, ndp indication,
7352 * and ndp confirm.
7353 */
7354 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08007355 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
7356 * 1:support 0:not support
7357 */
7358 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007359
7360 /* keep last */
7361 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
7362 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
7363 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
7364};
7365
7366enum qca_wlan_ndp_sub_cmd {
7367 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
7368 /* Command to create a NAN data path interface */
7369 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
7370 /* Command to delete a NAN data path interface */
7371 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
7372 /* Command to initiate a NAN data path session */
7373 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
7374 /* Command to notify if the NAN data path session was sent */
7375 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
7376 /* Command to respond to NAN data path session */
7377 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
7378 /* Command to notify on the responder about the response */
7379 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
7380 /* Command to initiate a NAN data path end */
7381 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
7382 /* Command to notify the if end request was sent */
7383 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
7384 /* Command to notify the peer about the end request */
7385 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
7386 /* Command to confirm the NAN data path session is complete */
7387 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
7388 /* Command to indicate the peer about the end request being received */
7389 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
7390 /* Command to indicate the peer of schedule update */
7391 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
7392};
7393
7394/**
7395 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
7396 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
7397 */
7398enum qca_wlan_vendor_attr_nd_offload {
7399 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
7400 /* Flag to set Neighbour Discovery offload */
7401 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
7402 /* Keep last */
7403 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
7404 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
7405 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
7406};
7407
7408/**
7409 * enum packet_filter_sub_cmd - Packet filter sub commands
7410 */
7411enum packet_filter_sub_cmd {
7412 /**
7413 * Write packet filter program and/or data. The driver/firmware should
7414 * disable APF before writing into local buffer and re-enable APF after
7415 * writing is done.
7416 */
7417 QCA_WLAN_SET_PACKET_FILTER = 1,
7418 /* Get packet filter feature capabilities from driver */
7419 QCA_WLAN_GET_PACKET_FILTER = 2,
7420 /**
7421 * Write packet filter program and/or data. User space will send the
7422 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
7423 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
7424 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
7425 * enable/disable is given to user space with this command. Also,
7426 * user space sends the length of program portion in the buffer within
7427 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
7428 */
7429 QCA_WLAN_WRITE_PACKET_FILTER = 3,
7430 /* Read packet filter program and/or data */
7431 QCA_WLAN_READ_PACKET_FILTER = 4,
7432 /* Enable APF feature */
7433 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
7434 /* Disable APF feature */
7435 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
7436};
7437
7438/**
7439 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
7440 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
7441 */
7442enum qca_wlan_vendor_attr_packet_filter {
7443 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
7444 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
7445 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
7446 /* Unsigned 32-bit value indicating the packet filter version */
7447 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
7448 /* Unsigned 32-bit value indicating the packet filter id */
7449 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
7450 /**
7451 * Unsigned 32-bit value indicating the packet filter size including
7452 * program + data.
7453 */
7454 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
7455 /* Unsigned 32-bit value indicating the packet filter current offset */
7456 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
7457 /* Program and/or data in bytes */
7458 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
7459 /* Unsigned 32-bit value of the length of the program section in packet
7460 * filter buffer.
7461 */
7462 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
7463
7464 /* keep last */
7465 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
7466 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
7467 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
7468};
7469
7470/**
7471 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
7472 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
7473 */
7474enum qca_wlan_vendor_drv_info {
7475 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
7476 /* Maximum Message size info between firmware & HOST
7477 * Unsigned 32-bit value
7478 */
7479 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
7480 /* keep last */
7481 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
7482 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
7483 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
7484};
7485
7486/**
7487 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
7488 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
7489 */
7490enum qca_wlan_vendor_attr_wake_stats {
7491 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
7492 /* Unsigned 32-bit value indicating the total count of wake event */
7493 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
7494 /* Array of individual wake count, each index representing wake reason
7495 */
7496 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
7497 /* Unsigned 32-bit value representing wake count array */
7498 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
7499 /* Unsigned 32-bit total wake count value of driver/fw */
7500 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
7501 /* Array of wake stats of driver/fw */
7502 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
7503 /* Unsigned 32-bit total wake count value of driver/fw */
7504 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
7505 /* Unsigned 32-bit total wake count value of packets received */
7506 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
7507 /* Unsigned 32-bit wake count value unicast packets received */
7508 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
7509 /* Unsigned 32-bit wake count value multicast packets received */
7510 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
7511 /* Unsigned 32-bit wake count value broadcast packets received */
7512 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
7513 /* Unsigned 32-bit wake count value of ICMP packets */
7514 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
7515 /* Unsigned 32-bit wake count value of ICMP6 packets */
7516 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
7517 /* Unsigned 32-bit value ICMP6 router advertisement */
7518 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
7519 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
7520 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
7521 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
7522 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
7523 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
7524 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
7525 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
7526 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
7527 /* Unsigned 32-bit wake count value of receive side multicast */
7528 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
7529 /* Unsigned 32-bit wake count value of a given RSSI breach */
7530 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
7531 /* Unsigned 32-bit wake count value of low RSSI */
7532 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
7533 /* Unsigned 32-bit value GSCAN count */
7534 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
7535 /* Unsigned 32-bit value PNO complete count */
7536 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
7537 /* Unsigned 32-bit value PNO match count */
7538 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
7539 /* keep last */
7540 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
7541 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
7542 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
7543};
7544
7545/**
Hai Shalomfdcde762020-04-02 11:19:20 -07007546 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07007547 * configured by userspace to the driver/firmware.
7548 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
7549 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07007550 * The driver/firmware takes actions requested by userspace such as throttling
7551 * wifi TX etc. in order to mitigate high temperature.
7552 *
7553 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
7554 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
7555 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
7556 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
7557 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
7558 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
7559 */
7560enum qca_wlan_vendor_thermal_level {
7561 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
7562 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
7563 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
7564 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
7565 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
7566 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
7567};
7568
7569/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007570 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
7571 * cmd value. Used for NL attributes for data used by
7572 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7573 */
7574enum qca_wlan_vendor_attr_thermal_cmd {
7575 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
7576 /* The value of command, driver will implement different operations
7577 * according to this value. It uses values defined in
7578 * enum qca_wlan_vendor_attr_thermal_cmd_type.
7579 * u32 attribute.
7580 */
7581 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07007582 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07007583 * driver/firmware, or get thermal level from the driver/firmware.
7584 * Used in request or response, u32 attribute,
7585 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07007586 */
7587 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
7588 /* Userspace uses this attribute to configure the time in which the
7589 * driver/firmware should complete applying settings it received from
7590 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
7591 * command type. Used in request, u32 attribute, value is in
7592 * milliseconds. A value of zero indicates to apply the settings
7593 * immediately. The driver/firmware can delay applying the configured
7594 * thermal settings within the time specified in this attribute if
7595 * there is any critical ongoing operation.
7596 */
7597 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007598 /* Nested attribute, the driver/firmware uses this attribute to report
7599 * thermal statistics of different thermal levels to userspace when
7600 * requested using the
7601 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
7602 * type. This attribute contains a nested array of records of thermal
7603 * statistics of multiple levels. The attributes used inside this nested
7604 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
7605 */
7606 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007607
7608 /* keep last */
7609 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
7610 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
7611 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
7612};
7613
7614/**
7615 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
7616 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
7617 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
7618 * thermal command types sent to driver.
7619 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
7620 * get thermal shutdown configuration parameters for display. Parameters
7621 * responded from driver are defined in
7622 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
7623 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
7624 * get temperature. Host should respond with a temperature data. It is defined
7625 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
7626 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
7627 * suspend action.
7628 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
7629 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07007630 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
7631 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07007632 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
7633 * thermal level from the driver/firmware. The driver should respond with a
7634 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Hai Shaloma20dcd72022-02-04 13:43:00 -08007635 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
7636 * current thermal statistics from the driver/firmware. The driver should
7637 * respond with statistics of all thermal levels encapsulated in the attribute
7638 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
7639 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
7640 * the current thermal statistics for all thermal levels maintained in the
7641 * driver/firmware and start counting from zero again.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007642 */
7643enum qca_wlan_vendor_attr_thermal_cmd_type {
7644 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
7645 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
7646 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
7647 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07007648 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07007649 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Hai Shaloma20dcd72022-02-04 13:43:00 -08007650 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
7651 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007652};
7653
7654/**
7655 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
7656 * to get chip temperature by user.
7657 * enum values are used for NL attributes for data used by
7658 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
7659 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7660 */
7661enum qca_wlan_vendor_attr_thermal_get_temperature {
7662 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
7663 /* Temperature value (degree Celsius) from driver.
7664 * u32 attribute.
7665 */
7666 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
7667
7668 /* keep last */
7669 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
7670 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
7671 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
7672};
7673
7674/**
7675 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
7676 * to get configuration parameters of thermal shutdown feature. Enum values are
7677 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
7678 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7679 */
7680enum qca_wlan_vendor_attr_get_thermal_params_rsp {
7681 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
7682 /* Indicate if the thermal shutdown feature is enabled.
7683 * NLA_FLAG attribute.
7684 */
7685 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
7686 /* Indicate if the auto mode is enabled.
7687 * Enable: Driver triggers the suspend/resume action.
7688 * Disable: User space triggers the suspend/resume action.
7689 * NLA_FLAG attribute.
7690 */
7691 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
7692 /* Thermal resume threshold (degree Celsius). Issue the resume command
7693 * if the temperature value is lower than this threshold.
7694 * u16 attribute.
7695 */
7696 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
7697 /* Thermal warning threshold (degree Celsius). FW reports temperature
7698 * to driver if it's higher than this threshold.
7699 * u16 attribute.
7700 */
7701 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
7702 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
7703 * if the temperature value is higher than this threshold.
7704 * u16 attribute.
7705 */
7706 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
7707 /* FW reports temperature data periodically at this interval (ms).
7708 * u16 attribute.
7709 */
7710 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
7711
7712 /* keep last */
7713 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
7714 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
7715 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
7716};
7717
7718/**
7719 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
7720 * report thermal events from driver to user space.
7721 * enum values are used for NL attributes for data used by
7722 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
7723 */
7724enum qca_wlan_vendor_attr_thermal_event {
7725 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
7726 /* Temperature value (degree Celsius) from driver.
7727 * u32 attribute.
7728 */
7729 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
7730 /* Indication of resume completion from power save mode.
7731 * NLA_FLAG attribute.
7732 */
7733 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07007734 /* Thermal level from the driver.
7735 * u32 attribute. Possible values are defined in
7736 * enum qca_wlan_vendor_thermal_level.
7737 */
7738 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007739
7740 /* keep last */
7741 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
7742 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
7743 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
7744};
7745
7746/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08007747 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
7748 * to get thermal status from the driver/firmware.
7749 * enum values are used for NL attributes encapsulated inside the
7750 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
7751 *
7752 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
7753 * of a thermal level in Celsius. u32 size.
7754 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
7755 * of a thermal level in Celsius. u32 size.
7756 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
7757 * thermal level in milliseconds. u32 size.
7758 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
7759 * of times the temperature crossed into the temperature range defined by the
7760 * thermal level from both higher and lower directions. u32 size.
7761 */
7762enum qca_wlan_vendor_attr_thermal_stats {
7763 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
7764 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
7765 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
7766 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
7767 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
7768
7769 /* keep last */
7770 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
7771 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
7772 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
7773};
7774
7775/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007776 * enum he_fragmentation_val - HE fragmentation support values
7777 * Indicates level of dynamic fragmentation that is supported by
7778 * a STA as a recipient.
7779 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
7780 * (HE MAC Capabilities Information field) and are used in HE Capabilities
7781 * element to advertise the support. These values are validated in the driver
7782 * to check the device capability and advertised in the HE Capabilities
7783 * element. These values are used to configure testbed device to allow the
7784 * advertised hardware capabilities to be downgraded for testing purposes.
7785 *
7786 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
7787 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
7788 * contained within an MPDU or S-MPDU, no support for dynamic fragments
7789 * within an A-MPDU that is not an S-MPDU.
7790 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
7791 * contained within an MPDU or S-MPDU and support for up to one dynamic
7792 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
7793 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
7794 * MPDU or S-MPDU.
7795 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
7796 * contained within an MPDU or S-MPDU and support for multiple dynamic
7797 * fragments for each MSDU and for each A-MSDU if supported by the
7798 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
7799 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
7800 */
7801enum he_fragmentation_val {
7802 HE_FRAG_DISABLE,
7803 HE_FRAG_LEVEL1,
7804 HE_FRAG_LEVEL2,
7805 HE_FRAG_LEVEL3,
7806};
7807
7808/**
7809 * enum he_mcs_config - HE MCS support configuration
7810 *
7811 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
7812 * These values are used in driver to configure the HE MCS map to advertise
7813 * Tx/Rx MCS map in HE capability and these values are applied for all the
7814 * streams supported by the device. To configure MCS for different bandwidths,
7815 * vendor command needs to be sent using this attribute with appropriate value.
7816 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
7817 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
7818 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
7819 * These values are used to configure testbed device to allow the advertised
7820 * hardware capabilities to be downgraded for testing purposes. The enum values
7821 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
7822 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
7823 * These values are validated in the driver before setting the MCS map and
7824 * driver returns error if the input is other than these enum values.
7825 *
7826 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
7827 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
7828 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
7829 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
7830 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
7831 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
7832 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
7833 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
7834 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
7835 */
7836enum he_mcs_config {
7837 HE_80_MCS0_7 = 0,
7838 HE_80_MCS0_9 = 1,
7839 HE_80_MCS0_11 = 2,
7840 HE_160_MCS0_7 = 4,
7841 HE_160_MCS0_9 = 5,
7842 HE_160_MCS0_11 = 6,
7843 HE_80P80_MCS0_7 = 8,
7844 HE_80P80_MCS0_9 = 9,
7845 HE_80P80_MCS0_11 = 10,
7846};
7847
7848/**
7849 * enum qca_wlan_ba_session_config - BA session configuration
7850 *
7851 * Indicates the configuration values for BA session configuration attribute.
7852 *
7853 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
7854 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
7855 */
7856enum qca_wlan_ba_session_config {
7857 QCA_WLAN_ADD_BA = 1,
7858 QCA_WLAN_DELETE_BA = 2,
7859};
7860
7861/**
7862 * enum qca_wlan_ac_type - Access category type
7863 *
7864 * Indicates the access category type value.
7865 *
7866 * @QCA_WLAN_AC_BE: BE access category
7867 * @QCA_WLAN_AC_BK: BK access category
7868 * @QCA_WLAN_AC_VI: VI access category
7869 * @QCA_WLAN_AC_VO: VO access category
7870 * @QCA_WLAN_AC_ALL: All ACs
7871 */
7872enum qca_wlan_ac_type {
7873 QCA_WLAN_AC_BE = 0,
7874 QCA_WLAN_AC_BK = 1,
7875 QCA_WLAN_AC_VI = 2,
7876 QCA_WLAN_AC_VO = 3,
7877 QCA_WLAN_AC_ALL = 4,
7878};
7879
7880/**
7881 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
7882 *
7883 * Indicates the HE LTF configuration value.
7884 *
7885 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
7886 * based on the GI setting
7887 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
7888 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
7889 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
7890 */
7891enum qca_wlan_he_ltf_cfg {
7892 QCA_WLAN_HE_LTF_AUTO = 0,
7893 QCA_WLAN_HE_LTF_1X = 1,
7894 QCA_WLAN_HE_LTF_2X = 2,
7895 QCA_WLAN_HE_LTF_4X = 3,
7896};
7897
Hai Shalomc9e41a12018-07-31 14:41:42 -07007898/**
7899 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
7900 *
7901 * Indicates the HE trigger frame MAC padding duration value.
7902 *
7903 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
7904 * process the trigger frame.
7905 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
7906 * trigger frame.
7907 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
7908 * trigger frame.
7909 */
7910enum qca_wlan_he_mac_padding_dur {
7911 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
7912 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
7913 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
7914};
7915
Hai Shalom74f70d42019-02-11 14:42:39 -08007916/**
7917 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
7918 *
7919 * Indicates the HE Operating mode control channel width setting value.
7920 *
7921 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
7922 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
7923 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
7924 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
7925 */
7926enum qca_wlan_he_om_ctrl_ch_bw {
7927 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
7928 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
7929 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
7930 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
7931};
7932
7933/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08007934 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
7935 *
7936 * Indicates the frame types to use for keep alive data.
7937 *
7938 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
7939 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
7940 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
7941 */
7942enum qca_wlan_keep_alive_data_type {
7943 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
7944 QCA_WLAN_KEEP_ALIVE_DATA = 1,
7945 QCA_WLAN_KEEP_ALIVE_MGMT = 2,
7946};
7947
7948/**
Hai Shalom74f70d42019-02-11 14:42:39 -08007949 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
7950 * HE operating mode control transmit request. These attributes are
7951 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
7952 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7953 *
7954 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
7955 * indicates the maximum number of spatial streams, NSS, that the STA
7956 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
7957 * and is set to NSS - 1.
7958 *
7959 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
7960 * indicates the operating channel width supported by the STA for both
7961 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
7962 *
7963 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
7964 * indicates the all trigger based UL MU operations by the STA.
7965 * 0 - UL MU operations are enabled by the STA.
7966 * 1 - All triggered UL MU transmissions are suspended by the STA.
7967 *
7968 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
7969 * indicates the maximum number of space-time streams, NSTS, that
7970 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07007971 *
7972 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
7973 * combined with the UL MU Disable subfield and the recipient's setting
7974 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
7975 * capabilities to determine which HE TB PPDUs are possible by the
7976 * STA to transmit.
7977 * 0 - UL MU data operations are enabled by the STA.
7978 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
7979 * bit is not set, else UL MU Tx is suspended.
7980 *
Hai Shalom74f70d42019-02-11 14:42:39 -08007981 */
7982enum qca_wlan_vendor_attr_he_omi_tx {
7983 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
7984 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
7985 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
7986 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
7987 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07007988 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08007989
7990 /* keep last */
7991 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
7992 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
7993 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
7994};
7995
Hai Shalom899fcc72020-10-19 14:38:18 -07007996 /**
7997 * enum qca_wlan_vendor_phy_mode - Different PHY modes
7998 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
7999 *
8000 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8001 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8002 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8003 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8004 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8005 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8006 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8007 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8008 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8009 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8010 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8011 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8012 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8013 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8014 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8015 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8016 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8017 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8018 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8019 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8020 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8021 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8022 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8023 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8024 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8025 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8026 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8027 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8028 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8029 */
8030enum qca_wlan_vendor_phy_mode {
8031 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8032 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8033 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8034 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8035 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8036 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8037 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8038 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8039 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8040 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8041 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8042 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8043 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8044 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8045 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8046 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8047 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8048 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8049 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8050 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8051 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8052 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8053 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8054 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8055 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8056 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8057 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8058 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8059 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8060};
8061
Roshan Pius3a1667e2018-07-03 15:17:14 -07008062/* Attributes for data used by
8063 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8064 */
8065enum qca_wlan_vendor_attr_wifi_test_config {
8066 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8067 /* 8-bit unsigned value to configure the driver to enable/disable
8068 * WMM feature. This attribute is used to configure testbed device.
8069 * 1-enable, 0-disable
8070 */
8071 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8072
8073 /* 8-bit unsigned value to configure the driver to accept/reject
8074 * the addba request from peer. This attribute is used to configure
8075 * the testbed device.
8076 * 1-accept addba, 0-reject addba
8077 */
8078 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8079
8080 /* 8-bit unsigned value to configure the driver to send or not to
8081 * send the addba request to peer.
8082 * This attribute is used to configure the testbed device.
8083 * 1-send addba, 0-do not send addba
8084 */
8085 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8086
8087 /* 8-bit unsigned value to indicate the HE fragmentation support.
8088 * Uses enum he_fragmentation_val values.
8089 * This attribute is used to configure the testbed device to
8090 * allow the advertised hardware capabilities to be downgraded
8091 * for testing purposes.
8092 */
8093 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8094
8095 /* 8-bit unsigned value to indicate the HE MCS support.
8096 * Uses enum he_mcs_config values.
8097 * This attribute is used to configure the testbed device to
8098 * allow the advertised hardware capabilities to be downgraded
8099 * for testing purposes.
8100 */
8101 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8102
8103 /* 8-bit unsigned value to configure the driver to allow or not to
8104 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8105 * This attribute is used to configure the testbed device.
8106 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
8107 */
8108 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8109
8110 /* 8-bit unsigned value to configure the driver to add a
8111 * new BA session or delete the existing BA session for
8112 * given TID. ADDBA command uses the buffer size and TID
8113 * configuration if user specifies the values else default
8114 * value for buffer size is used for all TIDs if the TID
8115 * also not specified. For DEL_BA command TID value is
8116 * required to process the command.
8117 * Uses enum qca_wlan_ba_session_config values.
8118 * This attribute is used to configure the testbed device.
8119 */
8120 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
8121
Hai Shalomce48b4a2018-09-05 11:41:35 -07008122 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07008123 * request and response frames.
8124 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07008125 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008126 */
8127 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
8128
8129 /* 8-bit unsigned value to configure the buffer size in addba
8130 * request and response frames.
8131 * This attribute is used to configure the testbed device.
8132 */
8133 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
8134
8135 /* 8-bit unsigned value to configure the no ack policy.
8136 * To configure no ack policy, access category value is
8137 * required to process the command.
8138 * This attribute is used to configure the testbed device.
8139 * 1 - enable no ack, 0 - disable no ack.
8140 */
8141 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
8142
8143 /* 8-bit unsigned value to configure the AC for no ack policy
8144 * This attribute is used to configure the testbed device.
8145 * Uses the enum qca_wlan_ac_type values.
8146 */
8147 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
8148
8149 /* 8-bit unsigned value to configure the HE LTF
8150 * This attribute is used to configure the testbed device.
8151 * Uses the enum qca_wlan_he_ltf_cfg values.
8152 */
8153 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
8154
8155 /* 8-bit unsigned value to configure the tx beamformee.
8156 * This attribute is used to configure the testbed device.
8157 * 1-enable, 0-disable.
8158 */
8159 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
8160
8161 /* 8-bit unsigned value to configure the tx beamformee number
8162 * of space-time streams.
8163 * This attribute is used to configure the testbed device.
8164 * The range of the value is 0 to 8.
8165 */
8166 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
8167
8168 /* 8-bit unsigned value to configure the MU EDCA params for given AC
8169 * This attribute is used to configure the testbed device.
8170 * Uses the enum qca_wlan_ac_type values.
8171 */
8172 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
8173
8174 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
8175 * To configure MU EDCA AIFSN value, MU EDCA access category value
8176 * is required to process the command.
8177 * This attribute is used to configure the testbed device.
8178 */
8179 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
8180
8181 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
8182 * given AC.
8183 * To configure MU EDCA ECW min value, MU EDCA access category value
8184 * is required to process the command.
8185 * This attribute is used to configure the testbed device.
8186 */
8187 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
8188
8189 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
8190 * given AC.
8191 * To configure MU EDCA ECW max value, MU EDCA access category value
8192 * is required to process the command.
8193 * This attribute is used to configure the testbed device.
8194 */
8195 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
8196
8197 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
8198 * To configure MU EDCA timer value, MU EDCA access category value
8199 * is required to process the command.
8200 * This attribute is used to configure the testbed device.
8201 */
8202 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
8203
Hai Shalomc9e41a12018-07-31 14:41:42 -07008204 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
8205 * duration.
8206 * This attribute is used to configure the testbed device.
8207 * Uses the enum qca_wlan_he_mac_padding_dur values.
8208 */
8209 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
8210
Hai Shalomce48b4a2018-09-05 11:41:35 -07008211 /* 8-bit unsigned value to override the MU EDCA params to defaults
8212 * regardless of the AP beacon MU EDCA params. If it is enabled use
8213 * the default values else use the MU EDCA params from AP beacon.
8214 * This attribute is used to configure the testbed device.
8215 * 1-enable, 0-disable.
8216 */
8217 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
8218
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008219 /* 8-bit unsigned value to configure the support for receiving
8220 * an MPDU that contains an operating mode control subfield.
8221 * This attribute is used to configure the testbed device.
8222 * 1-enable, 0-disable.
8223 */
8224 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
8225
8226 /* Nested attribute values required to setup the TWT session.
8227 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
8228 * information to set up the session. It contains broadcast flags,
8229 * set_up flags, trigger value, flow type, flow ID, wake interval
8230 * exponent, protection, target wake time, wake duration, wake interval
8231 * mantissa. These nested attributes are used to setup a host triggered
8232 * TWT session.
8233 */
8234 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
8235
8236 /* This nested attribute is used to terminate the current TWT session.
8237 * It does not currently carry any attributes.
8238 */
8239 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
8240
8241 /* This nested attribute is used to suspend the current TWT session.
8242 * It does not currently carry any attributes.
8243 */
8244 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
8245
8246 /* Nested attribute values to indicate the request for resume.
8247 * This attribute is used to resume the TWT session.
8248 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
8249 * parameters required to resume the TWT session.
8250 */
8251 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
8252
Hai Shalom74f70d42019-02-11 14:42:39 -08008253 /* 8-bit unsigned value to set the HE operating mode control
8254 * (OM CTRL) Channel Width subfield.
8255 * The Channel Width subfield indicates the operating channel width
8256 * supported by the STA for both reception and transmission.
8257 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
8258 * This setting is cleared with the
8259 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8260 * flag attribute to reset defaults.
8261 * This attribute is used to configure the testbed device.
8262 */
8263 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
8264
8265 /* 8-bit unsigned value to configure the number of spatial
8266 * streams in HE operating mode control field.
8267 * This setting is cleared with the
8268 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8269 * flag attribute to reset defaults.
8270 * This attribute is used to configure the testbed device.
8271 */
8272 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
8273
8274 /* Flag attribute to configure the UL MU disable bit in
8275 * HE operating mode control field.
8276 * This setting is cleared with the
8277 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8278 * flag attribute to reset defaults.
8279 * This attribute is used to configure the testbed device.
8280 */
8281 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
8282
8283 /* Flag attribute to clear the previously set HE operating mode
8284 * control field configuration.
8285 * This attribute is used to configure the testbed device to reset
8286 * defaults to clear any previously set HE operating mode control
8287 * field configuration.
8288 */
8289 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
8290
8291 /* 8-bit unsigned value to configure HE single user PPDU
8292 * transmission. By default this setting is disabled and it
8293 * is disabled in the reset defaults of the device configuration.
8294 * This attribute is used to configure the testbed device.
8295 * 1-enable, 0-disable
8296 */
8297 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
8298
8299 /* 8-bit unsigned value to configure action frame transmission
8300 * in HE trigger based PPDU transmission.
8301 * By default this setting is disabled and it is disabled in
8302 * the reset defaults of the device configuration.
8303 * This attribute is used to configure the testbed device.
8304 * 1-enable, 0-disable
8305 */
8306 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
8307
8308 /* Nested attribute to indicate HE operating mode control field
8309 * transmission. It contains operating mode control field Nss,
8310 * channel bandwidth, Tx Nsts and UL MU disable attributes.
8311 * These nested attributes are used to send HE operating mode control
8312 * with configured values.
8313 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
8314 * This attribute is used to configure the testbed device.
8315 */
8316 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
8317
8318 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
8319 * support for the reception of a frame that carries an HE variant
8320 * HT Control field.
8321 * This attribute is used to configure the testbed device.
8322 * 1-enable, 0-disable
8323 */
8324 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
8325
Hai Shalom021b0b52019-04-10 11:17:58 -07008326 /* 8-bit unsigned value to configure VHT support in 2.4G band.
8327 * This attribute is used to configure the testbed device.
8328 * 1-enable, 0-disable
8329 */
8330 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
8331
8332 /* 8-bit unsigned value to configure HE testbed defaults.
8333 * This attribute is used to configure the testbed device.
8334 * 1-set the device HE capabilities to testbed defaults.
8335 * 0-reset the device HE capabilities to supported config.
8336 */
8337 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
8338
8339 /* 8-bit unsigned value to configure TWT request support.
8340 * This attribute is used to configure the testbed device.
8341 * 1-enable, 0-disable.
8342 */
8343 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
8344
Hai Shalom899fcc72020-10-19 14:38:18 -07008345 /* 8-bit unsigned value to configure protection for Management
8346 * frames when PMF is enabled for the association.
8347 * This attribute is used to configure the testbed device.
8348 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
8349 */
8350 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
8351
8352 /* Flag attribute to inject Disassociation frame to the connected AP.
8353 * This attribute is used to configure the testbed device.
8354 */
8355 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
8356
8357 /* 8-bit unsigned value to configure an override for the RSNXE Used
8358 * subfield in the MIC control field of the FTE in FT Reassociation
8359 * Request frame.
8360 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
8361 * This attribute is used to configure the testbed device.
8362 * This attribute can be configured only when STA is in associated state
8363 * and the configuration is valid until the disconnection.
8364 */
8365 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
8366
8367 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
8368 * Switch Announcement) when STA is in connected state.
8369 * 0 - Default behavior, 1 - Ignore CSA.
8370 * This attribute is used to configure the testbed device.
8371 * This attribute can be configured only when STA is in associated state
8372 * and the configuration is valid until the disconnection.
8373 */
8374 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
8375
8376 /* Nested attribute values required to configure OCI (Operating Channel
8377 * Information). Attributes defined in enum
8378 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
8379 * This attribute is used to configure the testbed device.
8380 * This attribute can be configured only when STA is in associated state
8381 * and the configuration is valid until the disconnection.
8382 */
8383 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
8384
8385 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
8386 * Query timeout. If this configuration is enabled STA shall not send
8387 * Deauthentication frmae when SA Query times out (mainly, after a
8388 * channel switch when OCV is enabled).
8389 * 0 - Default behavior, 1 - Ignore SA Query timeout.
8390 * This attribute is used to configure the testbed device.
8391 * This attribute can be configured only when STA is in associated state
8392 * and the configuration is valid until the disconnection.
8393 */
8394 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
8395
8396 /* 8-bit unsigned value to configure the driver/firmware to start or
8397 * stop transmitting FILS discovery frames.
8398 * 0 - Stop transmitting FILS discovery frames
8399 * 1 - Start transmitting FILS discovery frames
8400 * This attribute is used to configure the testbed device.
8401 * This attribute can be configured only in AP mode and the
8402 * configuration is valid until AP restart.
8403 */
8404 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
8405
Hai Shalom60840252021-02-19 19:02:11 -08008406 /* 8-bit unsigned value to configure the driver/firmware to enable or
8407 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
8408 * information field.
8409 * 0 - Disable full bandwidth UL MU-MIMO subfield
8410 * 1 - Enable full bandwidth UL MU-MIMO subfield
8411 * This attribute is used to configure the testbed device.
8412 */
8413 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
8414
8415 /* 16-bit unsigned value to configure the driver with a specific BSS
8416 * max idle period to advertise in the BSS Max Idle Period element
8417 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
8418 * This attribute is used to configure the testbed device.
8419 */
8420 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
8421
8422 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
8423 * for data transmission.
8424 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
8425 * This attribute is used to configure the testbed device.
8426 */
8427 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
8428
8429 /* 8-bit unsigned value to configure the driver to disable data and
8430 * management response frame transmission to test the BSS max idle
8431 * feature.
8432 * 0 - Default behavior, 1 - Disable data and management response Tx.
8433 * This attribute is used to configure the testbed device.
8434 */
8435 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
8436
8437 /* 8-bit unsigned value to configure the driver/firmware to enable or
8438 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
8439 * information field.
8440 * 0 - Disable Punctured Preamble Rx subfield
8441 * 1 - Enable Punctured Preamble Rx subfield
8442 * This attribute is used to configure the testbed device.
8443 */
8444 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
8445
Hai Shaloma20dcd72022-02-04 13:43:00 -08008446 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
8447 * requirement mismatch for 6 GHz connection.
8448 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
8449 * This attribute is used to configure the testbed device.
8450 */
8451 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
8452
8453 /* 8-bit unsigned value to configure the driver to allow 6 GHz
8454 * connection with all security modes.
8455 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
8456 * modes.
8457 * This attribute is used for testing purposes.
8458 */
8459 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
8460
8461 /* 8-bit unsigned value to configure the driver to transmit data with
8462 * ER SU PPDU type.
8463 *
8464 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
8465 * This attribute is used for testing purposes.
8466 */
8467 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
8468
8469 /* 8-bit unsigned value to configure the driver to use Data or
8470 * Management frame type for keep alive data.
8471 * Uses enum qca_wlan_keep_alive_data_type values.
8472 *
8473 * This attribute is used for testing purposes.
8474 */
8475 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
8476
8477 /* 8-bit unsigned value to configure the driver to use scan request
8478 * BSSID value in Probe Request frame RA(A1) during the scan. The
8479 * driver saves this configuration and applies this setting to all user
8480 * space scan requests until the setting is cleared. If this
8481 * configuration is set, the driver uses the BSSID value from the scan
8482 * request to set the RA(A1) in the Probe Request frames during the
8483 * scan.
8484 *
8485 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
8486 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
8487 * This attribute is used for testing purposes.
8488 */
8489 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
8490
8491 /* 8-bit unsigned value to configure the driver to enable/disable the
8492 * BSS max idle period support.
8493 *
8494 * 0 - Disable the BSS max idle support.
8495 * 1 - Enable the BSS max idle support.
8496 * This attribute is used for testing purposes.
8497 */
8498 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
8499
8500 /* 8-bit unsigned value to configure the driver/firmware to enable or
8501 * disable Rx control frame to MultiBSS subfield in the HE MAC
8502 * capabilities information field.
8503 * 0 - Disable Rx control frame to MultiBSS subfield
8504 * 1 - Enable Rx control frame to MultiBSS subfield
8505 * This attribute is used to configure the testbed device.
8506 */
8507 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
8508
8509 /* 8-bit unsigned value to configure the driver/firmware to enable or
8510 * disable Broadcast TWT support subfield in the HE MAC capabilities
8511 * information field.
8512 * 0 - Disable Broadcast TWT support subfield
8513 * 1 - Enable Broadcast TWT support subfield
8514 * This attribute is used to configure the testbed device.
8515 */
8516 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
8517
Roshan Pius3a1667e2018-07-03 15:17:14 -07008518 /* keep last */
8519 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
8520 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
8521 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
8522};
8523
8524/**
Hai Shalom899fcc72020-10-19 14:38:18 -07008525 * enum qca_wlan_twt_operation - Operation of the config TWT request
8526 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -08008527 * The response for the respective operations can be either synchronous or
8528 * asynchronous (wherever specified). If synchronous, the response to this
8529 * operation is obtained in the corresponding vendor command reply to the user
8530 * space. For the asynchronous case the response is obtained as an event with
8531 * the same operation type.
8532 *
8533 * Drivers shall support either of these modes but not both simultaneously.
8534 * This support for asynchronous mode is advertised through the flag
8535 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
8536 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -07008537 *
8538 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
8539 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08008540 * qca_wlan_vendor_attr_twt_setup. Depending upon the
8541 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
8542 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008543 *
8544 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
8545 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08008546 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008547 *
8548 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
8549 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8550 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008551 * This terminate can either get triggered by the user space or can as well be
8552 * a notification from the firmware if it initiates a terminate.
8553 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8554 * the request from user space can either be a synchronous or asynchronous
8555 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008556 *
8557 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
8558 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8559 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008560 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8561 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008562 *
8563 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
8564 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8565 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008566 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
8567 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8568 * capability, this is either a synchronous or asynchronous operation.
8569 *
8570 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
8571 * combination of suspend and resume in a single request. Required parameters
8572 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
8573 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
8574 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8575 * capability, this is either a synchronous or asynchronous operation.
8576 *
8577 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
8578 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
8579 * session is setup. It's a synchronous operation.
8580 *
8581 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
8582 * Valid only after the TWT session is setup. It's a synchronous operation.
8583 *
8584 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
8585 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
8586 * operation.
8587 *
8588 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
8589 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008590 *
8591 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
8592 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
8593 * the enum qca_wlan_vendor_attr_twt_set_param.
Hai Shalom899fcc72020-10-19 14:38:18 -07008594 */
8595enum qca_wlan_twt_operation {
8596 QCA_WLAN_TWT_SET = 0,
8597 QCA_WLAN_TWT_GET = 1,
8598 QCA_WLAN_TWT_TERMINATE = 2,
8599 QCA_WLAN_TWT_SUSPEND = 3,
8600 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -08008601 QCA_WLAN_TWT_NUDGE = 5,
8602 QCA_WLAN_TWT_GET_STATS = 6,
8603 QCA_WLAN_TWT_CLEAR_STATS = 7,
8604 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
8605 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008606 QCA_WLAN_TWT_SET_PARAM = 10,
Hai Shalom899fcc72020-10-19 14:38:18 -07008607};
8608
8609/**
8610 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
8611 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8612 *
8613 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
8614 * operation of this request. Possible values are defined in enum
8615 * qca_wlan_twt_operation. The parameters for the respective operation is
8616 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
8617 *
8618 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
8619 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -08008620 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008621 * enum qca_wlan_vendor_attr_twt_set_param, or
8622 * enum qca_wlan_vendor_attr_twt_stats based on the operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008623 */
8624enum qca_wlan_vendor_attr_config_twt {
8625 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
8626 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
8627 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
8628
8629 /* keep last */
8630 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
8631 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
8632 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
8633};
8634
8635/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008636 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
8637 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8638 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
8639 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
8640 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
8641 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
8642 * statistics of an unassociated station by specifying the MAC address in
8643 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
8644 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
8645 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
8646 * the statistics of all unassociated stations by specifying the Broadcast MAC
8647 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
8648 * above procedure. In the response, driver shall specify statistics
8649 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
8650 */
8651enum qca_wlan_vendor_attr_bss_filter {
8652 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
8653 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
8654 /* Other BSS filter type, unsigned 8 bit value. One of the values
8655 * in enum qca_wlan_vendor_bss_filter_type.
8656 */
8657 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
8658 /* Other BSS filter action, unsigned 8 bit value. One of the values
8659 * in enum qca_wlan_vendor_bss_filter_action.
8660 */
8661 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
8662 /* Array of nested attributes where each entry is the statistics
8663 * information of the specified station that belong to another BSS.
8664 * Attributes for each entry are taken from enum
8665 * qca_wlan_vendor_bss_filter_sta_stats.
8666 * Other BSS station configured in
8667 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
8668 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
8669 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
8670 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
8671 */
8672 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
8673
8674 /* keep last */
8675 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
8676 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
8677 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
8678};
8679
8680/**
8681 * enum qca_wlan_vendor_bss_filter_type - Type of
8682 * filter used in other BSS filter operations. Used by the vendor command
8683 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8684 *
8685 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
8686 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
8687 */
8688enum qca_wlan_vendor_bss_filter_type {
8689 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
8690 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
8691};
8692
8693/**
8694 * enum qca_wlan_vendor_bss_filter_action - Type of
8695 * action in other BSS filter operations. Used by the vendor command
8696 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8697 *
8698 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
8699 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
8700 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
8701 */
8702enum qca_wlan_vendor_bss_filter_action {
8703 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
8704 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
8705 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
8706};
8707
8708/**
8709 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
8710 * the statistics of a specific unassociated station belonging to another BSS.
8711 * The statistics provides information of the unassociated station
8712 * filtered by other BSS operation - such as MAC, signal value.
8713 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8714 *
8715 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
8716 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
8717 * of the station. Unsigned 8 bit number containing RSSI.
8718 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
8719 * driver for the last received RSSI. Unsigned 64 bit number containing
8720 * nanoseconds from the boottime.
8721 */
8722enum qca_wlan_vendor_bss_filter_sta_stats {
8723 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
8724 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
8725 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
8726 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
8727
8728 /* keep last */
8729 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
8730 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
8731 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
8732};
8733
Hai Shalomce48b4a2018-09-05 11:41:35 -07008734/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
8735 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
8736 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
8737 */
8738enum qca_wlan_nan_ext_subcmd_type {
8739 /* Subcmd of type NAN Enable Request */
8740 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
8741 /* Subcmd of type NAN Disable Request */
8742 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
8743};
8744
8745/**
8746 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
8747 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
8748 */
8749enum qca_wlan_vendor_attr_nan_params {
8750 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
8751 /* Carries NAN command for firmware component. Every vendor command
8752 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
8753 * payload containing the NAN command. NLA_BINARY attribute.
8754 */
8755 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
8756 /* Indicates the type of NAN command sent with
8757 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
8758 * describes the possible range of values. This attribute is mandatory
8759 * if the command being issued is either
8760 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
8761 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
8762 */
8763 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
8764 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
8765 * band. This attribute is mandatory when command type is
8766 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
8767 */
8768 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
8769 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
8770 * band. This attribute is optional and should be included when command
8771 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
8772 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
8773 */
8774 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
8775
8776 /* keep last */
8777 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
8778 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
8779 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
8780};
8781
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008782/**
Hai Shalom60840252021-02-19 19:02:11 -08008783 * qca_wlan_twt_setup_state: Represents the TWT session states.
8784 *
8785 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
8786 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
8787 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
8788 */
8789enum qca_wlan_twt_setup_state {
8790 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
8791 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
8792 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
8793};
8794
8795/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008796 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
8797 * TWT (Target Wake Time) setup request. These attributes are sent as part of
8798 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -07008799 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
8800 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008801 *
8802 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
8803 * Disable (flag attribute not present) - Individual TWT
8804 * Enable (flag attribute present) - Broadcast TWT.
8805 * Individual means the session is between the STA and the AP.
8806 * This session is established using a separate negotiation between
8807 * STA and AP.
8808 * Broadcast means the session is across multiple STAs and an AP. The
8809 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -07008810 * This is used in
8811 * 1. TWT SET Request and Response
8812 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008813 *
8814 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
8815 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -07008816 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008817 *
8818 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
8819 * Enable (flag attribute present) - TWT with trigger support.
8820 * Disable (flag attribute not present) - TWT without trigger support.
8821 * Trigger means the AP will send the trigger frame to allow STA to send data.
8822 * Without trigger, the STA will wait for the MU EDCA timer before
8823 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -07008824 * This is used in
8825 * 1. TWT SET Request and Response
8826 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008827 *
8828 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
8829 * 0 - Announced TWT - In this mode, STA may skip few service periods to
8830 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
8831 * NULL frame to AP.
8832 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07008833 * This is a required parameter for
8834 * 1. TWT SET Request and Response
8835 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008836 *
8837 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
8838 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -07008839 * If not provided then dialog ID will be set to zero.
8840 * This is an optional parameter for
8841 * 1. TWT SET Request and Response
8842 * 2. TWT GET Request and Response
8843 * 3. TWT TERMINATE Request and Response
8844 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -08008845 * Flow ID values from 0 to 254 represent a single TWT session
8846 * Flow ID value of 255 represents all TWT sessions for the following
8847 * 1. TWT TERMINATE Request and Response
8848 * 2. TWT SUSPEND Request and Response
8849 * 4. TWT CLEAR STATISTICS request
8850 * 5. TWT GET STATISTICS request and response
8851 * If an invalid dialog ID is provided, status
8852 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008853 *
8854 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
8855 * This attribute (exp) is used along with the mantissa to derive the
8856 * wake interval using the following formula:
8857 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
8858 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07008859 * This is a required parameter for
8860 * 1. TWT SET Request and Response
8861 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008862 *
8863 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
8864 * Enable (flag attribute present) - Protection required.
8865 * Disable (flag attribute not present) - Protection not required.
8866 * If protection is enabled, then the AP will use protection
8867 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -07008868 * This is used in
8869 * 1. TWT SET Request and Response
8870 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008871 *
8872 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
8873 * This attribute is used as the SP offset which is the offset from
8874 * TSF after which the wake happens. The units are in microseconds. If
8875 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -07008876 * This is an optional parameter for
8877 * 1. TWT SET Request and Response
8878 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008879 *
8880 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07008881 * This is the duration of the service period. This is specified as
8882 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
8883 * This is a required parameter for
8884 * 1. TWT SET Request and Response
8885 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008886 *
8887 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
8888 * This attribute is used to configure wake interval mantissa.
8889 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -07008890 * This is a required parameter for
8891 * 1. TWT SET Request and Response
8892 * 2. TWT GET Response
8893 *
8894 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
8895 * This field is applicable for TWT response only.
8896 * This contains status values in enum qca_wlan_vendor_twt_status
8897 * and is passed to the userspace. This is used in TWT SET operation.
8898 * This is a required parameter for
8899 * 1. TWT SET Response
8900 * 2. TWT TERMINATE Response
8901 * 3. TWT SUSPEND Response
8902 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -08008903 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -07008904 *
8905 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
8906 * This field is applicable for TWT response only.
8907 * This field contains response type from the TWT responder and is
8908 * passed to the userspace. The values for this field are defined in
8909 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
8910 * response.
8911 *
8912 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
Hai Shaloma20dcd72022-02-04 13:43:00 -08008913 * In TWT setup command this field contains absolute TSF that will
8914 * be used by TWT requester during setup.
8915 * In TWT response this field contains absolute TSF value of the
8916 * wake time received from the TWT responder and is passed to
8917 * the userspace.
8918 * This is an optional parameter for
8919 * 1. TWT SET Request
Hai Shalom899fcc72020-10-19 14:38:18 -07008920 * This is a required parameter for
8921 * 1. TWT SET Response
8922 * 2. TWT GET Response
8923 *
8924 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
8925 * Enable (flag attribute present) - Indicates that the TWT responder
8926 * supports reception of TWT information frame from the TWT requestor.
8927 * Disable (flag attribute not present) - Indicates that the responder
8928 * doesn't support reception of TWT information frame from requestor.
8929 * This is used in
8930 * 1. TWT SET Response
8931 * 2. TWT GET Response
8932 *
8933 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
8934 * Represents the MAC address of the peer for which the TWT session
8935 * is being configured. This is used in AP mode to represent the respective
Hai Shaloma20dcd72022-02-04 13:43:00 -08008936 * client.
8937 * In AP mode, this is a required parameter in response for
8938 * 1. TWT SET
8939 * 2. TWT GET
8940 * 3. TWT TERMINATE
8941 * 4. TWT SUSPEND
Hai Shalom899fcc72020-10-19 14:38:18 -07008942 * In STA mode, this is an optional parameter in request and response for
8943 * the above four TWT operations.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008944 * In AP mode, this is a required parameter in request for
8945 * 1. TWT GET
8946 * 2. TWT TERMINATE
Hai Shalom60840252021-02-19 19:02:11 -08008947 *
8948 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
8949 * Minimum tolerance limit of wake interval parameter in microseconds.
8950 *
8951 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
8952 * Maximum tolerance limit of wake interval parameter in microseconds.
8953 *
8954 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
8955 * Minimum tolerance limit of wake duration parameter in microseconds.
8956 *
8957 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
8958 * Maximum tolerance limit of wake duration parameter in microseconds.
8959 *
8960 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
8961 * TWT state for the given dialog id. The values for this are represented
8962 * by enum qca_wlan_twt_setup_state.
8963 * This is obtained through TWT GET operation.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008964 *
8965 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
8966 * This attribute is used to configure wake interval mantissa.
8967 * The unit is microseconds. This attribute, when specified, takes
8968 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
8969 * This parameter is used for
8970 * 1. TWT SET Request and Response
8971 * 2. TWT GET Response
8972 *
8973 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
8974 * This attribute is used to configure Broadcast TWT ID.
8975 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
8976 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
8977 * This parameter is used for
8978 * 1. TWT SET Request
8979 * 2. TWT TERMINATE Request
8980 *
8981 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
8982 * This attribute is used to configure Broadcast TWT recommendation.
8983 * The Broadcast TWT Recommendation subfield contains a value that indicates
8984 * recommendations on the types of frames that are transmitted by TWT
8985 * scheduled STAs and scheduling AP during the broadcast TWT SP.
8986 * The allowed values are 0 - 3.
8987 * This parameter is used for
8988 * 1. TWT SET Request
8989 *
8990 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
8991 * This attribute is used to configure Broadcast TWT Persistence.
8992 * The Broadcast TWT Persistence subfield indicates the number of
8993 * TBTTs during which the Broadcast TWT SPs corresponding to this
8994 * broadcast TWT Parameter set are present. The number of beacon intervals
8995 * during which the Broadcast TWT SPs are present is equal to the value in the
8996 * Broadcast TWT Persistence subfield plus 1 except that the value 255
8997 * indicates that the Broadcast TWT SPs are present until explicitly terminated.
8998 * This parameter is used for
8999 * 1. TWT SET Request
9000 *
9001 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9002 * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9003 * from TWT response frame.
9004 * This parameter is used for
9005 * 1. TWT SET Response
9006 * 2. TWT GET Response
9007 *
9008 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9009 * This attribute is used to configure the announce timeout value (in us) in
9010 * the firmware. This timeout value is only applicable for the announced TWT. If
9011 * the timeout value is non-zero the firmware waits up to the timeout value to
9012 * use Data frame as an announcement frame. If the timeout value is 0 the
9013 * firmware sends an explicit QoS NULL frame as the announcement frame on SP
9014 * start. The default value in the firmware is 0.
9015 * This parameter is used for
9016 * 1. TWT SET Request
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009017 */
9018enum qca_wlan_vendor_attr_twt_setup {
9019 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9020 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9021 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9022 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9023 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9024 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9025 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9026 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9027 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9028 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9029 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9030
Hai Shalom899fcc72020-10-19 14:38:18 -07009031 /* TWT Response only attributes */
9032 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9033 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9034 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9035 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9036
9037 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -08009038 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9039 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9040 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9041 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9042 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07009043
Hai Shaloma20dcd72022-02-04 13:43:00 -08009044 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9045
9046 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9047 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9048 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9049
9050 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9051 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9052
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009053 /* keep last */
9054 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9055 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9056 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9057};
9058
9059/**
Hai Shalom899fcc72020-10-19 14:38:18 -07009060 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9061 * TWT operation
9062 *
9063 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9064 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9065 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9066 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9067 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9068 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9069 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9070 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9071 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9072 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9073 * request/response frame
9074 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9075 * frame
9076 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9077 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9078 * unknown reason
9079 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9080 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -08009081 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9082 * invalid IE in the received TWT frame
9083 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9084 * the responder are not in the specified range
9085 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9086 * session due to request from the responder. Used on the TWT_TERMINATE
9087 * notification from the firmware.
9088 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9089 * session due to roaming. Used on the TWT_TERMINATE notification from the
9090 * firmware.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009091 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9092 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
9093 * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9094 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9095 * request due to roaming in progress.
9096 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9097 * setup request due to channel switch in progress.
9098 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9099 * request due to scan in progress.
9100 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9101 * terminate an existing TWT session on power save exit request from userspace.
9102 * Used on the TWT_TERMINATE notification from the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07009103 */
9104enum qca_wlan_vendor_twt_status {
9105 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9106 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9107 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9108 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9109 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9110 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9111 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9112 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9113 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9114 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9115 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9116 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9117 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9118 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -08009119 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9120 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9121 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9122 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009123 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9124 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9125 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9126 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9127 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
Hai Shalom899fcc72020-10-19 14:38:18 -07009128};
9129
9130/**
9131 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009132 * TWT (Target Wake Time) resume request. These attributes are sent as part of
9133 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -07009134 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9135 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009136 *
9137 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -07009138 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9139 * These attributes are used as the SP offset which is the offset from TSF after
9140 * which the wake happens. The units are in microseconds. Please note that
9141 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9142 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9143 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9144 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009145 *
9146 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9147 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -07009148 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9149 * and 4 for 64 bits.
9150 *
9151 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9152 * Flow ID is the unique identifier for each TWT session. This attribute
9153 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -08009154 * Flow ID values from 0 to 254 represent a single TWT session
9155 * Flow ID value of 255 represents all TWT sessions.
9156 * If an invalid dialog id is provided, status
9157 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -07009158 *
9159 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9160 * Represents the MAC address of the peer to which TWT Resume is
9161 * being sent. This is used in AP mode to represent the respective
9162 * client and is a required parameter. In STA mode, this is an optional
9163 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009164 */
9165enum qca_wlan_vendor_attr_twt_resume {
9166 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9167 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9168 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -07009169 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9170 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9171 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009172
9173 /* keep last */
9174 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9175 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9176 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9177};
9178
9179/**
Hai Shalom60840252021-02-19 19:02:11 -08009180 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9181 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9182 * and resume in a single request. These attributes are sent as part of
9183 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9184 *
9185 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9186 * Flow ID is the unique identifier for each TWT session. This attribute
9187 * represents the respective TWT session to suspend and resume.
9188 * Flow ID values from 0 to 254 represent a single TWT session
9189 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9190 * and response.
9191 * If an invalid dialog id is provided, status
9192 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9193 *
9194 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9195 * This attribute is used as the SP offset which is the offset from
9196 * TSF after which the wake happens. The units are in microseconds.
9197 *
9198 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9199 * This attribute represents the next TWT subfield size.
9200 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9201 * and 4 for 64 bits.
9202 *
9203 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9204 * Represents the MAC address of the peer to which TWT Suspend and Resume is
9205 * being sent. This is used in AP mode to represent the respective
9206 * client and is a required parameter. In STA mode, this is an optional
9207 * parameter.
9208 *
9209 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9210 * This field contains absolute TSF value of the time at which the TWT
9211 * session will be resumed.
9212 */
9213enum qca_wlan_vendor_attr_twt_nudge {
9214 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
9215 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
9216 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
9217 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
9218 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
9219 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
9220
9221 /* keep last */
9222 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
9223 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
9224 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
9225};
9226
9227/**
9228 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
9229 * TWT (Target Wake Time) get statistics and clear statistics request.
9230 * These attributes are sent as part of
9231 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9232 *
9233 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
9234 * Flow ID is the unique identifier for each TWT session. This attribute
9235 * represents the respective TWT session for get and clear TWT statistics.
9236 * Flow ID values from 0 to 254 represent a single TWT session
9237 * Flow ID value of 255 represents all TWT sessions in
9238 * 1) TWT GET STATISTICS request and response
9239 * 2) TWT CLEAR STATISTICS request
9240 *
9241 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
9242 * Represents the MAC address of the peer for which TWT Statistics
9243 * is required.
9244 * In AP mode this is used to represent the respective
9245 * client and is a required parameter for
9246 * 1) TWT GET STATISTICS request and response
9247 * 2) TWT CLEAR STATISTICS request and response
9248 * In STA mode, this is an optional parameter.
9249 *
9250 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
9251 * This is the duration of the service period in microseconds.
9252 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9253 *
9254 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
9255 * Average of the actual wake duration observed so far. Unit is microseconds.
9256 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9257 *
9258 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
9259 * The number of TWT service periods elapsed so far.
9260 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9261 *
9262 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9263 * This is the minimum value of the wake duration observed across
9264 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9265 * microseconds.
9266 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9267 *
9268 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
9269 * This is the maximum value of wake duration observed across
9270 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9271 * microseconds.
9272 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9273 *
9274 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
9275 * Average number of MPDUs transmitted successfully across
9276 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9277 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9278 *
9279 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
9280 * Average number of MPDUs received successfully across
9281 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9282 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9283 *
9284 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
9285 * Average number of bytes transmitted successfully across
9286 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9287 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9288 *
9289 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
9290 * Average number of bytes received successfully across
9291 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9292 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9293 *
9294 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
9295 * Status of the TWT GET STATISTICS request.
9296 * This contains status values in enum qca_wlan_vendor_twt_status
9297 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9298 */
9299enum qca_wlan_vendor_attr_twt_stats {
9300 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
9301 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
9302 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
9303 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
9304 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
9305 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
9306 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
9307 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
9308 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
9309 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
9310 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
9311 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
9312 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
9313
9314 /* keep last */
9315 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
9316 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
9317 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
9318};
9319
9320/**
9321 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
9322 * supported by the device and the peer.
9323 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
9324 *
9325 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
9326 * TWT non-scheduling STA. This capability is advertised in the HE
9327 * Capability/Extended Capabilities information element in the
9328 * Association Request frame by the device.
9329 *
9330 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
9331 * the TWT scheduling AP. This capability is advertised in the Extended
9332 * Capabilities/HE Capabilities information element.
9333 *
9334 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
9335 * for the broadcast TWT functionality. On the responder side, this indicates
9336 * support for the role of broadcast TWT scheduling functionality. This
9337 * capability is advertised in the HE Capabilities information element.
9338 *
9339 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
9340 * This capability is advertised in the HE Capabilities information element.
9341 *
9342 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
9343 * that it mandates the associated HE STAs to support TWT. This capability is
9344 * advertised by AP in the HE Operation Parameters field of the HE Operation
9345 * information element.
9346 */
9347enum qca_wlan_twt_capa {
9348 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
9349 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
9350 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
9351 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
9352 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
9353};
9354
9355/**
9356 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
9357 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
9358 * operation.
9359 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
9360 * Represents the MAC address of the peer for which the TWT capabilities
9361 * are being queried. This is used in AP mode to represent the respective
9362 * client. In STA mode, this is an optional parameter.
9363 *
9364 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
9365 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
9366 * enum qca_wlan_twt_capa.
9367 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
9368 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
9369 * enum qca_wlan_twt_capa.
9370 */
9371enum qca_wlan_vendor_attr_twt_capability {
9372 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
9373 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
9374 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
9375 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
9376
9377 /* keep last */
9378 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
9379 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
9380 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
9381};
9382
9383/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009384 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
9385 * TWT (Target Wake Time) related parameters. It is used when
9386 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
9387 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9388 *
9389 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
9390 * This attribute configures AC parameters to be used for all TWT
9391 * sessions in AP mode.
9392 * Uses the enum qca_wlan_ac_type values.
9393 */
9394enum qca_wlan_vendor_attr_twt_set_param {
9395 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
9396 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
9397
9398 /* keep last */
9399 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
9400 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
9401 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
9402};
9403
9404/**
Hai Shalom899fcc72020-10-19 14:38:18 -07009405 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
9406 * the TWT responder
9407 *
9408 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
9409 * parameters that are different from TWT requesting STA suggested
9410 * or demanded TWT parameters
9411 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
9412 * parameters that are different from TWT requesting STA TWT suggested
9413 * or demanded parameters
9414 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
9415 * setup
9416 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
9417 * setup.
9418 */
9419enum qca_wlan_vendor_twt_setup_resp_type {
9420 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
9421 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
9422 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
9423 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
9424};
9425
9426/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009427 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
9428 * Represents the setup type being requested for TWT.
9429 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
9430 * parameters but relying on AP to fill the parameters during the negotiation.
9431 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
9432 * values which the AP may accept or AP may provide alternative parameters
9433 * which the STA may accept.
9434 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
9435 * alternate parameters than the requested ones.
9436 */
9437enum qca_wlan_vendor_twt_setup_req_type {
9438 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
9439 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
9440 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
9441};
9442
9443/**
9444 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
9445 *
9446 * Indicates the type of roam scan event sent by firmware/driver.
9447 *
9448 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
9449 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
9450 */
9451enum qca_wlan_roam_scan_event_type {
9452 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
9453 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
9454};
9455
9456/**
9457 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
9458 *
9459 * Indicates the reason for triggering roam scan by firmware/driver.
9460 *
9461 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
9462 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
9463 */
9464enum qca_wlan_roam_scan_trigger_reason {
9465 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
9466 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
9467};
9468
9469/**
9470 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
9471 * roam scan related details from driver/firmware to user space. enum values
9472 * are used for NL attributes sent with
9473 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
9474 */
9475enum qca_wlan_vendor_attr_roam_scan {
9476 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
9477 /* Encapsulates type of roam scan event being reported. enum
9478 * qca_wlan_roam_scan_event_type describes the possible range of
9479 * values. u32 attribute.
9480 */
9481 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
9482 /* Encapsulates reason for triggering roam scan. enum
9483 * qca_wlan_roam_scan_trigger_reason describes the possible range of
9484 * values. u32 attribute.
9485 */
9486 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
9487
9488 /* keep last */
9489 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
9490 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
9491 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
9492};
9493
9494/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009495 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
9496 * transport modes and is used by the attribute
9497 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
9498 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
9499 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
9500 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
9501 * data. The data shall be encapsulated within
9502 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
9503 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
9504 */
9505enum qca_wlan_vendor_cfr_data_transport_modes {
9506 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
9507 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
9508};
9509
9510/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009511 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
9512 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
9513 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -07009514 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
9515 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
9516 * with phase
9517 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009518 */
9519enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009520 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -07009521 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
9522 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
9523};
9524
9525/**
9526 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
9527 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
9528 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
9529 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
9530 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
9531 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
9532 * is provided by one or more of below attributes:
9533 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
9534 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
9535 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
9536 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
9537 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
9538 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
9539 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
9540 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
9541 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
9542 */
9543enum qca_wlan_vendor_cfr_capture_type {
9544 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
9545 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
9546 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
9547 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
9548 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
9549 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009550};
9551
9552/**
9553 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
9554 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
9555 * Channel Frequency Response capture parameters and enable periodic CFR
9556 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -07009557 *
9558 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
9559 * MAC address of peer. This is for CFR version 1 only.
9560 *
9561 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
9562 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
9563 * capture. If this attribute is not present, peer CFR capture is disabled.
9564 *
9565 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
9566 * BW of measurement, attribute uses the values in enum nl80211_chan_width
9567 * Supported values: 20, 40, 80, 80+80, 160.
9568 * Note that all targets may not support all bandwidths.
9569 * This attribute is mandatory for version 1 if attribute
9570 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9571 *
9572 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
9573 * Periodicity of CFR measurement in milliseconds.
9574 * Periodicity should be a multiple of Base timer.
9575 * Current Base timer value supported is 10 milliseconds (default).
9576 * 0 for one shot capture.
9577 * This attribute is mandatory for version 1 if attribute
9578 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9579 *
9580 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
9581 * Method used to capture Channel Frequency Response.
9582 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
9583 * This attribute is mandatory for version 1 if attribute
9584 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9585 *
9586 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
9587 * Enable periodic CFR capture.
9588 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
9589 * If this attribute is not present, periodic CFR capture is disabled.
9590 *
9591 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
9592 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
9593 * can't be enabled at same time. This attribute is mandatory if target
9594 * support both versions and use one of them.
9595 *
9596 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
9597 * This attribute is mandatory for version 2 if
9598 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
9599 * Bits 15:0 bitfield indicates which group is to be enabled.
9600 * Bits 31:16 Reserved for future use.
9601 *
9602 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
9603 * CFR capture duration in microsecond. This attribute is mandatory for
9604 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
9605 *
9606 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
9607 * CFR capture interval in microsecond. This attribute is mandatory for
9608 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
9609 *
9610 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
9611 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
9612 * This attribute is mandatory for version 2.
9613 *
9614 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
9615 * Bitfield indicating which user in the current UL MU transmissions are
9616 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
9617 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
9618 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
9619 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
9620 * reserved for future use. This is for CFR version 2 only.
9621 *
9622 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
9623 * Indicates the number of consecutive RX frames to be skipped before CFR
9624 * capture is enabled again. This is for CFR version 2 only.
9625 *
9626 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
9627 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
9628 *
9629 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
9630 * the following group attributes:
9631 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
9632 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
9633 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
9634 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
9635 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
9636 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
9637 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
9638 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
9639 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
9640 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
9641 *
9642 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
9643 * Target supports multiple groups for some configurations. The group number
9644 * can be any value between 0 and 15. This is for CFR version 2 only.
9645 *
9646 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
9647 * Transmitter address which is used to filter frames. This MAC address takes
9648 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
9649 * version 2 only.
9650 *
9651 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
9652 * Receiver address which is used to filter frames. This MAC address takes
9653 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
9654 * version 2 only.
9655 *
9656 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
9657 * Mask of transmitter address which is used to filter frames. This is for CFR
9658 * version 2 only.
9659 *
9660 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
9661 * Mask of receiver address which is used to filter frames. This is for CFR
9662 * version 2 only.
9663 *
9664 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
9665 * Indicates frames with a specific NSS will be filtered for CFR capture.
9666 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
9667 * capture to be done for frames matching the NSS specified within this bitmask.
9668 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
9669 * bit 0 : NSS 1
9670 * bit 1 : NSS 2
9671 * ...
9672 * bit 7 : NSS 8
9673 *
9674 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
9675 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
9676 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
9677 * capture to be done for frames matching the bandwidths specified within this
9678 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
9679 * numerated in enum nl80211_band (although not all bands may be supported
9680 * by a given device).
9681 *
9682 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
9683 * Management frames matching the subtype filter categories will be filtered in
9684 * by MAC for CFR capture. This is a bitmask in which each bit represents the
9685 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
9686 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
9687 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
9688 *
9689 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
9690 * Control frames matching the subtype filter categories will be filtered in by
9691 * MAC for CFR capture. This is a bitmask in which each bit represents the
9692 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
9693 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
9694 *
9695 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
9696 * Data frames matching the subtype filter categories will be filtered in by
9697 * MAC for CFR capture. This is a bitmask in which each bit represents the
9698 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
9699 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009700 *
9701 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
9702 * Userspace can use this attribute to specify the driver about which transport
9703 * mode shall be used by the driver to send CFR data to userspace. Uses values
9704 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
9705 * not present, the driver shall use the default transport mechanism which is
9706 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
9707 *
9708 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
9709 * Userspace can use this attribute to specify the nl port id of the application
9710 * which receives the CFR data and processes it further so that the drivers can
9711 * unicast the netlink events to a specific application. Optionally included
9712 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
9713 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
9714 * shall multicast the netlink events when this attribute is not included.
9715 *
9716 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
9717 * This attribute will be used by the driver to encapsulate and send CFR data
9718 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
9719 * asynchronous event when the driver is configured to send CFR data using
9720 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009721 */
9722enum qca_wlan_vendor_peer_cfr_capture_attr {
9723 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009724 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009725 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009726 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009727 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009728 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009729 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -07009730 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
9731 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
9732 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
9733 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
9734 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
9735 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
9736 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
9737 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
9738 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
9739 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
9740 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
9741 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
9742 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
9743 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
9744 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
9745 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
9746 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
9747 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
9748 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009749 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
9750 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
9751 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009752
9753 /* Keep last */
9754 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
9755 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
9756 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
9757};
9758
Hai Shalom74f70d42019-02-11 14:42:39 -08009759/**
9760 * enum qca_wlan_throughput_level - Current throughput level
9761 *
9762 * Indicates the current level of throughput calculated by the driver. The
9763 * driver may choose different thresholds to decide whether the throughput level
9764 * is low or medium or high based on variety of parameters like physical link
9765 * capacity of the current connection, the number of packets being dispatched
9766 * per second, etc. The throughput level events might not be consistent with the
9767 * actual current throughput value being observed.
9768 *
9769 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
9770 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
9771 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
9772 */
9773enum qca_wlan_throughput_level {
9774 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
9775 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
9776 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
9777};
9778
9779/**
9780 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
9781 * report throughput changes from the driver to user space. enum values are used
9782 * for netlink attributes sent with
9783 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
9784 */
9785enum qca_wlan_vendor_attr_throughput_change {
9786 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
9787 /* Indicates the direction of throughput in which the change is being
9788 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
9789 */
9790 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
9791 /* Indicates the newly observed throughput level. enum
9792 * qca_wlan_throughput_level describes the possible range of values.
9793 * u8 attribute.
9794 */
9795 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
9796 /* Indicates the driver's guidance on the new value to be set to
9797 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
9798 * driver may optionally include this attribute.
9799 */
9800 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
9801 /* Indicates the driver's guidance on the new value to be set to
9802 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
9803 * values are from -31 to 31. The driver may optionally include this
9804 * attribute.
9805 */
9806 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
9807 /* Indicates the driver's guidance on the new value to be set to
9808 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
9809 * optionally include this attribute.
9810 */
9811 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
9812
9813 /* keep last */
9814 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
9815 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
9816 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
9817};
9818
9819/**
9820 * enum qca_coex_config_profiles - This enum defines different types of
9821 * traffic streams that can be prioritized one over the other during coex
9822 * scenarios.
9823 * The types defined in this enum are categorized in the below manner.
9824 * 0 - 31 values corresponds to WLAN
9825 * 32 - 63 values corresponds to BT
9826 * 64 - 95 values corresponds to Zigbee
9827 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
9828 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
9829 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
9830 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
9831 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
9832 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
9833 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
9834 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
9835 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
9836 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
9837 * @QCA_BT_A2DP: Prioritize BT A2DP
9838 * @QCA_BT_BLE: Prioritize BT BLE
9839 * @QCA_BT_SCO: Prioritize BT SCO
9840 * @QCA_ZB_LOW: Prioritize Zigbee Low
9841 * @QCA_ZB_HIGH: Prioritize Zigbee High
9842 */
9843enum qca_coex_config_profiles {
9844 /* 0 - 31 corresponds to WLAN */
9845 QCA_WIFI_STA_DISCOVERY = 0,
9846 QCA_WIFI_STA_CONNECTION = 1,
9847 QCA_WIFI_STA_CLASS_3_MGMT = 2,
9848 QCA_WIFI_STA_DATA = 3,
9849 QCA_WIFI_STA_ALL = 4,
9850 QCA_WIFI_SAP_DISCOVERY = 5,
9851 QCA_WIFI_SAP_CONNECTION = 6,
9852 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
9853 QCA_WIFI_SAP_DATA = 8,
9854 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -07009855 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -08009856 /* 32 - 63 corresponds to BT */
9857 QCA_BT_A2DP = 32,
9858 QCA_BT_BLE = 33,
9859 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -07009860 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -08009861 /* 64 - 95 corresponds to Zigbee */
9862 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -07009863 QCA_ZB_HIGH = 65,
9864 QCA_ZB_CASE_MAX = 95,
9865 /* 0xff is default value if the u8 profile value is not set. */
9866 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
9867};
9868
9869/**
9870 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
9871 * This enum defines the valid set of values of coex configuration types. These
9872 * values may used by attribute
9873 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
9874 *
9875 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
9876 * weights to default values.
9877 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
9878 * weights with configurability value.
9879 */
9880enum qca_vendor_attr_coex_config_types {
9881 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
9882 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
9883 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -08009884};
9885
9886/**
9887 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
9888 *
9889 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
9890 * length array of 8-bit values from enum qca_coex_config_profiles.
9891 * FW will prioritize the profiles in the order given in the array encapsulated
9892 * in this attribute.
9893 * For example:
9894 * -----------------------------------------------------------------------
9895 * | 1 | 34 | 32 | 65 |
9896 * -----------------------------------------------------------------------
9897 * If the attribute contains the values defined in above array then it means
9898 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
9899 * 2) BT_SCO has priority over BT_A2DP.
9900 * 3) BT_A2DP has priority over ZIGBEE HIGH.
9901 * Profiles which are not listed in this array shall not be preferred over the
9902 * profiles which are listed in the array as a part of this attribute.
9903 */
9904enum qca_vendor_attr_coex_config {
9905 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
9906 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
9907
9908 /* Keep last */
9909 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
9910 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
9911 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
9912};
9913
9914/**
Hai Shalom021b0b52019-04-10 11:17:58 -07009915 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
9916 * attributes
9917 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
9918 *
9919 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
9920 * Indicate config type.
9921 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
9922 *
9923 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
9924 * Indicate the Priority 1 profiles.
9925 * The profiles are 8-bit values from enum qca_coex_config_profiles.
9926 * In same priority level, maximum to 4 profiles can be set here.
9927 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
9928 * Indicate the Priority 2 profiles.
9929 * The profiles are 8-bit values from enum qca_coex_config_profiles.
9930 * In same priority level, maximum to 4 profiles can be set here.
9931 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
9932 * Indicate the Priority 3 profiles.
9933 * The profiles are 8-bit values from enum qca_coex_config_profiles.
9934 * In same priority level, maximum to 4 profiles can be set here.
9935 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
9936 * Indicate the Priority 4 profiles.
9937 * The profiles are 8-bit values from enum qca_coex_config_profiles.
9938 * In same priority level, maximum to 4 profiles can be set here.
9939 * NOTE:
9940 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
9941 * arrangement:
9942 * 1: In the same u32 attribute (priority x), the profiles enum values own
9943 * same priority level.
9944 * 2: 0xff is default value if the u8 profile value is not set.
9945 * 3: max to 4 rules/profiles in same priority level.
9946 * 4: max to 4 priority level (priority 1 - priority 4)
9947 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
9948 * hybrid rules not support.
9949 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
9950 * remain blank to reset all parameters.
9951 * For example:
9952 *
9953 * If the attributes as follow:
9954 * priority 1:
9955 * ------------------------------------
9956 * | 0xff | 0 | 1 | 2 |
9957 * ------------------------------------
9958 * priority 2:
9959 * -------------------------------------
9960 * | 0xff | 0xff | 0xff | 32 |
9961 * -------------------------------------
9962 * priority 3:
9963 * -------------------------------------
9964 * | 0xff | 0xff | 0xff | 65 |
9965 * -------------------------------------
9966 * then it means:
9967 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
9968 * owns same priority level.
9969 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
9970 * has priority over BT_A2DP and ZB_HIGH.
9971 * 3: BT_A2DP has priority over ZB_HIGH.
9972 */
Hai Shalom021b0b52019-04-10 11:17:58 -07009973enum qca_vendor_attr_coex_config_three_way {
9974 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
9975 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
9976 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
9977 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
9978 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
9979 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
9980
9981 /* Keep last */
9982 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
9983 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
9984 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
9985};
9986
9987/**
Hai Shalom74f70d42019-02-11 14:42:39 -08009988 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
9989 *
9990 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
9991 * (STA/AP) for the connected link.
9992 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
9993 * &struct nl80211_sta_flag_update for the respective connected link. MAC
9994 * address of the peer represented by
9995 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
9996 */
9997enum qca_wlan_vendor_attr_link_properties {
9998 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
9999 /* 1 - 3 are reserved */
10000 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
10001 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
10002
10003 /* Keep last */
10004 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
10005 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
10006 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
10007};
10008
Hai Shalom021b0b52019-04-10 11:17:58 -070010009/**
10010 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10011 * This enum defines the valid set of values of peer stats cache types. These
10012 * values are used by attribute
10013 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
10014 *
10015 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
10016 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
10017 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
10018 * statistics
10019 */
10020enum qca_vendor_attr_peer_stats_cache_type {
10021 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10022
10023 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10024 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10025 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10026};
10027
10028/**
10029 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10030 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10031 * Information in these attributes is used to flush peer rate statistics from
10032 * the driver to user application.
10033 *
10034 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10035 * Indicate peer statistics cache type.
10036 * The statistics types are 32-bit values from
10037 * enum qca_vendor_attr_peer_stats_cache_type.
10038 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10039 * of size 6 octets, representing the peer MAC address.
10040 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10041 * containing buffer of statistics to send to application layer entity.
10042 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10043 * representing a cookie for peer unique session.
10044 */
10045enum qca_wlan_vendor_attr_peer_stats_cache_params {
10046 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10047
10048 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10049 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10050 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10051 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10052
10053 /* Keep last */
10054 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10055 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10056 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10057};
10058
10059/**
10060 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
10061 * This enum defines all the possible states of Zigbee, which can be
10062 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
10063 *
10064 * @ZIGBEE_IDLE: Zigbee in idle state
10065 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
10066 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
10067 * @ZIGBEE_JOIN: Zigbee joining network
10068 * @ZIGBEE_NETWORK_UP: Zigbee network is up
10069 * @ZIGBEE_HMI: Zigbee in HMI mode
10070 */
10071enum qca_mpta_helper_attr_zigbee_state {
10072 ZIGBEE_IDLE = 0,
10073 ZIGBEE_FORM_NETWORK = 1,
10074 ZIGBEE_WAIT_JOIN = 2,
10075 ZIGBEE_JOIN = 3,
10076 ZIGBEE_NETWORK_UP = 4,
10077 ZIGBEE_HMI = 5,
10078};
10079
10080/*
10081 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
10082 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10083 */
10084enum qca_mpta_helper_vendor_attr {
10085 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10086 /* Optional attribute used to update Zigbee state.
10087 * enum qca_mpta_helper_attr_zigbee_state.
10088 * NLA_U32 attribute.
10089 */
10090 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10091 /* Optional attribute used to configure WLAN duration for Shape-OCS
10092 * during interrupt.
10093 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10094 * Value range 0 ~ 300 (ms).
10095 * NLA_U32 attribute.
10096 */
10097 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10098 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
10099 * during interrupt.
10100 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10101 * Value range 0 ~ 300 (ms).
10102 * NLA_U32 attribute.
10103 */
10104 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10105 /* Optional attribute used to configure WLAN duration for Shape-OCS
10106 * monitor period.
10107 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10108 * Value range 0 ~ 300 (ms)
10109 * NLA_U32 attribute
10110 */
10111 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10112 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
10113 * monitor period.
10114 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10115 * Value range 0 ~ 300 (ms)
10116 * NLA_U32 attribute
10117 */
10118 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10119 /* Optional attribute used to configure OCS interrupt duration.
10120 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10121 * Value range 1000 ~ 20000 (ms)
10122 * NLA_U32 attribute
10123 */
10124 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10125 /* Optional attribute used to configure OCS monitor duration.
10126 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10127 * Value range 1000 ~ 20000 (ms)
10128 * NLA_U32 attribute
10129 */
10130 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10131 /* Optional attribute used to notify WLAN firmware the current Zigbee
10132 * channel.
10133 * Value range 11 ~ 26
10134 * NLA_U32 attribute
10135 */
10136 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10137 /* Optional attribute used to configure WLAN mute duration.
10138 * Value range 0 ~ 400 (ms)
10139 * NLA_U32 attribute
10140 */
10141 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10142
10143 /* keep last */
10144 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10145 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10146 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10147};
10148
Hai Shalom81f62d82019-07-22 12:10:00 -070010149/**
10150 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10151 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
10152 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10153 *
10154 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10155 * to request the driver to start reporting Beacon frames.
10156 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
10157 * request the driver to stop reporting Beacon frames.
10158 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10159 * userspace to report received Beacon frames.
10160 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10161 * to indicate that the driver is going to pause reporting Beacon frames.
10162 */
10163enum qca_wlan_vendor_beacon_reporting_op_types {
10164 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10165 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10166 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10167 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10168};
10169
10170/**
10171 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
10172 * of reasons for which the driver is pausing reporting Beacon frames. Will be
10173 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10174 *
10175 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10176 * reasons.
10177 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10178 * driver/firmware is starting a scan.
10179 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10180 * driver/firmware disconnects from the ESS and indicates the disconnection to
10181 * userspace (non-seamless roaming case). This reason code will be used by the
10182 * driver/firmware to indicate stopping of beacon report events. Userspace will
10183 * need to start beacon reporting again (if desired) by sending vendor command
10184 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10185 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10186 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10187 * completed.
10188 */
10189enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10190 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10191 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10192 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10193};
10194
10195/*
10196 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10197 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10198 */
10199enum qca_wlan_vendor_attr_beacon_reporting_params {
10200 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10201 /* Specifies the type of operation that the vendor command/event is
10202 * intended for. Possible values for this attribute are defined in
10203 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10204 */
10205 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10206 /* Optionally set by userspace to request the driver to report Beacon
10207 * frames using asynchronous vendor events when the
10208 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10209 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10210 * If this flag is not set, the driver will only update Beacon frames in
10211 * cfg80211 scan cache but not send any vendor events.
10212 */
10213 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10214 /* Optionally used by userspace to request the driver/firmware to report
10215 * Beacon frames periodically when the
10216 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10217 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10218 * u32 attribute, indicates the period of Beacon frames to be reported
10219 * and in the units of beacon interval.
10220 * If this attribute is missing in the command, then the default value
10221 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10222 * Zero is an invalid value.
10223 * If a valid value is received for this attribute, the driver will
10224 * update the cfg80211 scan cache periodically as per the value received
10225 * in this attribute in addition to updating the cfg80211 scan cache
10226 * when there is significant change in Beacon frame IEs.
10227 */
10228 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10229 /* Used by the driver to encapsulate the SSID when the
10230 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10231 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10232 * u8 array with a maximum size of 32.
10233 *
10234 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10235 * will be taken from the SSID element of the received Beacon frame.
10236 *
10237 * When generating beacon report from Multiple BSSID Beacon frame and if
10238 * the BSSID of the current connected BSS matches the BSSID of the
10239 * transmitting BSS, the SSID will be taken from the SSID element of the
10240 * received Beacon frame.
10241 *
10242 * When generating beacon report from Multiple BSSID Beacon frame and if
10243 * the BSSID of the current connected BSS matches the BSSID of one of
10244 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
10245 * included in the nontransmitted BSS profile whose derived BSSID is
10246 * same as the BSSID of the current connected BSS. When there is no
10247 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
10248 * of current connected* BSS, this attribute will not be present.
10249 */
10250 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
10251 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
10252 * currently connected to when the
10253 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10254 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
10255 * fixed size of 6 bytes.
10256 *
10257 * When generating beacon report from a Multiple BSSID beacon and the
10258 * current connected BSSID matches one of the nontransmitted BSSIDs in a
10259 * Multiple BSSID set, this BSSID will be that particular nontransmitted
10260 * BSSID and not the transmitted BSSID (i.e., the transmitting address
10261 * of the Beacon frame).
10262 */
10263 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
10264 /* Used by the driver to encapsulate the frequency in MHz on which
10265 * the Beacon frame was received when the
10266 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
10267 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10268 * u32 attribute.
10269 */
10270 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
10271 /* Used by the driver to encapsulate the Beacon interval
10272 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10273 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10274 * u16 attribute. The value will be copied from the Beacon frame and the
10275 * units are TUs.
10276 */
10277 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
10278 /* Used by the driver to encapsulate the Timestamp field from the Beacon
10279 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
10280 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10281 * u64 attribute.
10282 */
10283 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
10284 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
10285 * Beacon frame is received in the driver when the
10286 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10287 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
10288 * the units of nanoseconds. This value is expected to have accuracy of
10289 * about 10 ms.
10290 */
10291 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
10292 /* Used by the driver to encapsulate the IEs of the Beacon frame from
10293 * which this event is generated when the
10294 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10295 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
10296 */
10297 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
10298 /* Used by the driver to specify the reason for the driver/firmware to
10299 * pause sending beacons to userspace when the
10300 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10301 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
10302 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
10303 * attribute.
10304 */
10305 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
10306 /* Used by the driver to specify whether the driver will automatically
10307 * resume reporting beacon events to userspace later (for example after
10308 * the ongoing off-channel activity is completed etc.) when the
10309 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10310 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
10311 */
10312 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
10313 /* Optionally set by userspace to request the driver not to resume
10314 * beacon reporting after a pause is completed, when the
10315 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10316 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10317 * If this flag is set, the driver will not resume beacon reporting
10318 * after any pause in beacon reporting is completed. Userspace has to
10319 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
10320 * to initiate beacon reporting again. If this flag is set in the recent
10321 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
10322 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
10323 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
10324 * set by the driver. Setting this flag until and unless there is a
10325 * specific need is not recommended as there is a chance of some beacons
10326 * received after pause command and next start command being not
10327 * reported.
10328 */
10329 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
10330
10331 /* Keep last */
10332 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
10333 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
10334 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
10335};
10336
10337/**
10338 * enum qca_vendor_interop_issues_ap_type - Interop issue types
10339 * This enum defines the valid set of values of interop issue types. These
10340 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
10341 *
10342 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
10343 * when the STA's Qpower feature is enabled.
10344 */
10345enum qca_vendor_interop_issues_ap_type {
10346 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
10347 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
10348};
10349
10350/**
10351 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
10352 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
10353 *
10354 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
10355 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
10356 * 32-bit unsigned value. The values defined in enum
10357 * qca_vendor_interop_issues_ap_type are used.
10358 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
10359 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
10360 * It is present and mandatory for the command but is not used for the event
10361 * since only a single BSSID is reported in an event.
10362 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
10363 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
10364 * attribute in command case and without such encapsulation in the event case.
10365 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
10366 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
10367 */
10368enum qca_vendor_attr_interop_issues_ap {
10369 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
10370 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
10371 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
10372 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
10373 /* keep last */
10374 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
10375 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
10376 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
10377};
10378
Hai Shalomc3565922019-10-28 11:58:20 -070010379/**
10380 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
10381 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
10382 *
10383 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
10384 * a virtual device.
10385 *
10386 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
10387 * a physical device.
10388 */
10389enum qca_vendor_oem_device_type {
10390 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
10391 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
10392};
10393
10394/**
10395 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
10396 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
10397 *
Hai Shalom899fcc72020-10-19 14:38:18 -070010398 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
10399 * used to set/query the data to/from the firmware. On query, the same
10400 * attribute is used to carry the respective data in the reply sent by the
10401 * driver to userspace. The request to set/query the data and the format of the
10402 * respective data from the firmware are embedded in the attribute. The
10403 * maximum size of the attribute payload is 1024 bytes.
10404 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
10405 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070010406 *
10407 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
10408 * based on this field. This optional attribute is included to specify whether
10409 * the device type is a virtual device or a physical device for the
10410 * command/event. This attribute can be omitted for a virtual device (default)
10411 * command/event.
10412 * This u8 attribute is used to carry information for the device type using
10413 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -070010414 *
10415 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
10416 * is set when the userspace queries data from the firmware. This attribute
10417 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070010418 */
10419enum qca_wlan_vendor_attr_oem_data_params {
10420 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
10421 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
10422 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070010423 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -070010424
10425 /* keep last */
10426 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
10427 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
10428 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
10429};
10430
10431/**
10432 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
10433 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
10434 *
10435 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
10436 * Nested attribute containing multiple ranges with following attributes:
Hai Shaloma20dcd72022-02-04 13:43:00 -080010437 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
10438 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
10439 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
Hai Shalomc3565922019-10-28 11:58:20 -070010440 *
10441 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
10442 * Starting center frequency in MHz.
10443 *
10444 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
10445 * Ending center frequency in MHz.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010446 *
10447 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
10448 * s32 attribute, optional. It is a per frequency range attribute.
10449 * The maximum TX power limit from user space is to be applied on an
10450 * unrestricted interface for corresponding frequency range. It is also
10451 * possible that the actual TX power may be even lower than this cap due to
10452 * other considerations such as regulatory compliance, SAR, etc. In absence of
10453 * this attribute the driver shall follow current behavior which means
10454 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
10455 * power derived by the driver based on regulatory/SAR during interface up.
10456 *
10457 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
10458 * u32 attribute, optional. Indicates all the interface types which are
10459 * restricted for all frequency ranges provided in
10460 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
10461 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
10462 * This attribute encapsulates bitmasks of interface types defined in
10463 * enum nl80211_iftype. If an interface is marked as restricted the driver must
10464 * move to a safe channel and if no safe channel is available the driver shall
10465 * terminate that interface functionality. In absence of this attribute,
10466 * interface (SAP/P2P) can still continue operating on an unsafe channel with
10467 * TX power limit derived from either
10468 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
10469 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
10470 * is not provided.
Hai Shalomc3565922019-10-28 11:58:20 -070010471 */
10472enum qca_wlan_vendor_attr_avoid_frequency_ext {
10473 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
10474 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
10475 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
10476 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010477 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
10478 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
Hai Shalomc3565922019-10-28 11:58:20 -070010479
10480 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
10481 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
10482 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
10483};
10484
10485/*
10486 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
10487 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
10488 */
10489enum qca_wlan_vendor_attr_add_sta_node_params {
10490 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
10491 /* 6 byte MAC address of STA */
10492 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
10493 /* Authentication algorithm used by the station of size u16;
10494 * defined in enum nl80211_auth_type.
10495 */
10496 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
10497
10498 /* keep last */
10499 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
10500 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
10501 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
10502};
10503
10504/**
10505 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
10506 * This enum defines the valid set of values of BT coex chain mode.
10507 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
10508 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10509 *
10510 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
10511 * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
10512 */
10513enum qca_btc_chain_mode {
10514 QCA_BTC_CHAIN_SHARED = 0,
10515 QCA_BTC_CHAIN_SEPARATED = 1,
10516};
10517
10518/**
10519 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
10520 * chain mode.
10521 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10522 *
10523 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
10524 * Indicates the BT coex chain mode, are 32-bit values from
10525 * enum qca_btc_chain_mode. This attribute is mandatory.
10526 *
10527 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
10528 * If set, vdev should be restarted when BT coex chain mode is updated.
10529 * This attribute is optional.
10530 */
10531enum qca_vendor_attr_btc_chain_mode {
10532 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
10533 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
10534 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
10535
10536 /* Keep last */
10537 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
10538 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
10539 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
10540};
10541
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010542/**
10543 * enum qca_vendor_wlan_sta_flags - Station feature flags
10544 * Bits will be set to 1 if the corresponding features are enabled.
10545 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
10546 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
10547 for the station
10548 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
10549 for the station
10550 */
10551enum qca_vendor_wlan_sta_flags {
10552 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
10553 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
10554 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
10555};
10556
10557/**
10558 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
10559 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
10560 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
10561 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
10562 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
10563 */
10564enum qca_vendor_wlan_sta_guard_interval {
10565 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
10566 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
10567 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
10568 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
10569};
10570
10571/**
10572 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
10573 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
10574 *
10575 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -070010576 * Required attribute in request for AP mode only, 6-byte MAC address,
10577 * corresponding to the station's MAC address for which information is
10578 * requested. For STA mode this is not required as the info always correspond
10579 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010580 *
10581 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
10582 * Optionally used in response, u32 attribute, contains a bitmap of different
10583 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
10584 *
10585 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
10586 * Optionally used in response, u32 attribute, possible values are defined in
10587 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
10588 * Guard interval used by the station.
10589 *
10590 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
10591 * Optionally used in response, u32 attribute, used in AP mode only.
10592 * Value indicates the number of data frames received from station with retry
10593 * bit set to 1 in FC.
10594 *
10595 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
10596 * Optionally used in response, u32 attribute, used in AP mode only.
10597 * Counter for number of data frames with broadcast or multicast address in
10598 * the destination address received from the station.
10599 *
10600 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
10601 * Optionally used in response, u32 attribute, used in both STA and AP modes.
10602 * Value indicates the number of data frames successfully transmitted only
10603 * after retrying the packets and for which the TX status has been updated
10604 * back to host from target.
10605 *
10606 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070010607 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010608 * Value indicates the number of data frames not transmitted successfully even
10609 * after retrying the packets for the number of times equal to the total number
10610 * of retries allowed for that packet and for which the TX status has been
10611 * updated back to host from target.
10612 *
10613 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
10614 * Optionally used in response, u32 attribute, used in AP mode only.
10615 * Counter in the target for the number of data frames successfully transmitted
10616 * to the station.
10617 *
10618 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
10619 * Optionally used in response, u32 attribute, used in AP mode only.
10620 * Value indicates the number of data frames successfully transmitted only
10621 * after retrying the packets.
10622 *
10623 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070010624 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010625 * Value indicates the number of data frames not transmitted successfully even
10626 * after retrying the packets for the number of times equal to the total number
10627 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -070010628 *
10629 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
10630 * the STA mode only. Represent the number of probe requests sent by the STA
10631 * while attempting to roam on missing certain number of beacons from the
10632 * connected AP. If queried in the disconnected state, this represents the
10633 * count for the last connected state.
10634 *
10635 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
10636 * the STA mode. Represent the number of probe responses received by the station
10637 * while attempting to roam on missing certain number of beacons from the
10638 * connected AP. When queried in the disconnected state, this represents the
10639 * count when in last connected state.
10640 *
10641 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
10642 * STA mode only. Represents the total number of frames sent out by STA
10643 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
10644 * only for the connect session. Represents the count of last connected session,
10645 * when queried in the disconnected state.
10646 *
10647 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
10648 * Total number of RTS sent out by the STA. This data is maintained per connect
10649 * session. Represents the count of last connected session, when queried in the
10650 * disconnected state.
10651 *
10652 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
10653 * STA mode.Represent the number of RTS transmission failure that reach retry
10654 * limit. This data is maintained per connect session. Represents the count of
10655 * last connected session, when queried in the disconnected state.
10656 *
10657 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
10658 * the STA mode. Represent the total number of non aggregated frames transmitted
10659 * by the STA. This data is maintained per connect session. Represents the count
10660 * of last connected session, when queried in the disconnected state.
10661 *
10662 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
10663 * STA mode. Represent the total number of aggregated frames transmitted by the
10664 * STA. This data is maintained per connect session. Represents the count of
10665 * last connected session, when queried in the disconnected state.
10666 *
10667 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
10668 * the STA mode. Represents the number of received frames with a good PLCP. This
10669 * data is maintained per connect session. Represents the count of last
10670 * connected session, when queried in the disconnected state.
10671 *
10672 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
10673 * used in the STA mode. Represents the number of occasions that no valid
10674 * delimiter is detected by A-MPDU parser. This data is maintained per connect
10675 * session. Represents the count of last connected session, when queried in the
10676 * disconnected state.
10677 *
10678 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
10679 * STA mode. Represents the number of frames for which CRC check failed in the
10680 * MAC. This data is maintained per connect session. Represents the count of
10681 * last connected session, when queried in the disconnected state.
10682 *
10683 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
10684 * STA mode. Represents the number of unicast ACKs received with good FCS. This
10685 * data is maintained per connect session. Represents the count of last
10686 * connected session, when queried in the disconnected state.
10687 *
10688 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
10689 * mode. Represents the number of received Block Acks. This data is maintained
10690 * per connect session. Represents the count of last connected session, when
10691 * queried in the disconnected state.
10692 *
10693 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
10694 * mode. Represents the number of beacons received from the connected BSS. This
10695 * data is maintained per connect session. Represents the count of last
10696 * connected session, when queried in the disconnected state.
10697 *
10698 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
10699 * STA mode. Represents the number of beacons received by the other BSS when in
10700 * connected state (through the probes done by the STA). This data is maintained
10701 * per connect session. Represents the count of last connected session, when
10702 * queried in the disconnected state.
10703 *
10704 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
10705 * the STA mode. Represents the number of received DATA frames with good FCS and
10706 * matching Receiver Address when in connected state. This data is maintained
10707 * per connect session. Represents the count of last connected session, when
10708 * queried in the disconnected state.
10709 *
10710 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
10711 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
10712 * when in the connected state. This data is maintained per connect session.
10713 * Represents the count of last connected session, when queried in the
10714 * disconnected state.
10715 *
10716 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
10717 * STA mode. This represents the target power in dBm for the transmissions done
10718 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
10719 * connect session. Represents the count of last connected session, when
10720 * queried in the disconnected state.
10721 *
10722 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
10723 * STA mode. This represents the Target power in dBm for transmissions done to
10724 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
10725 * session. Represents the count of last connected session, when queried in the
10726 * disconnected state.
10727 *
10728 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
10729 * STA mode. This represents the Target power in dBm for transmissions done to
10730 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
10731 * Represents the count of last connected session, when queried in the
10732 * disconnected state.
10733 *
10734 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
10735 * STA mode. This represents the Target power in dBm for transmissions done to
10736 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
10737 * session. Represents the count of last connected session, when queried in
10738 * the disconnected state.
10739 *
10740 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
10741 * STA mode. This represents the Target power in dBm for for transmissions done
10742 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
10743 * Represents the count of last connected session, when queried in the
10744 * disconnected state.
10745 *
10746 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
10747 * in the STA mode. This represents the Nested attribute representing the
10748 * overflow counts of each receive buffer allocated to the hardware during the
10749 * STA's connection. The number of hw buffers might vary for each WLAN
10750 * solution and hence this attribute represents the nested array of all such
10751 * HW buffer count. This data is maintained per connect session. Represents
10752 * the count of last connected session, when queried in the disconnected state.
10753 *
10754 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
10755 * allowed as per the regulatory requirements for the current or last connected
10756 * session. Used in the STA mode.
10757 *
10758 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
10759 * (dBm) used by the station in its latest unicast frame while communicating
10760 * to the AP in the connected state. When queried in the disconnected state,
10761 * this represents the TX power used by the STA with last AP communication
10762 * when in connected state.
10763 *
10764 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
10765 * level used to adjust the RX sensitivity. Represents the current ANI level
10766 * when queried in the connected state. When queried in the disconnected
10767 * state, this corresponds to the latest ANI level at the instance of
10768 * disconnection.
10769 *
10770 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
10771 * the raw information elements from Beacon frames. Represents the Beacon frames
10772 * of the current BSS in the connected state. When queried in the disconnected
10773 * state, these IEs correspond to the last connected BSSID.
10774 *
10775 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
10776 * containing the raw information elements from Probe Response frames.
10777 * Represents the Probe Response frames of the current BSS in the connected
10778 * state. When queried in the disconnected state, these IEs correspond to the
10779 * last connected BSSID.
10780 *
10781 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
10782 * disconnect reason for the last disconnection if the disconnection is
10783 * triggered from the host driver. The values are referred from
10784 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070010785 *
10786 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
10787 * only. This represents the number of group addressed robust management frames
10788 * received from this station with an invalid MIC or a missing MME when PMF is
10789 * enabled.
10790 *
10791 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
10792 * only. This represents the number of group addressed robust management frames
10793 * received from this station with the packet number less than or equal to the
10794 * last received packet number when PMF is enabled.
10795 *
10796 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
10797 * mode only. This represents the number of Beacon frames received from this
10798 * station with an invalid MIC or a missing MME when beacon protection is
10799 * enabled.
10800 *
10801 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
10802 * only. This represents number of Beacon frames received from this station with
10803 * the packet number less than or equal to the last received packet number when
10804 * beacon protection is enabled.
10805 *
10806 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
10807 * STA mode only. The driver uses this attribute to populate the connection
10808 * failure reason codes and the values are defined in
10809 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
10810 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
10811 * a connection failure indication from the driver. The driver shall not
10812 * include this attribute in response to the
10813 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
10814 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080010815 *
10816 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
10817 * used by the station in its last TX frame while communicating to the AP in the
10818 * connected state. When queried in the disconnected state, this represents the
10819 * rate used by the STA in the last TX frame to the AP when it was connected.
10820 * This attribute is used for STA mode only.
10821 *
10822 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
10823 * This represents the rate index used by the STA for the last TX frame to the
10824 * AP. When queried in the disconnected state, this gives the last RIX used by
10825 * the STA in the last TX frame to the AP when it was connected.
10826 *
10827 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
10828 * mode only. This represents the number of times the STA TSF goes out of sync
10829 * from the AP after the connection. If queried in the disconnected state, this
10830 * gives the count of TSF out of sync for the last connection.
10831 *
10832 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
10833 * mode only. This represents the roam trigger reason for the last roaming
10834 * attempted by the firmware. This can be queried either in connected state or
10835 * disconnected state. Each bit of this attribute represents the different
10836 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
10837 *
10838 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
10839 * only. This represents the roam fail reason for the last failed roaming
10840 * attempt by the firmware. Different roam failure reason codes are specified
10841 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
10842 * connected state or disconnected state.
10843 *
10844 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
10845 * STA mode only. This represents the roam invoke fail reason for the last
10846 * failed roam invoke. Different roam invoke failure reason codes
10847 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
10848 * queried either in connected state or disconnected state.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010849 *
10850 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
10851 * This represents the average congestion duration of uplink frames in MAC
10852 * queue in unit of ms. This can be queried either in connected state or
10853 * disconnected state.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010854 */
10855enum qca_wlan_vendor_attr_get_sta_info {
10856 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
10857 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
10858 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
10859 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
10860 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
10861 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
10862 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
10863 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
10864 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
10865 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
10866 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070010867 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
10868 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
10869 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
10870 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
10871 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
10872 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
10873 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
10874 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
10875 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
10876 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
10877 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
10878 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
10879 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
10880 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
10881 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
10882 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
10883 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
10884 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
10885 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
10886 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
10887 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
10888 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
10889 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
10890 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
10891 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
10892 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
10893 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
10894 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070010895 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
10896 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
10897 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
10898 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
10899 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080010900 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
10901 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
10902 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
10903 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
10904 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
10905 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010906 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010907
10908 /* keep last */
10909 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
10910 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
10911 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
10912};
10913
Hai Shalomfdcde762020-04-02 11:19:20 -070010914/**
10915 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
10916 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
10917 *
10918 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
10919 * Used in STA mode. This attribute represents the list of channel center
10920 * frequencies in MHz (u32) the station has learnt during the last connection
10921 * or roaming attempt. This information shall not signify the channels for
10922 * an explicit scan request from the user space. Host drivers can update this
10923 * information to the user space in both connected and disconnected state.
10924 * In the disconnected state this information shall signify the channels
10925 * scanned in the last connection/roam attempt that lead to the disconnection.
10926 */
10927enum qca_wlan_vendor_attr_update_sta_info {
10928 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
10929 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
10930
10931 /* keep last */
10932 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
10933 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
10934 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
10935};
10936
10937/**
10938 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
10939 * Used when the driver triggers the STA to disconnect from the AP.
10940 *
10941 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
10942 * disconnection with the AP due to unspecified reasons.
10943 *
10944 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
10945 * disconnection with the AP due to a roaming failure. This roaming is triggered
10946 * internally (host driver/firmware).
10947 *
10948 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
10949 * the AP when the user/external triggered roaming fails.
10950 *
10951 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
10952 * by the host driver whenever gateway reachability failure is detected and the
10953 * driver disconnects with AP.
10954 *
10955 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
10956 * the AP on a channel switch announcement from it with an unsupported channel.
10957 *
10958 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
10959 * with indoor channels disabled and if the STA is connected on one of these
10960 * disabled channels, the host driver disconnected the STA with this reason
10961 * code.
10962 *
10963 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
10964 * explicit request from the user to disable the current operating channel.
10965 *
10966 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
10967 * the internal host driver/firmware recovery.
10968 *
10969 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
10970 * a timeout for the key installations from the user space.
10971 *
10972 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
10973 * STA on a band change request from the user space to a different band from the
10974 * current operation channel/band.
10975 *
10976 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
10977 * interface down trigger from the user space.
10978 *
10979 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
10980 * STA on getting continuous transmission failures for multiple Data frames.
10981 *
10982 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
10983 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
10984 * represents inactivity from AP on such transmissions.
10985
10986 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
10987 * disconnection when SA Query times out (AP does not respond to SA Query).
10988 *
10989 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
10990 * STA on missing the beacons continuously from the AP.
10991 *
10992 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
10993 * able to move to the channel mentioned by the AP in CSA.
10994 *
10995 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
10996 */
10997enum qca_disconnect_reason_codes {
10998 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
10999 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11000 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11001 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11002 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11003 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11004 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11005 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11006 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11007 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11008 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11009 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11010 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11011 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11012 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11013 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11014 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11015};
11016
11017/**
11018 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11019 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11020 *
11021 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11022 * This attribute represents the driver specific reason codes (local
11023 * driver/firmware initiated reasons for disconnection) defined
11024 * in enum qca_disconnect_reason_codes.
11025 */
11026enum qca_wlan_vendor_attr_driver_disconnect_reason {
11027 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11028 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11029
11030 /* keep last */
11031 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11032 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11033 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11034};
11035
Hai Shalom899fcc72020-10-19 14:38:18 -070011036/**
11037 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11038 *
11039 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11040 */
11041enum qca_wlan_tspec_operation {
11042 QCA_WLAN_TSPEC_ADD = 0,
11043 QCA_WLAN_TSPEC_DEL = 1,
11044 QCA_WLAN_TSPEC_GET = 2,
11045};
11046
11047/**
11048 * enum qca_wlan_tspec_direction - Direction in TSPEC
11049 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11050 *
11051 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11052 */
11053enum qca_wlan_tspec_direction {
11054 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11055 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11056 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11057 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11058};
11059
11060/**
11061 * enum qca_wlan_tspec_ack_policy - MAC acknowledgement policy in TSPEC
11062 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11063 *
11064 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11065 */
11066enum qca_wlan_tspec_ack_policy {
11067 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11068 QCA_WLAN_TSPEC_NO_ACK = 1,
11069 /* Reserved */
11070 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11071};
11072
11073/**
11074 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11075 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11076 *
11077 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11078 * u8 attribute. Specify the TSPEC operation of this request. Possible values
11079 * are defined in enum qca_wlan_tspec_operation.
11080 * Mandatory attribute for all kinds of config TSPEC requests.
11081 *
11082 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11083 * u8 attribute. TS ID. Possible values are 0-7.
11084 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11085 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11086 *
11087 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11088 * u8 attribute. Direction of data carried by the TS. Possible values are
11089 * defined in enum qca_wlan_tspec_direction.
11090 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11091 *
11092 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11093 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11094 * with the TS. set - enabled, not set - disabled.
11095 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11096 *
11097 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11098 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
11099 * belonging to this TS. Possible values are 0-7.
11100 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11101 *
11102 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11103 * u8 attribute. Indicate whether MAC acknowledgements are required for
11104 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11105 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11106 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11107 *
11108 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11109 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11110 * belonging to this TS.
11111 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11112 *
11113 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11114 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11115 * belonging to this TS.
11116 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11117 *
11118 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11119 * u32 attribute. Specify the minimum interval in microseconds between the
11120 * start of two successive SPs.
11121 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11122 *
11123 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11124 * u32 attribute. Specify the maximum interval in microseconds between the
11125 * start of two successive SPs.
11126 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11127 *
11128 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11129 * u32 attribute. Specify the minimum interval in microseconds that can elapse
11130 * without arrival or transfer of an MPDU belonging to the TS before this TS
11131 * is deleted by the MAC entity at the HC.
11132 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11133 *
11134 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11135 * u32 attribute. Specify the minimum interval in microseconds that can elapse
11136 * without arrival or transfer of an MSDU belonging to the TS before the
11137 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11138 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11139 * interval is always less than or equal to the inactivity interval.
11140 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11141 *
11142 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11143 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11144 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11145 * bounds of this TSPEC.
11146 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11147 *
11148 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11149 * u32 attribute. Indicate the average data rate in bps specified at the MAC
11150 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11151 * bounds of this TSPEC.
11152 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11153 *
11154 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11155 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11156 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11157 * the bounds of this TSPEC.
11158 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11159 *
11160 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11161 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11162 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11163 * value of 0 indicates that there are no bursts.
11164 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11165 *
11166 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11167 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11168 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11169 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11170 *
11171 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11172 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11173 * and above the stated application rates required to transport an MSDU/A-MSDU
11174 * belonging to the TS in this TSPEC.
11175 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11176 */
11177enum qca_wlan_vendor_attr_config_tspec {
11178 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11179 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11180 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11181 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11182 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11183 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11184 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11185 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11186 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11187 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11188 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11189 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11190 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11191 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11192 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11193 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11194 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11195 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11196 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11197
11198 /* keep last */
11199 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11200 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11201 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11202};
11203
11204/**
11205 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
11206 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
11207 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
11208 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
11209 * frame
11210 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
11211 * Request frame.
11212 */
11213enum qca_wlan_vendor_oci_override_frame_type {
11214 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
11215 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
11216 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
11217 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
11218};
11219
11220/**
11221 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
11222 * OCI override request. These attributes are used inside nested attribute
11223 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
11224 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
11225 *
11226 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
11227 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
11228 * attribute to specify the frame type in which the OCI is to be overridden.
11229 *
11230 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
11231 * OCI frequency (in MHz) to override in the specified frame type.
11232 */
11233enum qca_wlan_vendor_attr_oci_override {
11234 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
11235 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
11236 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
11237
11238 /* keep last */
11239 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
11240 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
11241 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
11242};
11243
11244/**
11245 * enum qca_wlan_medium_assess_type - Type of medium assess request
11246 *
11247 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11248 */
11249enum qca_wlan_medium_assess_type {
11250 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11251 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11252};
11253
11254/**
11255 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11256 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11257 *
11258 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11259 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11260 * Specify the type of medium assess request and indicate its type in response.
11261 * Possible values are defined in enum qca_wlan_medium_assess_type.
11262 *
11263 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11264 * u32 attribute. Mandatory in CCA request.
11265 * Specify the assessment period in terms of seconds. Assessment result will be
11266 * sent as the response to the CCA request after the assessment period.
11267 *
11268 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11269 * u32 attribute. Mandatory in response to CCA request.
11270 * Total timer tick count of the assessment cycle.
11271 *
11272 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11273 * u32 attribute. Mandatory in response to CCA request.
11274 * Timer tick count of idle time in the assessment cycle.
11275 *
11276 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11277 * u32 attribute. Mandatory in response to CCA request.
11278 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11279 *
11280 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11281 * u32 attribute. Mandatory in response to CCA request.
11282 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11283 *
11284 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11285 * s32 attribute. Mandatory in response to CCA request.
11286 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11287 *
11288 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11289 * s32 attribute. Mandatory in response to CCA request.
11290 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
11291 *
11292 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
11293 * u8 attribute. Mandatory in congestion report request.
11294 * 1-enable 0-disable.
11295 *
11296 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
11297 * u8 attribute. Mandatory in congestion report enable request and will be
11298 * ignored if present in congestion report disable request. Possible values are
11299 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
11300 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
11301 * congestion percentage reaches the configured threshold.
11302 *
11303 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
11304 * u8 attribute. Optional in congestion report enable request and will be
11305 * ignored if present in congestion report disable request.
11306 * Specify the interval of congestion report event in terms of seconds. Possible
11307 * values are 1-255. Default value 1 will be used if this attribute is omitted
11308 * or using invalid values.
11309 *
11310 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
11311 * u8 attribute. Mandatory in congestion report event.
11312 * Indicate the actual congestion percentage. Possible values are 0-100.
11313 */
11314enum qca_wlan_vendor_attr_medium_assess {
11315 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
11316 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
11317
11318 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
11319 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
11320 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
11321 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
11322 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
11323 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
11324 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
11325
11326 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
11327 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
11328 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
11329 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
11330
11331 /* keep last */
11332 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
11333 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
11334 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
11335};
11336
11337/**
11338 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
11339 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
11340 *
11341 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
11342 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
11343 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
11344 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011345 *
11346 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
11347 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
11348 *
11349 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
11350 * u8 attribute, required. Indicates group id of Tx VDEV.
11351 *
11352 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
11353 * Nested attribute. This attribute shall be used by the driver to send
11354 * group information. The attributes defined in enum
11355 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
11356 * are nested in this attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -070011357 */
11358enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
11359 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
11360 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011361 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
11362 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
11363 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
Hai Shalom899fcc72020-10-19 14:38:18 -070011364
11365 /* keep last */
11366 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
11367 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
11368 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
11369};
11370
11371/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011372 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
11373 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
11374 *
11375 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
11376 * u32 attribute, required. Contains interface index.
11377 *
11378 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
11379 * u8 attribute, required. 0 - means vdev is in down state.
11380 * 1 - means vdev is in up state.
11381 */
11382enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
11383 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
11384 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
11385 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
11386
11387 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
11388 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
11389 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
11390};
11391
11392/**
11393 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
11394 *
11395 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
11396 * STA interface has to be given while selecting the connection policies
11397 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
11398 * An interface is set as primary through the attribute
11399 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
11400 * applicable if the primary interface has not been set earlier.
11401 *
11402 * The intention is not to downgrade the primary STA performance, such as:
11403 * - Do not reduce the number of TX/RX chains of primary connection.
11404 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
11405 * chains.
11406 * - If using MCC, should set the MCC duty cycle of the primary connection to
11407 * be higher than the secondary connection.
11408 *
11409 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
11410 * subsequent STA connection shall be chosen to balance with the existing
11411 * concurrent STA's performance.
11412 * Such as
11413 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
11414 * capability.
11415 * - If using MCC, set the MCC duty cycle of the primary connection to be equal
11416 * to the secondary.
11417 * - Prefer BSSID candidates which will help provide the best "overall"
11418 * performance for all the STA connections.
11419 */
11420enum qca_wlan_concurrent_sta_policy_config {
11421 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
11422 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
11423};
11424
11425/**
11426 * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes
11427 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command.
11428 *
11429 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG:
11430 * u8 attribute. Configures the concurrent STA policy configuration.
11431 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
11432 */
11433enum qca_wlan_vendor_attr_concurrent_sta_policy {
11434 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0,
11435 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1,
11436
11437 /* keep last */
11438 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST,
11439 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX =
11440 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1,
11441
11442};
11443
11444/**
Hai Shalom899fcc72020-10-19 14:38:18 -070011445 * enum qca_sta_connect_fail_reason_codes - Defines values carried
11446 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
11447 * attribute.
11448 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
11449 * for unicast Probe Request frame.
11450 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
11451 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
11452 * auth request.
11453 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
11454 * received from AP.
11455 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
11456 * Association Request frame.
11457 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
11458 * Association Request frame.
11459 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
11460 * frame is not received from AP.
11461 */
11462enum qca_sta_connect_fail_reason_codes {
11463 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
11464 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
11465 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
11466 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
11467 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
11468 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
11469 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
11470};
11471
Hai Shaloma20dcd72022-02-04 13:43:00 -080011472/**
11473 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
11474 * filters defined in this enum are used in attribute
11475 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
11476 *
11477 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
11478 * shall filter the channels which are not usable because of coexistence with
11479 * cellular radio.
11480 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
11481 * shall filter the channels which are not usable because of existing active
11482 * interfaces in the driver and will result in Multi Channel Concurrency, etc.
11483 *
11484 */
11485enum qca_wlan_vendor_usable_channels_filter {
11486 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
11487 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
11488};
11489
11490/**
11491 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
11492 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
11493 *
11494 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
11495 * u32 attribute, required. Indicates the center frequency of the primary
11496 * channel in MHz.
11497 *
11498 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
11499 * u32 attribute. Indicates the center frequency of the primary segment of the
11500 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
11501 * 160 MHz, and 320 MHz channels.
11502 *
11503 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
11504 * u32 attribute. Indicates the center frequency of the secondary segment of
11505 * 80+80 channel in MHz. This attribute is required only when
11506 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
11507 *
11508 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
11509 * u32 attribute, required. Indicates the bandwidth of the channel, possible
11510 * values are defined in enum nl80211_chan_width.
11511 *
11512 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
11513 * u32 attribute, required. Indicates all the interface types for which this
11514 * channel is usable. This attribute encapsulates bitmasks of interface types
11515 * defined in enum nl80211_iftype.
11516 *
11517 */
11518enum qca_wlan_vendor_attr_chan_info {
11519 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
11520 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
11521 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
11522 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
11523 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
11524 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
11525
11526 /* keep last */
11527 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
11528 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
11529 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
11530};
11531
11532/**
11533 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
11534 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
11535 *
11536 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
11537 * u32 attribute. Indicates the bands from which the channels should be reported
11538 * in response. This attribute encapsulates bit masks of bands defined in enum
11539 * nl80211_band. Optional attribute, if not present in the request the driver
11540 * shall return channels from all supported bands.
11541 *
11542 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
11543 * u32 attribute. Indicates all the interface types for which the usable
11544 * channels information is requested. This attribute encapsulates bitmasks of
11545 * interface types defined in enum nl80211_iftype. Optional attribute, if not
11546 * present in the request the driver shall send information of all supported
11547 * interface modes.
11548 *
11549 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
11550 * u32 attribute. This attribute carries information of all filters that shall
11551 * be applied while populating usable channels information by the driver. This
11552 * attribute carries bit masks of different filters defined in enum
11553 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
11554 * in the request the driver shall send information of channels without applying
11555 * any of the filters that can be configured through this attribute.
11556 *
11557 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
11558 * Nested attribute. This attribute shall be used by the driver to send
11559 * usability information of each channel. The attributes defined in enum
11560 * qca_wlan_vendor_attr_chan_info are used inside this attribute.
11561 */
11562enum qca_wlan_vendor_attr_usable_channels {
11563 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
11564 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
11565 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
11566 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
11567 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
11568
11569 /* keep last */
11570 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
11571 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
11572 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
11573};
11574
11575/**
11576 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
11577 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
11578 *
11579 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
11580 * the list of radar history entries.
11581 * Each entry contains freq, timestamp, and radar signal detect flag.
11582 * The driver shall add an entry when CAC has finished, or radar signal
11583 * has been detected post AP beaconing. The driver shall maintain at least
11584 * 8 entries in order to save CAC result for a 160 MHz channel.
11585 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
11586 * Channel frequency in MHz.
11587 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
11588 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
11589 * or radar detection.
11590 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
11591 * This flag indicates radar signal has been detected.
11592 */
11593enum qca_wlan_vendor_attr_radar_history {
11594 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
11595
11596 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
11597 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
11598 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
11599 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
11600
11601 /* keep last */
11602 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
11603 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
11604 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
11605};
11606
11607/**
11608 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
11609 *
11610 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
11611 * target exited MCC state and cleared the quota information. In the
11612 * command it clears MCC quota setting and restores adaptive scheduling.
11613 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
11614 * will not be changed.
11615 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
11616 * and the target may change the quota based on the data activity.
11617 */
11618enum qca_wlan_vendor_mcc_quota_type {
11619 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
11620 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
11621 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
11622};
11623
11624/**
11625 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
11626 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
11627 * quota information or as a command to set the required MCC quota for an
11628 * interface.
11629 *
11630 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
11631 * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
11632 * In a command this specifies the MCC quota type to be set for the interface.
11633 * In an event this provides the current quota type in force.
11634 * This is required in a command and an event.
11635 *
11636 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
11637 * the list of channel quota entries.
11638 * In an event each entry contains the frequency and respective time quota for
11639 * all the MCC interfaces.
11640 * In a command it specifies the interface index and respective time quota.
11641 * In a command only one entry (ifindex, quota pair) may be specified.
11642 *
11643 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
11644 * Channel frequency in MHz. This is present only in an event.
11645 *
11646 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
11647 * Channel time quota expressed as percentage.
11648 * This is present in an event and a command.
11649 * In an command, the user shall specify the quota to be allocated for the
11650 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
11651 * In an event this provides the existing quota for the channel.
11652 *
11653 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
11654 * Specifies the interface index (netdev) for which the corresponding
11655 * configurations are applied. This is required in a command only. Only one
11656 * interface index may be specified. If not specified, the configuration is
11657 * rejected.
11658 */
11659enum qca_wlan_vendor_attr_mcc_quota {
11660 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
11661 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
11662 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
11663 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
11664 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
11665 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
11666
11667 /* keep last */
11668 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
11669 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
11670 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
11671};
11672
11673/**
11674 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
11675 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
11676 *
11677 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
11678 * Enable mDNS offload. This attribute is mandatory to enable
11679 * mDNS offload feature. If this attribute is not present, mDNS offload
11680 * is disabled.
11681 *
11682 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
11683 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
11684 * attribute is mandatory when enabling the feature, and not required when
11685 * disabling the feature.
11686 *
11687 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
11688 * the following attributes:
11689 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
11690 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
11691 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
11692 *
11693 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
11694 * It consists of a hostname and ".local" as the domain name. The character
11695 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
11696 * It is used to compare the domain in the "QU" query. Only 1 FQDN is
11697 * supported per vdev.
11698 * For example: myphone.local
11699 *
11700 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
11701 * u16 attribute. It specifies the total number of resource records present
11702 * in the answer section of the answer payload. This attribute is needed by the
11703 * firmware to populate the mDNS response frame for mDNS queries without having
11704 * to parse the answer payload.
11705 *
11706 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
11707 * attribute sent by the mdnsResponder from userspace. It contains resource
11708 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
11709 * payload is passed down to the firmware and is transmitted in response to
11710 * mDNS queries.
11711 * The maximum supported size of the answer payload is 512 bytes.
11712 */
11713enum qca_wlan_vendor_attr_mdns_offload {
11714 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
11715 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
11716 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
11717 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
11718 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
11719 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
11720 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
11721
11722 /* keep last */
11723 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
11724 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
11725 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
11726};
11727
11728/**
11729 * qca_wlan_vendor_monitor_data_frame_type - Represent the various
11730 * Data frame types to be sent over the monitor interface.
11731 */
11732enum qca_wlan_vendor_monitor_data_frame_type {
11733 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
11734 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
11735 */
11736 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
11737 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
11738 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
11739 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
11740 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
11741 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
11742 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
11743 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
11744 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
11745 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
11746 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
11747 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
11748 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
11749 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
11750 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
11751 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
11752 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
11753};
11754
11755/**
11756 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
11757 * Management frame types to be sent over the monitor interface.
11758 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
11759 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
11760 * except the Beacon frame.
11761 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
11762 * BSSID Beacon frames. Valid only in the connected state.
11763 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
11764 * the Beacon frames obtained during the scan (off channel and connected
11765 * channel), when in connected state.
11766 */
11767enum qca_wlan_vendor_monitor_mgmt_frame_type {
11768 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
11769 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
11770 */
11771 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
11772 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
11773 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
11774};
11775
11776/**
11777 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
11778 * Control frame types to be sent over the monitor interface.
11779 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
11780 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
11781 */
11782enum qca_wlan_vendor_monitor_ctrl_frame_type {
11783 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
11784 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
11785 */
11786 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
11787};
11788
11789/**
11790 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
11791 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
11792 * monitor mode.
11793 *
11794 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
11795 * Represents the TX Data frame types to be monitored (u32). These Data frames
11796 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
11797 *
11798 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
11799 * Represents the RX Data frame types to be monitored (u32). These Data frames
11800 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
11801 *
11802 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
11803 * Represents the TX Management frame types to be monitored (u32). These
11804 * Management frames are represented by
11805 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
11806 *
11807 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
11808 * Represents the RX Management frame types to be monitored (u32). These
11809 * Management frames are represented by
11810 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
11811 *
11812 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
11813 * Represents the TX Control frame types to be monitored (u32). These Control
11814 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
11815 *
11816 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
11817 * Represents the RX Control frame types to be monitored (u32). These Control
11818 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
11819 *
11820 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
11821 * attribute.
11822 * Represents the interval in milliseconds only for the connected Beacon frames,
11823 * expecting the connected BSS's Beacon frames to be sent on the monitor
11824 * interface at this specific interval.
11825 */
11826enum qca_wlan_vendor_attr_set_monitor_mode {
11827 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
11828 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
11829 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
11830 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
11831 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
11832 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
11833 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
11834 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
11835
11836 /* keep last */
11837 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
11838 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
11839 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
11840};
11841
11842/**
11843 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
11844 * Bits will be set to 1 if the corresponding state is enabled.
11845 *
11846 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
11847 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
11848 */
11849enum qca_wlan_vendor_roam_scan_state {
11850 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
11851 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
11852};
11853
11854/**
11855 * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
11856 * Bits will be set to 1 if the corresponding event is notified.
11857 *
11858 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
11859 * carries the trigger reason. When set, it is expected that the roam event
11860 * carries the respective reason via the attribute
11861 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
11862 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
11863 *
11864 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
11865 * carries the roam fail reason. When set, it is expected that the roam event
11866 * carries the respective reason via the attribute
11867 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
11868 * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
11869 *
11870 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
11871 * event carries the roam invoke fail reason. When set, it is expected that
11872 * the roam event carries the respective reason via the attribute
11873 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
11874 *
11875 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
11876 * carries the roam scan state. When set, it is expected that the roam event
11877 * carries the respective scan state via the attribute
11878 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
11879 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
11880 */
11881enum qca_wlan_vendor_roam_event_type {
11882 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
11883 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
11884 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
11885 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
11886};
11887
11888/**
11889 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
11890 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
11891 *
11892 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
11893 * representing the BSSID of the AP to which the roam is attempted.
11894 *
11895 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
11896 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
11897 * attempted.
11898 *
11899 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
11900 * on which the roam is attempted.
11901 *
11902 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
11903 * STA mode only. This represents the roam fail reason for the last failed
11904 * roaming attempt by the firmware for the specific BSSID. Different roam
11905 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
11906 */
11907enum qca_wlan_vendor_attr_roam_events_candidate_info {
11908 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
11909 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
11910 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
11911 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
11912 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
11913
11914 /* keep last */
11915 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
11916 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
11917 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
11918};
11919
11920/**
11921 * enum qca_wlan_vendor_attr_roam_events - Used by the
11922 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
11923 * roam events to the driver or notify these events from the driver.
11924 *
11925 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
11926 * driver/firmware to enable/disable the notification of roam events. It's a
11927 * mandatory attribute and used only in the request from the userspace to the
11928 * host driver. 1-Enable, 0-Disable.
11929 * If the roaming is totally offloaded to the firmware, this request when
11930 * enabled shall mandate the firmware to notify all the relevant roam events
11931 * represented by the below attributes. If the host is in the suspend mode,
11932 * the behavior of the firmware to notify these events is guided by
11933 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
11934 * these events in the suspend state, the firmware is expected to wake up the
11935 * host before the respective events are notified. Please note that such a
11936 * request to get the events in the suspend state will have a definite power
11937 * implication.
11938 *
11939 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
11940 * that the roam events need to be notified in the suspend state too. By
11941 * default, these roam events are notified in the resume state. With this flag,
11942 * the roam events are notified in both resume and suspend states.
11943 * This attribute is used in the request from the userspace to the host driver.
11944 *
11945 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
11946 * Represents the different roam event types, signified by the enum
11947 * qca_wlan_vendor_roam_event_type.
11948 * Each bit of this attribute represents the different roam even types reported
11949 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
11950 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
11951 *
11952 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
11953 * mode only. This represents the roam trigger reason for the last roaming
11954 * attempted by the firmware. Each bit of this attribute represents the
11955 * different roam trigger reason code which are defined in enum
11956 * qca_vendor_roam_triggers.
11957 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
11958 *
11959 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
11960 * STA mode only. This represents the roam invoke fail reason for the last
11961 * failed roam invoke. Different roam invoke failure reason codes
11962 * are specified in enum qca_vendor_roam_invoke_fail_reasons.
11963 *
11964 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
11965 * for which the roam is attempted. Each entry is a nested attribute defined
11966 * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
11967 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
11968 *
11969 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
11970 * the scan state on which the roam events need to be notified. The values for
11971 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
11972 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
11973 *
11974 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
11975 * u32 values. List of frequencies in MHz considered for a roam scan.
11976 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
11977 */
11978enum qca_wlan_vendor_attr_roam_events {
11979 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
11980 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
11981 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
11982 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
11983 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
11984 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
11985 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
11986 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
11987 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
11988
11989 /* keep last */
11990 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
11991 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
11992 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST -1,
11993};
11994
11995/**
11996 * enum qca_wlan_ratemask_params_type - Rate mask config type
11997 *
11998 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
11999 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
12000 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
12001 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
12002 */
12003enum qca_wlan_ratemask_params_type {
12004 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
12005 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
12006 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
12007 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
12008};
12009
12010/**
12011 * enum qca_wlan_vendor_attr_ratemask_params - Used by the
12012 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
12013 * This is used to set the rate mask value to be used in rate selection.
12014 *
12015 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
12016 * Array of nested containing attributes
12017 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
12018 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
12019 *
12020 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
12021 * the different PHY types to which the rate mask config is to be applied.
12022 * The values for this attribute are referred from enum
12023 * qca_wlan_vendor_ratemask_params_type.
12024 *
12025 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
12026 * A bit value of 1 represents rate is enabled and a value of 0
12027 * represents rate is disabled.
12028 * For HE targets, 12 bits correspond to one NSS setting.
12029 * b0-13 => NSS1, MCS 0-13
12030 * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
12031 * For VHT targets, 10 bits correspond to one NSS setting.
12032 * b0-9 => NSS1, MCS 0-9
12033 * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
12034 * For HT targets, 8 bits correspond to one NSS setting.
12035 * b0-7 => NSS1, MCS 0-7
12036 * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
12037 * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
12038 */
12039enum qca_wlan_vendor_attr_ratemask_params {
12040 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
12041 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
12042 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
12043 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
12044
12045 /* keep last */
12046 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
12047 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
12048 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
12049};
12050
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080012051#endif /* QCA_VENDOR_H */