blob: f7e5571d1ee666d6797e1fe73108dc6f3eeb87f0 [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
515 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr.
Hai Shalom74f70d42019-02-11 14:42:39 -0800516 *
517 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
518 * in throughput dynamically. The driver estimates the throughput based on
519 * number of packets being transmitted/received per second and indicates
520 * the changes in throughput to user space. Userspace tools can use this
521 * information to configure kernel's TCP parameters in order to achieve
522 * peak throughput. Optionally, the driver will also send guidance on
523 * modifications to kernel's TCP parameters which can be referred by
524 * userspace tools. The attributes used with this event are defined in enum
525 * qca_wlan_vendor_attr_throughput_change.
526 *
527 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
528 * priorities among different types of traffic during coex scenarios.
529 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
530 * profiles mentioned in enum qca_coex_config_profiles. The associated
531 * attributes used with this command are defined in enum
532 * qca_vendor_attr_coex_config.
533 *
534 * Based on the config provided, FW will boost the weight and prioritize
535 * the traffic for that subsystem (WLAN/BT/Zigbee).
536 *
537 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
538 * the supported AKM suite selectorss from the driver. It returns the list
539 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
Hai Shalom021b0b52019-04-10 11:17:58 -0700540 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
541 * state from the driver. It returns the firmware state in the attribute
542 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
543 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
544 * is used by the driver to flush per-peer cached statistics to user space
545 * application. This interface is used as an event from the driver to
546 * user space application. Attributes for this event are specified in
547 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
548 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
549 * sent in the event.
550 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
551 * improve the success rate of Zigbee joining network.
552 * Due to PTA master limitation, Zigbee joining network success rate is
553 * low while WLAN is working. The WLAN driver needs to configure some
554 * parameters including Zigbee state and specific WLAN periods to enhance
555 * PTA master. All these parameters are delivered by the attributes
556 * defined in enum qca_mpta_helper_vendor_attr.
Hai Shalom81f62d82019-07-22 12:10:00 -0700557 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
558 * implement Beacon frame reporting feature.
559 *
560 * Userspace can request the driver/firmware to periodically report
561 * received Beacon frames whose BSSID is same as the current connected
562 * BSS's MAC address.
563 *
564 * In case the STA seamlessly (without sending disconnect indication to
565 * userspace) roams to a different BSS, Beacon frame reporting will be
566 * automatically enabled for the Beacon frames whose BSSID is same as the
567 * MAC address of the new BSS. Beacon reporting will be stopped when the
568 * STA is disconnected (when the disconnect indication is sent to
569 * userspace) and need to be explicitly enabled by userspace for next
570 * connection.
571 *
572 * When a Beacon frame matching configured conditions is received, and if
573 * userspace has requested to send asynchronous beacon reports, the
574 * driver/firmware will encapsulate the details of the Beacon frame in an
575 * event and send it to userspace along with updating the BSS information
576 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
577 * scan cache with the information from the received Beacon frame but will
578 * not send any active report to userspace.
579 *
580 * The userspace can request the driver/firmware to stop reporting Beacon
581 * frames. If the driver/firmware is not able to receive Beacon frames due
582 * to other Wi-Fi operations such as off-channel activities, etc., the
583 * driver/firmware will send a pause event to userspace and stop reporting
584 * Beacon frames. Whether the beacon reporting will be automatically
585 * resumed or not by the driver/firmware later will be reported to
586 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
587 * flag. The beacon reporting shall be resumed for all the cases except
588 * either when userspace sets
589 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
590 * which triggered the current beacon reporting or during any disconnection
591 * case as indicated by setting
592 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
593 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
594 * driver.
595 *
596 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
597 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
598 * flag not set, the next first
599 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
600 * shall be considered as un-pause event.
601 *
602 * All the attributes used with this command are defined in
603 * enum qca_wlan_vendor_attr_beacon_reporting_params.
604 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
605 * interop issues with the DUT. This sub command is used to transfer the
606 * AP info between the driver and user space. This works both as a command
607 * and an event. As a command, it configures the stored list of APs from
608 * user space to firmware; as an event, it indicates the AP info detected
609 * by the firmware to user space for persistent storage. The attributes
610 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
611 * the parameters.
Hai Shalomc3565922019-10-28 11:58:20 -0700612 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
613 * send/receive OEM data binary blobs to/from application/service to/from
614 * firmware. The attributes defined in enum
615 * qca_wlan_vendor_attr_oem_data_params are used to deliver the
616 * parameters.
617 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
618 * to send/receive avoid frequency data using
619 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
620 * This new command is alternative to existing command
621 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
622 * is using stream of bytes instead of structured data using vendor
623 * attributes.
624 *
625 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
626 * add the STA node details in driver/firmware. Attributes for this event
627 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
628 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
629 * coex chain mode from application/service.
630 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
631 * to deliver the parameters.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800632 *
633 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
634 * get information of a station from driver to userspace. This command can
635 * be used in both STA and AP modes. For STA mode, it provides information
636 * of the current association when in connected state or the last
637 * association when in disconnected state. For AP mode, only information
638 * of the currently connected stations is available. This command uses
639 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
Hai Shalomfdcde762020-04-02 11:19:20 -0700640 *
641 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
642 * Host drivers can request the user space entity to set the SAR power
643 * limits with this event. Accordingly, the user space entity is expected
644 * to set the SAR power limits. Host drivers can retry this event to the
645 * user space for the SAR power limits configuration from user space. If
646 * the driver does not get the SAR power limits from user space for all
647 * the retried attempts, it can configure a default SAR power limit.
648 *
649 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
650 * is used to update the information about the station from the driver to
651 * userspace. Uses attributes from enum
652 * qca_wlan_vendor_attr_update_sta_info.
653 *
654 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
655 * The host driver initiates the disconnection for scenarios such as beacon
656 * miss, NUD failure, peer kick out, etc. The disconnection indication
657 * through cfg80211_disconnected() expects the reason codes from enum
658 * ieee80211_reasoncode which does not signify these various reasons why
659 * the driver has triggered the disconnection. This event will be used to
660 * send the driver specific reason codes by the host driver to userspace.
661 * Host drivers should trigger this event and pass the respective reason
662 * code immediately prior to triggering cfg80211_disconnected(). The
663 * attributes used with this event are defined in enum
664 * qca_wlan_vendor_attr_driver_disconnect_reason.
Hai Shalom899fcc72020-10-19 14:38:18 -0700665 *
666 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
667 * add/delete TSPEC for each AC. One command is for one specific AC only.
668 * This command can only be used in STA mode and the STA must be
669 * associated with an AP when the command is issued. Uses attributes
670 * defined in enum qca_wlan_vendor_attr_config_tspec.
671 *
672 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
673 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
674 *
675 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
676 * the driver. The band configurations obtained are referred through
677 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
678 *
679 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
680 * assessment.
681 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
682 *
683 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
684 * used to update SSID information in hostapd when it is updated in the
685 * driver. Uses the attribute NL80211_ATTR_SSID.
686 *
687 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
688 * the driver to send opaque data from the firmware to userspace. The
689 * driver sends an event to userspace whenever such data is received from
690 * the firmware.
691 *
692 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
693 * send this opaque data for this event.
694 *
695 * The format of the opaque data is specific to the particular firmware
696 * version and there is no guarantee of the format remaining same.
697 *
698 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
699 * The host driver selects Tx VDEV, and notifies user. The attributes
700 * used with this event are defined in enum
701 * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
702 *
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800703 */
704enum qca_nl80211_vendor_subcmds {
705 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
706 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700707 /* subcmds 2..8 not yet allocated */
708 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800709 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700710 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700711 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800712 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800713 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
714 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
715 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
716 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
717 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
718 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
719 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
720 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
721 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
722 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
723 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
724 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
725 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
726 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
727 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
728 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
729 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
730 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
731 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
732 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
733 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
734 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
735 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
736 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
737 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
738 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
739 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
740 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
741 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
742 /* 43..49 - reserved for QCA */
743 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
744 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
745 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700746 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800747 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
748 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800749 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
750 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
751 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
752 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
753 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800754 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
755 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
756 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
757 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
758 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
759 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
760 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
761 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
762 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
763 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
764 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
765 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
766 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700767 /* Wi-Fi configuration subcommands */
768 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
769 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700770 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
771 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
772 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
773 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
774 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
775 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
776 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
777 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
778 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
779 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
780 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -0700781 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700782 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
783 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
784 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
785 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
786 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
787 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
788 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
789 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
790 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -0700791 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700792 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
793 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
794 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
795 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800796 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
797 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
798 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
799 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
800 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800801 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -0700802 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
803 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700804 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -0700805 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
806 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700807 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700808 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
809 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
810 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700811 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
812 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700813 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
814 /* FTM/indoor location subcommands */
815 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
816 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
817 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
818 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
819 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
820 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
821 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
822 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
823 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700824 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
825 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800826 /* DMG low level RF sector operations */
827 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
828 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
829 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
830 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
831 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800832 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800833 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800834 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -0800835 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
836 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
837 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
838 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800839 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
840 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700841 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
842 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
843 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
844 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
845 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700846 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
847 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
848 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
849 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
850 /* Flush peer pending data */
851 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
852 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
853 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
854 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
855 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
856 /* Thermal shutdown commands to protect wifi chip */
857 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
858 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
859 /* Wi-Fi test configuration subcommand */
860 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
861 /* Frame filter operations for other BSSs/unassociated STAs */
862 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700863 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800864 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
865 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -0800866 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
867 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
868 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -0700869 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
870 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
871 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -0700872 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
873 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -0700874 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
875 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
876 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
877 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800878 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -0700879 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
880 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
881 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -0700882 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
883 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
884 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
885 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
886 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
887 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
888 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800889};
890
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700891enum qca_wlan_vendor_attr {
892 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
893 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
894 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700895 /* Used only when driver sends vendor events to the userspace under the
896 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
897 * commands to the driver.
898 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700899 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -0700900 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
901 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -0700902 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
903 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700904 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -0700905 * by enum qca_roaming_policy.
906 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700907 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
908 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800909 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
910 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800911 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700912 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
913 /* Unsigned 32-bit value. */
914 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
915 /* Unsigned 32-bit value */
916 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
917 /* Unsigned 32-bit value */
918 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -0700919 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
920 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
921 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
922 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
923 */
Ravi Joshie6ccb162015-07-16 17:45:41 -0700924 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700925 /* Dummy (NOP) attribute for 64 bit padding */
926 QCA_WLAN_VENDOR_ATTR_PAD = 13,
927 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
928 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
929 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
930 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
931 */
932 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
933 /* Indoor location capabilities, returned by
934 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
935 * see enum qca_wlan_vendor_attr_loc_capa.
936 */
937 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
938 /* Array of nested attributes containing information about each peer
939 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
940 * for supported attributes for each peer.
941 */
942 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
943 /* Array of nested attributes containing measurement results for
944 * one or more peers, reported by the
945 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
946 * See enum qca_wlan_vendor_attr_peer_result for list of supported
947 * attributes.
948 */
949 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
950 /* Flag attribute for enabling or disabling responder functionality. */
951 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
952 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
953 * command to specify the LCI report that will be sent by
954 * the responder during a measurement exchange. The format is
955 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
956 */
957 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
958 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
959 * command to specify the location civic report that will
960 * be sent by the responder during a measurement exchange.
961 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
962 */
963 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
964 /* Session/measurement completion status code,
965 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
966 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
967 * see enum qca_vendor_attr_loc_session_status.
968 */
969 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
970 /* Initial dialog token used by responder (0 if not specified),
971 * unsigned 8 bit value.
972 */
973 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
974 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
975 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
976 * AOA measurements are needed as part of an FTM session.
977 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
978 * enum qca_wlan_vendor_attr_aoa_type.
979 */
980 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
981 /* A bit mask (unsigned 32 bit value) of antenna arrays used
982 * by indoor location measurements. Refers to the antenna
983 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
984 */
985 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
986 /* AOA measurement data. Its contents depends on the AOA measurement
987 * type and antenna array mask:
988 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
989 * phase of the strongest CIR path for each antenna in the measured
990 * array(s).
991 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
992 * values, phase and amplitude of the strongest CIR path for each
993 * antenna in the measured array(s).
994 */
995 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700996 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
997 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -0700998 * the corresponding antenna RSSI value
999 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001000 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1001 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001002 * to report the specific antenna RSSI value (unsigned 32 bit value)
1003 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001004 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001005 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1006 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1007 /* TSF timer value, unsigned 64 bit value.
1008 * May be returned by various commands.
1009 */
1010 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1011 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1012 * 0..127 for sector indices or 65535 as special value used to
1013 * unlock sector selection in
1014 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1015 */
1016 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1017 /* DMG RF sector type, unsigned 8 bit value. One of the values
1018 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1019 */
1020 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1021 /* Bitmask of DMG RF modules for which information is requested. Each
1022 * bit corresponds to an RF module with the same index as the bit
1023 * number. Unsigned 32 bit number but only low 8 bits can be set since
1024 * all DMG chips currently have up to 8 RF modules.
1025 */
1026 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1027 /* Array of nested attributes where each entry is DMG RF sector
1028 * configuration for a single RF module.
1029 * Attributes for each entry are taken from enum
1030 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1031 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1032 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1033 */
1034 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1035 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1036 * to report frame aggregation statistics to userspace.
1037 */
1038 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1039 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001040 /* Unsigned 8-bit value representing MBO transition reason code as
1041 * provided by the AP used by subcommand
1042 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1043 * specified by the userspace in the request to the driver.
1044 */
1045 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1046 /* Array of nested attributes, BSSID and status code, used by subcommand
1047 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1048 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1049 * The userspace space specifies the list/array of candidate BSSIDs in
1050 * the order of preference in the request. The driver specifies the
1051 * status code, for each BSSID in the list, in the response. The
1052 * acceptable candidates are listed in the order preferred by the
1053 * driver.
1054 */
1055 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001056 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1057 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1058 */
1059 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1060 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1061 * to define the number of antennas to use for BRP.
1062 * different purpose in each ANT_LIMIT_MODE:
1063 * DISABLE - ignored
1064 * EFFECTIVE - upper limit to number of antennas to be used
1065 * FORCE - exact number of antennas to be used
1066 * unsigned 8 bit value
1067 */
1068 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1069 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001070 * to report the corresponding antenna index to the chain RSSI value
1071 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001072 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001073 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1074 * the specific antenna EVM value (unsigned 32 bit value). With a
1075 * determinate group of antennas, the driver specifies the EVM value
1076 * for each antenna ID, and application extract them in user space.
1077 */
1078 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001079 /*
1080 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1081 * wlan firmware current state. FW state is an unsigned 8 bit value,
1082 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1083 */
1084 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001085
Hai Shalom899fcc72020-10-19 14:38:18 -07001086 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1087 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1088 * of single values from enum qca_set_band are valid. This attribute
1089 * uses bitmask combinations to define the respective allowed band
1090 * combinations and this attributes takes precedence over
1091 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1092 */
1093 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1094
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001095 /* keep last */
1096 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1097 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1098};
1099
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001100enum qca_roaming_policy {
1101 QCA_ROAMING_NOT_ALLOWED,
1102 QCA_ROAMING_ALLOWED_WITHIN_ESS,
1103};
1104
Hai Shalom021b0b52019-04-10 11:17:58 -07001105/**
1106 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1107 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1108 *
1109 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1110 * reasons.
1111 *
1112 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1113 * the configured threshold.
1114 *
1115 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1116 * beacon misses from the then connected AP.
1117 *
1118 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1119 * by the connected AP.
1120 *
1121 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1122 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1123 *
1124 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1125 * or environment being very noisy or congested.
1126 *
1127 * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
1128 * from the user (user space).
1129 *
1130 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1131 * the connected AP.
1132 *
1133 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1134 * breaching out the configured threshold.
1135 */
1136enum qca_roam_reason {
1137 QCA_ROAM_REASON_UNKNOWN,
1138 QCA_ROAM_REASON_PER,
1139 QCA_ROAM_REASON_BEACON_MISS,
1140 QCA_ROAM_REASON_POOR_RSSI,
1141 QCA_ROAM_REASON_BETTER_RSSI,
1142 QCA_ROAM_REASON_CONGESTION,
1143 QCA_ROAM_REASON_USER_TRIGGER,
1144 QCA_ROAM_REASON_BTM,
1145 QCA_ROAM_REASON_BSS_LOAD,
1146};
1147
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001148enum qca_wlan_vendor_attr_roam_auth {
1149 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
1150 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1151 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1152 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1153 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1154 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1155 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1156 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001157 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001158 /* Indicates the status of re-association requested by user space for
1159 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1160 * Type u16.
1161 * Represents the status code from AP. Use
1162 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1163 * real status code for failures.
1164 */
1165 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1166 /* This attribute indicates that the old association was maintained when
1167 * a re-association is requested by user space and that re-association
1168 * attempt fails (i.e., cannot connect to the requested BSS, but can
1169 * remain associated with the BSS with which the association was in
1170 * place when being requested to roam). Used along with
1171 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1172 * re-association status. Type flag.
1173 * This attribute is applicable only for re-association failure cases.
1174 */
1175 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1176 /* This attribute specifies the PMK if one was newly generated during
1177 * FILS roaming. This is added to the PMKSA cache and is used in
1178 * subsequent connections with PMKSA caching.
1179 */
1180 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1181 /* This attribute specifies the PMKID used/generated for the current
1182 * FILS roam. This is used in subsequent connections with PMKSA caching.
1183 */
1184 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1185 /* A 16-bit unsigned value specifying the next sequence number to use
1186 * in ERP message in the currently associated realm. This is used in
1187 * doing subsequent ERP based connections in the same realm.
1188 */
1189 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001190 /* A 16-bit unsigned value representing the reasons for the roaming.
1191 * Defined by enum qca_roam_reason.
1192 */
1193 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
1194
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001195 /* keep last */
1196 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1197 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1198 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1199};
1200
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001201enum qca_wlan_vendor_attr_p2p_listen_offload {
1202 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1203 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1204 * of the social channels.
1205 */
1206 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1207 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1208 */
1209 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1210 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1211 */
1212 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1213 /* A 32-bit unsigned value; number of interval times the firmware needs
1214 * to run the offloaded P2P listen operation before it stops.
1215 */
1216 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1217 /* An array of arbitrary binary data with one or more 8-byte values.
1218 * The device types include both primary and secondary device types.
1219 */
1220 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1221 /* An array of unsigned 8-bit characters; vendor information elements.
1222 */
1223 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1224 /* A 32-bit unsigned value; a control flag to indicate whether listen
1225 * results need to be flushed to wpa_supplicant.
1226 */
1227 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1228 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1229 * event.
1230 */
1231 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1232 /* keep last */
1233 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1234 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1235 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1236};
1237
Hai Shalomc3565922019-10-28 11:58:20 -07001238/**
1239 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1240 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1241 *
1242 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1243 * Used with event to notify the primary channel number selected in ACS
1244 * operation.
1245 * Note: If both the driver and user-space application supports the 6 GHz band,
1246 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1247 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1248 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1249 * is still used if either of the driver or user space application doesn't
1250 * support the 6 GHz band.
1251 *
1252 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1253 * Used with event to notify the secondary channel number selected in ACS
1254 * operation.
1255 * Note: If both the driver and user-space application supports the 6 GHz band,
1256 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1257 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1258 * To maintain backward compatibility,
1259 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1260 * the driver or user space application doesn't support 6 GHz band.
1261 *
1262 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1263 * (a) Used with command to configure hw_mode from
1264 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1265 * (b) Also used with event to notify the hw_mode of selected primary channel
1266 * in ACS operation.
1267 *
1268 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1269 * Used with command to configure ACS operation for HT mode.
1270 * Disable (flag attribute not present) - HT disabled and
1271 * Enable (flag attribute present) - HT enabled.
1272 *
1273 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1274 * Used with command to configure ACS operation for HT40 mode.
1275 * Disable (flag attribute not present) - HT40 disabled and
1276 * Enable (flag attribute present) - HT40 enabled.
1277 *
1278 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1279 * Used with command to configure ACS operation for VHT mode.
1280 * Disable (flag attribute not present) - VHT disabled and
1281 * Enable (flag attribute present) - VHT enabled.
1282 *
1283 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1284 * mandatory with event.
1285 * If specified in command path, ACS operation is configured with the given
1286 * channel width (in MHz).
1287 * In event path, specifies the channel width of the primary channel selected.
1288 *
1289 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1290 * Used with command to configure channel list using an array of
1291 * channel numbers (u8).
1292 * Note: If both the driver and user-space application supports the 6 GHz band,
1293 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1294 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1295 *
1296 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1297 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001298 * ACS operation. The value is the index of the channel center frequency for
1299 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1300 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001301 * Note: If both the driver and user-space application supports the 6 GHz band,
1302 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1303 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1304 * To maintain backward compatibility,
1305 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1306 * the driver or user space application doesn't support the 6 GHz band.
1307 *
1308 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1309 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001310 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1311 * The value is the index of the channel center frequency for 160 MHz channels
1312 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1313 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001314 * Note: If both the driver and user-space application supports the 6 GHz band,
1315 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1316 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1317 * To maintain backward compatibility,
1318 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1319 * the driver or user space application doesn't support the 6 GHz band.
1320 *
1321 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1322 * Used with command to configure the channel list using an array of channel
1323 * center frequencies in MHz (u32).
1324 * Note: If both the driver and user-space application supports the 6 GHz band,
1325 * the driver first parses the frequency list and if it fails to get a frequency
1326 * list, parses the channel list specified using
1327 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1328 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1329 *
1330 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1331 * Used with event to notify the primary channel center frequency (MHz) selected
1332 * in ACS operation.
1333 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1334 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1335 *
1336 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1337 * Used with event to notify the secondary channel center frequency (MHz)
1338 * selected in ACS operation.
1339 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1340 * includes this attribute along with
1341 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1342 *
1343 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1344 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1345 * selected in ACS operation.
1346 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1347 * includes this attribute along with
1348 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1349 *
1350 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1351 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1352 * selected in ACS operation.
1353 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1354 * includes this attribute along with
1355 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07001356 *
1357 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1358 * Used with command to notify the driver of EDMG request for ACS
1359 * operation.
1360 *
1361 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1362 * Used with event to notify the EDMG channel number selected in ACS
1363 * operation.
1364 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shalomc3565922019-10-28 11:58:20 -07001365 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001366enum qca_wlan_vendor_attr_acs_offload {
1367 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07001368 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1369 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1370 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1371 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1372 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1373 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1374 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1375 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1376 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1377 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1378 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1379 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1380 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1381 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1382 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07001383 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1384 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shalomc3565922019-10-28 11:58:20 -07001385
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001386 /* keep last */
1387 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1388 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1389 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1390};
1391
Hai Shalomc3565922019-10-28 11:58:20 -07001392/**
1393 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1394 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1395 *
1396 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1397 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1398 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1399 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1400 * @QCA_ACS_MODE_IEEE80211ANY: all modes
1401 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1402 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001403enum qca_wlan_vendor_acs_hw_mode {
1404 QCA_ACS_MODE_IEEE80211B,
1405 QCA_ACS_MODE_IEEE80211G,
1406 QCA_ACS_MODE_IEEE80211A,
1407 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001408 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07001409 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001410};
1411
1412/**
1413 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1414 *
1415 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1416 * management offload, a mechanism where the station's firmware
1417 * does the exchange with the AP to establish the temporal keys
1418 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001419 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1420 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001421 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07001422 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001423 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1424 * Listen offload; a mechanism where the station's firmware takes care of
1425 * responding to incoming Probe Request frames received from other P2P
1426 * Devices whilst in Listen state, rather than having the user space
1427 * wpa_supplicant do it. Information from received P2P requests are
1428 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001429 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1430 * specific features.
1431 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1432 * features.
1433 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1434 * specific features only. If a Device sets this bit but not the
1435 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1436 * this Device may not support all OCE AP functionalities but can support
1437 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001438 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1439 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07001440 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07001441 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1442 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07001443 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1444 * and applying thermal configuration through
1445 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1446 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1447 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08001448 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1449 * With Adaptive 11r feature, access points advertise the vendor
1450 * specific IEs and MDE but do not include FT AKM in the RSNE.
1451 * The Adaptive 11r supported stations are expected to identify
1452 * such vendor specific IEs and connect to the AP in FT mode though
1453 * the profile is configured in non-FT mode.
1454 * The driver-based SME cases also need to have this support for
1455 * Adaptive 11r to handle the connection and roaming scenarios.
1456 * This flag indicates the support for the same to the user space.
1457 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1458 * concurrent network sessions on different Wi-Fi bands. This feature
1459 * capability is attributed to the hardware's capability to support
1460 * the same (e.g., DBS).
1461 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1462 * responses for the respective TWT operations are asynchronous (separate
1463 * event message) from the driver. If not specified, the responses are
1464 * synchronous (in vendor command reply) to the request. Each TWT
1465 * operation is specifically mentioned (against its respective
1466 * documentation) to support either of these or both modes.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001467 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1468 */
1469enum qca_wlan_vendor_features {
1470 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001471 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001472 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001473 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001474 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1475 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
1476 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001477 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Hai Shalom021b0b52019-04-10 11:17:58 -07001478 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07001479 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
1480 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07001481 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08001482 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
1483 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
1484 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001485 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1486};
1487
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001488/**
1489 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1490 *
1491 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1492 * the offloaded data.
1493 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1494 * data.
1495 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1496 * indication.
1497 */
1498enum qca_wlan_vendor_attr_data_offload_ind {
1499 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1500 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1501 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1502 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1503
1504 /* keep last */
1505 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1506 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1507 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1508};
Ravi Joshie6ccb162015-07-16 17:45:41 -07001509
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001510/**
1511 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1512 * OCB config
1513 *
1514 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1515 * configuration
1516 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1517 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1518 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1519 * scheduled
1520 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1521 * information
1522 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1523 * active state configuration
1524 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1525 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1526 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1527 * use in the case that a packet is sent without a TX control header
1528 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1529 * last TA received that the local time set by TA is synchronous to other
1530 * communicating OCB STAs.
1531 */
1532enum qca_wlan_vendor_attr_ocb_set_config {
1533 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1534 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1535 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1536 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1537 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1538 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1539 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1540 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1541 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1542 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1543 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1544 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1545 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1546};
1547
1548/**
1549 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1550 * UTC time
1551 *
1552 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1553 * 10 bytes
1554 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1555 * 5 bytes
1556 */
1557enum qca_wlan_vendor_attr_ocb_set_utc_time {
1558 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1559 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1560 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1561 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1562 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1563 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1564};
1565
1566/**
1567 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1568 * to start sending timing advert frames
1569 *
1570 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1571 * on which to send the frames
1572 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1573 * the frame is sent in 5 seconds
1574 */
1575enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1576 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1577 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1578 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1579 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1580 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1581 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1582};
1583
1584/**
1585 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1586 * to stop timing advert
1587 *
1588 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1589 * frequency on which to stop the timing advert
1590 */
1591enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1592 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1593 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1594 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1595 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1596 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1597};
1598
1599/**
1600 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1601 * get TSF timer value
1602 *
1603 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1604 * timer
1605 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1606 */
1607enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1608 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1609 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1610 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1611 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1612 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1613 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1614};
1615
Ravi Joshie6ccb162015-07-16 17:45:41 -07001616enum qca_vendor_attr_get_preferred_freq_list {
1617 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1618 /* A 32-unsigned value; the interface type/mode for which the preferred
1619 * frequency list is requested (see enum qca_iface_type for possible
1620 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1621 * kernel and in the kernel response back to user-space.
1622 */
1623 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1624 /* An array of 32-unsigned values; values are frequency (MHz); sent
1625 * from kernel space to user space.
1626 */
1627 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001628 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1629 * attribute. Each element contains frequency (MHz), weight, and flag
1630 * bit mask indicating how the frequency should be used in P2P
1631 * negotiation; sent from kernel space to user space.
1632 */
1633 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001634 /* keep last */
1635 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1636 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1637 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1638};
1639
1640enum qca_vendor_attr_probable_oper_channel {
1641 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1642 /* 32-bit unsigned value; indicates the connection/iface type likely to
1643 * come on this channel (see enum qca_iface_type).
1644 */
1645 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1646 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1647 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1648 /* keep last */
1649 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1650 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1651 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1652};
1653
1654enum qca_iface_type {
1655 QCA_IFACE_TYPE_STA,
1656 QCA_IFACE_TYPE_AP,
1657 QCA_IFACE_TYPE_P2P_CLIENT,
1658 QCA_IFACE_TYPE_P2P_GO,
1659 QCA_IFACE_TYPE_IBSS,
1660 QCA_IFACE_TYPE_TDLS,
1661};
1662
1663enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07001664 QCA_SETBAND_AUTO = 0,
1665 QCA_SETBAND_5G = BIT(0),
1666 QCA_SETBAND_2G = BIT(1),
1667 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07001668};
1669
Dmitry Shmidt17022322016-04-06 13:28:42 -07001670/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001671 * enum qca_access_policy - Access control policy
1672 *
1673 * Access control policy is applied on the configured IE
1674 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1675 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1676 *
1677 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1678 * the specific configuration (IE) set, i.e., allow all the
1679 * connections which do not match the configuration.
1680 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1681 * the specific configuration (IE) set, i.e., deny all the
1682 * connections which do not match the configuration.
1683 */
1684enum qca_access_policy {
1685 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1686 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1687};
1688
1689/**
Dmitry Shmidt17022322016-04-06 13:28:42 -07001690 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
1691 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
1692 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
1693 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
1694 * SOC timer value at TSF capture
1695 */
1696enum qca_vendor_attr_tsf_cmd {
1697 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1698 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1699 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1700 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
1701 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1702 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1703 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1704};
1705
1706/**
1707 * enum qca_tsf_operation: TSF driver commands
1708 * @QCA_TSF_CAPTURE: Initiate TSF Capture
1709 * @QCA_TSF_GET: Get TSF capture value
1710 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
1711 */
1712enum qca_tsf_cmd {
1713 QCA_TSF_CAPTURE,
1714 QCA_TSF_GET,
1715 QCA_TSF_SYNC_GET,
1716};
1717
1718/**
1719 * enum qca_vendor_attr_wisa_cmd
1720 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1721 * WISA setup vendor commands
1722 */
1723enum qca_vendor_attr_wisa_cmd {
1724 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
1725 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
1726 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
1727 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
1728 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
1729};
1730
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001731/* IEEE 802.11 Vendor Specific elements */
1732
1733/**
1734 * enum qca_vendor_element_id - QCA Vendor Specific element types
1735 *
1736 * These values are used to identify QCA Vendor Specific elements. The
1737 * payload of the element starts with the three octet OUI (OUI_QCA) and
1738 * is followed by a single octet type which is defined by this enum.
1739 *
1740 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1741 * This element can be used to specify preference order for supported
1742 * channels. The channels in this list are in preference order (the first
1743 * one has the highest preference) and are described as a pair of
1744 * (global) Operating Class and Channel Number (each one octet) fields.
1745 *
1746 * This extends the standard P2P functionality by providing option to have
1747 * more than one preferred operating channel. When this element is present,
1748 * it replaces the preference indicated in the Operating Channel attribute.
1749 * For supporting other implementations, the Operating Channel attribute is
1750 * expected to be used with the highest preference channel. Similarly, all
1751 * the channels included in this Preferred channel list element are
1752 * expected to be included in the Channel List attribute.
1753 *
1754 * This vendor element may be included in GO Negotiation Request, P2P
1755 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001756 *
1757 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1758 * This element can be used for pre-standard publication testing of HE
1759 * before P802.11ax draft assigns the element ID. The payload of this
1760 * vendor specific element is defined by the latest P802.11ax draft.
1761 * Please note that the draft is still work in progress and this element
1762 * payload is subject to change.
1763 *
1764 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1765 * This element can be used for pre-standard publication testing of HE
1766 * before P802.11ax draft assigns the element ID. The payload of this
1767 * vendor specific element is defined by the latest P802.11ax draft.
1768 * Please note that the draft is still work in progress and this element
1769 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08001770 *
1771 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1772 * element).
1773 * This element can be used for pre-standard publication testing of HE
1774 * before P802.11ax draft assigns the element ID extension. The payload of
1775 * this vendor specific element is defined by the latest P802.11ax draft
1776 * (not including the Element ID Extension field). Please note that the
1777 * draft is still work in progress and this element payload is subject to
1778 * change.
1779 *
1780 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1781 * This element can be used for pre-standard publication testing of HE
1782 * before P802.11ax draft assigns the element ID extension. The payload of
1783 * this vendor specific element is defined by the latest P802.11ax draft
1784 * (not including the Element ID Extension field). Please note that the
1785 * draft is still work in progress and this element payload is subject to
1786 * change.
1787 *
1788 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1789 * This element can be used for pre-standard publication testing of HE
1790 * before P802.11ax draft assigns the element ID extension. The payload of
1791 * this vendor specific element is defined by the latest P802.11ax draft
1792 * (not including the Element ID Extension field). Please note that the
1793 * draft is still work in progress and this element payload is subject to
1794 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07001795 *
1796 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001797 */
1798enum qca_vendor_element_id {
1799 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001800 QCA_VENDOR_ELEM_HE_CAPAB = 1,
1801 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08001802 QCA_VENDOR_ELEM_RAPS = 3,
1803 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
1804 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07001805 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001806};
1807
1808/**
1809 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1810 *
1811 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1812 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1813 * with frequencies to be scanned (in MHz)
1814 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1815 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1816 * rates to be included
1817 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07001818 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001819 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1820 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07001821 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001822 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07001823 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001824 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07001825 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001826 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001827 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08001828 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1829 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07001830 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
1831 * microseconds. This is a common value which applies across all
1832 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001833 */
1834enum qca_wlan_vendor_attr_scan {
1835 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001836 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
1837 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
1838 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
1839 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
1840 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
1841 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
1842 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
1843 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
1844 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
1845 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
1846 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07001847 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001848 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
1849 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
1850 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
1851};
1852
1853/**
1854 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07001855 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001856 *
1857 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001858 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001859 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1860 */
1861enum scan_status {
1862 VENDOR_SCAN_STATUS_NEW_RESULTS,
1863 VENDOR_SCAN_STATUS_ABORTED,
1864 VENDOR_SCAN_STATUS_MAX,
1865};
1866
1867/**
1868 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1869 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1870 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1871 */
1872enum qca_vendor_attr_ota_test {
1873 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
1874 /* 8-bit unsigned value to indicate if OTA test is enabled */
1875 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
1876 /* keep last */
1877 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
1878 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
1879 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
1880};
1881
1882/**
1883 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1884 *
1885 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1886 */
1887enum qca_vendor_attr_txpower_scale {
1888 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
1889 /* 8-bit unsigned value to indicate the scaling of tx power */
1890 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
1891 /* keep last */
1892 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
1893 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
1894 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
1895};
1896
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001897/**
1898 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1899 *
1900 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1901 */
1902enum qca_vendor_attr_txpower_decr_db {
1903 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
1904 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001905 * a virtual interface.
1906 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001907 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
1908 /* keep last */
1909 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
1910 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
1911 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
1912};
1913
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001914/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001915 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1916 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001917 */
1918enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001919 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001920 /* Unsigned 32-bit value to set the DTIM period.
1921 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1922 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1923 * DTIM beacons.
1924 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001925 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001926 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1927 * used to calculate statistics like average the TSF offset or average
1928 * number of frame leaked.
1929 * For instance, upon Beacon frame reception:
1930 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1931 * For instance, when evaluating leaky APs:
1932 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1933 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001934 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001935 /* Unsigned 32-bit value to configure guard time, i.e., when
1936 * implementing IEEE power management based on frame control PM bit, how
1937 * long the driver waits before shutting down the radio and after
1938 * receiving an ACK frame for a Data frame with PM bit set.
1939 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001940 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001941 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001942 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001943 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001944 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001945 /* Unsigned 32-bit value to configure the number of continuous
1946 * Beacon Miss which shall be used by the firmware to penalize
1947 * the RSSI.
1948 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001949 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001950 /* Unsigned 8-bit value to configure the channel avoidance indication
1951 * behavior. Firmware to send only one indication and ignore duplicate
1952 * indications when set to avoid multiple Apps wakeups.
1953 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001954 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001955 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001956 * aggregation.
1957 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001958 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001959 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001960 * aggregation.
1961 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001962 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001963 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07001964 * retry threshold (0 disable, 31 max).
1965 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001966 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001967 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07001968 * retry threshold (0 disable, 31 max).
1969 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001970 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001971 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07001972 * retry threshold (0 disable, 31 max).
1973 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001974 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001975 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07001976 * retry threshold (0 disable, 31 max).
1977 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001978 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001979 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001980 * 2G/5G band (0~63, units in us)
1981 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001982 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001983 /* Unsigned 32-bit value to configure the number of unicast TX fail
1984 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07001985 * reached.
1986 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001987 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001988 /* Attribute used to set scan default IEs to the driver.
1989 *
1990 * These IEs can be used by scan operations that will be initiated by
1991 * the driver/firmware.
1992 *
1993 * For further scan requests coming to the driver, these IEs should be
1994 * merged with the IEs received along with scan request coming to the
1995 * driver. If a particular IE is present in the scan default IEs but not
1996 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07001997 * sent in the Probe Request frames for that scan request.
1998 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001999 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002000 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002001 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002002 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002003 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002004 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002005 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002006 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002007 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2008 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002009 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002010 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002011 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2012 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002013 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002014 /* Unsigned 32-bit, defining the access policy.
2015 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002016 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2017 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002018 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002019 /* Sets the list of full set of IEs for which a specific access policy
2020 * has to be applied. Used along with
2021 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002022 * Zero length payload can be used to clear this access constraint.
2023 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002024 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002025 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
2026 * corresponding configurations are applied. If the interface index is
2027 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07002028 * wiphy.
2029 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002030 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002031 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002032 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002033 /* 8-bit unsigned value to configure the driver and below layers to
2034 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07002035 * 1-Ignore, 0-Don't ignore
2036 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002037 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002038 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07002039 * 1-Enable, 0-Disable
2040 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002041 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002042 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002043 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002044 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002045 * 1-Enable, 0-Disable
2046 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002047 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002048 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002049 * the unit is micro-second
2050 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002051 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2052 /* 32-bit unsigned value to set reorder timeout for AC_VO */
2053 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2054 /* 32-bit unsigned value to set reorder timeout for AC_VI */
2055 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2056 /* 32-bit unsigned value to set reorder timeout for AC_BE */
2057 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2058 /* 32-bit unsigned value to set reorder timeout for AC_BK */
2059 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2060 /* 6-byte MAC address to point out the specific peer */
2061 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
2062 /* 32-bit unsigned value to set window size for specific peer */
2063 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002064 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2065 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2066 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2067 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002068 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2069 * station device while in disconnect state. The attribute use the
2070 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2071 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2072 * 10 MHz channel width, the station will not connect to a BSS using 20
2073 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07002074 * clear this constraint.
2075 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002076 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2077 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07002078 * for 2G/5G band (units in us)
2079 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002080 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2081 /* 32-bit unsigned value to set probe period */
2082 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2083 /* 32-bit unsigned value to set stay period */
2084 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2085 /* 32-bit unsigned value to set snr diff */
2086 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2087 /* 32-bit unsigned value to set probe dwell time */
2088 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2089 /* 32-bit unsigned value to set mgmt snr weight */
2090 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2091 /* 32-bit unsigned value to set data snr weight */
2092 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2093 /* 32-bit unsigned value to set ack snr weight */
2094 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2095 /* 32-bit unsigned value to configure the listen interval.
2096 * This is in units of beacon intervals. This configuration alters
2097 * the negotiated listen interval with the AP during the connection.
2098 * It is highly recommended to configure a value less than or equal to
2099 * the one negotiated during the association. Configuring any greater
2100 * value can have adverse effects (frame loss, AP disassociating STA,
2101 * etc.).
2102 */
2103 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2104 /*
2105 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2106 * disable operations that would cause the AP/GO to leave its operating
2107 * channel.
2108 *
2109 * This will restrict the scans to the AP/GO operating channel and the
2110 * channels of the other band, if DBS is supported.A STA/CLI interface
2111 * brought up after this setting is enabled, will be restricted to
2112 * connecting to devices only on the AP/GO interface's operating channel
2113 * or on the other band in DBS case. P2P supported channel list is
2114 * modified, to only include AP interface's operating-channel and the
2115 * channels of the other band if DBS is supported.
2116 *
2117 * These restrictions are only applicable as long as the AP/GO interface
2118 * is alive. If the AP/GO interface is brought down then this
2119 * setting/restriction is forgotten.
2120 *
2121 * If this variable is set on an AP/GO interface while a multi-channel
2122 * concurrent session is active, it has no effect on the operation of
2123 * the current interfaces, other than restricting the scan to the AP/GO
2124 * operating channel and the other band channels if DBS is supported.
2125 * However, if the STA is brought down and restarted then the new STA
2126 * connection will either be formed on the AP/GO channel or on the
2127 * other band in a DBS case. This is because of the scan being
2128 * restricted on these channels as mentioned above.
2129 *
2130 * 1-Restrict / 0-Don't restrict offchannel operations.
2131 */
2132 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2133 /*
2134 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2135 * on an interface.
2136 * 1 - Enable, 0 - Disable.
2137 */
2138 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2139
2140 /*
2141 * 8 bit unsigned value to globally enable/disable scan
2142 * 1 - Enable, 0 - Disable.
2143 */
2144 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2145
2146 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07002147 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002148 */
2149 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2150
2151 /* Unsigned 32-bit value to configure the number of continuous
2152 * Beacon Miss which shall be used by the firmware to penalize
2153 * the RSSI for BTC.
2154 */
2155 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2156
2157 /* 8-bit unsigned value to configure the driver and below layers to
2158 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002159 * 0-enable, 1-disable
2160 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002161 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002162
Roshan Pius3a1667e2018-07-03 15:17:14 -07002163 /* 16-bit unsigned value to configure the level of WLAN latency
2164 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2165 */
2166 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2167
2168 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2169 * the connect interface. Exclusively used for the scenarios where the
2170 * device is used as a test bed device with special functionality and
2171 * not recommended for production. This helps driver to not validate the
2172 * RSNE passed from user space and thus allow arbitrary IE data to be
2173 * used for testing purposes.
2174 * 1-enable, 0-disable.
2175 * Applications set/reset this configuration. If not reset, this
2176 * parameter remains in use until the driver is unloaded.
2177 */
2178 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2179
2180 /* 8-bit unsigned value to trigger green Tx power saving.
2181 * 1-Enable, 0-Disable
2182 */
2183 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2184
Hai Shalomc3565922019-10-28 11:58:20 -07002185 /* Attribute to configure disconnect IEs to the driver.
2186 * This carries an array of unsigned 8-bit characters.
2187 *
2188 * If this is configured, driver shall fill the IEs in disassoc/deauth
2189 * frame.
2190 * These IEs are expected to be considered only for the next
2191 * immediate disconnection (disassoc/deauth frame) originated by
2192 * the DUT, irrespective of the entity (user space/driver/firmware)
2193 * triggering the disconnection.
2194 * The host drivers are not expected to use the IEs set through
2195 * this interface for further disconnections after the first immediate
2196 * disconnection initiated post the configuration.
2197 * If the IEs are also updated through cfg80211 interface (after the
2198 * enhancement to cfg80211_disconnect), host driver is expected to
2199 * take the union of IEs from both of these interfaces and send in
2200 * further disassoc/deauth frames.
2201 */
Hai Shalomfdcde762020-04-02 11:19:20 -07002202 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07002203
2204 /* 8-bit unsigned value for ELNA bypass.
2205 * 1-Enable, 0-Disable
2206 */
2207 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2208
Hai Shalomfdcde762020-04-02 11:19:20 -07002209 /* 8-bit unsigned value. This attribute enables/disables the host driver
2210 * to send the Beacon Report Response with failure reason for the
2211 * scenarios where STA cannot honor the Beacon Report Request from AP.
2212 * 1-Enable, 0-Disable.
2213 */
2214 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2215
2216 /* 8-bit unsigned value. This attribute enables/disables the host driver
2217 * to send roam reason information in the Reassociation Request frame to
2218 * the target AP when roaming within the same ESS.
2219 * 1-Enable, 0-Disable.
2220 */
2221 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2222
Hai Shalom899fcc72020-10-19 14:38:18 -07002223 /* 32-bit unsigned value to configure different PHY modes to the
2224 * driver/firmware. The possible values are defined in
2225 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2226 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2227 * the driver.
2228 */
2229 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2230
2231 /* 8-bit unsigned value to configure the maximum supported channel width
2232 * for STA mode. If this value is configured when STA is in connected
2233 * state, it should not exceed the negotiated channel width. If it is
2234 * configured when STA is in disconnected state, the configured value
2235 * will take effect for the next immediate connection.
2236 * Possible values are:
2237 * NL80211_CHAN_WIDTH_20
2238 * NL80211_CHAN_WIDTH_40
2239 * NL80211_CHAN_WIDTH_80
2240 * NL80211_CHAN_WIDTH_80P80
2241 * NL80211_CHAN_WIDTH_160
2242 */
2243 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2244
2245 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2246 * This attribute is only applicable for STA mode. When dynamic
2247 * bandwidth adjustment is disabled, STA will use static channel width
2248 * the value of which is negotiated during connection.
2249 * 1-enable (default), 0-disable
2250 */
2251 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2252
2253 /* 8-bit unsigned value to configure the maximum number of subframes of
2254 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2255 * it is decided by the hardware.
2256 */
2257 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2258
2259 /* 8-bit unsigned value to configure the maximum number of subframes of
2260 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2261 * it is decided by the hardware.
2262 */
2263 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2264
2265 /* 8-bit unsigned value. This attribute is used to dynamically
2266 * enable/disable the LDPC capability of the device. When configured in
2267 * the disconnected state, the updated configuration will be considered
2268 * for the immediately following connection attempt. If this
2269 * configuration is modified while the device is in the connected state,
2270 * the LDPC TX will be updated with this configuration immediately,
2271 * while the LDPC RX configuration update will take place starting from
2272 * the subsequent association attempt.
2273 * 1-Enable, 0-Disable.
2274 */
2275 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2276
2277 /* 8-bit unsigned value. This attribute is used to dynamically
2278 * enable/disable the TX STBC capability of the device. When configured
2279 * in the disconnected state, the updated configuration will be
2280 * considered for the immediately following connection attempt. If the
2281 * connection is formed with TX STBC enabled and if this configuration
2282 * is disabled during that association, the TX will be impacted
2283 * immediately. Further connection attempts will disable TX STBC.
2284 * However, enabling the TX STBC for a connected session with disabled
2285 * capability is not allowed and will fail.
2286 * 1-Enable, 0-Disable.
2287 */
2288 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2289
2290 /* 8-bit unsigned value. This attribute is used to dynamically
2291 * enable/disable the RX STBC capability of the device. When configured
2292 * in the disconnected state, the updated configuration will be
2293 * considered for the immediately following connection attempt. If the
2294 * configuration is modified in the connected state, there will be no
2295 * impact for the current association, but further connection attempts
2296 * will use the updated configuration.
2297 * 1-Enable, 0-Disable.
2298 */
2299 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2300
2301 /* 8-bit unsigned value. This attribute is used to dynamically configure
2302 * the number of spatial streams. When configured in the disconnected
2303 * state, the updated configuration will be considered for the
2304 * immediately following connection attempt. If the NSS is updated after
2305 * the connection, the updated NSS value is notified to the peer using
2306 * the Operating Mode Notification/Spatial Multiplexing Power Save
2307 * frame. The updated NSS value after the connection shall not be
2308 * greater than the one negotiated during the connection. Any such
2309 * higher value configuration shall be returned with a failure.
Hai Shalom60840252021-02-19 19:02:11 -08002310 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2311 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2312 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2313 * configure the asymmetric NSS configuration (such as 1X2).
Hai Shalom899fcc72020-10-19 14:38:18 -07002314 */
2315 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
2316 /* 8-bit unsigned value to trigger Optimized Power Management:
2317 * 1-Enable, 0-Disable
2318 */
2319 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2320
2321 /* 8-bit unsigned value. This attribute takes the QoS/access category
2322 * value represented by the enum qca_wlan_ac_type and expects the driver
2323 * to upgrade the UDP frames to this access category. The value of
2324 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2325 * DSCP value configured in the frame with the intention to only upgrade
2326 * the access category. That said, it is not intended to downgrade the
2327 * access category for the frames.
2328 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2329 * disabled, as BK is of the lowest priority and an upgrade to it does
2330 * not result in any changes for the frames.
2331 */
2332 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2333
2334 /* 8-bit unsigned value. This attribute is used to dynamically configure
2335 * the number of chains to be used for transmitting data. This
2336 * configuration is allowed only when in connected state and will be
2337 * effective until disconnected. The driver rejects this configuration
2338 * if the number of spatial streams being used in the current connection
2339 * cannot be supported by this configuration.
2340 */
2341 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2342 /* 8-bit unsigned value. This attribute is used to dynamically configure
2343 * the number of chains to be used for receiving data. This
2344 * configuration is allowed only when in connected state and will be
2345 * effective until disconnected. The driver rejects this configuration
2346 * if the number of spatial streams being used in the current connection
2347 * cannot be supported by this configuration.
2348 */
2349 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2350
2351 /* 8-bit unsigned value to configure ANI setting type.
2352 * See &enum qca_wlan_ani_setting for possible values.
2353 */
2354 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2355 /* 32-bit signed value to configure ANI level. This is used when
2356 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2357 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2358 * is invalid, the driver will return a failure.
2359 */
2360 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2361
Hai Shalom60840252021-02-19 19:02:11 -08002362 /* 8-bit unsigned value. This attribute is used to dynamically configure
2363 * the number of spatial streams used for transmitting the data. When
2364 * configured in the disconnected state, the configured value will
2365 * be considered for the following connection attempt.
2366 * If the NSS is updated after the connection, the updated NSS value
2367 * is notified to the peer using the Operating Mode Notification/Spatial
2368 * Multiplexing Power Save frame.
2369 * The TX NSS value configured after the connection shall not be greater
2370 * than the value negotiated during the connection. Any such higher
2371 * value configuration shall be treated as invalid configuration by
2372 * the driver. This attribute shall be configured along with
2373 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2374 * configuration (such as 2X2 or 1X1) or the asymmetric
2375 * configuration (such as 1X2).
2376 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2377 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
2378 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
2379 */
2380 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
2381
2382 /* 8-bit unsigned value. This attribute is used to dynamically configure
2383 * the number of spatial streams used for receiving the data. When
2384 * configured in the disconnected state, the configured value will
2385 * be considered for the following connection attempt.
2386 * If the NSS is updated after the connection, the updated NSS value
2387 * is notified to the peer using the Operating Mode Notification/Spatial
2388 * Multiplexing Power Save frame.
2389 * The RX NSS value configured after the connection shall not be greater
2390 * than the value negotiated during the connection. Any such higher
2391 * value configuration shall be treated as invalid configuration by
2392 * the driver. This attribute shall be configured along with
2393 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
2394 * configuration (such as 2X2 or 1X1) or the asymmetric
2395 * configuration (such as 1X2).
2396 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2397 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
2398 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
2399 */
2400 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
2401
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002402 /* keep last */
2403 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
2404 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
2405 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
2406};
2407
Hai Shalomfdcde762020-04-02 11:19:20 -07002408/* Compatibility defines for previously used incorrect enum
2409 * qca_wlan_vendor_attr_config names. These values should not be used in any
2410 * new implementation. */
2411#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
2412 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
2413#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
2414 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
2415
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002416/**
Hai Shalom899fcc72020-10-19 14:38:18 -07002417 * enum qca_wlan_ani_setting - ANI setting type
2418 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
2419 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
2420 */
2421enum qca_wlan_ani_setting {
2422 QCA_WLAN_ANI_SETTING_AUTO = 0,
2423 QCA_WLAN_ANI_SETTING_FIXED = 1,
2424};
2425
2426/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002427 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07002428 *
2429 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
2430 * Channel number on which Access Point should restart.
2431 * Note: If both the driver and user space application supports the 6 GHz band,
2432 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
2433 * should be used.
2434 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
2435 * is still used if either of the driver or user space application doesn't
2436 * support the 6 GHz band.
2437 *
2438 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
2439 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002440 */
2441enum qca_wlan_vendor_attr_sap_config {
2442 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002443 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
2444
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002445 /* List of frequencies on which AP is expected to operate.
2446 * This is irrespective of ACS configuration. This list is a priority
2447 * based one and is looked for before the AP is created to ensure the
2448 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
2449 * the system.
2450 */
2451 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07002452 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002453
2454 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
2455 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
2456 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
2457};
2458
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002459/**
2460 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
2461 * conditional channel switch
2462 */
2463enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
2464 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
2465 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07002466 * order)
2467 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002468 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
2469 /* Status of the conditional switch (u32).
2470 * 0: Success, Non-zero: Failure
2471 */
2472 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
2473
2474 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
2475 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
2476 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
2477};
2478
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002479/**
2480 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07002481 *
2482 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
2483 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
2484 * for the available values.
2485 *
2486 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
2487 * value to specify the GPIO number.
2488 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2489 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
2490 *
2491 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
2492 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
2493 * for the available values.
2494 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2495 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
2496 *
Hai Shalom60840252021-02-19 19:02:11 -08002497 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002498 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
2499 * for the available values.
2500 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002501 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2502 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2503 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2504 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07002505 *
Hai Shalom60840252021-02-19 19:02:11 -08002506 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002507 * value to specify the GPIO interrupt mode. Please refer to enum
2508 * qca_gpio_interrupt_mode for the available values.
2509 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002510 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2511 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2512 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2513 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07002514 *
Hai Shalom60840252021-02-19 19:02:11 -08002515 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07002516 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
2517 * for the available values.
2518 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08002519 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2520 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2521 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2522 * attribute is present.
2523 *
2524 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
2525 * Value to specify the mux config. Meaning of a given value is dependent
2526 * on the target chipset and GPIO pin. Must be of the range 0-15.
2527 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2528 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
2529 *
2530 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
2531 * Value to specify the drive, refer to enum qca_gpio_drive.
2532 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2533 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
2534 *
2535 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
2536 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2537 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
2538 * other parameters for the given GPIO will be obtained from internal
2539 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
2540 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002541 */
2542enum qca_wlan_gpio_attr {
2543 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
2544 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07002545 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002546 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07002547 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002548 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07002549 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002550 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07002551 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002552 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07002553 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
2554 /* Unsigned 32-bit attribute for GPIO direction to configure */
2555 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08002556 /* Unsigned 32-bit attribute for GPIO mux config */
2557 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
2558 /* Unsigned 32-bit attribute for GPIO drive */
2559 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
2560 /* Flag attribute for using internal GPIO configuration */
2561 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002562
2563 /* keep last */
2564 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
2565 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
2566 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
2567};
2568
2569/**
Hai Shalom899fcc72020-10-19 14:38:18 -07002570 * enum gpio_cmd_type - GPIO configuration command type
2571 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
2572 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
2573 */
2574enum qca_gpio_cmd_type {
2575 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
2576 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
2577};
2578
2579/**
2580 * enum qca_gpio_pull_type - GPIO pull type
2581 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
2582 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
2583 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
2584 */
2585enum qca_gpio_pull_type {
2586 QCA_WLAN_GPIO_PULL_NONE = 0,
2587 QCA_WLAN_GPIO_PULL_UP = 1,
2588 QCA_WLAN_GPIO_PULL_DOWN = 2,
2589 QCA_WLAN_GPIO_PULL_MAX,
2590};
2591
2592/**
2593 * enum qca_gpio_direction - GPIO direction
2594 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
2595 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
2596 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
2597 */
2598enum qca_gpio_direction {
2599 QCA_WLAN_GPIO_INPUT = 0,
2600 QCA_WLAN_GPIO_OUTPUT = 1,
2601 QCA_WLAN_GPIO_DIR_MAX,
2602};
2603
2604/**
2605 * enum qca_gpio_value - GPIO Value
2606 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
2607 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
2608 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
2609 */
2610enum qca_gpio_value {
2611 QCA_WLAN_GPIO_LEVEL_LOW = 0,
2612 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
2613 QCA_WLAN_GPIO_LEVEL_MAX,
2614};
2615
2616/**
2617 * enum gpio_interrupt_mode - GPIO interrupt mode
2618 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
2619 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
2620 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
2621 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
2622 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
2623 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
2624 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
2625 */
2626enum qca_gpio_interrupt_mode {
2627 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
2628 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
2629 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
2630 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
2631 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
2632 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
2633 QCA_WLAN_GPIO_INTMODE_MAX,
2634};
2635
2636/**
Hai Shalom60840252021-02-19 19:02:11 -08002637 * enum qca_gpio_drive - GPIO drive
2638 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
2639 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
2640 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
2641 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
2642 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
2643 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
2644 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
2645 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
2646 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
2647 */
2648enum qca_gpio_drive {
2649 QCA_WLAN_GPIO_DRIVE_2MA = 0,
2650 QCA_WLAN_GPIO_DRIVE_4MA = 1,
2651 QCA_WLAN_GPIO_DRIVE_6MA = 2,
2652 QCA_WLAN_GPIO_DRIVE_8MA = 3,
2653 QCA_WLAN_GPIO_DRIVE_10MA = 4,
2654 QCA_WLAN_GPIO_DRIVE_12MA = 5,
2655 QCA_WLAN_GPIO_DRIVE_14MA = 6,
2656 QCA_WLAN_GPIO_DRIVE_16MA = 7,
2657 QCA_WLAN_GPIO_DRIVE_MAX,
2658};
2659
2660/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07002661 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
2662 * MSDUQ depth threshold per peer per tid in the target
2663 *
2664 * Associated Vendor Command:
2665 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
2666 */
2667enum qca_wlan_set_qdepth_thresh_attr {
2668 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
2669 /* 6-byte MAC address */
2670 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
2671 /* Unsigned 32-bit attribute for holding the TID */
2672 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
2673 /* Unsigned 32-bit attribute for holding the update mask
2674 * bit 0 - Update high priority msdu qdepth threshold
2675 * bit 1 - Update low priority msdu qdepth threshold
2676 * bit 2 - Update UDP msdu qdepth threshold
2677 * bit 3 - Update Non UDP msdu qdepth threshold
2678 * rest of bits are reserved
2679 */
2680 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
2681 /* Unsigned 32-bit attribute for holding the threshold value */
2682 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
2683
2684 /* keep last */
2685 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
2686 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
2687 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
2688};
2689
2690/**
Hai Shalomc3565922019-10-28 11:58:20 -07002691 * enum qca_acs_dfs_mode - Defines different types of DFS channel
2692 * configurations for ACS operation.
2693 *
2694 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
2695 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
2696 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
2697 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
2698 */
2699enum qca_acs_dfs_mode {
2700 QCA_ACS_DFS_MODE_NONE = 0,
2701 QCA_ACS_DFS_MODE_ENABLE = 1,
2702 QCA_ACS_DFS_MODE_DISABLE = 2,
2703 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
2704};
2705
2706/**
2707 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
2708 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
2709 *
2710 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
2711 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
2712 *
2713 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
2714 * channel number hint for ACS operation, if valid channel is specified then
2715 * ACS operation gives priority to this channel.
2716 * Note: If both the driver and user space application supports the 6 GHz band,
2717 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
2718 * should be used.
2719 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
2720 * is still used if either of the driver or user space application doesn't
2721 * support the 6 GHz band.
2722 *
2723 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
2724 * Channel center frequency (MHz) hint for ACS operation, if a valid center
2725 * frequency is specified, ACS operation gives priority to this channel.
2726 */
2727enum qca_wlan_vendor_attr_acs_config {
2728 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
2729 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
2730 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
2731 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
2732
2733 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
2734 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
2735 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
2736};
2737
2738/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002739 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
2740 */
2741enum qca_wlan_vendor_attr_get_hw_capability {
2742 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
2743 /* Antenna isolation
2744 * An attribute used in the response.
2745 * The content of this attribute is encoded in a byte array. Each byte
2746 * value is an antenna isolation value. The array length is the number
2747 * of antennas.
2748 */
2749 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
2750 /* Request HW capability
2751 * An attribute used in the request.
2752 * The content of this attribute is a u32 array for one or more of
2753 * hardware capabilities (attribute IDs) that are being requested. Each
2754 * u32 value has a value from this
2755 * enum qca_wlan_vendor_attr_get_hw_capability
2756 * identifying which capabilities are requested.
2757 */
2758 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
2759
2760 /* keep last */
2761 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
2762 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
2763 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
2764};
2765
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002766/**
2767 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
2768 * offload which is an extension for LL_STATS.
2769 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
2770 * If MAC counters do not exceed the threshold, FW will report monitored
2771 * link layer counters periodically as this setting. The first report is
2772 * always triggered by this timer.
2773 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
2774 * For each MAC layer counter, FW holds two copies. One is the current value.
2775 * The other is the last report. Once a current counter's increment is larger
2776 * than the threshold, FW will indicate that counter to host even if the
2777 * monitoring timer does not expire.
2778 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
2779 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
2780 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
2781 * failure code.
2782 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
2783 * 1: TX packet discarded
2784 * 2: No ACK
2785 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002786 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
2787 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
2788 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
2789 * Threshold for all monitored parameters. If per counter dedicated threshold
2790 * is not enabled, this threshold will take effect.
2791 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
2792 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
2793 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
2794 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
2795 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
2796 * Bit0: TX counter unit in MSDU
2797 * Bit1: TX counter unit in MPDU
2798 * Bit2: TX counter unit in PPDU
2799 * Bit3: TX counter unit in byte
2800 * Bit4: Dropped MSDUs
2801 * Bit5: Dropped Bytes
2802 * Bit6: MPDU retry counter
2803 * Bit7: MPDU failure counter
2804 * Bit8: PPDU failure counter
2805 * Bit9: MPDU aggregation counter
2806 * Bit10: MCS counter for ACKed MPDUs
2807 * Bit11: MCS counter for Failed MPDUs
2808 * Bit12: TX Delay counter
2809 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
2810 * Bit0: MAC RX counter unit in MPDU
2811 * Bit1: MAC RX counter unit in byte
2812 * Bit2: PHY RX counter unit in PPDU
2813 * Bit3: PHY RX counter unit in byte
2814 * Bit4: Disorder counter
2815 * Bit5: Retry counter
2816 * Bit6: Duplication counter
2817 * Bit7: Discard counter
2818 * Bit8: MPDU aggregation size counter
2819 * Bit9: MCS counter
2820 * Bit10: Peer STA power state change (wake to sleep) counter
2821 * Bit11: Peer STA power save counter, total time in PS mode
2822 * Bit12: Probe request counter
2823 * Bit13: Other management frames counter
2824 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
2825 * Bit0: Idle time
2826 * Bit1: TX time
2827 * Bit2: time RX in current bss
2828 * Bit3: Out of current bss time
2829 * Bit4: Wireless medium busy time
2830 * Bit5: RX in bad condition time
2831 * Bit6: TX in bad condition time
2832 * Bit7: time wlan card not available
2833 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
2834 * Bit0: Per channel SNR counter
2835 * Bit1: Per channel noise floor counter
2836 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
2837 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
2838 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
2839 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
2840 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
2841 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
2842 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
2843 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
2844 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
2845 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
2846 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
2847 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
2848 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
2849 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
2850 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
2851 * aggregation stats buffer length
2852 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
2853 * buffer for ACKed MPDUs.
2854 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
2855 * buffer for failed MPDUs.
2856 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
2857 * length of delay stats array.
2858 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
2859 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
2860 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
2861 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
2862 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
2863 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
2864 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
2865 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
2866 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
2867 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
2868 * flagged as retransmissions
2869 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
2870 * flagged as duplicated
2871 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
2872 * packets discarded
2873 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
2874 * stats buffer.
2875 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
2876 * stats buffer.
2877 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
2878 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
2879 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
2880 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
2881 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
2882 * requests received
2883 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
2884 * frames received
2885 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
2886 * there is no TX, nor RX, nor interference.
2887 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
2888 * transmitting packets.
2889 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
2890 * for receiving.
2891 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
2892 * interference detected.
2893 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
2894 * receiving packets with errors.
2895 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
2896 * TX no-ACK.
2897 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
2898 * the chip is unable to work in normal conditions.
2899 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
2900 * receiving packets in current BSS.
2901 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
2902 * receiving packets not in current BSS.
2903 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
2904 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
2905 * This is a container for per antenna signal stats.
2906 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
2907 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
2908 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
2909 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07002910 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
2911 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
2912 * message, user layer APP could call gettimeofday to get another
2913 * timestamp and calculate transfer delay for the message.
2914 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
2915 * Real period for this measurement, unit in us.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002916 */
2917enum qca_wlan_vendor_attr_ll_stats_ext {
2918 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
2919
2920 /* Attributes for configurations */
2921 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
2922 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
2923
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002924 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002925 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
2926
2927 /* TX failure event */
2928 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
2929 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
2930 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
2931
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002932 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
2933 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
2934
2935 /* MAC counters */
2936 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
2937 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
2938 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
2939 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
2940 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
2941 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
2942 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
2943 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
2944 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
2945 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
2946 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
2947 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
2948
2949 /* Sub-attributes for PEER_AC_TX */
2950 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
2951 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
2952 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
2953 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
2954 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
2955 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
2956 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
2957 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
2958 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
2959 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
2960 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
2961 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
2962 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
2963 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
2964 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
2965 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
2966 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
2967
2968 /* Sub-attributes for PEER_AC_RX */
2969 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
2970 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
2971 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
2972 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
2973 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
2974 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
2975 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
2976 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
2977 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
2978 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
2979 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
2980 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
2981 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
2982 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
2983 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
2984 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
2985
2986 /* Sub-attributes for CCA_BSS */
2987 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
2988 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
2989 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
2990 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
2991 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
2992 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
2993 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
2994
2995 /* sub-attribute for BSS_RX_TIME */
2996 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
2997 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
2998
2999 /* Sub-attributes for PEER_SIGNAL */
3000 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
3001 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
3002 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
3003 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
3004
3005 /* Sub-attributes for IFACE_BSS */
3006 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
3007 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
3008
Roshan Pius3a1667e2018-07-03 15:17:14 -07003009 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
3010 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
3011
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003012 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
3013 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
3014 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
3015};
3016
3017/* Attributes for FTM commands and events */
3018
3019/**
3020 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
3021 *
3022 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
3023 * enum qca_wlan_vendor_attr_loc_capa_flags.
3024 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
3025 * of measurement sessions that can run concurrently.
3026 * Default is one session (no session concurrency).
3027 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
3028 * peers that are supported in running sessions. For example,
3029 * if the value is 8 and maximum number of sessions is 2, you can
3030 * have one session with 8 unique peers, or 2 sessions with 4 unique
3031 * peers each, and so on.
3032 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
3033 * of bursts per peer, as an exponent (2^value). Default is 0,
3034 * meaning no multi-burst support.
3035 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
3036 * of measurement exchanges allowed in a single burst.
3037 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
3038 * types. A bit mask (unsigned 32 bit value), each bit corresponds
3039 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
3040 */
3041enum qca_wlan_vendor_attr_loc_capa {
3042 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
3043 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
3044 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
3045 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
3046 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
3047 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
3048 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
3049 /* keep last */
3050 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
3051 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
3052 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
3053};
3054
3055/**
3056 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
3057 *
3058 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
3059 * can be configured as an FTM responder (for example, an AP that
3060 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
3061 * will be supported if set.
3062 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
3063 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
3064 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003065 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003066 * supports immediate (ASAP) response.
3067 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
3068 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
3069 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
3070 * requesting AOA measurements as part of an FTM session.
3071 */
3072enum qca_wlan_vendor_attr_loc_capa_flags {
3073 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
3074 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
3075 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
3076 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
3077 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
3078};
3079
3080/**
3081 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
3082 * a single peer in a measurement session.
3083 *
3084 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
3085 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
3086 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003087 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003088 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
3089 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
3090 * list of supported attributes.
3091 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
3092 * secure measurement.
3093 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
3094 * measurement every <value> bursts. If 0 or not specified,
3095 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003096 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
3097 * the measurement frames are exchanged. Optional; if not
3098 * specified, try to locate the peer in the kernel scan
3099 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003100 */
3101enum qca_wlan_vendor_attr_ftm_peer_info {
3102 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
3103 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
3104 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003105 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003106 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
3107 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003108 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003109 /* keep last */
3110 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
3111 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
3112 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
3113};
3114
3115/**
3116 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
3117 * per-peer
3118 *
3119 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
3120 * immediate (ASAP) response from peer.
3121 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
3122 * LCI report from peer. The LCI report includes the absolute
3123 * location of the peer in "official" coordinates (similar to GPS).
3124 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
3125 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
3126 * Location civic report from peer. The LCR includes the location
3127 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
3128 * 11.24.6.7 for more information.
3129 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
3130 * request a secure measurement.
3131 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
3132 */
3133enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
3134 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
3135 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
3136 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
3137 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
3138};
3139
3140/**
3141 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
3142 *
3143 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
3144 * to perform in a single burst.
3145 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
3146 * perform, specified as an exponent (2^value).
3147 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
3148 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
3149 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
3150 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
3151 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
3152 */
3153enum qca_wlan_vendor_attr_ftm_meas_param {
3154 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
3155 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
3156 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
3157 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
3158 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
3159 /* keep last */
3160 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
3161 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
3162 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
3163};
3164
3165/**
3166 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
3167 *
3168 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
3169 * peer.
3170 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
3171 * request for this peer.
3172 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
3173 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
3174 * to measurement results for this peer.
3175 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
3176 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
3177 * request failed and peer requested not to send an additional request
3178 * for this number of seconds.
3179 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
3180 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3181 * 9.4.2.22.10.
3182 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
3183 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3184 * 9.4.2.22.13.
3185 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
3186 * overridden some measurement request parameters. See
3187 * enum qca_wlan_vendor_attr_ftm_meas_param.
3188 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
3189 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
3190 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
3191 * results. Each entry is a nested attribute defined
3192 * by enum qca_wlan_vendor_attr_ftm_meas.
3193 */
3194enum qca_wlan_vendor_attr_ftm_peer_result {
3195 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
3196 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
3197 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
3198 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
3199 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
3200 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
3201 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
3202 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
3203 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
3204 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
3205 /* keep last */
3206 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
3207 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
3208 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
3209};
3210
3211/**
3212 * enum qca_wlan_vendor_attr_ftm_peer_result_status
3213 *
3214 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
3215 * will be provided. Peer may have overridden some measurement parameters,
3216 * in which case overridden parameters will be report by
3217 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
3218 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
3219 * of performing the measurement request. No more results will be sent
3220 * for this peer in this session.
3221 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
3222 * failed, and requested not to send an additional request for number
3223 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
3224 * attribute.
3225 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
3226 * failed. Request was not sent over the air.
3227 */
3228enum qca_wlan_vendor_attr_ftm_peer_result_status {
3229 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
3230 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
3231 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
3232 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
3233};
3234
3235/**
3236 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
3237 * for measurement result, per-peer
3238 *
3239 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
3240 * measurement completed for this peer. No more results will be reported
3241 * for this peer in this session.
3242 */
3243enum qca_wlan_vendor_attr_ftm_peer_result_flags {
3244 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
3245};
3246
3247/**
3248 * enum qca_vendor_attr_loc_session_status: Session completion status code
3249 *
3250 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
3251 * successfully.
3252 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
3253 * by request.
3254 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
3255 * was invalid and was not started.
3256 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
3257 * and did not complete normally (for example out of resources).
3258 */
3259enum qca_vendor_attr_loc_session_status {
3260 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
3261 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
3262 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
3263 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
3264};
3265
3266/**
3267 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
3268 *
3269 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
3270 * recorded by responder, in picoseconds.
3271 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3272 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
3273 * initiator, in picoseconds.
3274 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3275 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
3276 * initiator, in picoseconds.
3277 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3278 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
3279 * responder, in picoseconds.
3280 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3281 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
3282 * during this measurement exchange. Optional and will be provided if
3283 * the hardware can measure it.
3284 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
3285 * responder. Not always provided.
3286 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3287 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
3288 * responder. Not always provided.
3289 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3290 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
3291 * initiator. Not always provided.
3292 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3293 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
3294 * initiator. Not always provided.
3295 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3296 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
3297 */
3298enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003299 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07003300 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
3301 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
3302 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
3303 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
3304 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
3305 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
3306 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
3307 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
3308 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
3309 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
3310 /* keep last */
3311 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
3312 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
3313 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
3314};
3315
3316/**
3317 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
3318 *
3319 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
3320 * CIR (channel impulse response) path for each antenna.
3321 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
3322 * of the strongest CIR path for each antenna.
3323 */
3324enum qca_wlan_vendor_attr_aoa_type {
3325 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
3326 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
3327 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
3328};
3329
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003330/**
3331 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
3332 * validate encryption engine
3333 *
3334 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
3335 * This will be included if the request is for decryption; if not included,
3336 * the request is treated as a request for encryption by default.
3337 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
3338 * indicating the key cipher suite. Takes same values as
3339 * NL80211_ATTR_KEY_CIPHER.
3340 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
3341 * Key Id to be used for encryption
3342 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
3343 * Key (TK) to be used for encryption/decryption
3344 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
3345 * Packet number to be specified for encryption/decryption
3346 * 6 bytes for TKIP/CCMP/GCMP.
3347 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
3348 * representing the 802.11 packet (header + payload + FCS) that
3349 * needs to be encrypted/decrypted.
3350 * Encrypted/decrypted response from the driver will also be sent
3351 * to userspace with the same attribute.
3352 */
3353enum qca_wlan_vendor_attr_encryption_test {
3354 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
3355 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
3356 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
3357 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
3358 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
3359 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
3360 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
3361
3362 /* keep last */
3363 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
3364 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
3365 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
3366};
3367
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003368/**
3369 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
3370 * sector for DMG RF sector operations.
3371 *
3372 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
3373 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
3374 */
3375enum qca_wlan_vendor_attr_dmg_rf_sector_type {
3376 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
3377 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
3378 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
3379};
3380
3381/**
Hai Shalom021b0b52019-04-10 11:17:58 -07003382 * enum qca_wlan_vendor_attr_fw_state - State of firmware
3383 *
3384 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
3385 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
3386 */
3387enum qca_wlan_vendor_attr_fw_state {
3388 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
3389 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
3390 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
3391};
3392
3393/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003394 * BRP antenna limit mode
3395 *
3396 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
3397 * antenna limit, BRP will be performed as usual.
3398 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
3399 * antennas limit. the hardware may use less antennas than the
3400 * maximum limit.
3401 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
3402 * use exactly the specified number of antennas for BRP.
3403 */
3404enum qca_wlan_vendor_attr_brp_ant_limit_mode {
3405 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
3406 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
3407 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
3408 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
3409};
3410
3411/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003412 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
3413 * DMG RF sector configuration for a single RF module.
3414 * The values are defined in a compact way which closely matches
3415 * the way it is stored in HW registers.
3416 * The configuration provides values for 32 antennas and 8 distribution
3417 * amplifiers, and together describes the characteristics of the RF
3418 * sector - such as a beam in some direction with some gain.
3419 *
3420 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
3421 * of RF module for this configuration.
3422 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
3423 * amplifier gain index. Unsigned 32 bit number containing
3424 * bits for all 32 antennas.
3425 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
3426 * amplifier gain index. Unsigned 32 bit number containing
3427 * bits for all 32 antennas.
3428 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
3429 * amplifier gain index. Unsigned 32 bit number containing
3430 * bits for all 32 antennas.
3431 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
3432 * for first 16 antennas, 2 bits per antenna.
3433 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
3434 * for last 16 antennas, 2 bits per antenna.
3435 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
3436 * DTYPE values (3 bits) for each distribution amplifier, followed
3437 * by X16 switch bits for each distribution amplifier. There are
3438 * total of 8 distribution amplifiers.
3439 */
3440enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
3441 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
3442 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
3443 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
3444 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
3445 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
3446 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
3447 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
3448 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
3449
3450 /* keep last */
3451 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
3452 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
3453 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
3454};
3455
3456enum qca_wlan_vendor_attr_ll_stats_set {
3457 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
3458 /* Unsigned 32-bit value */
3459 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
3460 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
3461 /* keep last */
3462 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
3463 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
3464 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
3465};
3466
3467enum qca_wlan_vendor_attr_ll_stats_clr {
3468 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
3469 /* Unsigned 32bit bitmap for clearing statistics
3470 * All radio statistics 0x00000001
3471 * cca_busy_time (within radio statistics) 0x00000002
3472 * All channel stats (within radio statistics) 0x00000004
3473 * All scan statistics (within radio statistics) 0x00000008
3474 * All interface statistics 0x00000010
3475 * All tx rate statistics (within interface statistics) 0x00000020
3476 * All ac statistics (with in interface statistics) 0x00000040
3477 * All contention (min, max, avg) statistics (within ac statisctics)
3478 * 0x00000080.
3479 */
3480 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
3481 /* Unsigned 8 bit value: Request to stop statistics collection */
3482 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
3483
3484 /* Unsigned 32 bit bitmap: Response from the driver
3485 * for the cleared statistics
3486 */
3487 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
3488 /* Unsigned 8 bit value: Response from driver/firmware
3489 * for the stop request
3490 */
3491 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
3492 /* keep last */
3493 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
3494 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
3495 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
3496};
3497
3498enum qca_wlan_vendor_attr_ll_stats_get {
3499 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
3500 /* Unsigned 32 bit value provided by the caller issuing the GET stats
3501 * command. When reporting the stats results, the driver uses the same
3502 * value to indicate which GET request the results correspond to.
3503 */
3504 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
3505 /* Unsigned 32 bit value - bit mask to identify what statistics are
3506 * requested for retrieval.
3507 * Radio Statistics 0x00000001
3508 * Interface Statistics 0x00000020
3509 * All Peer Statistics 0x00000040
3510 * Peer Statistics 0x00000080
3511 */
3512 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
3513 /* keep last */
3514 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
3515 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
3516 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
3517};
3518
3519enum qca_wlan_vendor_attr_ll_stats_results {
3520 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
3521 /* Unsigned 32bit value. Used by the driver; must match the request id
3522 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
3523 */
3524 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
3525
3526 /* Unsigned 32 bit value */
3527 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
3528 /* Unsigned 32 bit value */
3529 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
3530 /* Unsigned 32 bit value */
3531 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
3532 /* Unsigned 32 bit value */
3533 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
3534 /* Signed 32 bit value */
3535 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
3536 /* Signed 32 bit value */
3537 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
3538 /* Signed 32 bit value */
3539 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
3540
3541 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
3542 * nested within the interface stats.
3543 */
3544
3545 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
3546 * Type = enum wifi_interface_mode.
3547 */
3548 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
3549 /* Interface MAC address. An array of 6 Unsigned int8 */
3550 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
3551 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
3552 * AUTHENTICATING, etc. valid for STA, CLI only.
3553 */
3554 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
3555 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
3556 */
3557 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
3558 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
3559 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
3560 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
3561 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
3562 /* BSSID. An array of 6 unsigned 8 bit values */
3563 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
3564 /* Country string advertised by AP. An array of 3 unsigned 8 bit
3565 * values.
3566 */
3567 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
3568 /* Country string for this association. An array of 3 unsigned 8 bit
3569 * values.
3570 */
3571 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
3572
3573 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
3574 * be nested within the interface stats.
3575 */
3576
3577 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
3578 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
3579 /* Unsigned int 32 value corresponding to respective AC */
3580 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
3581 /* Unsigned int 32 value corresponding to respective AC */
3582 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
3583 /* Unsigned int 32 value corresponding to respective AC */
3584 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
3585 /* Unsigned int 32 value corresponding to respective AC */
3586 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
3587 /* Unsigned int 32 value corresponding to respective AC */
3588 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
3589 /* Unsigned int 32 value corresponding to respective AC */
3590 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
3591 /* Unsigned int 32 value corresponding to respective AC */
3592 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
3593 /* Unsigned int 32 value corresponding to respective AC */
3594 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
3595 /* Unsigned int 32 value corresponding to respective AC */
3596 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
3597 /* Unsigned int 32 values corresponding to respective AC */
3598 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
3599 /* Unsigned int 32 values corresponding to respective AC */
3600 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
3601 /* Unsigned int 32 values corresponding to respective AC */
3602 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
3603 /* Unsigned int 32 values corresponding to respective AC */
3604 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
3605 /* Unsigned int 32 values corresponding to respective AC */
3606 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
3607 /* Unsigned 32 bit value. Number of peers */
3608 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
3609
3610 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
3611 * nested within the interface stats.
3612 */
3613
3614 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
3615 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
3616 /* MAC addr corresponding to respective peer. An array of 6 unsigned
3617 * 8 bit values.
3618 */
3619 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
3620 /* Unsigned int 32 bit value representing capabilities corresponding
3621 * to respective peer.
3622 */
3623 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
3624 /* Unsigned 32 bit value. Number of rates */
3625 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
3626
3627 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3628 * are nested within the rate stat.
3629 */
3630
3631 /* Wi-Fi Rate - separate attributes defined for individual fields */
3632
3633 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
3634 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
3635 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
3636 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
3637 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
3638 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
3639 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07003640 * in the units of 0.5 Mbps HT/VHT it would be MCS index
3641 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003642 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
3643
3644 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
3645 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
3646
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003647 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
3648 * nested within the peer info stats.
3649 */
3650
3651 /* Unsigned int 32 bit value. Number of successfully transmitted data
3652 * packets, i.e., with ACK received corresponding to the respective
3653 * rate.
3654 */
3655 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
3656 /* Unsigned int 32 bit value. Number of received data packets
3657 * corresponding to the respective rate.
3658 */
3659 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
3660 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
3661 * received corresponding to the respective rate.
3662 */
3663 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
3664 /* Unsigned int 32 bit value. Total number of data packet retries for
3665 * the respective rate.
3666 */
3667 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
3668 /* Unsigned int 32 bit value. Total number of short data packet retries
3669 * for the respective rate.
3670 */
3671 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
3672 /* Unsigned int 32 bit value. Total number of long data packet retries
3673 * for the respective rate.
3674 */
3675 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
3676
3677 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
3678 /* Unsigned 32 bit value. Total number of msecs the radio is awake
3679 * accruing over time.
3680 */
3681 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
3682 /* Unsigned 32 bit value. Total number of msecs the radio is
3683 * transmitting accruing over time.
3684 */
3685 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
3686 /* Unsigned 32 bit value. Total number of msecs the radio is in active
3687 * receive accruing over time.
3688 */
3689 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
3690 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3691 * to all scan accruing over time.
3692 */
3693 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
3694 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3695 * to NAN accruing over time.
3696 */
3697 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
3698 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3699 * to GSCAN accruing over time.
3700 */
3701 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
3702 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3703 * to roam scan accruing over time.
3704 */
3705 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
3706 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3707 * to PNO scan accruing over time.
3708 */
3709 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
3710 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3711 * to Hotspot 2.0 scans and GAS exchange accruing over time.
3712 */
3713 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
3714 /* Unsigned 32 bit value. Number of channels. */
3715 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
3716
3717 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
3718 * be nested within the channel stats.
3719 */
3720
3721 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
3722 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
3723 /* Unsigned 32 bit value. Primary 20 MHz channel. */
3724 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
3725 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
3726 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
3727 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
3728 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
3729
3730 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
3731 * nested within the radio stats.
3732 */
3733
3734 /* Unsigned int 32 bit value representing total number of msecs the
3735 * radio is awake on that channel accruing over time, corresponding to
3736 * the respective channel.
3737 */
3738 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
3739 /* Unsigned int 32 bit value representing total number of msecs the CCA
3740 * register is busy accruing over time corresponding to the respective
3741 * channel.
3742 */
3743 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
3744
3745 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
3746
3747 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07003748 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003749 */
3750 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
3751
3752 /* Signifies the nested list of peer info attributes
3753 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
3754 */
3755 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
3756
3757 /* Signifies the nested list of rate info attributes
3758 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3759 */
3760 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
3761
3762 /* Signifies the nested list of wmm info attributes
3763 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
3764 */
3765 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
3766
3767 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
3768 * that more stats, e.g., peers or radio, are to follow in the next
3769 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
3770 * Otherwise, it is set to 0.
3771 */
3772 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
3773
3774 /* Unsigned 64 bit value */
3775 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
3776
3777 /* Unsigned 32 bit value */
3778 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
3779
3780 /* Unsigned 32 bit value */
3781 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
3782
3783 /* Unsigned 32 bit value */
3784 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
3785
3786 /* Unsigned 32 bit value */
3787 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
3788
3789 /* Unsigned 32 bit value */
3790 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
3791
3792 /* Number of msecs the radio spent in transmitting for each power level
3793 */
3794 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
3795
3796 /* Unsigned 32 bit value */
3797 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
3798 /* Unsigned 32 bit value */
3799 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
3800 /* Unsigned 32 bit value */
3801 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
3802 /* Unsigned 32 bit value */
3803 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
3804
Roshan Pius3a1667e2018-07-03 15:17:14 -07003805 /* Unsigned int 32 value.
3806 * Pending MSDUs corresponding to respective AC.
3807 */
3808 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
3809
Hai Shalom899fcc72020-10-19 14:38:18 -07003810 /* u32 value representing total time in milliseconds for which the radio
3811 * is transmitting on this channel. This attribute will be nested
3812 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
3813 */
3814 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
3815 /* u32 value representing total time in milliseconds for which the radio
3816 * is receiving all 802.11 frames intended for this device on this
3817 * channel. This attribute will be nested within
3818 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
3819 */
3820 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003821 /* keep last */
3822 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
3823 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
3824 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
3825};
3826
Roshan Pius3a1667e2018-07-03 15:17:14 -07003827enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003828 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
3829 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
3830 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
3831 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
3832
3833 /* keep last */
3834 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
3835 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
3836 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
3837};
3838
3839/**
3840 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
3841 * TDLS configuration to the host driver.
3842 *
3843 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
3844 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
3845 * represents the different TDLS trigger modes.
3846 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
3847 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
3848 * of packets shall meet the criteria for implicit TDLS setup.
3849 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
3850 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
3851 * to initiate a TDLS setup.
3852 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
3853 * a TDLS Discovery to the peer.
3854 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
3855 * discovery attempts to know the TDLS capability of the peer. A peer is
3856 * marked as TDLS not capable if there is no response for all the attempts.
3857 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
3858 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
3859 * number of TX / RX frames meet the criteria for TDLS teardown.
3860 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
3861 * of Tx/Rx packets within a duration
3862 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
3863 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
3864 * corresponding to the RSSI of the peer below which a TDLS setup is
3865 * triggered.
3866 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
3867 * corresponding to the RSSI of the peer above which a TDLS teardown is
3868 * triggered.
3869 */
3870enum qca_wlan_vendor_attr_tdls_configuration {
3871 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
3872 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
3873
3874 /* Attributes configuring the TDLS Implicit Trigger */
3875 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
3876 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
3877 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
3878 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
3879 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
3880 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
3881 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
3882 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
3883
3884 /* keep last */
3885 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
3886 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
3887 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
3888};
3889
3890/**
3891 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
3892 * the driver
3893 *
3894 * The following are the different values for
3895 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
3896 *
3897 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
3898 * the TDLS connection to a respective peer comes from the user space.
3899 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
3900 * TDLS_DISCOVER to do this.
3901 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
3902 * setup/teardown to the eligible peer once the configured criteria
3903 * (such as TX/RX threshold, RSSI) is met. The attributes
3904 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
3905 * the different configuration criteria for the TDLS trigger from the
3906 * host driver.
3907 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
3908 * the TDLS setup / teardown through the implicit mode only to the
3909 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
3910 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
3911 * External mode works on top of the implicit mode. Thus the host driver
3912 * is expected to configure in TDLS Implicit mode too to operate in
3913 * External mode.
3914 * Configuring External mode alone without Implicit mode is invalid.
3915 *
3916 * All the above implementations work as expected only when the host driver
3917 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
3918 * that the TDLS message exchange is not internal to the host driver, but
3919 * depends on wpa_supplicant to do the message exchange.
3920 */
3921enum qca_wlan_vendor_tdls_trigger_mode {
3922 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
3923 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
3924 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
3925};
3926
Dmitry Shmidt29333592017-01-09 12:27:11 -08003927/**
3928 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
3929 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
3930 * that is hard-coded in the Board Data File (BDF).
3931 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
3932 * that is hard-coded in the Board Data File (BDF).
3933 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
3934 * that is hard-coded in the Board Data File (BDF).
3935 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
3936 * that is hard-coded in the Board Data File (BDF).
3937 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
3938 * that is hard-coded in the Board Data File (BDF).
3939 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
3940 * source of SAR power limits, thereby disabling the SAR power
3941 * limit feature.
3942 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
3943 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003944 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
3945 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003946 *
3947 * This enumerates the valid set of values that may be supplied for
3948 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07003949 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
3950 * the response to an instance of the
3951 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003952 */
3953enum qca_vendor_attr_sar_limits_selections {
3954 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
3955 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
3956 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
3957 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
3958 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
3959 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
3960 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07003961 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003962};
3963
3964/**
3965 * enum qca_vendor_attr_sar_limits_spec_modulations -
3966 * SAR limits specification modulation
3967 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
3968 * CCK modulation
3969 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
3970 * OFDM modulation
3971 *
3972 * This enumerates the valid set of values that may be supplied for
3973 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
3974 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
3975 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07003976 * command or in the response to an instance of the
3977 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003978 */
3979enum qca_vendor_attr_sar_limits_spec_modulations {
3980 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
3981 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
3982};
3983
3984/**
3985 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
3986 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003987 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08003988 * select which SAR power limit table should be used. Valid
3989 * values are enumerated in enum
3990 * %qca_vendor_attr_sar_limits_selections. The existing SAR
3991 * power limit selection is unchanged if this attribute is not
3992 * present.
3993 *
3994 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
3995 * which specifies the number of SAR power limit specifications
3996 * which will follow.
3997 *
3998 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
3999 * limit specifications. The number of specifications is
4000 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
4001 * specification contains a set of
4002 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
4003 * specification is uniquely identified by the attributes
4004 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
4005 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
4006 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
4007 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07004008 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
4009 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
4010 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
4011 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
4012 * needed based upon the value of
4013 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004014 *
4015 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
4016 * indicate for which band this specification applies. Valid
4017 * values are enumerated in enum %nl80211_band (although not all
4018 * bands may be supported by a given device). If the attribute is
4019 * not supplied then the specification will be applied to all
4020 * supported bands.
4021 *
4022 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
4023 * to indicate for which antenna chain this specification
4024 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
4025 * attribute is not supplied then the specification will be
4026 * applied to all chains.
4027 *
4028 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
4029 * value to indicate for which modulation scheme this
4030 * specification applies. Valid values are enumerated in enum
4031 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
4032 * is not supplied then the specification will be applied to all
4033 * modulation schemes.
4034 *
4035 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
4036 * value to specify the actual power limit value in units of 0.5
4037 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07004038 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4039 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004040 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07004041 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
4042 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
4043 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4044 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
4045 *
4046 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
4047 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004048 */
4049enum qca_vendor_attr_sar_limits {
4050 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
4051 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
4052 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
4053 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
4054 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
4055 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
4056 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
4057 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004058 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004059
4060 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
4061 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
4062 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
4063};
4064
4065/**
4066 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
4067 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07004068 *
4069 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
4070 * should be set to any U8 value to indicate that the driver version
4071 * should be returned. When enabled in this manner, in a response this
4072 * attribute will contain a string representation of the driver version.
4073 *
4074 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
4075 * should be set to any U8 value to indicate that the firmware version
4076 * should be returned. When enabled in this manner, in a response this
4077 * attribute will contain a string representation of the firmware version.
4078 *
4079 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
4080 * should be set to any U32 value to indicate that the current radio
4081 * index should be returned. When enabled in this manner, in a response
4082 * this attribute will contain a U32 radio index value.
4083 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08004084 */
4085enum qca_wlan_vendor_attr_get_wifi_info {
4086 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4087 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
4088 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07004089 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004090
4091 /* keep last */
4092 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4093 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
4094 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4095};
4096
4097/*
4098 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
4099 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
4100 */
4101enum qca_wlan_vendor_attr_wifi_logger_start {
4102 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4103 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4104 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4105 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4106
4107 /* keep last */
4108 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4109 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
4110 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4111};
4112
4113enum qca_wlan_vendor_attr_logger_results {
4114 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4115
4116 /* Unsigned 32-bit value; must match the request Id supplied by
4117 * Wi-Fi HAL in the corresponding subcmd NL msg.
4118 */
4119 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4120
4121 /* Unsigned 32-bit value; used to indicate the size of memory
4122 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004123 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08004124 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4125
4126 /* keep last */
4127 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
4128 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
4129 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
4130};
4131
Hai Shalomc3565922019-10-28 11:58:20 -07004132/**
4133 * enum qca_scan_freq_list_type: Frequency list types
4134 *
4135 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
4136 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4137 * a preferred frequency list for roaming.
4138 *
4139 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
4140 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4141 * a specific frequency list for roaming.
4142 */
4143enum qca_scan_freq_list_type {
4144 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
4145 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
4146};
4147
4148/**
4149 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
4150 *
4151 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
4152 * List of frequencies in MHz to be considered for a roam scan.
4153 *
4154 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
4155 * Type of frequency list scheme being configured/gotten as defined by the
4156 * enum qca_scan_freq_list_type.
4157 */
4158enum qca_vendor_attr_scan_freq_list_scheme {
4159 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
4160 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
4161
4162 /* keep last */
4163 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
4164 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
4165 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
4166};
4167
Hai Shalom899fcc72020-10-19 14:38:18 -07004168/**
4169 * enum qca_roam_scan_scheme: Scan scheme
4170 *
4171 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
4172 * Indicates the driver to not scan on a Roam Trigger scenario, but
4173 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
4174 * disconnect from the current connected AP by notifying a failure
4175 * code in the BTM response.
4176 *
4177 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
4178 * trigger partial frequency scans. These frequencies are the ones learned
4179 * or maintained by the driver based on the probability of finding the
4180 * BSSIDs in the ESS for which the roaming is triggered.
4181 *
4182 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
4183 * trigger the scan on all the valid frequencies to find better
4184 * candidates to roam.
4185 */
4186enum qca_roam_scan_scheme {
4187 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
4188 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
4189 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
4190};
4191
Hai Shalomc3565922019-10-28 11:58:20 -07004192/*
4193 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
4194 *
4195 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
4196 * a bad packet error rates (PER).
4197 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
4198 * based on beacon misses from the connected AP.
4199 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
4200 * due to poor RSSI of the connected AP.
4201 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
4202 * upon finding a BSSID with a better RSSI than the connected BSSID.
4203 * Here the RSSI of the current BSSID need not be poor.
4204 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
4205 * by triggering a periodic scan to find a better AP to roam.
4206 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
4207 * when the connected channel environment is too noisy/congested.
4208 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
4209 * when BTM Request frame is received from the connected AP.
4210 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
4211 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07004212 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
4213 * based on the request from the user (space).
4214 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
4215 * device receives Deauthentication/Disassociation frame from connected AP.
4216 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
4217 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
4218 * is determined to be a poor one.
4219 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
4220 * based on continuous TX Data frame failures to the connected AP.
4221 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
4222 * based on the scan results obtained from an external scan (not triggered
4223 * to aim roaming).
Hai Shalomc3565922019-10-28 11:58:20 -07004224 *
4225 * Set the corresponding roam trigger reason bit to consider it for roam
4226 * trigger.
4227 * Userspace can set multiple bits and send to the driver. The driver shall
4228 * consider all of them to trigger/initiate a roam scan.
4229 */
4230enum qca_vendor_roam_triggers {
4231 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
4232 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
4233 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
4234 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
4235 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
4236 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
4237 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
4238 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07004239 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
4240 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
4241 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
4242 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
4243 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Hai Shalomc3565922019-10-28 11:58:20 -07004244};
4245
Hai Shalom60840252021-02-19 19:02:11 -08004246/*
4247 * enum qca_vendor_roam_fail_reasons: Defines the various roam
4248 * fail reasons. This enum value is used in
4249 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
4250 *
4251 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
4252 * able to trigger the scan.
4253 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
4254 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
4255 * scan.
4256 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
4257 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
4258 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
4259 * status code.
4260 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
4261 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
4262 * frame.
4263 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
4264 * with error status code.
4265 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
4266 * received.
4267 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
4268 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
4269 * frame.
4270 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
4271 * internally before transmission.
4272 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
4273 * Request frame.
4274 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
4275 * dropped internally.
4276 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
4277 * times out.
4278 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
4279 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
4280 * internally.
4281 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
4282 * M2 frame.
4283 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
4284 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
4285 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
4286 * internally.
4287 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
4288 * frame.
4289 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
4290 * started for final beacon miss case.
4291 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
4292 * received from the AP during roaming handoff.
4293 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
4294 * or host is suspended and gives the indication of the last roamed AP only
4295 * when the Apps is resumed. If the Apps is resumed while the roaming is in
4296 * progress, this ongoing roaming is aborted and the last roamed AP is
4297 * indicated to host.
4298 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
4299 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
4300 * out.
4301 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
4302 */
4303enum qca_vendor_roam_fail_reasons {
4304 QCA_ROAM_FAIL_REASON_NONE = 0,
4305 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
4306 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
4307 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
4308 QCA_ROAM_FAIL_REASON_HOST = 4,
4309 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
4310 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
4311 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
4312 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
4313 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
4314 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
4315 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
4316 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
4317 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
4318 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
4319 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
4320 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
4321 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
4322 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
4323 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
4324 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
4325 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
4326 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
4327 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
4328 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
4329 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
4330 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
4331 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
4332 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
4333 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
4334};
4335
4336/*
4337 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
4338 * invoke fail reasons. This enum value is used in
4339 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
4340 *
4341 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
4342 * in roam invoke command.
4343 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
4344 * enabled.
4345 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
4346 * length is invalid.
4347 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
4348 * in progress.
4349 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
4350 * of the AP in the roam invoke command to firmware. This reason is sent by the
4351 * firmware when the given AP is configured to be ignored or SSID/security
4352 * does not match.
4353 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
4354 * firmware internal reasons.
4355 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
4356 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
4357 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
4358 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
4359 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
4360 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
4361 */
4362enum qca_vendor_roam_invoke_fail_reasons {
4363 QCA_ROAM_INVOKE_STATUS_NONE = 0,
4364 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
4365 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
4366 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
4367 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
4368 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
4369 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
4370 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
4371 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
4372 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
4373 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
4374 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
4375 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
4376
4377};
4378
Hai Shalomc3565922019-10-28 11:58:20 -07004379/**
4380 * enum qca_vendor_attr_roam_candidate_selection_criteria:
4381 *
4382 * Each attribute carries a weightage in percentage (%).
4383 *
4384 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
4385 * Represents the weightage to be given for the RSSI selection
4386 * criteria among other parameters.
4387 *
4388 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
4389 * Represents the weightage to be given for the rate selection
4390 * criteria among other parameters.
4391 *
4392 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
4393 * Represents the weightage to be given for the band width selection
4394 * criteria among other parameters.
4395 *
4396 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
4397 * Represents the weightage to be given for the band selection
4398 * criteria among other parameters.
4399 *
4400 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
4401 * Represents the weightage to be given for the NSS selection
4402 * criteria among other parameters.
4403 *
4404 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
4405 * Represents the weightage to be given for the channel congestion
4406 * selection criteria among other parameters.
4407 *
4408 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
4409 * Represents the weightage to be given for the beamforming selection
4410 * criteria among other parameters.
4411 *
4412 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
4413 * Represents the weightage to be given for the OCE selection
4414 * criteria among other parameters.
4415 */
4416enum qca_vendor_attr_roam_candidate_selection_criteria {
4417 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
4418 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
4419 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
4420 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
4421 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
4422 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
4423 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
4424 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
4425
4426 /* keep last */
4427 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
4428 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
4429 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
4430};
4431
4432/**
4433 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
4434 * The following attributes are used to set/get/clear the respective
4435 * configurations to/from the driver.
4436 * For the get, the attribute for the configuration to be queried shall
4437 * carry any of its acceptable values to the driver. In return, the driver
4438 * shall send the configured values within the same attribute to the user
4439 * space.
4440 *
4441 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
4442 * Signifies to enable/disable roam control in driver.
4443 * 1-enable, 0-disable
4444 * Enable: Mandates the driver to do the further roams using the
4445 * configuration parameters set through
4446 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
4447 * Disable: Disables the driver/firmware roaming triggered through
4448 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
4449 * expected to continue with the default configurations.
4450 *
4451 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
4452 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
4453 * Roam control status is obtained through this attribute.
4454 *
4455 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
4456 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
4457 * is to be cleared in the driver.
4458 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
4459 * and shall be ignored if used with other sub commands.
4460 * If this attribute is specified along with subcmd
4461 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
4462 * all other attributes, if there are any.
4463 * If this attribute is not specified when the subcmd
4464 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
4465 * clear the data corresponding to the attributes specified.
4466 *
4467 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
4468 * list of frequencies and its type, represented by
4469 * enum qca_vendor_attr_scan_freq_list_scheme.
4470 * Frequency list and its type are mandatory for this attribute to set
4471 * the frequencies.
4472 * Frequency type is mandatory for this attribute to get the frequencies
4473 * and the frequency list is obtained through
4474 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
4475 * Frequency list type is mandatory for this attribute to clear the
4476 * frequencies.
4477 *
4478 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
4479 * Carries the value of scan period in seconds to set.
4480 * The value of scan period is obtained with the same attribute for get.
4481 * Clears the scan period in the driver when specified with clear command.
4482 * Scan period is the idle time in seconds between each subsequent
4483 * channel scans.
4484 *
4485 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
4486 * Carries the value of full scan period in seconds to set.
4487 * The value of full scan period is obtained with the same attribute for
4488 * get.
4489 * Clears the full scan period in the driver when specified with clear
4490 * command. Full scan period is the idle period in seconds between two
4491 * successive full channel roam scans.
4492 *
4493 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
4494 * Carries a bitmap of the roam triggers specified in
4495 * enum qca_vendor_roam_triggers.
4496 * The driver shall enable roaming by enabling corresponding roam triggers
4497 * based on the trigger bits sent with this attribute.
4498 * If this attribute is not configured, the driver shall proceed with
4499 * default behavior.
4500 * The bitmap configured is obtained with the same attribute for get.
4501 * Clears the bitmap configured in driver when specified with clear
4502 * command.
4503 *
4504 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
4505 * weightage in percentage (%) to be given for each selection criteria.
4506 * Different roam candidate selection criteria are represented by
4507 * enum qca_vendor_attr_roam_candidate_selection_criteria.
4508 * The driver shall select the roam candidate based on corresponding
4509 * candidate selection scores sent.
4510 *
4511 * An empty nested attribute is used to indicate that no specific
4512 * preference score/criteria is configured (i.e., to disable this mechanism
4513 * in the set case and to show that the mechanism is disabled in the get
4514 * case).
4515 *
4516 * Userspace can send multiple attributes out of this enum to the driver.
4517 * Since this attribute represents the weight/percentage of preference for
4518 * the respective selection criteria, it is preferred to configure 100%
4519 * total weightage. The value in each attribute or cumulative weight of the
4520 * values in all the nested attributes should not exceed 100%. The driver
4521 * shall reject such configuration.
4522 *
4523 * If the weights configured through this attribute are less than 100%,
4524 * the driver shall honor the weights (x%) passed for the corresponding
4525 * selection criteria and choose/distribute rest of the weight (100-x)%
4526 * for the other selection criteria, based on its internal logic.
4527 *
4528 * The selection criteria configured is obtained with the same
4529 * attribute for get.
4530 *
4531 * Clears the selection criteria configured in the driver when specified
4532 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07004533 *
4534 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
4535 * Represents value of the scan frequency scheme from enum
4536 * qca_roam_scan_scheme.
4537 * It's an optional attribute. If this attribute is not configured, the
4538 * driver shall proceed with default behavior.
4539 *
4540 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
4541 * signifying the RSSI threshold of the current connected AP, indicating
4542 * the driver to trigger roam only when the current connected AP's RSSI
4543 * is less than this threshold.
4544 *
4545 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
4546 * signifying the RSSI threshold of the candidate AP, indicating
4547 * the driver to trigger roam only to the candidate AP with RSSI
4548 * better than this threshold.
4549 *
4550 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
4551 * user defined reason code to be sent to the AP in response to AP's
4552 * request to trigger the roam if the roaming cannot be triggered.
4553 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
4554 *
4555 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
4556 * Carries a bitmap of the roam triggers specified in
4557 * enum qca_vendor_roam_triggers.
4558 * Represents the roam triggers for which the specific scan scheme from
4559 * enum qca_roam_scan_scheme has to be applied.
4560 * It's an optional attribute. If this attribute is not configured, but
4561 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
4562 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
4563 * all the roams.
4564 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
4565 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
4566 * driver shall proceed with the default behavior.
Hai Shalomc3565922019-10-28 11:58:20 -07004567 */
4568enum qca_vendor_attr_roam_control {
4569 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
4570 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
4571 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
4572 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
4573 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
4574 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
4575 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
4576 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07004577 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
4578 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
4579 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
4580 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
4581 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shalomc3565922019-10-28 11:58:20 -07004582
4583 /* keep last */
4584 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
4585 QCA_ATTR_ROAM_CONTROL_MAX =
4586 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
4587};
4588
4589/*
4590 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
4591 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
4592 *
4593 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
4594 * Represents the different roam sub commands referred by
4595 * enum qca_wlan_vendor_roaming_subcmd.
4596 *
4597 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
4598 * Represents the Request ID for the specific set of commands.
4599 * This also helps to map specific set of commands to the respective
4600 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07004601 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07004602 * matching ID.
4603 *
4604 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
4605 * 32-bit value.Represents the number of whitelist SSIDs configured.
4606 *
4607 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
4608 * to carry the list of Whitelist SSIDs.
4609 *
4610 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
4611 * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
4612 * represent the list of SSIDs to which the firmware/driver can consider
4613 * to roam to.
4614 *
4615 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
4616 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
4617 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
4618 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
4619 *
4620 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
4621 * value, RSSI threshold above which 5GHz RSSI is favored.
4622 *
4623 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
4624 * value, RSSI threshold below which 5GHz RSSI is penalized.
4625 *
4626 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
4627 * value, factor by which 5GHz RSSI is boosted.
4628 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
4629 *
4630 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
4631 * value, factor by which 5GHz RSSI is penalized.
4632 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
4633 *
4634 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
4635 * value, maximum boost that can be applied to a 5GHz RSSI.
4636 *
4637 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
4638 * value, boost applied to current BSSID to ensure the currently
4639 * associated BSSID is favored so as to prevent ping-pong situations.
4640 *
4641 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
4642 * value, RSSI below which "Alert" roam is enabled.
4643 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
4644 * because the RSSI is low, or because many successive beacons have been
4645 * lost or other bad link conditions.
4646 *
4647 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
4648 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
4649 * firmware is hunting for a better BSSID or white listed SSID even though
4650 * the RSSI of the link is good. The parameters enabling the roaming are
4651 * configured through the PARAM_A_BAND_XX attrbutes.
4652 *
4653 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
4654 * represents the BSSIDs preferred over others while evaluating them
4655 * for the roaming.
4656 *
4657 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
4658 * 32-bit value. Represents the number of preferred BSSIDs set.
4659 *
4660 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
4661 * address representing the BSSID to be preferred.
4662 *
4663 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
4664 * 32-bit value, representing the modifier to be applied to the RSSI of
4665 * the BSSID for the purpose of comparing it with other roam candidate.
4666 *
4667 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07004668 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07004669 *
4670 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07004671 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07004672 *
4673 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07004674 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07004675 *
4676 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07004677 * indicates this request to ignore the BSSID as a hint to the driver. The
4678 * driver can select this BSSID in the worst case (when no other BSSIDs are
4679 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07004680 *
4681 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
4682 * set/get/clear the roam control config as
4683 * defined @enum qca_vendor_attr_roam_control.
4684 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08004685enum qca_wlan_vendor_attr_roaming_config_params {
4686 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
4687
4688 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
4689 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
4690
4691 /* Attributes for wifi_set_ssid_white_list */
4692 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
4693 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
4694 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
4695
4696 /* Attributes for set_roam_params */
4697 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
4698 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
4699 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
4700 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
4701 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
4702 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
4703 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
4704
4705 /* Attribute for set_lazy_roam */
4706 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
4707
4708 /* Attribute for set_lazy_roam with preferences */
4709 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
4710 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
4711 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
4712 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
4713
Hai Shalom899fcc72020-10-19 14:38:18 -07004714 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08004715 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
4716 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
4717 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07004718 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07004719 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004720
Hai Shalomc3565922019-10-28 11:58:20 -07004721 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
4722
Dmitry Shmidt29333592017-01-09 12:27:11 -08004723 /* keep last */
4724 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
4725 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
4726 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
4727};
4728
4729/*
Hai Shalomc3565922019-10-28 11:58:20 -07004730 * enum qca_wlan_vendor_roaming_subcmd: Referred by
4731 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
4732 *
4733 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
4734 * configure the white list SSIDs. These are configured through
4735 * the following attributes.
4736 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
4737 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
4738 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
4739 *
4740 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
4741 * configure the Roam params. These parameters are evaluated on the GScan
4742 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
4743 * params.
4744 *
4745 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
4746 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
4747 * to enable/disable Lazy roam.
4748 *
4749 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
4750 * preference. Contains the attribute
4751 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
4752 * preference.
4753 *
Hai Shalom899fcc72020-10-19 14:38:18 -07004754 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the list of BSSIDs
4755 * to ignore in roaming decision. Uses
4756 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07004757 *
4758 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
4759 * roam control config to the driver with the attribute
4760 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4761 *
4762 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
4763 * roam control config from driver with the attribute
4764 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4765 * For the get, the attribute for the configuration to be queried shall
4766 * carry any of its acceptable value to the driver. In return, the driver
4767 * shall send the configured values within the same attribute to the user
4768 * space.
4769 *
4770 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
4771 * roam control config in the driver with the attribute
4772 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4773 * The driver shall continue with its default roaming behavior when data
4774 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004775 */
Hai Shalomc3565922019-10-28 11:58:20 -07004776enum qca_wlan_vendor_roaming_subcmd {
4777 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
4778 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
4779 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
4780 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
4781 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
4782 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
4783 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
4784 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
4785 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
4786 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004787};
4788
4789enum qca_wlan_vendor_attr_gscan_config_params {
4790 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
4791
4792 /* Unsigned 32-bit value */
4793 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
4794
4795 /* Attributes for data used by
4796 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
4797 */
4798 /* Unsigned 32-bit value */
4799 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
4800 = 2,
4801 /* Unsigned 32-bit value */
4802 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
4803 = 3,
4804
4805 /* Attributes for input params used by
4806 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
4807 */
4808
4809 /* Unsigned 32-bit value; channel frequency */
4810 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
4811 /* Unsigned 32-bit value; dwell time in ms. */
4812 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
4813 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
4814 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
4815 /* Unsigned 8-bit value; channel class */
4816 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
4817
4818 /* Unsigned 8-bit value; bucket index, 0 based */
4819 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
4820 /* Unsigned 8-bit value; band. */
4821 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
4822 /* Unsigned 32-bit value; desired period, in ms. */
4823 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
4824 /* Unsigned 8-bit value; report events semantics. */
4825 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
4826 /* Unsigned 32-bit value. Followed by a nested array of
4827 * GSCAN_CHANNEL_SPEC_* attributes.
4828 */
4829 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
4830
4831 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
4832 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
4833 */
4834 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
4835
4836 /* Unsigned 32-bit value; base timer period in ms. */
4837 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
4838 /* Unsigned 32-bit value; number of APs to store in each scan in the
4839 * BSSID/RSSI history buffer (keep the highest RSSI APs).
4840 */
4841 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
4842 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
4843 * up AP.
4844 */
4845 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
4846 = 16,
4847
4848 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
4849 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
4850 * of the array is determined by NUM_BUCKETS.
4851 */
4852 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
4853
4854 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
4855 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
4856 */
4857 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
4858
4859 /* Unsigned 8-bit value */
4860 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
4861 = 19,
4862 /* Unsigned 32-bit value; maximum number of results to be returned. */
4863 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
4864 = 20,
4865
4866 /* An array of 6 x unsigned 8-bit value */
4867 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
4868 /* Signed 32-bit value */
4869 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
4870 /* Signed 32-bit value */
4871 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
4872 /* Unsigned 32-bit value */
4873 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
4874
4875 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
4876 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
4877 * array is determined by NUM_AP.
4878 */
4879 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
4880
4881 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
4882 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
4883 */
4884 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
4885
4886 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
4887 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
4888 = 27,
4889 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
4890 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
4891 = 28,
4892 /* Unsigned 32-bit value; number of APs breaching threshold. */
4893 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
4894 /* Unsigned 32-bit value; number of APs. Followed by an array of
4895 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
4896 */
4897 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
4898 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
4899 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
4900 = 31,
4901 /* Unsigned 32-bit value. If max_period is non zero or different than
4902 * period, then this bucket is an exponential backoff bucket.
4903 */
4904 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
4905 /* Unsigned 32-bit value. */
4906 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
4907 /* Unsigned 32-bit value. For exponential back off bucket, number of
4908 * scans to perform for a given period.
4909 */
4910 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
4911 /* Unsigned 8-bit value; in number of scans, wake up AP after these
4912 * many scans.
4913 */
4914 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
4915 = 35,
4916
4917 /* Attributes for data used by
4918 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
4919 */
4920 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
4921 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
4922 = 36,
4923 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
4924 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
4925 * size of the array is determined by NUM_SSID.
4926 */
4927 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
4928 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
4929 * attributes.
4930 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
4931 */
4932 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
4933
4934 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
4935 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
4936 /* Unsigned 8-bit value */
4937 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
4938 /* Signed 32-bit value */
4939 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
4940 /* Signed 32-bit value */
4941 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
4942 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
4943 */
4944 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
4945
4946 /* keep last */
4947 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
4948 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
4949 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
4950};
4951
4952enum qca_wlan_vendor_attr_gscan_results {
4953 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
4954
4955 /* Unsigned 32-bit value; must match the request Id supplied by
4956 * Wi-Fi HAL in the corresponding subcmd NL msg.
4957 */
4958 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
4959
4960 /* Unsigned 32-bit value; used to indicate the status response from
4961 * firmware/driver for the vendor sub-command.
4962 */
4963 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
4964
4965 /* GSCAN Valid Channels attributes */
4966 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
4967 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
4968 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
4969 * representing channel numbers.
4970 */
4971 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
4972
4973 /* GSCAN Capabilities attributes */
4974 /* Unsigned 32-bit value */
4975 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
4976 /* Unsigned 32-bit value */
4977 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
4978 /* Unsigned 32-bit value */
4979 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
4980 = 7,
4981 /* Unsigned 32-bit value */
4982 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
4983 = 8,
4984 /* Signed 32-bit value */
4985 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
4986 = 9,
4987 /* Unsigned 32-bit value */
4988 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
4989 /* Unsigned 32-bit value */
4990 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
4991 = 11,
4992 /* Unsigned 32-bit value */
4993 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
4994 = 12,
4995
4996 /* GSCAN Attributes used with
4997 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
4998 */
4999
5000 /* Unsigned 32-bit value */
5001 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
5002
5003 /* GSCAN attributes used with
5004 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
5005 */
5006
5007 /* An array of NUM_RESULTS_AVAILABLE x
5008 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
5009 */
5010 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
5011
5012 /* Unsigned 64-bit value; age of sample at the time of retrieval */
5013 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
5014 /* 33 x unsigned 8-bit value; NULL terminated SSID */
5015 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
5016 /* An array of 6 x unsigned 8-bit value */
5017 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
5018 /* Unsigned 32-bit value; channel frequency in MHz */
5019 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
5020 /* Signed 32-bit value */
5021 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
5022 /* Unsigned 32-bit value */
5023 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
5024 /* Unsigned 32-bit value */
5025 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
5026 /* Unsigned 16-bit value */
5027 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
5028 /* Unsigned 16-bit value */
5029 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
5030 /* Unsigned 32-bit value; size of the IE DATA blob */
5031 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
5032 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
5033 * information elements found in the beacon; this data should be a
5034 * packed list of wifi_information_element objects, one after the
5035 * other.
5036 */
5037 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
5038
5039 /* Unsigned 8-bit value; set by driver to indicate more scan results are
5040 * available.
5041 */
5042 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
5043
5044 /* GSCAN attributes for
5045 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
5046 */
5047 /* Unsigned 8-bit value */
5048 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
5049 /* Unsigned 32-bit value */
5050 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
5051
5052 /* GSCAN attributes for
5053 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
5054 */
5055 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5056 * to indicate number of results.
5057 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5058 * list of results.
5059 */
5060
5061 /* GSCAN attributes for
5062 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
5063 */
5064 /* An array of 6 x unsigned 8-bit value */
5065 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
5066 /* Unsigned 32-bit value */
5067 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
5068 = 30,
5069 /* Unsigned 32-bit value. */
5070 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
5071 = 31,
5072 /* A nested array of signed 32-bit RSSI values. Size of the array is
5073 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
5074 */
5075 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
5076 = 32,
5077
5078 /* GSCAN attributes used with
5079 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
5080 */
5081 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5082 * to indicate number of gscan cached results returned.
5083 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
5084 * the list of gscan cached results.
5085 */
5086
5087 /* An array of NUM_RESULTS_AVAILABLE x
5088 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
5089 */
5090 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
5091 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
5092 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
5093 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
5094 */
5095 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
5096 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5097 * to indicate number of wifi scan results/bssids retrieved by the scan.
5098 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5099 * list of wifi scan results returned for each cached result block.
5100 */
5101
5102 /* GSCAN attributes for
5103 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
5104 */
5105 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
5106 * number of results.
5107 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5108 * list of wifi scan results returned for each
5109 * wifi_passpoint_match_result block.
5110 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
5111 */
5112
5113 /* GSCAN attributes for
5114 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
5115 */
5116 /* Unsigned 32-bit value */
5117 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
5118 = 36,
5119 /* A nested array of
5120 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
5121 * attributes. Array size =
5122 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
5123 */
5124 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
5125
5126 /* Unsigned 32-bit value; network block id for the matched network */
5127 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
5128 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5129 * list of wifi scan results returned for each
5130 * wifi_passpoint_match_result block.
5131 */
5132 /* Unsigned 32-bit value */
5133 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
5134 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
5135 * ANQP data in the information_element format.
5136 */
5137 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
5138
5139 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5140 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
5141 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5142 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
5143 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5144 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
5145 = 43,
5146 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5147 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
5148 = 44,
5149
5150 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
5151
Hai Shalomce48b4a2018-09-05 11:41:35 -07005152 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
5153 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07005154 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
5155 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07005156 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
5157 */
5158 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
5159
Dmitry Shmidt29333592017-01-09 12:27:11 -08005160 /* keep last */
5161 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
5162 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
5163 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
5164};
5165
5166enum qca_wlan_vendor_attr_pno_config_params {
5167 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
5168 /* Attributes for data used by
5169 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
5170 */
5171 /* Unsigned 32-bit value */
5172 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
5173 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
5174 * attributes. Array size =
5175 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
5176 */
5177 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
5178
5179 /* Unsigned 32-bit value */
5180 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
5181 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
5182 * realm, 0 if unspecified.
5183 */
5184 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
5185 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
5186 * match, 0 if unspecified.
5187 */
5188 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
5189 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
5190 * unspecified.
5191 */
5192 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
5193
5194 /* Attributes for data used by
5195 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
5196 */
5197 /* Unsigned 32-bit value */
5198 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
5199 /* Array of nested
5200 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
5201 * attributes. Array size =
5202 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
5203 */
5204 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
5205 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5206 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
5207 /* Signed 8-bit value; threshold for considering this SSID as found,
5208 * required granularity for this threshold is 4 dBm to 8 dBm.
5209 */
5210 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
5211 = 10,
5212 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
5213 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
5214 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
5215 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
5216 /* Unsigned 8-bit to indicate ePNO type;
5217 * It takes values from qca_wlan_epno_type
5218 */
5219 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
5220
5221 /* Nested attribute to send the channel list */
5222 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
5223
5224 /* Unsigned 32-bit value; indicates the interval between PNO scan
5225 * cycles in msec.
5226 */
5227 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
5228 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
5229 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
5230 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
5231 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
5232 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
5233 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
5234 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005235 /* Unsigned 32-bit value, representing the PNO Request ID */
5236 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005237
5238 /* keep last */
5239 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
5240 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
5241 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
5242};
5243
Paul Stewart092955c2017-02-06 09:13:09 -08005244/**
5245 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
5246 * the ACS has to be triggered. These values are used by
5247 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
5248 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
5249 */
5250enum qca_wlan_vendor_acs_select_reason {
5251 /* Represents the reason that the ACS triggered during the AP start */
5252 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
5253 /* Represents the reason that DFS found with the current channel */
5254 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
5255 /* Represents the reason that LTE co-exist in the current band. */
5256 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07005257 /* Represents the reason that generic, uncategorized interference has
5258 * been found in the current channel.
5259 */
5260 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
5261 /* Represents the reason that excessive 802.11 interference has been
5262 * found in the current channel.
5263 */
5264 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
5265 /* Represents the reason that generic Continuous Wave (CW) interference
5266 * has been found in the current channel.
5267 */
5268 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
5269 /* Represents the reason that Microwave Oven (MWO) interference has been
5270 * found in the current channel.
5271 */
5272 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
5273 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
5274 * (FHSS) interference has been found in the current channel. This may
5275 * include 802.11 waveforms.
5276 */
5277 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
5278 /* Represents the reason that non-802.11 generic Frequency-Hopping
5279 * Spread Spectrum (FHSS) interference has been found in the current
5280 * channel.
5281 */
5282 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
5283 /* Represents the reason that generic Wideband (WB) interference has
5284 * been found in the current channel. This may include 802.11 waveforms.
5285 */
5286 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
5287 /* Represents the reason that non-802.11 generic Wideband (WB)
5288 * interference has been found in the current channel.
5289 */
5290 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
5291 /* Represents the reason that Jammer interference has been found in the
5292 * current channel.
5293 */
5294 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Paul Stewart092955c2017-02-06 09:13:09 -08005295};
5296
5297/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005298 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
5299 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
5300 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
5301 * external ACS policies to select the channels w.r.t. the PCL weights.
5302 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
5303 * their PCL weights.)
5304 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
5305 * select a channel with non-zero PCL weight.
5306 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
5307 * channel with non-zero PCL weight.
5308 *
5309 */
5310enum qca_wlan_vendor_attr_external_acs_policy {
5311 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
5312 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
5313};
5314
5315/**
Paul Stewart092955c2017-02-06 09:13:09 -08005316 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
5317 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
5318 */
5319enum qca_wlan_vendor_channel_prop_flags {
5320 /* Bits 0, 1, 2, and 3 are reserved */
5321
5322 /* Turbo channel */
5323 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
5324 /* CCK channel */
5325 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
5326 /* OFDM channel */
5327 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
5328 /* 2.4 GHz spectrum channel. */
5329 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
5330 /* 5 GHz spectrum channel */
5331 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
5332 /* Only passive scan allowed */
5333 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
5334 /* Dynamic CCK-OFDM channel */
5335 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
5336 /* GFSK channel (FHSS PHY) */
5337 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
5338 /* Radar found on channel */
5339 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
5340 /* 11a static turbo channel only */
5341 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
5342 /* Half rate channel */
5343 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
5344 /* Quarter rate channel */
5345 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
5346 /* HT 20 channel */
5347 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
5348 /* HT 40 with extension channel above */
5349 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
5350 /* HT 40 with extension channel below */
5351 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
5352 /* HT 40 intolerant */
5353 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
5354 /* VHT 20 channel */
5355 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
5356 /* VHT 40 with extension channel above */
5357 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
5358 /* VHT 40 with extension channel below */
5359 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
5360 /* VHT 80 channel */
5361 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
5362 /* HT 40 intolerant mark bit for ACS use */
5363 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
5364 /* Channel temporarily blocked due to noise */
5365 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
5366 /* VHT 160 channel */
5367 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
5368 /* VHT 80+80 channel */
5369 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005370 /* HE 20 channel */
5371 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
5372 /* HE 40 with extension channel above */
5373 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
5374 /* HE 40 with extension channel below */
5375 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
5376 /* HE 40 intolerant */
5377 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
5378};
5379
5380/**
5381 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
5382 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
5383 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
5384 */
5385enum qca_wlan_vendor_channel_prop_flags_2 {
5386 /* HE 40 intolerant mark bit for ACS use */
5387 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
5388 /* HE 80 channel */
5389 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
5390 /* HE 160 channel */
5391 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
5392 /* HE 80+80 channel */
5393 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08005394};
5395
5396/**
5397 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
5398 * each channel. This is used by
5399 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
5400 */
5401enum qca_wlan_vendor_channel_prop_flags_ext {
5402 /* Radar found on channel */
5403 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
5404 /* DFS required on channel */
5405 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
5406 /* DFS required on channel for 2nd band of 80+80 */
5407 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
5408 /* If channel has been checked for DFS */
5409 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
5410 /* Excluded in 802.11d */
5411 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
5412 /* Channel Switch Announcement received on this channel */
5413 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
5414 /* Ad-hoc is not allowed */
5415 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
5416 /* Station only channel */
5417 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07005418 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08005419 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07005420 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08005421 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
5422};
5423
5424/**
5425 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5426 * information. These attributes are sent as part of
5427 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5428 * attributes correspond to a single channel.
5429 */
5430enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5431 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5432
5433 /* A bitmask (u32) with flags specified in
5434 * enum qca_wlan_vendor_channel_prop_flags.
5435 */
5436 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5437 /* A bitmask (u32) with flags specified in
5438 * enum qca_wlan_vendor_channel_prop_flags_ext.
5439 */
5440 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5441 /* frequency in MHz (u32) */
5442 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5443 /* maximum regulatory transmission power (u32) */
5444 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5445 /* maximum transmission power (u32) */
5446 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5447 /* minimum transmission power (u32) */
5448 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5449 /* regulatory class id (u8) */
5450 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5451 /* maximum antenna gain in (u8) */
5452 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5453 /* VHT segment 0 (u8) */
5454 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5455 /* VHT segment 1 (u8) */
5456 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005457 /* A bitmask (u32) with flags specified in
5458 * enum qca_wlan_vendor_channel_prop_flags_2.
5459 */
5460 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08005461
Hai Shalomc3565922019-10-28 11:58:20 -07005462 /*
5463 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5464 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5465 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5466 * along with
5467 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5468 *
5469 * If both the driver and user-space application supports the 6 GHz
5470 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5471 * is deprecated and
5472 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5473 * should be used.
5474 *
5475 * To maintain backward compatibility,
5476 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5477 * is still used if either of the driver or user space application
5478 * doesn't support the 6 GHz band.
5479 */
5480 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
5481
5482 /*
5483 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5484 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5485 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5486 * along with
5487 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5488 *
5489 * If both the driver and user-space application supports the 6 GHz
5490 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5491 * is deprecated and
5492 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5493 * should be considered.
5494 *
5495 * To maintain backward compatibility,
5496 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5497 * is still used if either of the driver or user space application
5498 * doesn't support the 6 GHz band.
5499 */
5500 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
5501
Paul Stewart092955c2017-02-06 09:13:09 -08005502 /* keep last */
5503 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5504 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5505 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5506};
5507
5508/**
5509 * qca_wlan_vendor_attr_pcl: Represents attributes for
5510 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07005511 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5512 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08005513 */
5514enum qca_wlan_vendor_attr_pcl {
5515 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5516
5517 /* Channel number (u8) */
5518 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
5519 /* Channel weightage (u8) */
5520 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005521 /* Channel frequency (u32) in MHz */
5522 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
5523 /* Channel flags (u32)
5524 * bit 0 set: channel to be used for GO role,
5525 * bit 1 set: channel to be used on CLI role,
5526 * bit 2 set: channel must be considered for operating channel
5527 * selection & peer chosen operating channel should be
5528 * one of the channels with this flag set,
5529 * bit 3 set: channel should be excluded in GO negotiation
5530 */
5531 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Paul Stewart092955c2017-02-06 09:13:09 -08005532};
5533
5534/**
5535 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
5536 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
5537 * host driver.
5538 */
5539enum qca_wlan_vendor_attr_external_acs_event {
5540 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
5541
5542 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
5543 * This helps ACS module to understand why ACS needs to be started.
5544 */
5545 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
5546 /* Flag attribute to indicate if driver supports spectral scanning */
5547 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
5548 /* Flag attribute to indicate if 11ac is offloaded to firmware */
5549 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
5550 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07005551 * capability as part of scan operation
5552 */
Paul Stewart092955c2017-02-06 09:13:09 -08005553 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
5554 /* Flag attribute to indicate interface status is UP */
5555 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
5556 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07005557 * values.
5558 */
Paul Stewart092955c2017-02-06 09:13:09 -08005559 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
5560 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
5561 * This is the upper bound of channel width. ACS logic should try to get
5562 * a channel with the specified width and if not found, look for lower
5563 * values.
5564 */
5565 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
5566 /* This (u8) will hold values of one of enum nl80211_bands */
5567 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
5568 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07005569 * values
5570 */
Paul Stewart092955c2017-02-06 09:13:09 -08005571 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
5572 /* Array of (u32) supported frequency list among which ACS should choose
5573 * best frequency.
5574 */
5575 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
5576 /* Preferred channel list by the driver which will have array of nested
5577 * values as per enum qca_wlan_vendor_attr_pcl attribute.
5578 */
5579 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
5580 /* Array of nested attribute for each channel. It takes attr as defined
5581 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
5582 */
5583 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005584 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
5585 * It uses values defined in enum
5586 * qca_wlan_vendor_attr_external_acs_policy.
5587 */
5588 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005589 /* Reference RF Operating Parameter (RROP) availability information
5590 * (u16). It uses values defined in enum
5591 * qca_wlan_vendor_attr_rropavail_info.
5592 */
5593 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Paul Stewart092955c2017-02-06 09:13:09 -08005594
5595 /* keep last */
5596 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
5597 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
5598 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
5599};
5600
5601/**
Hai Shalomc3565922019-10-28 11:58:20 -07005602 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08005603 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
5604 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07005605 *
5606 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
5607 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
5608 *
5609 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
5610 * Array of nested values for each channel with following attributes:
5611 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
5612 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
5613 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
5614 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
5615 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
5616 * Note: If both the driver and user-space application supports the 6 GHz band,
5617 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
5618 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
5619 * To maintain backward compatibility,
5620 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
5621 * is still used if either of the driver or user space application doesn't
5622 * support the 6 GHz band.
5623 *
5624 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
5625 * Primary channel number
5626 * Note: If both the driver and user-space application supports the 6 GHz band,
5627 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
5628 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
5629 * To maintain backward compatibility,
5630 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
5631 * is still used if either of the driver or user space application doesn't
5632 * support the 6 GHz band.
5633 *
5634 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
5635 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
5636 * Note: If both the driver and user-space application supports the 6 GHz band,
5637 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
5638 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
5639 * To maintain backward compatibility,
5640 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
5641 * is still used if either of the driver or user space application
5642 * doesn't support the 6 GHz band.
5643 *
5644 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
5645 * VHT seg0 channel number
5646 * Note: If both the driver and user-space application supports the 6 GHz band,
5647 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
5648 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
5649 * To maintain backward compatibility,
5650 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
5651 * is still used if either of the driver or user space application
5652 * doesn't support the 6 GHz band.
5653 *
5654 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
5655 * VHT seg1 channel number
5656 * Note: If both the driver and user-space application supports the 6 GHz band,
5657 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
5658 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
5659 * To maintain backward compatibility,
5660 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
5661 * is still used if either of the driver or user space application
5662 * doesn't support the 6 GHz band.
5663 *
5664 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
5665 * Takes one of enum nl80211_chan_width values.
5666 *
5667 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
5668 * Array of nested values for each channel with following attributes:
5669 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
5670 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
5671 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
5672 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
5673 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
5674 * Note: If user-space application has no support of the 6 GHz band, this
5675 * attribute is optional.
5676 *
5677 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
5678 * Primary channel frequency in MHz
5679 * Note: If user-space application has no support of the 6 GHz band, this
5680 * attribute is optional.
5681 *
5682 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
5683 * Secondary channel frequency in MHz used for HT 40 MHz channels.
5684 * Note: If user-space application has no support of the 6 GHz band, this
5685 * attribute is optional.
5686 *
5687 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
5688 * VHT seg0 channel frequency in MHz
5689 * Note: If user-space application has no support of the 6GHz band, this
5690 * attribute is optional.
5691 *
5692 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
5693 * VHT seg1 channel frequency in MHz
5694 * Note: If user-space application has no support of the 6 GHz band, this
5695 * attribute is optional.
Paul Stewart092955c2017-02-06 09:13:09 -08005696 */
5697enum qca_wlan_vendor_attr_external_acs_channels {
5698 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
5699
5700 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
5701 */
5702 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
5703
5704 /* Array of nested values for each channel with following attributes:
5705 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
5706 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
5707 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
5708 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
5709 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
5710 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
5711 */
5712 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
5713 /* This (u8) will hold values of one of enum nl80211_bands */
5714 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
5715 /* Primary channel (u8) */
5716 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
5717 /* Secondary channel (u8) used for HT 40 MHz channels */
5718 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
5719 /* VHT seg0 channel (u8) */
5720 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
5721 /* VHT seg1 channel (u8) */
5722 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
5723 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
5724 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
5725
Hai Shalomc3565922019-10-28 11:58:20 -07005726 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
5727 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
5728 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
5729 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
5730 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
5731
Paul Stewart092955c2017-02-06 09:13:09 -08005732 /* keep last */
5733 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
5734 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
5735 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
5736};
5737
5738enum qca_chip_power_save_failure_reason {
5739 /* Indicates if the reason for the failure is due to a protocol
5740 * layer/module.
5741 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07005742 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08005743 /* Indicates if the reason for the failure is due to a hardware issue.
5744 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07005745 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08005746};
5747
5748/**
5749 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
5750 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
5751 * information leading to the power save failure.
5752 */
5753enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07005754 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
5755 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08005756 * These reasons are represented by
5757 * enum qca_chip_power_save_failure_reason.
5758 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07005759 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08005760
Roshan Pius3a1667e2018-07-03 15:17:14 -07005761 /* keep last */
5762 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
5763 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
5764 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
5765};
5766
5767/**
5768 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
5769 * data types for which the stats have to get collected.
5770 */
5771enum qca_wlan_vendor_nud_stats_data_pkt_flags {
5772 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
5773 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
5774 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
5775 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
5776 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
5777 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
5778 * to represent the stats of respective data type.
5779 */
5780 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
5781 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
5782 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
5783};
5784
5785enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
5786 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
5787 /* Represents the data packet type to be monitored (u32).
5788 * Host driver tracks the stats corresponding to each data frame
5789 * represented by these flags.
5790 * These data packets are represented by
5791 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
5792 */
5793 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
5794 /* Name corresponding to the DNS frame for which the respective DNS
5795 * stats have to get monitored (string). Max string length 255.
5796 */
5797 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
5798 /* source port on which the respective proto stats have to get
5799 * collected (u32).
5800 */
5801 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
5802 /* destination port on which the respective proto stats have to get
5803 * collected (u32).
5804 */
5805 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
5806 /* IPv4 address for which the destined data packets have to be
5807 * monitored. (in network byte order), u32.
5808 */
5809 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
5810 /* IPv6 address for which the destined data packets have to be
5811 * monitored. (in network byte order), 16 bytes array.
5812 */
5813 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
5814
5815 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
5816 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
5817 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08005818};
5819
5820/**
5821 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
5822 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
5823 * information to start/stop the NUD statistics collection.
5824 */
5825enum qca_attr_nud_stats_set {
5826 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
5827
5828 /* Flag to start/stop the NUD statistics collection.
5829 * Start - If included, Stop - If not included
5830 */
5831 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005832 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08005833 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005834 /* Represents the list of data packet types to be monitored.
5835 * Host driver tracks the stats corresponding to each data frame
5836 * represented by these flags.
5837 * These data packets are represented by
5838 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
5839 */
5840 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08005841
5842 /* keep last */
5843 QCA_ATTR_NUD_STATS_SET_LAST,
5844 QCA_ATTR_NUD_STATS_SET_MAX =
5845 QCA_ATTR_NUD_STATS_SET_LAST - 1,
5846};
5847
Roshan Pius3a1667e2018-07-03 15:17:14 -07005848enum qca_attr_nud_data_stats {
5849 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
5850 /* Data packet type for which the stats are collected (u32).
5851 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
5852 */
5853 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
5854 /* Name corresponding to the DNS frame for which the respective DNS
5855 * stats are monitored (string). Max string length 255.
5856 */
5857 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
5858 /* source port on which the respective proto stats are collected (u32).
5859 */
5860 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
5861 /* destination port on which the respective proto stats are collected
5862 * (u32).
5863 */
5864 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
5865 /* IPv4 address for which the destined data packets have to be
5866 * monitored. (in network byte order), u32.
5867 */
5868 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
5869 /* IPv6 address for which the destined data packets have to be
5870 * monitored. (in network byte order), 16 bytes array.
5871 */
5872 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
5873 /* Data packet Request count received from netdev (u32). */
5874 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
5875 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
5876 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
5877 /* Data packet Request count received by lower MAC from upper MAC
5878 * (u32)
5879 */
5880 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
5881 /* Data packet Request count successfully transmitted by the device
5882 * (u32)
5883 */
5884 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
5885 /* Data packet Response count received by lower MAC (u32) */
5886 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
5887 /* Data packet Response count received by upper MAC (u32) */
5888 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
5889 /* Data packet Response count delivered to netdev (u32) */
5890 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
5891 /* Data Packet Response count that are dropped out of order (u32) */
5892 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
5893
5894 /* keep last */
5895 QCA_ATTR_NUD_DATA_STATS_LAST,
5896 QCA_ATTR_NUD_DATA_STATS_MAX =
5897 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
5898};
5899
Paul Stewart092955c2017-02-06 09:13:09 -08005900/**
5901 * qca_attr_nud_stats_get: Attributes to vendor subcmd
5902 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
5903 * NUD statistics collected when queried.
5904 */
5905enum qca_attr_nud_stats_get {
5906 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005907 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005908 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005909 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005910 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005911 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005912 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005913 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005914 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005915 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005916 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005917 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005918 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005919 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005920 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005921 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005922 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
5923 /* Flag indicating if the station's link to the AP is active.
5924 * Active Link - If included, Inactive link - If not included
5925 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005926 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08005927 /* Flag indicating if there is any duplicate address detected (DAD).
5928 * Yes - If detected, No - If not detected.
5929 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005930 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005931 /* List of Data packet types for which the stats are requested.
5932 * This list does not carry ARP stats as they are done by the
5933 * above attributes. Represented by enum qca_attr_nud_data_stats.
5934 */
5935 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08005936
5937 /* keep last */
5938 QCA_ATTR_NUD_STATS_GET_LAST,
5939 QCA_ATTR_NUD_STATS_GET_MAX =
5940 QCA_ATTR_NUD_STATS_GET_LAST - 1,
5941};
5942
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08005943enum qca_wlan_btm_candidate_status {
5944 QCA_STATUS_ACCEPT = 0,
5945 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
5946 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
5947 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
5948 QCA_STATUS_REJECT_LOW_RSSI = 4,
5949 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
5950 QCA_STATUS_REJECT_UNKNOWN = 6,
5951};
5952
5953enum qca_wlan_vendor_attr_btm_candidate_info {
5954 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
5955
5956 /* 6-byte MAC address representing the BSSID of transition candidate */
5957 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
5958 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
5959 * returned by the driver. It says whether the BSSID provided in
5960 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
5961 * the driver, if not it specifies the reason for rejection.
5962 * Note that the user-space can overwrite the transition reject reason
5963 * codes provided by driver based on more information.
5964 */
5965 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
5966
5967 /* keep last */
5968 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
5969 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
5970 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
5971};
5972
5973enum qca_attr_trace_level {
5974 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
5975 /*
5976 * Nested array of the following attributes:
5977 * QCA_ATTR_TRACE_LEVEL_MODULE,
5978 * QCA_ATTR_TRACE_LEVEL_MASK.
5979 */
5980 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
5981 /*
5982 * Specific QCA host driver module. Please refer to the QCA host
5983 * driver implementation to get the specific module ID.
5984 */
5985 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
5986 /* Different trace level masks represented in the QCA host driver. */
5987 QCA_ATTR_TRACE_LEVEL_MASK = 3,
5988
5989 /* keep last */
5990 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
5991 QCA_ATTR_TRACE_LEVEL_MAX =
5992 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
5993};
5994
5995/**
5996 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
5997 */
5998enum qca_wlan_vendor_attr_get_he_capabilities {
5999 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
6000 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07006001 * (u8 attribute: 0 = not supported, 1 = supported)
6002 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08006003 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
6004 /* HE PHY capabilities, array of 3 u32 values */
6005 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
6006 /* HE MAC capabilities (u32 attribute) */
6007 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
6008 /* HE MCS map (u32 attribute) */
6009 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
6010 /* Number of SS (u32 attribute) */
6011 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
6012 /* RU count (u32 attribute) */
6013 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
6014 /* PPE threshold data, array of 8 u32 values */
6015 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
6016
6017 /* keep last */
6018 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
6019 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
6020 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
6021};
6022
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006023/**
6024 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6025 */
6026enum qca_wlan_vendor_attr_spectral_scan {
6027 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6028 /* Number of times the chip enters spectral scan mode before
6029 * deactivating spectral scans. When set to 0, chip will enter spectral
6030 * scan mode continuously. u32 attribute.
6031 */
6032 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6033 /* Spectral scan period. Period increment resolution is 256*Tclk,
6034 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6035 */
6036 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6037 /* Spectral scan priority. u32 attribute. */
6038 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6039 /* Number of FFT data points to compute. u32 attribute. */
6040 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6041 /* Enable targeted gain change before starting the spectral scan FFT.
6042 * u32 attribute.
6043 */
6044 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6045 /* Restart a queued spectral scan. u32 attribute. */
6046 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6047 /* Noise floor reference number for the calculation of bin power.
6048 * u32 attribute.
6049 */
6050 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6051 /* Disallow spectral scan triggers after TX/RX packets by setting
6052 * this delay value to roughly SIFS time period or greater.
6053 * u32 attribute.
6054 */
6055 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6056 /* Number of strong bins (inclusive) per sub-channel, below
6057 * which a signal is declared a narrow band tone. u32 attribute.
6058 */
6059 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6060 /* Specify the threshold over which a bin is declared strong (for
6061 * scan bandwidth analysis). u32 attribute.
6062 */
6063 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6064 /* Spectral scan report mode. u32 attribute. */
6065 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6066 /* RSSI report mode, if the ADC RSSI is below
6067 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6068 * then FFTs will not trigger, but timestamps and summaries get
6069 * reported. u32 attribute.
6070 */
6071 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6072 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
6073 * to ensure spectral scan reporting with normal error code.
6074 * u32 attribute.
6075 */
6076 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6077 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
6078 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6079 * u32 attribute.
6080 */
6081 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6082 /* Format of FFT report to software for spectral scan triggered FFTs.
6083 * 0: No FFT report (only spectral scan summary report)
6084 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6085 * report
6086 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6087 * bins (in-band) per FFT + spectral scan summary report
6088 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6089 * bins (all) per FFT + spectral scan summary report
6090 * u32 attribute.
6091 */
6092 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6093 /* Number of LSBs to shift out in order to scale the FFT bins.
6094 * u32 attribute.
6095 */
6096 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6097 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6098 * in dBm power. u32 attribute.
6099 */
6100 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6101 /* Per chain enable mask to select input ADC for search FFT.
6102 * u32 attribute.
6103 */
6104 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6105 /* An unsigned 64-bit integer provided by host driver to identify the
6106 * spectral scan request. This attribute is included in the scan
6107 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6108 * and used as an attribute in
6109 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6110 * specific scan to be stopped.
6111 */
6112 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006113 /* Skip interval for FFT reports. u32 attribute */
6114 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6115 /* Set to report only one set of FFT results.
6116 * u32 attribute.
6117 */
6118 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6119 /* Debug level for spectral module in driver.
6120 * 0 : Verbosity level 0
6121 * 1 : Verbosity level 1
6122 * 2 : Verbosity level 2
6123 * 3 : Matched filterID display
6124 * 4 : One time dump of FFT report
6125 * u32 attribute.
6126 */
6127 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6128 /* Type of spectral scan request. u32 attribute.
6129 * It uses values defined in enum
6130 * qca_wlan_vendor_attr_spectral_scan_request_type.
6131 */
6132 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07006133 /* This specifies the frequency span over which spectral
6134 * scan would be carried out. Its value depends on the
6135 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6136 * the relation is as follows.
6137 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6138 * Not applicable. Spectral scan would happen in the
6139 * operating span.
6140 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6141 * Center frequency (in MHz) of the span of interest or
6142 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07006143 * in the span of interest. For 80+80 MHz agile spectral scan
6144 * request it represents center frequency (in MHz) of the primary
6145 * 80 MHz span or for convenience, center frequency (in MHz) of any
6146 * channel in the primary 80 MHz span. If agile spectral scan is
6147 * initiated without setting a valid frequency it returns the
6148 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07006149 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
6150 * u32 attribute.
6151 */
6152 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
6153 /* Spectral scan mode. u32 attribute.
6154 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6155 * If this attribute is not present, it is assumed to be
6156 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
6157 */
6158 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
6159 /* Spectral scan error code. u32 attribute.
6160 * It uses values defined in enum
6161 * qca_wlan_vendor_spectral_scan_error_code.
6162 * This attribute is included only in failure scenarios.
6163 */
6164 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
6165 /* 8-bit unsigned value to enable/disable debug of the
6166 * Spectral DMA ring.
6167 * 1-enable, 0-disable
6168 */
6169 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
6170 /* 8-bit unsigned value to enable/disable debug of the
6171 * Spectral DMA buffers.
6172 * 1-enable, 0-disable
6173 */
6174 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07006175 /* This specifies the frequency span over which spectral scan would be
6176 * carried out. Its value depends on the value of
6177 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
6178 * follows.
6179 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6180 * Not applicable. Spectral scan would happen in the operating span.
6181 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6182 * This attribute is applicable only for agile spectral scan
6183 * requests in 80+80 MHz mode. It represents center frequency (in
6184 * MHz) of the secondary 80 MHz span or for convenience, center
6185 * frequency (in MHz) of any channel in the secondary 80 MHz span.
6186 * u32 attribute.
6187 */
6188 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006189
6190 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
6191 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
6192 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
6193};
6194
Roshan Pius3a1667e2018-07-03 15:17:14 -07006195/**
6196 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
6197 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
6198 */
6199enum qca_wlan_vendor_attr_spectral_diag_stats {
6200 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
6201 /* Number of spectral TLV signature mismatches.
6202 * u64 attribute.
6203 */
6204 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
6205 /* Number of spectral phyerror events with insufficient length when
6206 * parsing for secondary 80 search FFT report. u64 attribute.
6207 */
6208 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
6209 /* Number of spectral phyerror events without secondary 80
6210 * search FFT report. u64 attribute.
6211 */
6212 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
6213 /* Number of spectral phyerror events with vht operation segment 1 id
6214 * mismatches in search fft report. u64 attribute.
6215 */
6216 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
6217 /* Number of spectral phyerror events with vht operation segment 2 id
6218 * mismatches in search fft report. u64 attribute.
6219 */
6220 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
6221
6222 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
6223 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
6224 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
6225};
6226
6227/**
6228 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
6229 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
6230 */
6231enum qca_wlan_vendor_attr_spectral_cap {
6232 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
6233 /* Flag attribute to indicate phydiag capability */
6234 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
6235 /* Flag attribute to indicate radar detection capability */
6236 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
6237 /* Flag attribute to indicate spectral capability */
6238 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
6239 /* Flag attribute to indicate advanced spectral capability */
6240 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
6241 /* Spectral hardware generation. u32 attribute.
6242 * It uses values defined in enum
6243 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
6244 */
6245 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08006246 /* Spectral bin scaling formula ID. u16 attribute.
6247 * It uses values defined in enum
6248 * qca_wlan_vendor_spectral_scan_cap_formula_id.
6249 */
6250 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
6251 /* Spectral bin scaling param - low level offset.
6252 * s16 attribute.
6253 */
6254 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
6255 /* Spectral bin scaling param - high level offset.
6256 * s16 attribute.
6257 */
6258 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
6259 /* Spectral bin scaling param - RSSI threshold.
6260 * s16 attribute.
6261 */
6262 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
6263 /* Spectral bin scaling param - default AGC max gain.
6264 * u8 attribute.
6265 */
6266 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07006267 /* Flag attribute to indicate agile spectral scan capability
6268 * for 20/40/80 MHz modes.
6269 */
Hai Shalom81f62d82019-07-22 12:10:00 -07006270 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07006271 /* Flag attribute to indicate agile spectral scan capability
6272 * for 160 MHz mode.
6273 */
6274 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
6275 /* Flag attribute to indicate agile spectral scan capability
6276 * for 80+80 MHz mode.
6277 */
6278 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07006279 /* Number of spectral detectors used for scan in 20 MHz.
6280 * u32 attribute.
6281 */
6282 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
6283 /* Number of spectral detectors used for scan in 40 MHz.
6284 * u32 attribute.
6285 */
6286 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
6287 /* Number of spectral detectors used for scan in 80 MHz.
6288 * u32 attribute.
6289 */
6290 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
6291 /* Number of spectral detectors used for scan in 160 MHz.
6292 * u32 attribute.
6293 */
6294 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
6295 /* Number of spectral detectors used for scan in 80+80 MHz.
6296 * u32 attribute.
6297 */
6298 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006299
6300 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
6301 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
6302 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
6303};
6304
6305/**
6306 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
6307 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
6308 */
6309enum qca_wlan_vendor_attr_spectral_scan_status {
6310 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
6311 /* Flag attribute to indicate whether spectral scan is enabled */
6312 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
6313 /* Flag attribute to indicate whether spectral scan is in progress*/
6314 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07006315 /* Spectral scan mode. u32 attribute.
6316 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6317 * If this attribute is not present, normal mode
6318 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
6319 * requested.
6320 */
6321 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006322
6323 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
6324 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
6325 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
6326};
6327
6328/**
6329 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
6330 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
6331 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
6332 * spectral scan request types.
6333 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
6334 * set the spectral parameters and start scan.
6335 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
6336 * only set the spectral parameters.
6337 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
6338 * only start the spectral scan.
6339 */
6340enum qca_wlan_vendor_attr_spectral_scan_request_type {
6341 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
6342 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
6343 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
6344};
6345
6346/**
Hai Shalom81f62d82019-07-22 12:10:00 -07006347 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
6348 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
6349 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
6350 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
6351 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
6352 * spectral scan modes.
6353 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
6354 * spectral scan in the current operating span.
6355 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
6356 * spectral scan in the configured agile span.
6357 */
6358enum qca_wlan_vendor_spectral_scan_mode {
6359 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
6360 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
6361};
6362
6363/**
6364 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
6365 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
6366 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
6367 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
6368 * of a parameter is not supported.
6369 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
6370 * mode is not supported.
6371 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
6372 * has invalid value.
6373 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
6374 * is not initialized.
6375 */
6376enum qca_wlan_vendor_spectral_scan_error_code {
6377 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
6378 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
6379 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
6380 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
6381};
6382
6383/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07006384 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
6385 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
6386 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6387 * spectral hardware generation.
6388 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
6389 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
6390 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
6391 */
6392enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
6393 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
6394 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
6395 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
6396};
6397
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006398enum qca_wlan_vendor_tos {
6399 QCA_WLAN_VENDOR_TOS_BK = 0,
6400 QCA_WLAN_VENDOR_TOS_BE = 1,
6401 QCA_WLAN_VENDOR_TOS_VI = 2,
6402 QCA_WLAN_VENDOR_TOS_VO = 3,
6403};
6404
6405/**
6406 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
6407 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
6408 */
6409enum qca_wlan_vendor_attr_active_tos {
6410 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
6411 /* Type Of Service - Represented by qca_wlan_vendor_tos */
6412 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
6413 /* Flag attribute representing the start (attribute included) or stop
6414 * (attribute not included) of the respective TOS.
6415 */
6416 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
6417};
6418
6419enum qca_wlan_vendor_hang_reason {
6420 /* Unspecified reason */
6421 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
6422 /* No Map for the MAC entry for the received frame */
6423 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
6424 /* Peer deletion timeout happened */
6425 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
6426 /* Peer unmap timeout */
6427 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
6428 /* Scan request timed out */
6429 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
6430 /* Consecutive Scan attempt failures */
6431 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
6432 /* Unable to get the message buffer */
6433 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
6434 /* Current command processing is timedout */
6435 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
6436 /* Timeout for an ACK from FW for suspend request */
6437 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
6438 /* Timeout for an ACK from FW for resume request */
6439 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
6440 /* Transmission timeout for consecutive data frames */
6441 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
6442 /* Timeout for the TX completion status of data frame */
6443 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
6444 /* DXE failure for TX/RX, DXE resource unavailability */
6445 QCA_WLAN_HANG_DXE_FAILURE = 12,
6446 /* WMI pending commands exceed the maximum count */
6447 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07006448 /* Timeout for peer STA connection accept command's response from the
6449 * FW in AP mode. This command is triggered when a STA (peer) connects
6450 * to AP (DUT).
6451 */
6452 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
6453 /* Timeout for the AP connection accept command's response from the FW
6454 * in STA mode. This command is triggered when the STA (DUT) connects
6455 * to an AP (peer).
6456 */
6457 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
6458 /* Timeout waiting for the response to the MAC HW mode change command
6459 * sent to FW as a part of MAC mode switch among DBS (Dual Band
6460 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
6461 * Channel Concurrency) mode.
6462 */
6463 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
6464 /* Timeout waiting for the response from FW to configure the MAC HW's
6465 * mode. This operation is to configure the single/two MACs in either
6466 * SCC/MCC/DBS mode.
6467 */
6468 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
6469 /* Timeout waiting for response of VDEV start command from the FW */
6470 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
6471 /* Timeout waiting for response of VDEV restart command from the FW */
6472 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
6473 /* Timeout waiting for response of VDEV stop command from the FW */
6474 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
6475 /* Timeout waiting for response of VDEV delete command from the FW */
6476 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
6477 /* Timeout waiting for response of peer all delete request command to
6478 * the FW on a specific VDEV.
6479 */
6480 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08006481 /* WMI sequence mismatch between WMI command and Tx completion */
6482 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
6483 /* Write to Device HAL register failed */
6484 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
6485 /* No credit left to send the wow_wakeup_from_sleep to firmware */
6486 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
6487 /* Bus failure */
6488 QCA_WLAN_HANG_BUS_FAILURE = 26,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006489};
6490
6491/**
6492 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
6493 * QCA_NL80211_VENDOR_SUBCMD_HANG.
6494 */
6495enum qca_wlan_vendor_attr_hang {
6496 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
6497 /* Reason for the hang - u32 attribute with a value from enum
6498 * qca_wlan_vendor_hang_reason.
6499 */
6500 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07006501 /* The binary blob data associated with the hang reason specified by
6502 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
6503 * contain the required dump to analyze the reason for the hang.
6504 * NLA_BINARY attribute, the max size is 1024 bytes.
6505 */
6506 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006507
6508 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
6509 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
6510 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
6511};
6512
Roshan Pius3a1667e2018-07-03 15:17:14 -07006513/**
6514 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
6515 * flushing pending traffic in firmware.
6516 *
6517 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
6518 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
6519 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
6520 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
6521 * flush packets with access category.
6522 */
6523enum qca_wlan_vendor_attr_flush_pending {
6524 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
6525 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
6526 QCA_WLAN_VENDOR_ATTR_AC = 2,
6527
6528 /* keep last */
6529 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
6530 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
6531 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
6532};
6533
6534/**
Hai Shalom74f70d42019-02-11 14:42:39 -08006535 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
6536 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
6537 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6538 * Spectral bin scaling formula ID.
6539 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
6540 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
6541 * and RSSI threshold based formula.
6542 */
6543enum qca_wlan_vendor_spectral_scan_cap_formula_id {
6544 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
6545 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
6546};
6547
6548/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07006549 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
6550 * RF Operating Parameter (RROP) information is available, and if so, at which
6551 * point in the application-driver interaction sequence it can be retrieved by
6552 * the application from the driver. This point may vary by architecture and
6553 * other factors. This is a u16 value.
6554 */
6555enum qca_wlan_vendor_attr_rropavail_info {
6556 /* RROP information is unavailable. */
6557 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
6558 /* RROP information is available and the application can retrieve the
6559 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
6560 * event from the driver.
6561 */
6562 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
6563 /* RROP information is available only after a vendor specific scan
6564 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
6565 * successfully completed. The application can retrieve the information
6566 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
6567 * the driver.
6568 */
6569 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
6570};
6571
6572/**
6573 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
6574 * Representative RF Operating Parameter (RROP) information. It is sent for the
6575 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
6576 * intended for use by external Auto Channel Selection applications. It provides
6577 * guidance values for some RF parameters that are used by the system during
6578 * operation. These values could vary by channel, band, radio, and so on.
6579 */
6580enum qca_wlan_vendor_attr_rrop_info {
6581 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
6582
6583 /* Representative Tx Power List (RTPL) which has an array of nested
6584 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
6585 */
6586 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
6587
6588 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
6589 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
6590 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
6591};
6592
6593/**
6594 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
6595 * entry instances in the Representative Tx Power List (RTPL). It provides
6596 * simplified power values intended for helping external Auto channel Selection
6597 * applications compare potential Tx power performance between channels, other
6598 * operating conditions remaining identical. These values are not necessarily
6599 * the actual Tx power values that will be used by the system. They are also not
6600 * necessarily the max or average values that will be used. Instead, they are
6601 * relative, summarized keys for algorithmic use computed by the driver or
6602 * underlying firmware considering a number of vendor specific factors.
6603 */
6604enum qca_wlan_vendor_attr_rtplinst {
6605 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
6606
Hai Shalomfdcde762020-04-02 11:19:20 -07006607 /* Primary channel number (u8).
6608 * Note: If both the driver and user space application support the
6609 * 6 GHz band, this attribute is deprecated and
6610 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
6611 * maintain backward compatibility,
6612 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
6613 * driver or user space application or both do not support the 6 GHz
6614 * band.
6615 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07006616 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
6617 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
6618 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
6619 /* Representative Tx power in dBm (s32) with emphasis on range. */
6620 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07006621 /* Primary channel center frequency (u32) in MHz */
6622 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006623
6624 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
6625 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
6626 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
6627};
6628
6629/**
6630 * enum qca_wlan_vendor_attr_config_latency_level - Level for
6631 * wlan latency module.
6632 *
6633 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
6634 * power saving which would causing data exchange out of service, this
6635 * would be a big impact on latency. For latency sensitive applications over
6636 * Wi-Fi are intolerant to such operations and thus would configure them
6637 * to meet their respective needs. It is well understood by such applications
6638 * that altering the default behavior would degrade the Wi-Fi functionality
6639 * w.r.t the above pointed WLAN operations.
6640 *
6641 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
6642 * Default WLAN operation level which throughput orientated.
6643 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
6644 * Use moderate level to improve latency by limit scan duration.
6645 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
6646 * Use low latency level to benifit application like concurrent
6647 * downloading or video streaming via constraint scan/adaptive PS.
6648 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
6649 * Use ultra low latency level to benefit for gaming/voice
6650 * application via constraint scan/roaming/adaptive PS.
6651 */
6652enum qca_wlan_vendor_attr_config_latency_level {
6653 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
6654 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
6655 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
6656 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
6657 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
6658
6659 /* keep last */
6660 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
6661 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
6662 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
6663};
6664
6665/**
6666 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
6667 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
6668 */
6669enum qca_wlan_vendor_attr_mac {
6670 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
6671
6672 /* MAC mode info list which has an array of nested values as
6673 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
6674 */
6675 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
6676
6677 /* keep last */
6678 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
6679 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
6680 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
6681};
6682
6683/**
6684 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
6685 * Wi-Fi netdev interface on a respective MAC.
6686 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
6687 */
6688enum qca_wlan_vendor_attr_mac_iface_info {
6689 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
6690 /* Wi-Fi netdev's interface index (u32) */
6691 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
6692 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
6693 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
6694
6695 /* keep last */
6696 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
6697 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
6698 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
6699};
6700
6701/**
6702 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
6703 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
6704 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
6705 */
6706enum qca_wlan_vendor_attr_mac_info {
6707 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
6708 /* Hardware MAC ID associated for the MAC (u32) */
6709 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
6710 /* Band supported by the MAC at a given point.
6711 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
6712 * nl80211_band.
6713 */
6714 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
6715 /* Refers to list of WLAN netdev interfaces associated with this MAC.
6716 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
6717 */
6718 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
6719
6720 /* keep last */
6721 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
6722 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
6723 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
6724};
6725
6726/**
6727 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
6728 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
6729 */
6730enum qca_wlan_vendor_attr_get_logger_features {
6731 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
6732 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
6733 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
6734 /* keep last */
6735 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
6736 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
6737 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
6738};
6739
6740/**
6741 * enum wifi_logger_supported_features - Values for supported logger features
6742 */
6743enum wifi_logger_supported_features {
6744 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
6745 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
6746 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
6747 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
6748 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
6749 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
6750 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
6751 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
6752 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
6753};
6754
6755/**
6756 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
6757 * capabilities features
6758 */
6759enum qca_wlan_tdls_caps_features_supported {
6760 WIFI_TDLS_SUPPORT = (1 << (0)),
6761 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
6762 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
6763};
6764
6765/**
6766 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
6767 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
6768 */
6769enum qca_wlan_vendor_attr_tdls_get_capabilities {
6770 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
6771 /* Indicates the max concurrent sessions */
6772 /* Unsigned 32-bit value */
6773 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
6774 /* Indicates the support for features */
6775 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
6776 */
6777 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
6778
6779 /* keep last */
6780 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
6781 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
6782 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
6783};
6784
6785/**
6786 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
6787 * command used as value for the attribute
6788 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
6789 */
6790enum qca_wlan_offloaded_packets_sending_control {
6791 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
6792 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
6793 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
6794};
6795
6796/**
6797 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
6798 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
6799 */
6800enum qca_wlan_vendor_attr_offloaded_packets {
6801 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
6802 /* Takes valid value from the enum
6803 * qca_wlan_offloaded_packets_sending_control
6804 * Unsigned 32-bit value
6805 */
6806 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
6807 /* Unsigned 32-bit value */
6808 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
6809 /* array of u8 len: Max packet size */
6810 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
6811 /* 6-byte MAC address used to represent source MAC address */
6812 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
6813 /* 6-byte MAC address used to represent destination MAC address */
6814 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
6815 /* Unsigned 32-bit value, in milli seconds */
6816 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07006817 /* This optional unsigned 16-bit attribute is used for specifying
6818 * ethernet protocol type. If not specified ethertype defaults to IPv4.
6819 */
6820 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006821
6822 /* keep last */
6823 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
6824 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
6825 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
6826};
6827
6828/**
6829 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
6830 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
6831 */
6832enum qca_wlan_rssi_monitoring_control {
6833 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
6834 QCA_WLAN_RSSI_MONITORING_START,
6835 QCA_WLAN_RSSI_MONITORING_STOP,
6836};
6837
6838/**
6839 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
6840 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
6841 */
6842enum qca_wlan_vendor_attr_rssi_monitoring {
6843 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
6844 /* Takes valid value from the enum
6845 * qca_wlan_rssi_monitoring_control
6846 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
6847 */
6848 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
6849 /* Unsigned 32-bit value */
6850 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
6851 /* Signed 8-bit value in dBm */
6852 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
6853 /* Signed 8-bit value in dBm */
6854 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
6855 /* attributes to be used/received in callback */
6856 /* 6-byte MAC address used to represent current BSSID MAC address */
6857 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
6858 /* Signed 8-bit value indicating the current RSSI */
6859 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
6860 /* keep last */
6861 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
6862 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
6863 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
6864};
6865
6866/**
6867 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
6868 * QCA_NL80211_VENDOR_SUBCMD_NDP.
6869 */
6870enum qca_wlan_vendor_attr_ndp_params {
6871 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
6872 /* Unsigned 32-bit value
6873 * enum of sub commands values in qca_wlan_ndp_sub_cmd
6874 */
6875 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
6876 /* Unsigned 16-bit value */
6877 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
6878 /* NL attributes for data used NDP SUB cmds */
6879 /* Unsigned 32-bit value indicating a service info */
6880 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
6881 /* Unsigned 32-bit value; channel frequency in MHz */
6882 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
6883 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
6884 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
6885 /* Interface name on which NDP is being created */
6886 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
6887 /* Unsigned 32-bit value for security */
6888 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
6889 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
6890 /* Unsigned 32-bit value for QoS */
6891 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
6892 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
6893 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
6894 /* Unsigned 32-bit value for NDP instance Id */
6895 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
6896 /* Array of instance Ids */
6897 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
6898 /* Unsigned 32-bit value for initiator/responder NDP response code
6899 * accept/reject
6900 */
6901 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
6902 /* NDI MAC address. An array of 6 Unsigned int8 */
6903 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
6904 /* Unsigned 32-bit value errors types returned by driver
6905 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
6906 * NanStatusType includes these values.
6907 */
6908 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
6909 /* Unsigned 32-bit value error values returned by driver
6910 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
6911 * NanInternalStatusType includes these values.
6912 */
6913 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
6914 /* Unsigned 32-bit value for Channel setup configuration
6915 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
6916 * NanDataPathChannelCfg includes these values.
6917 */
6918 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
6919 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
6920 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
6921 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
6922 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
6923 /* Security Context Identifier that contains the PMKID
6924 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
6925 */
6926 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
6927 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
6928 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
6929 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
6930 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
6931 /* Unsigned 32-bit bitmap indicating schedule update
6932 * BIT_0: NSS Update
6933 * BIT_1: Channel list update
6934 */
6935 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
6936 /* Unsigned 32-bit value for NSS */
6937 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
6938 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
6939 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
6940 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
6941 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
6942 */
6943 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
6944 /* Array of channel/band width */
6945 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
6946 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
6947 * This attribute is used and optional for ndp request, ndp response,
6948 * ndp indication, and ndp confirm.
6949 */
6950 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
6951 /* Unsigned 16-bit value indicating transport port used by NDP.
6952 * This attribute is used and optional for ndp response, ndp indication,
6953 * and ndp confirm.
6954 */
6955 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
6956 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
6957 * the Internet Assigned Numbers Authority (IANA) as per:
6958 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
6959 * This attribute is used and optional for ndp response, ndp indication,
6960 * and ndp confirm.
6961 */
6962 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08006963 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
6964 * 1:support 0:not support
6965 */
6966 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006967
6968 /* keep last */
6969 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
6970 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
6971 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
6972};
6973
6974enum qca_wlan_ndp_sub_cmd {
6975 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
6976 /* Command to create a NAN data path interface */
6977 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
6978 /* Command to delete a NAN data path interface */
6979 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
6980 /* Command to initiate a NAN data path session */
6981 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
6982 /* Command to notify if the NAN data path session was sent */
6983 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
6984 /* Command to respond to NAN data path session */
6985 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
6986 /* Command to notify on the responder about the response */
6987 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
6988 /* Command to initiate a NAN data path end */
6989 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
6990 /* Command to notify the if end request was sent */
6991 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
6992 /* Command to notify the peer about the end request */
6993 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
6994 /* Command to confirm the NAN data path session is complete */
6995 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
6996 /* Command to indicate the peer about the end request being received */
6997 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
6998 /* Command to indicate the peer of schedule update */
6999 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
7000};
7001
7002/**
7003 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
7004 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
7005 */
7006enum qca_wlan_vendor_attr_nd_offload {
7007 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
7008 /* Flag to set Neighbour Discovery offload */
7009 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
7010 /* Keep last */
7011 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
7012 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
7013 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
7014};
7015
7016/**
7017 * enum packet_filter_sub_cmd - Packet filter sub commands
7018 */
7019enum packet_filter_sub_cmd {
7020 /**
7021 * Write packet filter program and/or data. The driver/firmware should
7022 * disable APF before writing into local buffer and re-enable APF after
7023 * writing is done.
7024 */
7025 QCA_WLAN_SET_PACKET_FILTER = 1,
7026 /* Get packet filter feature capabilities from driver */
7027 QCA_WLAN_GET_PACKET_FILTER = 2,
7028 /**
7029 * Write packet filter program and/or data. User space will send the
7030 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
7031 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
7032 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
7033 * enable/disable is given to user space with this command. Also,
7034 * user space sends the length of program portion in the buffer within
7035 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
7036 */
7037 QCA_WLAN_WRITE_PACKET_FILTER = 3,
7038 /* Read packet filter program and/or data */
7039 QCA_WLAN_READ_PACKET_FILTER = 4,
7040 /* Enable APF feature */
7041 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
7042 /* Disable APF feature */
7043 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
7044};
7045
7046/**
7047 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
7048 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
7049 */
7050enum qca_wlan_vendor_attr_packet_filter {
7051 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
7052 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
7053 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
7054 /* Unsigned 32-bit value indicating the packet filter version */
7055 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
7056 /* Unsigned 32-bit value indicating the packet filter id */
7057 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
7058 /**
7059 * Unsigned 32-bit value indicating the packet filter size including
7060 * program + data.
7061 */
7062 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
7063 /* Unsigned 32-bit value indicating the packet filter current offset */
7064 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
7065 /* Program and/or data in bytes */
7066 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
7067 /* Unsigned 32-bit value of the length of the program section in packet
7068 * filter buffer.
7069 */
7070 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
7071
7072 /* keep last */
7073 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
7074 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
7075 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
7076};
7077
7078/**
7079 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
7080 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
7081 */
7082enum qca_wlan_vendor_drv_info {
7083 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
7084 /* Maximum Message size info between firmware & HOST
7085 * Unsigned 32-bit value
7086 */
7087 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
7088 /* keep last */
7089 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
7090 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
7091 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
7092};
7093
7094/**
7095 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
7096 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
7097 */
7098enum qca_wlan_vendor_attr_wake_stats {
7099 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
7100 /* Unsigned 32-bit value indicating the total count of wake event */
7101 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
7102 /* Array of individual wake count, each index representing wake reason
7103 */
7104 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
7105 /* Unsigned 32-bit value representing wake count array */
7106 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
7107 /* Unsigned 32-bit total wake count value of driver/fw */
7108 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
7109 /* Array of wake stats of driver/fw */
7110 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
7111 /* Unsigned 32-bit total wake count value of driver/fw */
7112 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
7113 /* Unsigned 32-bit total wake count value of packets received */
7114 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
7115 /* Unsigned 32-bit wake count value unicast packets received */
7116 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
7117 /* Unsigned 32-bit wake count value multicast packets received */
7118 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
7119 /* Unsigned 32-bit wake count value broadcast packets received */
7120 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
7121 /* Unsigned 32-bit wake count value of ICMP packets */
7122 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
7123 /* Unsigned 32-bit wake count value of ICMP6 packets */
7124 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
7125 /* Unsigned 32-bit value ICMP6 router advertisement */
7126 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
7127 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
7128 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
7129 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
7130 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
7131 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
7132 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
7133 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
7134 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
7135 /* Unsigned 32-bit wake count value of receive side multicast */
7136 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
7137 /* Unsigned 32-bit wake count value of a given RSSI breach */
7138 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
7139 /* Unsigned 32-bit wake count value of low RSSI */
7140 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
7141 /* Unsigned 32-bit value GSCAN count */
7142 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
7143 /* Unsigned 32-bit value PNO complete count */
7144 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
7145 /* Unsigned 32-bit value PNO match count */
7146 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
7147 /* keep last */
7148 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
7149 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
7150 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
7151};
7152
7153/**
Hai Shalomfdcde762020-04-02 11:19:20 -07007154 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07007155 * configured by userspace to the driver/firmware.
7156 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
7157 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07007158 * The driver/firmware takes actions requested by userspace such as throttling
7159 * wifi TX etc. in order to mitigate high temperature.
7160 *
7161 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
7162 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
7163 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
7164 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
7165 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
7166 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
7167 */
7168enum qca_wlan_vendor_thermal_level {
7169 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
7170 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
7171 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
7172 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
7173 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
7174 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
7175};
7176
7177/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07007178 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
7179 * cmd value. Used for NL attributes for data used by
7180 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7181 */
7182enum qca_wlan_vendor_attr_thermal_cmd {
7183 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
7184 /* The value of command, driver will implement different operations
7185 * according to this value. It uses values defined in
7186 * enum qca_wlan_vendor_attr_thermal_cmd_type.
7187 * u32 attribute.
7188 */
7189 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07007190 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07007191 * driver/firmware, or get thermal level from the driver/firmware.
7192 * Used in request or response, u32 attribute,
7193 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07007194 */
7195 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
7196 /* Userspace uses this attribute to configure the time in which the
7197 * driver/firmware should complete applying settings it received from
7198 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
7199 * command type. Used in request, u32 attribute, value is in
7200 * milliseconds. A value of zero indicates to apply the settings
7201 * immediately. The driver/firmware can delay applying the configured
7202 * thermal settings within the time specified in this attribute if
7203 * there is any critical ongoing operation.
7204 */
7205 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007206
7207 /* keep last */
7208 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
7209 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
7210 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
7211};
7212
7213/**
7214 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
7215 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
7216 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
7217 * thermal command types sent to driver.
7218 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
7219 * get thermal shutdown configuration parameters for display. Parameters
7220 * responded from driver are defined in
7221 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
7222 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
7223 * get temperature. Host should respond with a temperature data. It is defined
7224 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
7225 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
7226 * suspend action.
7227 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
7228 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07007229 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
7230 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07007231 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
7232 * thermal level from the driver/firmware. The driver should respond with a
7233 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007234 */
7235enum qca_wlan_vendor_attr_thermal_cmd_type {
7236 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
7237 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
7238 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
7239 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07007240 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07007241 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007242};
7243
7244/**
7245 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
7246 * to get chip temperature by user.
7247 * enum values are used for NL attributes for data used by
7248 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
7249 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7250 */
7251enum qca_wlan_vendor_attr_thermal_get_temperature {
7252 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
7253 /* Temperature value (degree Celsius) from driver.
7254 * u32 attribute.
7255 */
7256 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
7257
7258 /* keep last */
7259 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
7260 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
7261 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
7262};
7263
7264/**
7265 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
7266 * to get configuration parameters of thermal shutdown feature. Enum values are
7267 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
7268 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7269 */
7270enum qca_wlan_vendor_attr_get_thermal_params_rsp {
7271 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
7272 /* Indicate if the thermal shutdown feature is enabled.
7273 * NLA_FLAG attribute.
7274 */
7275 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
7276 /* Indicate if the auto mode is enabled.
7277 * Enable: Driver triggers the suspend/resume action.
7278 * Disable: User space triggers the suspend/resume action.
7279 * NLA_FLAG attribute.
7280 */
7281 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
7282 /* Thermal resume threshold (degree Celsius). Issue the resume command
7283 * if the temperature value is lower than this threshold.
7284 * u16 attribute.
7285 */
7286 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
7287 /* Thermal warning threshold (degree Celsius). FW reports temperature
7288 * to driver if it's higher than this threshold.
7289 * u16 attribute.
7290 */
7291 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
7292 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
7293 * if the temperature value is higher than this threshold.
7294 * u16 attribute.
7295 */
7296 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
7297 /* FW reports temperature data periodically at this interval (ms).
7298 * u16 attribute.
7299 */
7300 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
7301
7302 /* keep last */
7303 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
7304 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
7305 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
7306};
7307
7308/**
7309 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
7310 * report thermal events from driver to user space.
7311 * enum values are used for NL attributes for data used by
7312 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
7313 */
7314enum qca_wlan_vendor_attr_thermal_event {
7315 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
7316 /* Temperature value (degree Celsius) from driver.
7317 * u32 attribute.
7318 */
7319 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
7320 /* Indication of resume completion from power save mode.
7321 * NLA_FLAG attribute.
7322 */
7323 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07007324 /* Thermal level from the driver.
7325 * u32 attribute. Possible values are defined in
7326 * enum qca_wlan_vendor_thermal_level.
7327 */
7328 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007329
7330 /* keep last */
7331 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
7332 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
7333 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
7334};
7335
7336/**
7337 * enum he_fragmentation_val - HE fragmentation support values
7338 * Indicates level of dynamic fragmentation that is supported by
7339 * a STA as a recipient.
7340 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
7341 * (HE MAC Capabilities Information field) and are used in HE Capabilities
7342 * element to advertise the support. These values are validated in the driver
7343 * to check the device capability and advertised in the HE Capabilities
7344 * element. These values are used to configure testbed device to allow the
7345 * advertised hardware capabilities to be downgraded for testing purposes.
7346 *
7347 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
7348 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
7349 * contained within an MPDU or S-MPDU, no support for dynamic fragments
7350 * within an A-MPDU that is not an S-MPDU.
7351 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
7352 * contained within an MPDU or S-MPDU and support for up to one dynamic
7353 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
7354 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
7355 * MPDU or S-MPDU.
7356 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
7357 * contained within an MPDU or S-MPDU and support for multiple dynamic
7358 * fragments for each MSDU and for each A-MSDU if supported by the
7359 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
7360 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
7361 */
7362enum he_fragmentation_val {
7363 HE_FRAG_DISABLE,
7364 HE_FRAG_LEVEL1,
7365 HE_FRAG_LEVEL2,
7366 HE_FRAG_LEVEL3,
7367};
7368
7369/**
7370 * enum he_mcs_config - HE MCS support configuration
7371 *
7372 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
7373 * These values are used in driver to configure the HE MCS map to advertise
7374 * Tx/Rx MCS map in HE capability and these values are applied for all the
7375 * streams supported by the device. To configure MCS for different bandwidths,
7376 * vendor command needs to be sent using this attribute with appropriate value.
7377 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
7378 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
7379 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
7380 * These values are used to configure testbed device to allow the advertised
7381 * hardware capabilities to be downgraded for testing purposes. The enum values
7382 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
7383 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
7384 * These values are validated in the driver before setting the MCS map and
7385 * driver returns error if the input is other than these enum values.
7386 *
7387 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
7388 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
7389 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
7390 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
7391 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
7392 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
7393 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
7394 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
7395 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
7396 */
7397enum he_mcs_config {
7398 HE_80_MCS0_7 = 0,
7399 HE_80_MCS0_9 = 1,
7400 HE_80_MCS0_11 = 2,
7401 HE_160_MCS0_7 = 4,
7402 HE_160_MCS0_9 = 5,
7403 HE_160_MCS0_11 = 6,
7404 HE_80P80_MCS0_7 = 8,
7405 HE_80P80_MCS0_9 = 9,
7406 HE_80P80_MCS0_11 = 10,
7407};
7408
7409/**
7410 * enum qca_wlan_ba_session_config - BA session configuration
7411 *
7412 * Indicates the configuration values for BA session configuration attribute.
7413 *
7414 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
7415 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
7416 */
7417enum qca_wlan_ba_session_config {
7418 QCA_WLAN_ADD_BA = 1,
7419 QCA_WLAN_DELETE_BA = 2,
7420};
7421
7422/**
7423 * enum qca_wlan_ac_type - Access category type
7424 *
7425 * Indicates the access category type value.
7426 *
7427 * @QCA_WLAN_AC_BE: BE access category
7428 * @QCA_WLAN_AC_BK: BK access category
7429 * @QCA_WLAN_AC_VI: VI access category
7430 * @QCA_WLAN_AC_VO: VO access category
7431 * @QCA_WLAN_AC_ALL: All ACs
7432 */
7433enum qca_wlan_ac_type {
7434 QCA_WLAN_AC_BE = 0,
7435 QCA_WLAN_AC_BK = 1,
7436 QCA_WLAN_AC_VI = 2,
7437 QCA_WLAN_AC_VO = 3,
7438 QCA_WLAN_AC_ALL = 4,
7439};
7440
7441/**
7442 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
7443 *
7444 * Indicates the HE LTF configuration value.
7445 *
7446 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
7447 * based on the GI setting
7448 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
7449 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
7450 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
7451 */
7452enum qca_wlan_he_ltf_cfg {
7453 QCA_WLAN_HE_LTF_AUTO = 0,
7454 QCA_WLAN_HE_LTF_1X = 1,
7455 QCA_WLAN_HE_LTF_2X = 2,
7456 QCA_WLAN_HE_LTF_4X = 3,
7457};
7458
Hai Shalomc9e41a12018-07-31 14:41:42 -07007459/**
7460 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
7461 *
7462 * Indicates the HE trigger frame MAC padding duration value.
7463 *
7464 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
7465 * process the trigger frame.
7466 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
7467 * trigger frame.
7468 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
7469 * trigger frame.
7470 */
7471enum qca_wlan_he_mac_padding_dur {
7472 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
7473 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
7474 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
7475};
7476
Hai Shalom74f70d42019-02-11 14:42:39 -08007477/**
7478 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
7479 *
7480 * Indicates the HE Operating mode control channel width setting value.
7481 *
7482 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
7483 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
7484 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
7485 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
7486 */
7487enum qca_wlan_he_om_ctrl_ch_bw {
7488 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
7489 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
7490 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
7491 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
7492};
7493
7494/**
7495 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
7496 * HE operating mode control transmit request. These attributes are
7497 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
7498 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7499 *
7500 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
7501 * indicates the maximum number of spatial streams, NSS, that the STA
7502 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
7503 * and is set to NSS - 1.
7504 *
7505 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
7506 * indicates the operating channel width supported by the STA for both
7507 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
7508 *
7509 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
7510 * indicates the all trigger based UL MU operations by the STA.
7511 * 0 - UL MU operations are enabled by the STA.
7512 * 1 - All triggered UL MU transmissions are suspended by the STA.
7513 *
7514 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
7515 * indicates the maximum number of space-time streams, NSTS, that
7516 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07007517 *
7518 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
7519 * combined with the UL MU Disable subfield and the recipient's setting
7520 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
7521 * capabilities to determine which HE TB PPDUs are possible by the
7522 * STA to transmit.
7523 * 0 - UL MU data operations are enabled by the STA.
7524 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
7525 * bit is not set, else UL MU Tx is suspended.
7526 *
Hai Shalom74f70d42019-02-11 14:42:39 -08007527 */
7528enum qca_wlan_vendor_attr_he_omi_tx {
7529 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
7530 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
7531 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
7532 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
7533 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07007534 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08007535
7536 /* keep last */
7537 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
7538 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
7539 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
7540};
7541
Hai Shalom899fcc72020-10-19 14:38:18 -07007542 /**
7543 * enum qca_wlan_vendor_phy_mode - Different PHY modes
7544 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
7545 *
7546 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
7547 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
7548 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
7549 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
7550 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
7551 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
7552 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
7553 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
7554 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
7555 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
7556 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
7557 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
7558 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
7559 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
7560 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
7561 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
7562 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
7563 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
7564 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
7565 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
7566 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
7567 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
7568 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
7569 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
7570 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
7571 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
7572 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
7573 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
7574 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
7575 */
7576enum qca_wlan_vendor_phy_mode {
7577 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
7578 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
7579 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
7580 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
7581 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
7582 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
7583 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
7584 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
7585 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
7586 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
7587 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
7588 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
7589 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
7590 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
7591 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
7592 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
7593 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
7594 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
7595 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
7596 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
7597 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
7598 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
7599 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
7600 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
7601 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
7602 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
7603 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
7604 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
7605 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
7606};
7607
Roshan Pius3a1667e2018-07-03 15:17:14 -07007608/* Attributes for data used by
7609 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
7610 */
7611enum qca_wlan_vendor_attr_wifi_test_config {
7612 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
7613 /* 8-bit unsigned value to configure the driver to enable/disable
7614 * WMM feature. This attribute is used to configure testbed device.
7615 * 1-enable, 0-disable
7616 */
7617 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
7618
7619 /* 8-bit unsigned value to configure the driver to accept/reject
7620 * the addba request from peer. This attribute is used to configure
7621 * the testbed device.
7622 * 1-accept addba, 0-reject addba
7623 */
7624 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
7625
7626 /* 8-bit unsigned value to configure the driver to send or not to
7627 * send the addba request to peer.
7628 * This attribute is used to configure the testbed device.
7629 * 1-send addba, 0-do not send addba
7630 */
7631 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
7632
7633 /* 8-bit unsigned value to indicate the HE fragmentation support.
7634 * Uses enum he_fragmentation_val values.
7635 * This attribute is used to configure the testbed device to
7636 * allow the advertised hardware capabilities to be downgraded
7637 * for testing purposes.
7638 */
7639 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
7640
7641 /* 8-bit unsigned value to indicate the HE MCS support.
7642 * Uses enum he_mcs_config values.
7643 * This attribute is used to configure the testbed device to
7644 * allow the advertised hardware capabilities to be downgraded
7645 * for testing purposes.
7646 */
7647 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
7648
7649 /* 8-bit unsigned value to configure the driver to allow or not to
7650 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
7651 * This attribute is used to configure the testbed device.
7652 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
7653 */
7654 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
7655
7656 /* 8-bit unsigned value to configure the driver to add a
7657 * new BA session or delete the existing BA session for
7658 * given TID. ADDBA command uses the buffer size and TID
7659 * configuration if user specifies the values else default
7660 * value for buffer size is used for all TIDs if the TID
7661 * also not specified. For DEL_BA command TID value is
7662 * required to process the command.
7663 * Uses enum qca_wlan_ba_session_config values.
7664 * This attribute is used to configure the testbed device.
7665 */
7666 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
7667
Hai Shalomce48b4a2018-09-05 11:41:35 -07007668 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07007669 * request and response frames.
7670 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07007671 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07007672 */
7673 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
7674
7675 /* 8-bit unsigned value to configure the buffer size in addba
7676 * request and response frames.
7677 * This attribute is used to configure the testbed device.
7678 */
7679 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
7680
7681 /* 8-bit unsigned value to configure the no ack policy.
7682 * To configure no ack policy, access category value is
7683 * required to process the command.
7684 * This attribute is used to configure the testbed device.
7685 * 1 - enable no ack, 0 - disable no ack.
7686 */
7687 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
7688
7689 /* 8-bit unsigned value to configure the AC for no ack policy
7690 * This attribute is used to configure the testbed device.
7691 * Uses the enum qca_wlan_ac_type values.
7692 */
7693 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
7694
7695 /* 8-bit unsigned value to configure the HE LTF
7696 * This attribute is used to configure the testbed device.
7697 * Uses the enum qca_wlan_he_ltf_cfg values.
7698 */
7699 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
7700
7701 /* 8-bit unsigned value to configure the tx beamformee.
7702 * This attribute is used to configure the testbed device.
7703 * 1-enable, 0-disable.
7704 */
7705 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
7706
7707 /* 8-bit unsigned value to configure the tx beamformee number
7708 * of space-time streams.
7709 * This attribute is used to configure the testbed device.
7710 * The range of the value is 0 to 8.
7711 */
7712 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
7713
7714 /* 8-bit unsigned value to configure the MU EDCA params for given AC
7715 * This attribute is used to configure the testbed device.
7716 * Uses the enum qca_wlan_ac_type values.
7717 */
7718 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
7719
7720 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
7721 * To configure MU EDCA AIFSN value, MU EDCA access category value
7722 * is required to process the command.
7723 * This attribute is used to configure the testbed device.
7724 */
7725 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
7726
7727 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
7728 * given AC.
7729 * To configure MU EDCA ECW min value, MU EDCA access category value
7730 * is required to process the command.
7731 * This attribute is used to configure the testbed device.
7732 */
7733 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
7734
7735 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
7736 * given AC.
7737 * To configure MU EDCA ECW max value, MU EDCA access category value
7738 * is required to process the command.
7739 * This attribute is used to configure the testbed device.
7740 */
7741 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
7742
7743 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
7744 * To configure MU EDCA timer value, MU EDCA access category value
7745 * is required to process the command.
7746 * This attribute is used to configure the testbed device.
7747 */
7748 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
7749
Hai Shalomc9e41a12018-07-31 14:41:42 -07007750 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
7751 * duration.
7752 * This attribute is used to configure the testbed device.
7753 * Uses the enum qca_wlan_he_mac_padding_dur values.
7754 */
7755 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
7756
Hai Shalomce48b4a2018-09-05 11:41:35 -07007757 /* 8-bit unsigned value to override the MU EDCA params to defaults
7758 * regardless of the AP beacon MU EDCA params. If it is enabled use
7759 * the default values else use the MU EDCA params from AP beacon.
7760 * This attribute is used to configure the testbed device.
7761 * 1-enable, 0-disable.
7762 */
7763 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
7764
Hai Shalom39ba6fc2019-01-22 12:40:38 -08007765 /* 8-bit unsigned value to configure the support for receiving
7766 * an MPDU that contains an operating mode control subfield.
7767 * This attribute is used to configure the testbed device.
7768 * 1-enable, 0-disable.
7769 */
7770 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
7771
7772 /* Nested attribute values required to setup the TWT session.
7773 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
7774 * information to set up the session. It contains broadcast flags,
7775 * set_up flags, trigger value, flow type, flow ID, wake interval
7776 * exponent, protection, target wake time, wake duration, wake interval
7777 * mantissa. These nested attributes are used to setup a host triggered
7778 * TWT session.
7779 */
7780 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
7781
7782 /* This nested attribute is used to terminate the current TWT session.
7783 * It does not currently carry any attributes.
7784 */
7785 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
7786
7787 /* This nested attribute is used to suspend the current TWT session.
7788 * It does not currently carry any attributes.
7789 */
7790 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
7791
7792 /* Nested attribute values to indicate the request for resume.
7793 * This attribute is used to resume the TWT session.
7794 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
7795 * parameters required to resume the TWT session.
7796 */
7797 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
7798
Hai Shalom74f70d42019-02-11 14:42:39 -08007799 /* 8-bit unsigned value to set the HE operating mode control
7800 * (OM CTRL) Channel Width subfield.
7801 * The Channel Width subfield indicates the operating channel width
7802 * supported by the STA for both reception and transmission.
7803 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
7804 * This setting is cleared with the
7805 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7806 * flag attribute to reset defaults.
7807 * This attribute is used to configure the testbed device.
7808 */
7809 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
7810
7811 /* 8-bit unsigned value to configure the number of spatial
7812 * streams in HE operating mode control field.
7813 * This setting is cleared with the
7814 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7815 * flag attribute to reset defaults.
7816 * This attribute is used to configure the testbed device.
7817 */
7818 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
7819
7820 /* Flag attribute to configure the UL MU disable bit in
7821 * HE operating mode control field.
7822 * This setting is cleared with the
7823 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7824 * flag attribute to reset defaults.
7825 * This attribute is used to configure the testbed device.
7826 */
7827 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
7828
7829 /* Flag attribute to clear the previously set HE operating mode
7830 * control field configuration.
7831 * This attribute is used to configure the testbed device to reset
7832 * defaults to clear any previously set HE operating mode control
7833 * field configuration.
7834 */
7835 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
7836
7837 /* 8-bit unsigned value to configure HE single user PPDU
7838 * transmission. By default this setting is disabled and it
7839 * is disabled in the reset defaults of the device configuration.
7840 * This attribute is used to configure the testbed device.
7841 * 1-enable, 0-disable
7842 */
7843 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
7844
7845 /* 8-bit unsigned value to configure action frame transmission
7846 * in HE trigger based PPDU transmission.
7847 * By default this setting is disabled and it is disabled in
7848 * the reset defaults of the device configuration.
7849 * This attribute is used to configure the testbed device.
7850 * 1-enable, 0-disable
7851 */
7852 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
7853
7854 /* Nested attribute to indicate HE operating mode control field
7855 * transmission. It contains operating mode control field Nss,
7856 * channel bandwidth, Tx Nsts and UL MU disable attributes.
7857 * These nested attributes are used to send HE operating mode control
7858 * with configured values.
7859 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
7860 * This attribute is used to configure the testbed device.
7861 */
7862 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
7863
7864 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
7865 * support for the reception of a frame that carries an HE variant
7866 * HT Control field.
7867 * This attribute is used to configure the testbed device.
7868 * 1-enable, 0-disable
7869 */
7870 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
7871
Hai Shalom021b0b52019-04-10 11:17:58 -07007872 /* 8-bit unsigned value to configure VHT support in 2.4G band.
7873 * This attribute is used to configure the testbed device.
7874 * 1-enable, 0-disable
7875 */
7876 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
7877
7878 /* 8-bit unsigned value to configure HE testbed defaults.
7879 * This attribute is used to configure the testbed device.
7880 * 1-set the device HE capabilities to testbed defaults.
7881 * 0-reset the device HE capabilities to supported config.
7882 */
7883 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
7884
7885 /* 8-bit unsigned value to configure TWT request support.
7886 * This attribute is used to configure the testbed device.
7887 * 1-enable, 0-disable.
7888 */
7889 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
7890
Hai Shalom899fcc72020-10-19 14:38:18 -07007891 /* 8-bit unsigned value to configure protection for Management
7892 * frames when PMF is enabled for the association.
7893 * This attribute is used to configure the testbed device.
7894 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
7895 */
7896 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
7897
7898 /* Flag attribute to inject Disassociation frame to the connected AP.
7899 * This attribute is used to configure the testbed device.
7900 */
7901 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
7902
7903 /* 8-bit unsigned value to configure an override for the RSNXE Used
7904 * subfield in the MIC control field of the FTE in FT Reassociation
7905 * Request frame.
7906 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
7907 * This attribute is used to configure the testbed device.
7908 * This attribute can be configured only when STA is in associated state
7909 * and the configuration is valid until the disconnection.
7910 */
7911 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
7912
7913 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
7914 * Switch Announcement) when STA is in connected state.
7915 * 0 - Default behavior, 1 - Ignore CSA.
7916 * This attribute is used to configure the testbed device.
7917 * This attribute can be configured only when STA is in associated state
7918 * and the configuration is valid until the disconnection.
7919 */
7920 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
7921
7922 /* Nested attribute values required to configure OCI (Operating Channel
7923 * Information). Attributes defined in enum
7924 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
7925 * This attribute is used to configure the testbed device.
7926 * This attribute can be configured only when STA is in associated state
7927 * and the configuration is valid until the disconnection.
7928 */
7929 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
7930
7931 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
7932 * Query timeout. If this configuration is enabled STA shall not send
7933 * Deauthentication frmae when SA Query times out (mainly, after a
7934 * channel switch when OCV is enabled).
7935 * 0 - Default behavior, 1 - Ignore SA Query timeout.
7936 * This attribute is used to configure the testbed device.
7937 * This attribute can be configured only when STA is in associated state
7938 * and the configuration is valid until the disconnection.
7939 */
7940 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
7941
7942 /* 8-bit unsigned value to configure the driver/firmware to start or
7943 * stop transmitting FILS discovery frames.
7944 * 0 - Stop transmitting FILS discovery frames
7945 * 1 - Start transmitting FILS discovery frames
7946 * This attribute is used to configure the testbed device.
7947 * This attribute can be configured only in AP mode and the
7948 * configuration is valid until AP restart.
7949 */
7950 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
7951
Hai Shalom60840252021-02-19 19:02:11 -08007952 /* 8-bit unsigned value to configure the driver/firmware to enable or
7953 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
7954 * information field.
7955 * 0 - Disable full bandwidth UL MU-MIMO subfield
7956 * 1 - Enable full bandwidth UL MU-MIMO subfield
7957 * This attribute is used to configure the testbed device.
7958 */
7959 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
7960
7961 /* 16-bit unsigned value to configure the driver with a specific BSS
7962 * max idle period to advertise in the BSS Max Idle Period element
7963 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
7964 * This attribute is used to configure the testbed device.
7965 */
7966 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
7967
7968 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
7969 * for data transmission.
7970 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
7971 * This attribute is used to configure the testbed device.
7972 */
7973 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
7974
7975 /* 8-bit unsigned value to configure the driver to disable data and
7976 * management response frame transmission to test the BSS max idle
7977 * feature.
7978 * 0 - Default behavior, 1 - Disable data and management response Tx.
7979 * This attribute is used to configure the testbed device.
7980 */
7981 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
7982
7983 /* 8-bit unsigned value to configure the driver/firmware to enable or
7984 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
7985 * information field.
7986 * 0 - Disable Punctured Preamble Rx subfield
7987 * 1 - Enable Punctured Preamble Rx subfield
7988 * This attribute is used to configure the testbed device.
7989 */
7990 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
7991
Roshan Pius3a1667e2018-07-03 15:17:14 -07007992 /* keep last */
7993 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
7994 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
7995 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
7996};
7997
7998/**
Hai Shalom899fcc72020-10-19 14:38:18 -07007999 * enum qca_wlan_twt_operation - Operation of the config TWT request
8000 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -08008001 * The response for the respective operations can be either synchronous or
8002 * asynchronous (wherever specified). If synchronous, the response to this
8003 * operation is obtained in the corresponding vendor command reply to the user
8004 * space. For the asynchronous case the response is obtained as an event with
8005 * the same operation type.
8006 *
8007 * Drivers shall support either of these modes but not both simultaneously.
8008 * This support for asynchronous mode is advertised through the flag
8009 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
8010 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -07008011 *
8012 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
8013 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08008014 * qca_wlan_vendor_attr_twt_setup. Depending upon the
8015 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
8016 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008017 *
8018 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
8019 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -08008020 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008021 *
8022 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
8023 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8024 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008025 * This terminate can either get triggered by the user space or can as well be
8026 * a notification from the firmware if it initiates a terminate.
8027 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8028 * the request from user space can either be a synchronous or asynchronous
8029 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008030 *
8031 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
8032 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8033 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008034 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8035 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008036 *
8037 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
8038 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8039 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -08008040 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
8041 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8042 * capability, this is either a synchronous or asynchronous operation.
8043 *
8044 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
8045 * combination of suspend and resume in a single request. Required parameters
8046 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
8047 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
8048 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8049 * capability, this is either a synchronous or asynchronous operation.
8050 *
8051 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
8052 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
8053 * session is setup. It's a synchronous operation.
8054 *
8055 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
8056 * Valid only after the TWT session is setup. It's a synchronous operation.
8057 *
8058 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
8059 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
8060 * operation.
8061 *
8062 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
8063 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shalom899fcc72020-10-19 14:38:18 -07008064 */
8065enum qca_wlan_twt_operation {
8066 QCA_WLAN_TWT_SET = 0,
8067 QCA_WLAN_TWT_GET = 1,
8068 QCA_WLAN_TWT_TERMINATE = 2,
8069 QCA_WLAN_TWT_SUSPEND = 3,
8070 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -08008071 QCA_WLAN_TWT_NUDGE = 5,
8072 QCA_WLAN_TWT_GET_STATS = 6,
8073 QCA_WLAN_TWT_CLEAR_STATS = 7,
8074 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
8075 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shalom899fcc72020-10-19 14:38:18 -07008076};
8077
8078/**
8079 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
8080 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8081 *
8082 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
8083 * operation of this request. Possible values are defined in enum
8084 * qca_wlan_twt_operation. The parameters for the respective operation is
8085 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
8086 *
8087 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
8088 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -08008089 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
8090 * or enum qca_wlan_vendor_attr_twt_stats based on the operation.
Hai Shalom899fcc72020-10-19 14:38:18 -07008091 */
8092enum qca_wlan_vendor_attr_config_twt {
8093 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
8094 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
8095 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
8096
8097 /* keep last */
8098 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
8099 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
8100 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
8101};
8102
8103/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008104 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
8105 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8106 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
8107 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
8108 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
8109 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
8110 * statistics of an unassociated station by specifying the MAC address in
8111 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
8112 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
8113 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
8114 * the statistics of all unassociated stations by specifying the Broadcast MAC
8115 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
8116 * above procedure. In the response, driver shall specify statistics
8117 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
8118 */
8119enum qca_wlan_vendor_attr_bss_filter {
8120 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
8121 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
8122 /* Other BSS filter type, unsigned 8 bit value. One of the values
8123 * in enum qca_wlan_vendor_bss_filter_type.
8124 */
8125 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
8126 /* Other BSS filter action, unsigned 8 bit value. One of the values
8127 * in enum qca_wlan_vendor_bss_filter_action.
8128 */
8129 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
8130 /* Array of nested attributes where each entry is the statistics
8131 * information of the specified station that belong to another BSS.
8132 * Attributes for each entry are taken from enum
8133 * qca_wlan_vendor_bss_filter_sta_stats.
8134 * Other BSS station configured in
8135 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
8136 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
8137 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
8138 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
8139 */
8140 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
8141
8142 /* keep last */
8143 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
8144 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
8145 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
8146};
8147
8148/**
8149 * enum qca_wlan_vendor_bss_filter_type - Type of
8150 * filter used in other BSS filter operations. Used by the vendor command
8151 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8152 *
8153 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
8154 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
8155 */
8156enum qca_wlan_vendor_bss_filter_type {
8157 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
8158 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
8159};
8160
8161/**
8162 * enum qca_wlan_vendor_bss_filter_action - Type of
8163 * action in other BSS filter operations. Used by the vendor command
8164 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8165 *
8166 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
8167 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
8168 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
8169 */
8170enum qca_wlan_vendor_bss_filter_action {
8171 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
8172 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
8173 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
8174};
8175
8176/**
8177 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
8178 * the statistics of a specific unassociated station belonging to another BSS.
8179 * The statistics provides information of the unassociated station
8180 * filtered by other BSS operation - such as MAC, signal value.
8181 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8182 *
8183 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
8184 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
8185 * of the station. Unsigned 8 bit number containing RSSI.
8186 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
8187 * driver for the last received RSSI. Unsigned 64 bit number containing
8188 * nanoseconds from the boottime.
8189 */
8190enum qca_wlan_vendor_bss_filter_sta_stats {
8191 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
8192 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
8193 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
8194 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
8195
8196 /* keep last */
8197 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
8198 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
8199 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
8200};
8201
Hai Shalomce48b4a2018-09-05 11:41:35 -07008202/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
8203 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
8204 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
8205 */
8206enum qca_wlan_nan_ext_subcmd_type {
8207 /* Subcmd of type NAN Enable Request */
8208 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
8209 /* Subcmd of type NAN Disable Request */
8210 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
8211};
8212
8213/**
8214 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
8215 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
8216 */
8217enum qca_wlan_vendor_attr_nan_params {
8218 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
8219 /* Carries NAN command for firmware component. Every vendor command
8220 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
8221 * payload containing the NAN command. NLA_BINARY attribute.
8222 */
8223 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
8224 /* Indicates the type of NAN command sent with
8225 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
8226 * describes the possible range of values. This attribute is mandatory
8227 * if the command being issued is either
8228 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
8229 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
8230 */
8231 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
8232 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
8233 * band. This attribute is mandatory when command type is
8234 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
8235 */
8236 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
8237 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
8238 * band. This attribute is optional and should be included when command
8239 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
8240 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
8241 */
8242 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
8243
8244 /* keep last */
8245 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
8246 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
8247 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
8248};
8249
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008250/**
Hai Shalom60840252021-02-19 19:02:11 -08008251 * qca_wlan_twt_setup_state: Represents the TWT session states.
8252 *
8253 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
8254 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
8255 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
8256 */
8257enum qca_wlan_twt_setup_state {
8258 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
8259 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
8260 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
8261};
8262
8263/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008264 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
8265 * TWT (Target Wake Time) setup request. These attributes are sent as part of
8266 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -07008267 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
8268 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008269 *
8270 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
8271 * Disable (flag attribute not present) - Individual TWT
8272 * Enable (flag attribute present) - Broadcast TWT.
8273 * Individual means the session is between the STA and the AP.
8274 * This session is established using a separate negotiation between
8275 * STA and AP.
8276 * Broadcast means the session is across multiple STAs and an AP. The
8277 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -07008278 * This is used in
8279 * 1. TWT SET Request and Response
8280 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008281 *
8282 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
8283 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -07008284 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008285 *
8286 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
8287 * Enable (flag attribute present) - TWT with trigger support.
8288 * Disable (flag attribute not present) - TWT without trigger support.
8289 * Trigger means the AP will send the trigger frame to allow STA to send data.
8290 * Without trigger, the STA will wait for the MU EDCA timer before
8291 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -07008292 * This is used in
8293 * 1. TWT SET Request and Response
8294 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008295 *
8296 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
8297 * 0 - Announced TWT - In this mode, STA may skip few service periods to
8298 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
8299 * NULL frame to AP.
8300 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07008301 * This is a required parameter for
8302 * 1. TWT SET Request and Response
8303 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008304 *
8305 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
8306 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -07008307 * If not provided then dialog ID will be set to zero.
8308 * This is an optional parameter for
8309 * 1. TWT SET Request and Response
8310 * 2. TWT GET Request and Response
8311 * 3. TWT TERMINATE Request and Response
8312 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -08008313 * Flow ID values from 0 to 254 represent a single TWT session
8314 * Flow ID value of 255 represents all TWT sessions for the following
8315 * 1. TWT TERMINATE Request and Response
8316 * 2. TWT SUSPEND Request and Response
8317 * 4. TWT CLEAR STATISTICS request
8318 * 5. TWT GET STATISTICS request and response
8319 * If an invalid dialog ID is provided, status
8320 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008321 *
8322 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
8323 * This attribute (exp) is used along with the mantissa to derive the
8324 * wake interval using the following formula:
8325 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
8326 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -07008327 * This is a required parameter for
8328 * 1. TWT SET Request and Response
8329 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008330 *
8331 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
8332 * Enable (flag attribute present) - Protection required.
8333 * Disable (flag attribute not present) - Protection not required.
8334 * If protection is enabled, then the AP will use protection
8335 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -07008336 * This is used in
8337 * 1. TWT SET Request and Response
8338 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008339 *
8340 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
8341 * This attribute is used as the SP offset which is the offset from
8342 * TSF after which the wake happens. The units are in microseconds. If
8343 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -07008344 * This is an optional parameter for
8345 * 1. TWT SET Request and Response
8346 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008347 *
8348 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07008349 * This is the duration of the service period. This is specified as
8350 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
8351 * This is a required parameter for
8352 * 1. TWT SET Request and Response
8353 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008354 *
8355 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
8356 * This attribute is used to configure wake interval mantissa.
8357 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -07008358 * This is a required parameter for
8359 * 1. TWT SET Request and Response
8360 * 2. TWT GET Response
8361 *
8362 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
8363 * This field is applicable for TWT response only.
8364 * This contains status values in enum qca_wlan_vendor_twt_status
8365 * and is passed to the userspace. This is used in TWT SET operation.
8366 * This is a required parameter for
8367 * 1. TWT SET Response
8368 * 2. TWT TERMINATE Response
8369 * 3. TWT SUSPEND Response
8370 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -08008371 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -07008372 *
8373 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
8374 * This field is applicable for TWT response only.
8375 * This field contains response type from the TWT responder and is
8376 * passed to the userspace. The values for this field are defined in
8377 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
8378 * response.
8379 *
8380 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
8381 * This field is applicable for TWT response only.
8382 * This field contains absolute TSF value of the wake time received
8383 * from the TWT responder and is passed to the userspace.
8384 * This is a required parameter for
8385 * 1. TWT SET Response
8386 * 2. TWT GET Response
8387 *
8388 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
8389 * Enable (flag attribute present) - Indicates that the TWT responder
8390 * supports reception of TWT information frame from the TWT requestor.
8391 * Disable (flag attribute not present) - Indicates that the responder
8392 * doesn't support reception of TWT information frame from requestor.
8393 * This is used in
8394 * 1. TWT SET Response
8395 * 2. TWT GET Response
8396 *
8397 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
8398 * Represents the MAC address of the peer for which the TWT session
8399 * is being configured. This is used in AP mode to represent the respective
8400 * client. In AP mode, this is an optional parameter for response and is
8401 * a required parameter for
8402 * 1. TWT SET Request
8403 * 2. TWT GET Request
8404 * 3. TWT TERMINATE Request
8405 * 4. TWT SUSPEND Request
8406 * In STA mode, this is an optional parameter in request and response for
8407 * the above four TWT operations.
Hai Shalom60840252021-02-19 19:02:11 -08008408 *
8409 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
8410 * Minimum tolerance limit of wake interval parameter in microseconds.
8411 *
8412 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
8413 * Maximum tolerance limit of wake interval parameter in microseconds.
8414 *
8415 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
8416 * Minimum tolerance limit of wake duration parameter in microseconds.
8417 *
8418 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
8419 * Maximum tolerance limit of wake duration parameter in microseconds.
8420 *
8421 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
8422 * TWT state for the given dialog id. The values for this are represented
8423 * by enum qca_wlan_twt_setup_state.
8424 * This is obtained through TWT GET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008425 */
8426enum qca_wlan_vendor_attr_twt_setup {
8427 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
8428 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
8429 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
8430 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
8431 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
8432 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
8433 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
8434 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
8435 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
8436 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
8437 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
8438
Hai Shalom899fcc72020-10-19 14:38:18 -07008439 /* TWT Response only attributes */
8440 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
8441 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
8442 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
8443 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
8444
8445 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -08008446 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
8447 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
8448 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
8449 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
8450 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07008451
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008452 /* keep last */
8453 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
8454 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
8455 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
8456};
8457
8458/**
Hai Shalom899fcc72020-10-19 14:38:18 -07008459 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
8460 * TWT operation
8461 *
8462 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
8463 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
8464 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
8465 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
8466 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
8467 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
8468 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
8469 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
8470 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
8471 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
8472 * request/response frame
8473 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
8474 * frame
8475 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
8476 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
8477 * unknown reason
8478 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
8479 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -08008480 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
8481 * invalid IE in the received TWT frame
8482 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
8483 * the responder are not in the specified range
8484 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
8485 * session due to request from the responder. Used on the TWT_TERMINATE
8486 * notification from the firmware.
8487 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
8488 * session due to roaming. Used on the TWT_TERMINATE notification from the
8489 * firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07008490 */
8491enum qca_wlan_vendor_twt_status {
8492 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
8493 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
8494 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
8495 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
8496 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
8497 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
8498 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
8499 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
8500 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
8501 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
8502 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
8503 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
8504 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
8505 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -08008506 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
8507 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
8508 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
8509 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shalom899fcc72020-10-19 14:38:18 -07008510};
8511
8512/**
8513 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008514 * TWT (Target Wake Time) resume request. These attributes are sent as part of
8515 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -07008516 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
8517 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008518 *
8519 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -07008520 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
8521 * These attributes are used as the SP offset which is the offset from TSF after
8522 * which the wake happens. The units are in microseconds. Please note that
8523 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
8524 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
8525 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
8526 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008527 *
8528 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
8529 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -07008530 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
8531 * and 4 for 64 bits.
8532 *
8533 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
8534 * Flow ID is the unique identifier for each TWT session. This attribute
8535 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -08008536 * Flow ID values from 0 to 254 represent a single TWT session
8537 * Flow ID value of 255 represents all TWT sessions.
8538 * If an invalid dialog id is provided, status
8539 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -07008540 *
8541 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
8542 * Represents the MAC address of the peer to which TWT Resume is
8543 * being sent. This is used in AP mode to represent the respective
8544 * client and is a required parameter. In STA mode, this is an optional
8545 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008546 */
8547enum qca_wlan_vendor_attr_twt_resume {
8548 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
8549 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
8550 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -07008551 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
8552 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
8553 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008554
8555 /* keep last */
8556 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
8557 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
8558 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
8559};
8560
8561/**
Hai Shalom60840252021-02-19 19:02:11 -08008562 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
8563 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
8564 * and resume in a single request. These attributes are sent as part of
8565 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8566 *
8567 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
8568 * Flow ID is the unique identifier for each TWT session. This attribute
8569 * represents the respective TWT session to suspend and resume.
8570 * Flow ID values from 0 to 254 represent a single TWT session
8571 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
8572 * and response.
8573 * If an invalid dialog id is provided, status
8574 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
8575 *
8576 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
8577 * This attribute is used as the SP offset which is the offset from
8578 * TSF after which the wake happens. The units are in microseconds.
8579 *
8580 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
8581 * This attribute represents the next TWT subfield size.
8582 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
8583 * and 4 for 64 bits.
8584 *
8585 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
8586 * Represents the MAC address of the peer to which TWT Suspend and Resume is
8587 * being sent. This is used in AP mode to represent the respective
8588 * client and is a required parameter. In STA mode, this is an optional
8589 * parameter.
8590 *
8591 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
8592 * This field contains absolute TSF value of the time at which the TWT
8593 * session will be resumed.
8594 */
8595enum qca_wlan_vendor_attr_twt_nudge {
8596 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
8597 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
8598 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
8599 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
8600 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
8601 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
8602
8603 /* keep last */
8604 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
8605 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
8606 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
8607};
8608
8609/**
8610 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
8611 * TWT (Target Wake Time) get statistics and clear statistics request.
8612 * These attributes are sent as part of
8613 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8614 *
8615 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
8616 * Flow ID is the unique identifier for each TWT session. This attribute
8617 * represents the respective TWT session for get and clear TWT statistics.
8618 * Flow ID values from 0 to 254 represent a single TWT session
8619 * Flow ID value of 255 represents all TWT sessions in
8620 * 1) TWT GET STATISTICS request and response
8621 * 2) TWT CLEAR STATISTICS request
8622 *
8623 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
8624 * Represents the MAC address of the peer for which TWT Statistics
8625 * is required.
8626 * In AP mode this is used to represent the respective
8627 * client and is a required parameter for
8628 * 1) TWT GET STATISTICS request and response
8629 * 2) TWT CLEAR STATISTICS request and response
8630 * In STA mode, this is an optional parameter.
8631 *
8632 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
8633 * This is the duration of the service period in microseconds.
8634 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8635 *
8636 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
8637 * Average of the actual wake duration observed so far. Unit is microseconds.
8638 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8639 *
8640 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
8641 * The number of TWT service periods elapsed so far.
8642 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8643 *
8644 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
8645 * This is the minimum value of the wake duration observed across
8646 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
8647 * microseconds.
8648 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8649 *
8650 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
8651 * This is the maximum value of wake duration observed across
8652 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
8653 * microseconds.
8654 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8655 *
8656 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
8657 * Average number of MPDUs transmitted successfully across
8658 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
8659 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8660 *
8661 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
8662 * Average number of MPDUs received successfully across
8663 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
8664 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8665 *
8666 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
8667 * Average number of bytes transmitted successfully across
8668 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
8669 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8670 *
8671 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
8672 * Average number of bytes received successfully across
8673 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
8674 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8675 *
8676 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
8677 * Status of the TWT GET STATISTICS request.
8678 * This contains status values in enum qca_wlan_vendor_twt_status
8679 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8680 */
8681enum qca_wlan_vendor_attr_twt_stats {
8682 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
8683 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
8684 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
8685 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
8686 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
8687 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
8688 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
8689 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
8690 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
8691 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
8692 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
8693 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
8694 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
8695
8696 /* keep last */
8697 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
8698 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
8699 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
8700};
8701
8702/**
8703 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
8704 * supported by the device and the peer.
8705 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
8706 *
8707 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
8708 * TWT non-scheduling STA. This capability is advertised in the HE
8709 * Capability/Extended Capabilities information element in the
8710 * Association Request frame by the device.
8711 *
8712 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
8713 * the TWT scheduling AP. This capability is advertised in the Extended
8714 * Capabilities/HE Capabilities information element.
8715 *
8716 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
8717 * for the broadcast TWT functionality. On the responder side, this indicates
8718 * support for the role of broadcast TWT scheduling functionality. This
8719 * capability is advertised in the HE Capabilities information element.
8720 *
8721 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
8722 * This capability is advertised in the HE Capabilities information element.
8723 *
8724 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
8725 * that it mandates the associated HE STAs to support TWT. This capability is
8726 * advertised by AP in the HE Operation Parameters field of the HE Operation
8727 * information element.
8728 */
8729enum qca_wlan_twt_capa {
8730 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
8731 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
8732 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
8733 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
8734 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
8735};
8736
8737/**
8738 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
8739 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
8740 * operation.
8741 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
8742 * Represents the MAC address of the peer for which the TWT capabilities
8743 * are being queried. This is used in AP mode to represent the respective
8744 * client. In STA mode, this is an optional parameter.
8745 *
8746 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
8747 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
8748 * enum qca_wlan_twt_capa.
8749 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
8750 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
8751 * enum qca_wlan_twt_capa.
8752 */
8753enum qca_wlan_vendor_attr_twt_capability {
8754 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
8755 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
8756 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
8757 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
8758
8759 /* keep last */
8760 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
8761 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
8762 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
8763};
8764
8765/**
Hai Shalom899fcc72020-10-19 14:38:18 -07008766 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
8767 * the TWT responder
8768 *
8769 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
8770 * parameters that are different from TWT requesting STA suggested
8771 * or demanded TWT parameters
8772 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
8773 * parameters that are different from TWT requesting STA TWT suggested
8774 * or demanded parameters
8775 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
8776 * setup
8777 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
8778 * setup.
8779 */
8780enum qca_wlan_vendor_twt_setup_resp_type {
8781 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
8782 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
8783 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
8784 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
8785};
8786
8787/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008788 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
8789 * Represents the setup type being requested for TWT.
8790 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
8791 * parameters but relying on AP to fill the parameters during the negotiation.
8792 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
8793 * values which the AP may accept or AP may provide alternative parameters
8794 * which the STA may accept.
8795 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
8796 * alternate parameters than the requested ones.
8797 */
8798enum qca_wlan_vendor_twt_setup_req_type {
8799 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
8800 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
8801 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
8802};
8803
8804/**
8805 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
8806 *
8807 * Indicates the type of roam scan event sent by firmware/driver.
8808 *
8809 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
8810 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
8811 */
8812enum qca_wlan_roam_scan_event_type {
8813 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
8814 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
8815};
8816
8817/**
8818 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
8819 *
8820 * Indicates the reason for triggering roam scan by firmware/driver.
8821 *
8822 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
8823 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
8824 */
8825enum qca_wlan_roam_scan_trigger_reason {
8826 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
8827 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
8828};
8829
8830/**
8831 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
8832 * roam scan related details from driver/firmware to user space. enum values
8833 * are used for NL attributes sent with
8834 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
8835 */
8836enum qca_wlan_vendor_attr_roam_scan {
8837 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
8838 /* Encapsulates type of roam scan event being reported. enum
8839 * qca_wlan_roam_scan_event_type describes the possible range of
8840 * values. u32 attribute.
8841 */
8842 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
8843 /* Encapsulates reason for triggering roam scan. enum
8844 * qca_wlan_roam_scan_trigger_reason describes the possible range of
8845 * values. u32 attribute.
8846 */
8847 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
8848
8849 /* keep last */
8850 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
8851 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
8852 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
8853};
8854
8855/**
8856 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
8857 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
8858 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -07008859 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
8860 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
8861 * with phase
8862 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008863 */
8864enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008865 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -07008866 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
8867 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
8868};
8869
8870/**
8871 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
8872 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
8873 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
8874 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
8875 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
8876 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
8877 * is provided by one or more of below attributes:
8878 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
8879 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
8880 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
8881 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
8882 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
8883 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
8884 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
8885 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
8886 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
8887 */
8888enum qca_wlan_vendor_cfr_capture_type {
8889 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
8890 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
8891 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
8892 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
8893 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
8894 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008895};
8896
8897/**
8898 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
8899 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
8900 * Channel Frequency Response capture parameters and enable periodic CFR
8901 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -07008902 *
8903 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
8904 * MAC address of peer. This is for CFR version 1 only.
8905 *
8906 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
8907 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
8908 * capture. If this attribute is not present, peer CFR capture is disabled.
8909 *
8910 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
8911 * BW of measurement, attribute uses the values in enum nl80211_chan_width
8912 * Supported values: 20, 40, 80, 80+80, 160.
8913 * Note that all targets may not support all bandwidths.
8914 * This attribute is mandatory for version 1 if attribute
8915 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
8916 *
8917 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
8918 * Periodicity of CFR measurement in milliseconds.
8919 * Periodicity should be a multiple of Base timer.
8920 * Current Base timer value supported is 10 milliseconds (default).
8921 * 0 for one shot capture.
8922 * This attribute is mandatory for version 1 if attribute
8923 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
8924 *
8925 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
8926 * Method used to capture Channel Frequency Response.
8927 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
8928 * This attribute is mandatory for version 1 if attribute
8929 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
8930 *
8931 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
8932 * Enable periodic CFR capture.
8933 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
8934 * If this attribute is not present, periodic CFR capture is disabled.
8935 *
8936 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
8937 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
8938 * can't be enabled at same time. This attribute is mandatory if target
8939 * support both versions and use one of them.
8940 *
8941 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
8942 * This attribute is mandatory for version 2 if
8943 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
8944 * Bits 15:0 bitfield indicates which group is to be enabled.
8945 * Bits 31:16 Reserved for future use.
8946 *
8947 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
8948 * CFR capture duration in microsecond. This attribute is mandatory for
8949 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
8950 *
8951 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
8952 * CFR capture interval in microsecond. This attribute is mandatory for
8953 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
8954 *
8955 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
8956 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
8957 * This attribute is mandatory for version 2.
8958 *
8959 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
8960 * Bitfield indicating which user in the current UL MU transmissions are
8961 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
8962 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
8963 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
8964 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
8965 * reserved for future use. This is for CFR version 2 only.
8966 *
8967 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
8968 * Indicates the number of consecutive RX frames to be skipped before CFR
8969 * capture is enabled again. This is for CFR version 2 only.
8970 *
8971 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
8972 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
8973 *
8974 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
8975 * the following group attributes:
8976 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
8977 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
8978 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
8979 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
8980 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
8981 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
8982 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
8983 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
8984 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
8985 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
8986 *
8987 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
8988 * Target supports multiple groups for some configurations. The group number
8989 * can be any value between 0 and 15. This is for CFR version 2 only.
8990 *
8991 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
8992 * Transmitter address which is used to filter frames. This MAC address takes
8993 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
8994 * version 2 only.
8995 *
8996 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
8997 * Receiver address which is used to filter frames. This MAC address takes
8998 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
8999 * version 2 only.
9000 *
9001 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
9002 * Mask of transmitter address which is used to filter frames. This is for CFR
9003 * version 2 only.
9004 *
9005 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
9006 * Mask of receiver address which is used to filter frames. This is for CFR
9007 * version 2 only.
9008 *
9009 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
9010 * Indicates frames with a specific NSS will be filtered for CFR capture.
9011 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
9012 * capture to be done for frames matching the NSS specified within this bitmask.
9013 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
9014 * bit 0 : NSS 1
9015 * bit 1 : NSS 2
9016 * ...
9017 * bit 7 : NSS 8
9018 *
9019 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
9020 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
9021 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
9022 * capture to be done for frames matching the bandwidths specified within this
9023 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
9024 * numerated in enum nl80211_band (although not all bands may be supported
9025 * by a given device).
9026 *
9027 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
9028 * Management frames matching the subtype filter categories will be filtered in
9029 * by MAC for CFR capture. This is a bitmask in which each bit represents the
9030 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
9031 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
9032 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
9033 *
9034 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
9035 * Control frames matching the subtype filter categories will be filtered in by
9036 * MAC for CFR capture. This is a bitmask in which each bit represents the
9037 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
9038 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
9039 *
9040 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
9041 * Data frames matching the subtype filter categories will be filtered in by
9042 * MAC for CFR capture. This is a bitmask in which each bit represents the
9043 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
9044 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009045 */
9046enum qca_wlan_vendor_peer_cfr_capture_attr {
9047 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009048 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009049 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009050 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009051 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009052 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009053 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -07009054 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
9055 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
9056 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
9057 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
9058 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
9059 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
9060 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
9061 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
9062 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
9063 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
9064 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
9065 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
9066 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
9067 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
9068 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
9069 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
9070 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
9071 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
9072 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009073
9074 /* Keep last */
9075 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
9076 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
9077 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
9078};
9079
Hai Shalom74f70d42019-02-11 14:42:39 -08009080/**
9081 * enum qca_wlan_throughput_level - Current throughput level
9082 *
9083 * Indicates the current level of throughput calculated by the driver. The
9084 * driver may choose different thresholds to decide whether the throughput level
9085 * is low or medium or high based on variety of parameters like physical link
9086 * capacity of the current connection, the number of packets being dispatched
9087 * per second, etc. The throughput level events might not be consistent with the
9088 * actual current throughput value being observed.
9089 *
9090 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
9091 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
9092 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
9093 */
9094enum qca_wlan_throughput_level {
9095 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
9096 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
9097 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
9098};
9099
9100/**
9101 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
9102 * report throughput changes from the driver to user space. enum values are used
9103 * for netlink attributes sent with
9104 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
9105 */
9106enum qca_wlan_vendor_attr_throughput_change {
9107 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
9108 /* Indicates the direction of throughput in which the change is being
9109 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
9110 */
9111 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
9112 /* Indicates the newly observed throughput level. enum
9113 * qca_wlan_throughput_level describes the possible range of values.
9114 * u8 attribute.
9115 */
9116 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
9117 /* Indicates the driver's guidance on the new value to be set to
9118 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
9119 * driver may optionally include this attribute.
9120 */
9121 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
9122 /* Indicates the driver's guidance on the new value to be set to
9123 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
9124 * values are from -31 to 31. The driver may optionally include this
9125 * attribute.
9126 */
9127 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
9128 /* Indicates the driver's guidance on the new value to be set to
9129 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
9130 * optionally include this attribute.
9131 */
9132 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
9133
9134 /* keep last */
9135 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
9136 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
9137 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
9138};
9139
9140/**
9141 * enum qca_coex_config_profiles - This enum defines different types of
9142 * traffic streams that can be prioritized one over the other during coex
9143 * scenarios.
9144 * The types defined in this enum are categorized in the below manner.
9145 * 0 - 31 values corresponds to WLAN
9146 * 32 - 63 values corresponds to BT
9147 * 64 - 95 values corresponds to Zigbee
9148 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
9149 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
9150 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
9151 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
9152 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
9153 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
9154 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
9155 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
9156 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
9157 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
9158 * @QCA_BT_A2DP: Prioritize BT A2DP
9159 * @QCA_BT_BLE: Prioritize BT BLE
9160 * @QCA_BT_SCO: Prioritize BT SCO
9161 * @QCA_ZB_LOW: Prioritize Zigbee Low
9162 * @QCA_ZB_HIGH: Prioritize Zigbee High
9163 */
9164enum qca_coex_config_profiles {
9165 /* 0 - 31 corresponds to WLAN */
9166 QCA_WIFI_STA_DISCOVERY = 0,
9167 QCA_WIFI_STA_CONNECTION = 1,
9168 QCA_WIFI_STA_CLASS_3_MGMT = 2,
9169 QCA_WIFI_STA_DATA = 3,
9170 QCA_WIFI_STA_ALL = 4,
9171 QCA_WIFI_SAP_DISCOVERY = 5,
9172 QCA_WIFI_SAP_CONNECTION = 6,
9173 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
9174 QCA_WIFI_SAP_DATA = 8,
9175 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -07009176 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -08009177 /* 32 - 63 corresponds to BT */
9178 QCA_BT_A2DP = 32,
9179 QCA_BT_BLE = 33,
9180 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -07009181 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -08009182 /* 64 - 95 corresponds to Zigbee */
9183 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -07009184 QCA_ZB_HIGH = 65,
9185 QCA_ZB_CASE_MAX = 95,
9186 /* 0xff is default value if the u8 profile value is not set. */
9187 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
9188};
9189
9190/**
9191 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
9192 * This enum defines the valid set of values of coex configuration types. These
9193 * values may used by attribute
9194 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
9195 *
9196 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
9197 * weights to default values.
9198 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
9199 * weights with configurability value.
9200 */
9201enum qca_vendor_attr_coex_config_types {
9202 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
9203 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
9204 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -08009205};
9206
9207/**
9208 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
9209 *
9210 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
9211 * length array of 8-bit values from enum qca_coex_config_profiles.
9212 * FW will prioritize the profiles in the order given in the array encapsulated
9213 * in this attribute.
9214 * For example:
9215 * -----------------------------------------------------------------------
9216 * | 1 | 34 | 32 | 65 |
9217 * -----------------------------------------------------------------------
9218 * If the attribute contains the values defined in above array then it means
9219 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
9220 * 2) BT_SCO has priority over BT_A2DP.
9221 * 3) BT_A2DP has priority over ZIGBEE HIGH.
9222 * Profiles which are not listed in this array shall not be preferred over the
9223 * profiles which are listed in the array as a part of this attribute.
9224 */
9225enum qca_vendor_attr_coex_config {
9226 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
9227 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
9228
9229 /* Keep last */
9230 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
9231 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
9232 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
9233};
9234
9235/**
Hai Shalom021b0b52019-04-10 11:17:58 -07009236 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
9237 * attributes
9238 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
9239 *
9240 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
9241 * Indicate config type.
9242 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
9243 *
9244 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
9245 * Indicate the Priority 1 profiles.
9246 * The profiles are 8-bit values from enum qca_coex_config_profiles.
9247 * In same priority level, maximum to 4 profiles can be set here.
9248 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
9249 * Indicate the Priority 2 profiles.
9250 * The profiles are 8-bit values from enum qca_coex_config_profiles.
9251 * In same priority level, maximum to 4 profiles can be set here.
9252 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
9253 * Indicate the Priority 3 profiles.
9254 * The profiles are 8-bit values from enum qca_coex_config_profiles.
9255 * In same priority level, maximum to 4 profiles can be set here.
9256 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
9257 * Indicate the Priority 4 profiles.
9258 * The profiles are 8-bit values from enum qca_coex_config_profiles.
9259 * In same priority level, maximum to 4 profiles can be set here.
9260 * NOTE:
9261 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
9262 * arrangement:
9263 * 1: In the same u32 attribute (priority x), the profiles enum values own
9264 * same priority level.
9265 * 2: 0xff is default value if the u8 profile value is not set.
9266 * 3: max to 4 rules/profiles in same priority level.
9267 * 4: max to 4 priority level (priority 1 - priority 4)
9268 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
9269 * hybrid rules not support.
9270 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
9271 * remain blank to reset all parameters.
9272 * For example:
9273 *
9274 * If the attributes as follow:
9275 * priority 1:
9276 * ------------------------------------
9277 * | 0xff | 0 | 1 | 2 |
9278 * ------------------------------------
9279 * priority 2:
9280 * -------------------------------------
9281 * | 0xff | 0xff | 0xff | 32 |
9282 * -------------------------------------
9283 * priority 3:
9284 * -------------------------------------
9285 * | 0xff | 0xff | 0xff | 65 |
9286 * -------------------------------------
9287 * then it means:
9288 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
9289 * owns same priority level.
9290 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
9291 * has priority over BT_A2DP and ZB_HIGH.
9292 * 3: BT_A2DP has priority over ZB_HIGH.
9293 */
9294
9295enum qca_vendor_attr_coex_config_three_way {
9296 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
9297 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
9298 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
9299 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
9300 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
9301 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
9302
9303 /* Keep last */
9304 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
9305 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
9306 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
9307};
9308
9309/**
Hai Shalom74f70d42019-02-11 14:42:39 -08009310 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
9311 *
9312 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
9313 * (STA/AP) for the connected link.
9314 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
9315 * &struct nl80211_sta_flag_update for the respective connected link. MAC
9316 * address of the peer represented by
9317 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
9318 */
9319enum qca_wlan_vendor_attr_link_properties {
9320 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
9321 /* 1 - 3 are reserved */
9322 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
9323 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
9324
9325 /* Keep last */
9326 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
9327 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
9328 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
9329};
9330
Hai Shalom021b0b52019-04-10 11:17:58 -07009331/**
9332 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
9333 * This enum defines the valid set of values of peer stats cache types. These
9334 * values are used by attribute
9335 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
9336 *
9337 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
9338 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
9339 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
9340 * statistics
9341 */
9342enum qca_vendor_attr_peer_stats_cache_type {
9343 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
9344
9345 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
9346 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
9347 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
9348};
9349
9350/**
9351 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
9352 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
9353 * Information in these attributes is used to flush peer rate statistics from
9354 * the driver to user application.
9355 *
9356 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
9357 * Indicate peer statistics cache type.
9358 * The statistics types are 32-bit values from
9359 * enum qca_vendor_attr_peer_stats_cache_type.
9360 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
9361 * of size 6 octets, representing the peer MAC address.
9362 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
9363 * containing buffer of statistics to send to application layer entity.
9364 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
9365 * representing a cookie for peer unique session.
9366 */
9367enum qca_wlan_vendor_attr_peer_stats_cache_params {
9368 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
9369
9370 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
9371 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
9372 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
9373 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
9374
9375 /* Keep last */
9376 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
9377 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
9378 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
9379};
9380
9381/**
9382 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
9383 * This enum defines all the possible states of Zigbee, which can be
9384 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
9385 *
9386 * @ZIGBEE_IDLE: Zigbee in idle state
9387 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
9388 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
9389 * @ZIGBEE_JOIN: Zigbee joining network
9390 * @ZIGBEE_NETWORK_UP: Zigbee network is up
9391 * @ZIGBEE_HMI: Zigbee in HMI mode
9392 */
9393enum qca_mpta_helper_attr_zigbee_state {
9394 ZIGBEE_IDLE = 0,
9395 ZIGBEE_FORM_NETWORK = 1,
9396 ZIGBEE_WAIT_JOIN = 2,
9397 ZIGBEE_JOIN = 3,
9398 ZIGBEE_NETWORK_UP = 4,
9399 ZIGBEE_HMI = 5,
9400};
9401
9402/*
9403 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
9404 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
9405 */
9406enum qca_mpta_helper_vendor_attr {
9407 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
9408 /* Optional attribute used to update Zigbee state.
9409 * enum qca_mpta_helper_attr_zigbee_state.
9410 * NLA_U32 attribute.
9411 */
9412 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
9413 /* Optional attribute used to configure WLAN duration for Shape-OCS
9414 * during interrupt.
9415 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
9416 * Value range 0 ~ 300 (ms).
9417 * NLA_U32 attribute.
9418 */
9419 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
9420 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
9421 * during interrupt.
9422 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
9423 * Value range 0 ~ 300 (ms).
9424 * NLA_U32 attribute.
9425 */
9426 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
9427 /* Optional attribute used to configure WLAN duration for Shape-OCS
9428 * monitor period.
9429 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
9430 * Value range 0 ~ 300 (ms)
9431 * NLA_U32 attribute
9432 */
9433 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
9434 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
9435 * monitor period.
9436 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
9437 * Value range 0 ~ 300 (ms)
9438 * NLA_U32 attribute
9439 */
9440 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
9441 /* Optional attribute used to configure OCS interrupt duration.
9442 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
9443 * Value range 1000 ~ 20000 (ms)
9444 * NLA_U32 attribute
9445 */
9446 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
9447 /* Optional attribute used to configure OCS monitor duration.
9448 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
9449 * Value range 1000 ~ 20000 (ms)
9450 * NLA_U32 attribute
9451 */
9452 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
9453 /* Optional attribute used to notify WLAN firmware the current Zigbee
9454 * channel.
9455 * Value range 11 ~ 26
9456 * NLA_U32 attribute
9457 */
9458 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
9459 /* Optional attribute used to configure WLAN mute duration.
9460 * Value range 0 ~ 400 (ms)
9461 * NLA_U32 attribute
9462 */
9463 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
9464
9465 /* keep last */
9466 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
9467 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
9468 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
9469};
9470
Hai Shalom81f62d82019-07-22 12:10:00 -07009471/**
9472 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
9473 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
9474 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
9475 *
9476 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
9477 * to request the driver to start reporting Beacon frames.
9478 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
9479 * request the driver to stop reporting Beacon frames.
9480 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
9481 * userspace to report received Beacon frames.
9482 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
9483 * to indicate that the driver is going to pause reporting Beacon frames.
9484 */
9485enum qca_wlan_vendor_beacon_reporting_op_types {
9486 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
9487 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
9488 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
9489 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
9490};
9491
9492/**
9493 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
9494 * of reasons for which the driver is pausing reporting Beacon frames. Will be
9495 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
9496 *
9497 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
9498 * reasons.
9499 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
9500 * driver/firmware is starting a scan.
9501 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
9502 * driver/firmware disconnects from the ESS and indicates the disconnection to
9503 * userspace (non-seamless roaming case). This reason code will be used by the
9504 * driver/firmware to indicate stopping of beacon report events. Userspace will
9505 * need to start beacon reporting again (if desired) by sending vendor command
9506 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
9507 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
9508 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
9509 * completed.
9510 */
9511enum qca_wlan_vendor_beacon_reporting_pause_reasons {
9512 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
9513 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
9514 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
9515};
9516
9517/*
9518 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
9519 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
9520 */
9521enum qca_wlan_vendor_attr_beacon_reporting_params {
9522 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
9523 /* Specifies the type of operation that the vendor command/event is
9524 * intended for. Possible values for this attribute are defined in
9525 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
9526 */
9527 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
9528 /* Optionally set by userspace to request the driver to report Beacon
9529 * frames using asynchronous vendor events when the
9530 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9531 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
9532 * If this flag is not set, the driver will only update Beacon frames in
9533 * cfg80211 scan cache but not send any vendor events.
9534 */
9535 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
9536 /* Optionally used by userspace to request the driver/firmware to report
9537 * Beacon frames periodically when the
9538 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9539 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
9540 * u32 attribute, indicates the period of Beacon frames to be reported
9541 * and in the units of beacon interval.
9542 * If this attribute is missing in the command, then the default value
9543 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
9544 * Zero is an invalid value.
9545 * If a valid value is received for this attribute, the driver will
9546 * update the cfg80211 scan cache periodically as per the value received
9547 * in this attribute in addition to updating the cfg80211 scan cache
9548 * when there is significant change in Beacon frame IEs.
9549 */
9550 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
9551 /* Used by the driver to encapsulate the SSID when the
9552 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9553 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
9554 * u8 array with a maximum size of 32.
9555 *
9556 * When generating beacon report from non-MBSSID Beacon frame, the SSID
9557 * will be taken from the SSID element of the received Beacon frame.
9558 *
9559 * When generating beacon report from Multiple BSSID Beacon frame and if
9560 * the BSSID of the current connected BSS matches the BSSID of the
9561 * transmitting BSS, the SSID will be taken from the SSID element of the
9562 * received Beacon frame.
9563 *
9564 * When generating beacon report from Multiple BSSID Beacon frame and if
9565 * the BSSID of the current connected BSS matches the BSSID of one of
9566 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
9567 * included in the nontransmitted BSS profile whose derived BSSID is
9568 * same as the BSSID of the current connected BSS. When there is no
9569 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
9570 * of current connected* BSS, this attribute will not be present.
9571 */
9572 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
9573 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
9574 * currently connected to when the
9575 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9576 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
9577 * fixed size of 6 bytes.
9578 *
9579 * When generating beacon report from a Multiple BSSID beacon and the
9580 * current connected BSSID matches one of the nontransmitted BSSIDs in a
9581 * Multiple BSSID set, this BSSID will be that particular nontransmitted
9582 * BSSID and not the transmitted BSSID (i.e., the transmitting address
9583 * of the Beacon frame).
9584 */
9585 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
9586 /* Used by the driver to encapsulate the frequency in MHz on which
9587 * the Beacon frame was received when the
9588 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
9589 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
9590 * u32 attribute.
9591 */
9592 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
9593 /* Used by the driver to encapsulate the Beacon interval
9594 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9595 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
9596 * u16 attribute. The value will be copied from the Beacon frame and the
9597 * units are TUs.
9598 */
9599 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
9600 /* Used by the driver to encapsulate the Timestamp field from the Beacon
9601 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
9602 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
9603 * u64 attribute.
9604 */
9605 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
9606 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
9607 * Beacon frame is received in the driver when the
9608 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9609 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
9610 * the units of nanoseconds. This value is expected to have accuracy of
9611 * about 10 ms.
9612 */
9613 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
9614 /* Used by the driver to encapsulate the IEs of the Beacon frame from
9615 * which this event is generated when the
9616 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9617 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
9618 */
9619 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
9620 /* Used by the driver to specify the reason for the driver/firmware to
9621 * pause sending beacons to userspace when the
9622 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9623 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
9624 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
9625 * attribute.
9626 */
9627 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
9628 /* Used by the driver to specify whether the driver will automatically
9629 * resume reporting beacon events to userspace later (for example after
9630 * the ongoing off-channel activity is completed etc.) when the
9631 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9632 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
9633 */
9634 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
9635 /* Optionally set by userspace to request the driver not to resume
9636 * beacon reporting after a pause is completed, when the
9637 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9638 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
9639 * If this flag is set, the driver will not resume beacon reporting
9640 * after any pause in beacon reporting is completed. Userspace has to
9641 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
9642 * to initiate beacon reporting again. If this flag is set in the recent
9643 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
9644 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
9645 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
9646 * set by the driver. Setting this flag until and unless there is a
9647 * specific need is not recommended as there is a chance of some beacons
9648 * received after pause command and next start command being not
9649 * reported.
9650 */
9651 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
9652
9653 /* Keep last */
9654 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
9655 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
9656 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
9657};
9658
9659/**
9660 * enum qca_vendor_interop_issues_ap_type - Interop issue types
9661 * This enum defines the valid set of values of interop issue types. These
9662 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
9663 *
9664 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
9665 * when the STA's Qpower feature is enabled.
9666 */
9667enum qca_vendor_interop_issues_ap_type {
9668 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
9669 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
9670};
9671
9672/**
9673 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
9674 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
9675 *
9676 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
9677 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
9678 * 32-bit unsigned value. The values defined in enum
9679 * qca_vendor_interop_issues_ap_type are used.
9680 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
9681 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
9682 * It is present and mandatory for the command but is not used for the event
9683 * since only a single BSSID is reported in an event.
9684 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
9685 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
9686 * attribute in command case and without such encapsulation in the event case.
9687 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
9688 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
9689 */
9690enum qca_vendor_attr_interop_issues_ap {
9691 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
9692 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
9693 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
9694 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
9695 /* keep last */
9696 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
9697 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
9698 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
9699};
9700
Hai Shalomc3565922019-10-28 11:58:20 -07009701/**
9702 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
9703 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
9704 *
9705 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
9706 * a virtual device.
9707 *
9708 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
9709 * a physical device.
9710 */
9711enum qca_vendor_oem_device_type {
9712 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
9713 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
9714};
9715
9716/**
9717 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
9718 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
9719 *
Hai Shalom899fcc72020-10-19 14:38:18 -07009720 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
9721 * used to set/query the data to/from the firmware. On query, the same
9722 * attribute is used to carry the respective data in the reply sent by the
9723 * driver to userspace. The request to set/query the data and the format of the
9724 * respective data from the firmware are embedded in the attribute. The
9725 * maximum size of the attribute payload is 1024 bytes.
9726 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
9727 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -07009728 *
9729 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
9730 * based on this field. This optional attribute is included to specify whether
9731 * the device type is a virtual device or a physical device for the
9732 * command/event. This attribute can be omitted for a virtual device (default)
9733 * command/event.
9734 * This u8 attribute is used to carry information for the device type using
9735 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -07009736 *
9737 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
9738 * is set when the userspace queries data from the firmware. This attribute
9739 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -07009740 */
9741enum qca_wlan_vendor_attr_oem_data_params {
9742 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
9743 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
9744 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -07009745 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -07009746
9747 /* keep last */
9748 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
9749 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
9750 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
9751};
9752
9753/**
9754 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
9755 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
9756 *
9757 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
9758 * Nested attribute containing multiple ranges with following attributes:
9759 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
9760 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
9761 *
9762 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
9763 * Starting center frequency in MHz.
9764 *
9765 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
9766 * Ending center frequency in MHz.
9767 */
9768enum qca_wlan_vendor_attr_avoid_frequency_ext {
9769 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
9770 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
9771 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
9772 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
9773
9774 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
9775 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
9776 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
9777};
9778
9779/*
9780 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
9781 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
9782 */
9783enum qca_wlan_vendor_attr_add_sta_node_params {
9784 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
9785 /* 6 byte MAC address of STA */
9786 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
9787 /* Authentication algorithm used by the station of size u16;
9788 * defined in enum nl80211_auth_type.
9789 */
9790 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
9791
9792 /* keep last */
9793 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
9794 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
9795 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
9796};
9797
9798/**
9799 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
9800 * This enum defines the valid set of values of BT coex chain mode.
9801 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
9802 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
9803 *
9804 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
9805 * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
9806 */
9807enum qca_btc_chain_mode {
9808 QCA_BTC_CHAIN_SHARED = 0,
9809 QCA_BTC_CHAIN_SEPARATED = 1,
9810};
9811
9812/**
9813 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
9814 * chain mode.
9815 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
9816 *
9817 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
9818 * Indicates the BT coex chain mode, are 32-bit values from
9819 * enum qca_btc_chain_mode. This attribute is mandatory.
9820 *
9821 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
9822 * If set, vdev should be restarted when BT coex chain mode is updated.
9823 * This attribute is optional.
9824 */
9825enum qca_vendor_attr_btc_chain_mode {
9826 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
9827 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
9828 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
9829
9830 /* Keep last */
9831 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
9832 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
9833 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
9834};
9835
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08009836/**
9837 * enum qca_vendor_wlan_sta_flags - Station feature flags
9838 * Bits will be set to 1 if the corresponding features are enabled.
9839 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
9840 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
9841 for the station
9842 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
9843 for the station
9844 */
9845enum qca_vendor_wlan_sta_flags {
9846 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
9847 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
9848 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
9849};
9850
9851/**
9852 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
9853 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
9854 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
9855 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
9856 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
9857 */
9858enum qca_vendor_wlan_sta_guard_interval {
9859 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
9860 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
9861 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
9862 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
9863};
9864
9865/**
9866 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
9867 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
9868 *
9869 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -07009870 * Required attribute in request for AP mode only, 6-byte MAC address,
9871 * corresponding to the station's MAC address for which information is
9872 * requested. For STA mode this is not required as the info always correspond
9873 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08009874 *
9875 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
9876 * Optionally used in response, u32 attribute, contains a bitmap of different
9877 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
9878 *
9879 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
9880 * Optionally used in response, u32 attribute, possible values are defined in
9881 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
9882 * Guard interval used by the station.
9883 *
9884 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
9885 * Optionally used in response, u32 attribute, used in AP mode only.
9886 * Value indicates the number of data frames received from station with retry
9887 * bit set to 1 in FC.
9888 *
9889 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
9890 * Optionally used in response, u32 attribute, used in AP mode only.
9891 * Counter for number of data frames with broadcast or multicast address in
9892 * the destination address received from the station.
9893 *
9894 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
9895 * Optionally used in response, u32 attribute, used in both STA and AP modes.
9896 * Value indicates the number of data frames successfully transmitted only
9897 * after retrying the packets and for which the TX status has been updated
9898 * back to host from target.
9899 *
9900 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -07009901 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08009902 * Value indicates the number of data frames not transmitted successfully even
9903 * after retrying the packets for the number of times equal to the total number
9904 * of retries allowed for that packet and for which the TX status has been
9905 * updated back to host from target.
9906 *
9907 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
9908 * Optionally used in response, u32 attribute, used in AP mode only.
9909 * Counter in the target for the number of data frames successfully transmitted
9910 * to the station.
9911 *
9912 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
9913 * Optionally used in response, u32 attribute, used in AP mode only.
9914 * Value indicates the number of data frames successfully transmitted only
9915 * after retrying the packets.
9916 *
9917 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -07009918 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08009919 * Value indicates the number of data frames not transmitted successfully even
9920 * after retrying the packets for the number of times equal to the total number
9921 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -07009922 *
9923 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
9924 * the STA mode only. Represent the number of probe requests sent by the STA
9925 * while attempting to roam on missing certain number of beacons from the
9926 * connected AP. If queried in the disconnected state, this represents the
9927 * count for the last connected state.
9928 *
9929 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
9930 * the STA mode. Represent the number of probe responses received by the station
9931 * while attempting to roam on missing certain number of beacons from the
9932 * connected AP. When queried in the disconnected state, this represents the
9933 * count when in last connected state.
9934 *
9935 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
9936 * STA mode only. Represents the total number of frames sent out by STA
9937 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
9938 * only for the connect session. Represents the count of last connected session,
9939 * when queried in the disconnected state.
9940 *
9941 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
9942 * Total number of RTS sent out by the STA. This data is maintained per connect
9943 * session. Represents the count of last connected session, when queried in the
9944 * disconnected state.
9945 *
9946 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
9947 * STA mode.Represent the number of RTS transmission failure that reach retry
9948 * limit. This data is maintained per connect session. Represents the count of
9949 * last connected session, when queried in the disconnected state.
9950 *
9951 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
9952 * the STA mode. Represent the total number of non aggregated frames transmitted
9953 * by the STA. This data is maintained per connect session. Represents the count
9954 * of last connected session, when queried in the disconnected state.
9955 *
9956 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
9957 * STA mode. Represent the total number of aggregated frames transmitted by the
9958 * STA. This data is maintained per connect session. Represents the count of
9959 * last connected session, when queried in the disconnected state.
9960 *
9961 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
9962 * the STA mode. Represents the number of received frames with a good PLCP. This
9963 * data is maintained per connect session. Represents the count of last
9964 * connected session, when queried in the disconnected state.
9965 *
9966 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
9967 * used in the STA mode. Represents the number of occasions that no valid
9968 * delimiter is detected by A-MPDU parser. This data is maintained per connect
9969 * session. Represents the count of last connected session, when queried in the
9970 * disconnected state.
9971 *
9972 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
9973 * STA mode. Represents the number of frames for which CRC check failed in the
9974 * MAC. This data is maintained per connect session. Represents the count of
9975 * last connected session, when queried in the disconnected state.
9976 *
9977 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
9978 * STA mode. Represents the number of unicast ACKs received with good FCS. This
9979 * data is maintained per connect session. Represents the count of last
9980 * connected session, when queried in the disconnected state.
9981 *
9982 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
9983 * mode. Represents the number of received Block Acks. This data is maintained
9984 * per connect session. Represents the count of last connected session, when
9985 * queried in the disconnected state.
9986 *
9987 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
9988 * mode. Represents the number of beacons received from the connected BSS. This
9989 * data is maintained per connect session. Represents the count of last
9990 * connected session, when queried in the disconnected state.
9991 *
9992 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
9993 * STA mode. Represents the number of beacons received by the other BSS when in
9994 * connected state (through the probes done by the STA). This data is maintained
9995 * per connect session. Represents the count of last connected session, when
9996 * queried in the disconnected state.
9997 *
9998 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
9999 * the STA mode. Represents the number of received DATA frames with good FCS and
10000 * matching Receiver Address when in connected state. This data is maintained
10001 * per connect session. Represents the count of last connected session, when
10002 * queried in the disconnected state.
10003 *
10004 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
10005 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
10006 * when in the connected state. This data is maintained per connect session.
10007 * Represents the count of last connected session, when queried in the
10008 * disconnected state.
10009 *
10010 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
10011 * STA mode. This represents the target power in dBm for the transmissions done
10012 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
10013 * connect session. Represents the count of last connected session, when
10014 * queried in the disconnected state.
10015 *
10016 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
10017 * STA mode. This represents the Target power in dBm for transmissions done to
10018 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
10019 * session. Represents the count of last connected session, when queried in the
10020 * disconnected state.
10021 *
10022 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
10023 * STA mode. This represents the Target power in dBm for transmissions done to
10024 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
10025 * Represents the count of last connected session, when queried in the
10026 * disconnected state.
10027 *
10028 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
10029 * STA mode. This represents the Target power in dBm for transmissions done to
10030 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
10031 * session. Represents the count of last connected session, when queried in
10032 * the disconnected state.
10033 *
10034 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
10035 * STA mode. This represents the Target power in dBm for for transmissions done
10036 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
10037 * Represents the count of last connected session, when queried in the
10038 * disconnected state.
10039 *
10040 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
10041 * in the STA mode. This represents the Nested attribute representing the
10042 * overflow counts of each receive buffer allocated to the hardware during the
10043 * STA's connection. The number of hw buffers might vary for each WLAN
10044 * solution and hence this attribute represents the nested array of all such
10045 * HW buffer count. This data is maintained per connect session. Represents
10046 * the count of last connected session, when queried in the disconnected state.
10047 *
10048 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
10049 * allowed as per the regulatory requirements for the current or last connected
10050 * session. Used in the STA mode.
10051 *
10052 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
10053 * (dBm) used by the station in its latest unicast frame while communicating
10054 * to the AP in the connected state. When queried in the disconnected state,
10055 * this represents the TX power used by the STA with last AP communication
10056 * when in connected state.
10057 *
10058 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
10059 * level used to adjust the RX sensitivity. Represents the current ANI level
10060 * when queried in the connected state. When queried in the disconnected
10061 * state, this corresponds to the latest ANI level at the instance of
10062 * disconnection.
10063 *
10064 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
10065 * the raw information elements from Beacon frames. Represents the Beacon frames
10066 * of the current BSS in the connected state. When queried in the disconnected
10067 * state, these IEs correspond to the last connected BSSID.
10068 *
10069 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
10070 * containing the raw information elements from Probe Response frames.
10071 * Represents the Probe Response frames of the current BSS in the connected
10072 * state. When queried in the disconnected state, these IEs correspond to the
10073 * last connected BSSID.
10074 *
10075 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
10076 * disconnect reason for the last disconnection if the disconnection is
10077 * triggered from the host driver. The values are referred from
10078 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070010079 *
10080 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
10081 * only. This represents the number of group addressed robust management frames
10082 * received from this station with an invalid MIC or a missing MME when PMF is
10083 * enabled.
10084 *
10085 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
10086 * only. This represents the number of group addressed robust management frames
10087 * received from this station with the packet number less than or equal to the
10088 * last received packet number when PMF is enabled.
10089 *
10090 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
10091 * mode only. This represents the number of Beacon frames received from this
10092 * station with an invalid MIC or a missing MME when beacon protection is
10093 * enabled.
10094 *
10095 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
10096 * only. This represents number of Beacon frames received from this station with
10097 * the packet number less than or equal to the last received packet number when
10098 * beacon protection is enabled.
10099 *
10100 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
10101 * STA mode only. The driver uses this attribute to populate the connection
10102 * failure reason codes and the values are defined in
10103 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
10104 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
10105 * a connection failure indication from the driver. The driver shall not
10106 * include this attribute in response to the
10107 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
10108 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080010109 *
10110 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
10111 * used by the station in its last TX frame while communicating to the AP in the
10112 * connected state. When queried in the disconnected state, this represents the
10113 * rate used by the STA in the last TX frame to the AP when it was connected.
10114 * This attribute is used for STA mode only.
10115 *
10116 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
10117 * This represents the rate index used by the STA for the last TX frame to the
10118 * AP. When queried in the disconnected state, this gives the last RIX used by
10119 * the STA in the last TX frame to the AP when it was connected.
10120 *
10121 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
10122 * mode only. This represents the number of times the STA TSF goes out of sync
10123 * from the AP after the connection. If queried in the disconnected state, this
10124 * gives the count of TSF out of sync for the last connection.
10125 *
10126 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
10127 * mode only. This represents the roam trigger reason for the last roaming
10128 * attempted by the firmware. This can be queried either in connected state or
10129 * disconnected state. Each bit of this attribute represents the different
10130 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
10131 *
10132 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
10133 * only. This represents the roam fail reason for the last failed roaming
10134 * attempt by the firmware. Different roam failure reason codes are specified
10135 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
10136 * connected state or disconnected state.
10137 *
10138 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
10139 * STA mode only. This represents the roam invoke fail reason for the last
10140 * failed roam invoke. Different roam invoke failure reason codes
10141 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
10142 * queried either in connected state or disconnected state.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010143 */
10144enum qca_wlan_vendor_attr_get_sta_info {
10145 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
10146 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
10147 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
10148 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
10149 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
10150 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
10151 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
10152 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
10153 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
10154 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
10155 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070010156 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
10157 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
10158 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
10159 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
10160 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
10161 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
10162 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
10163 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
10164 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
10165 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
10166 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
10167 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
10168 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
10169 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
10170 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
10171 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
10172 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
10173 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
10174 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
10175 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
10176 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
10177 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
10178 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
10179 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
10180 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
10181 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
10182 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
10183 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070010184 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
10185 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
10186 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
10187 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
10188 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080010189 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
10190 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
10191 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
10192 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
10193 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
10194 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080010195
10196 /* keep last */
10197 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
10198 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
10199 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
10200};
10201
Hai Shalomfdcde762020-04-02 11:19:20 -070010202/**
10203 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
10204 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
10205 *
10206 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
10207 * Used in STA mode. This attribute represents the list of channel center
10208 * frequencies in MHz (u32) the station has learnt during the last connection
10209 * or roaming attempt. This information shall not signify the channels for
10210 * an explicit scan request from the user space. Host drivers can update this
10211 * information to the user space in both connected and disconnected state.
10212 * In the disconnected state this information shall signify the channels
10213 * scanned in the last connection/roam attempt that lead to the disconnection.
10214 */
10215enum qca_wlan_vendor_attr_update_sta_info {
10216 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
10217 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
10218
10219 /* keep last */
10220 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
10221 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
10222 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
10223};
10224
10225/**
10226 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
10227 * Used when the driver triggers the STA to disconnect from the AP.
10228 *
10229 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
10230 * disconnection with the AP due to unspecified reasons.
10231 *
10232 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
10233 * disconnection with the AP due to a roaming failure. This roaming is triggered
10234 * internally (host driver/firmware).
10235 *
10236 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
10237 * the AP when the user/external triggered roaming fails.
10238 *
10239 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
10240 * by the host driver whenever gateway reachability failure is detected and the
10241 * driver disconnects with AP.
10242 *
10243 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
10244 * the AP on a channel switch announcement from it with an unsupported channel.
10245 *
10246 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
10247 * with indoor channels disabled and if the STA is connected on one of these
10248 * disabled channels, the host driver disconnected the STA with this reason
10249 * code.
10250 *
10251 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
10252 * explicit request from the user to disable the current operating channel.
10253 *
10254 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
10255 * the internal host driver/firmware recovery.
10256 *
10257 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
10258 * a timeout for the key installations from the user space.
10259 *
10260 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
10261 * STA on a band change request from the user space to a different band from the
10262 * current operation channel/band.
10263 *
10264 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
10265 * interface down trigger from the user space.
10266 *
10267 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
10268 * STA on getting continuous transmission failures for multiple Data frames.
10269 *
10270 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
10271 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
10272 * represents inactivity from AP on such transmissions.
10273
10274 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
10275 * disconnection when SA Query times out (AP does not respond to SA Query).
10276 *
10277 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
10278 * STA on missing the beacons continuously from the AP.
10279 *
10280 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
10281 * able to move to the channel mentioned by the AP in CSA.
10282 *
10283 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
10284 */
10285enum qca_disconnect_reason_codes {
10286 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
10287 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
10288 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
10289 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
10290 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
10291 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
10292 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
10293 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
10294 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
10295 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
10296 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
10297 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
10298 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
10299 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
10300 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
10301 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
10302 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
10303};
10304
10305/**
10306 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
10307 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
10308 *
10309 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
10310 * This attribute represents the driver specific reason codes (local
10311 * driver/firmware initiated reasons for disconnection) defined
10312 * in enum qca_disconnect_reason_codes.
10313 */
10314enum qca_wlan_vendor_attr_driver_disconnect_reason {
10315 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
10316 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
10317
10318 /* keep last */
10319 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
10320 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
10321 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
10322};
10323
Hai Shalom899fcc72020-10-19 14:38:18 -070010324/**
10325 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
10326 *
10327 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
10328 */
10329enum qca_wlan_tspec_operation {
10330 QCA_WLAN_TSPEC_ADD = 0,
10331 QCA_WLAN_TSPEC_DEL = 1,
10332 QCA_WLAN_TSPEC_GET = 2,
10333};
10334
10335/**
10336 * enum qca_wlan_tspec_direction - Direction in TSPEC
10337 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
10338 *
10339 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
10340 */
10341enum qca_wlan_tspec_direction {
10342 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
10343 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
10344 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
10345 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
10346};
10347
10348/**
10349 * enum qca_wlan_tspec_ack_policy - MAC acknowledgement policy in TSPEC
10350 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
10351 *
10352 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
10353 */
10354enum qca_wlan_tspec_ack_policy {
10355 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
10356 QCA_WLAN_TSPEC_NO_ACK = 1,
10357 /* Reserved */
10358 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
10359};
10360
10361/**
10362 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
10363 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
10364 *
10365 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
10366 * u8 attribute. Specify the TSPEC operation of this request. Possible values
10367 * are defined in enum qca_wlan_tspec_operation.
10368 * Mandatory attribute for all kinds of config TSPEC requests.
10369 *
10370 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
10371 * u8 attribute. TS ID. Possible values are 0-7.
10372 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
10373 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
10374 *
10375 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
10376 * u8 attribute. Direction of data carried by the TS. Possible values are
10377 * defined in enum qca_wlan_tspec_direction.
10378 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10379 *
10380 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
10381 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
10382 * with the TS. set - enabled, not set - disabled.
10383 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10384 *
10385 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
10386 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
10387 * belonging to this TS. Possible values are 0-7.
10388 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10389 *
10390 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
10391 * u8 attribute. Indicate whether MAC acknowledgements are required for
10392 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
10393 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
10394 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10395 *
10396 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
10397 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
10398 * belonging to this TS.
10399 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10400 *
10401 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
10402 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
10403 * belonging to this TS.
10404 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10405 *
10406 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
10407 * u32 attribute. Specify the minimum interval in microseconds between the
10408 * start of two successive SPs.
10409 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10410 *
10411 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
10412 * u32 attribute. Specify the maximum interval in microseconds between the
10413 * start of two successive SPs.
10414 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10415 *
10416 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
10417 * u32 attribute. Specify the minimum interval in microseconds that can elapse
10418 * without arrival or transfer of an MPDU belonging to the TS before this TS
10419 * is deleted by the MAC entity at the HC.
10420 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10421 *
10422 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
10423 * u32 attribute. Specify the minimum interval in microseconds that can elapse
10424 * without arrival or transfer of an MSDU belonging to the TS before the
10425 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
10426 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
10427 * interval is always less than or equal to the inactivity interval.
10428 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10429 *
10430 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
10431 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
10432 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
10433 * bounds of this TSPEC.
10434 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10435 *
10436 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
10437 * u32 attribute. Indicate the average data rate in bps specified at the MAC
10438 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
10439 * bounds of this TSPEC.
10440 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10441 *
10442 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
10443 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
10444 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
10445 * the bounds of this TSPEC.
10446 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10447 *
10448 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
10449 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
10450 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
10451 * value of 0 indicates that there are no bursts.
10452 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10453 *
10454 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
10455 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
10456 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
10457 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10458 *
10459 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
10460 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
10461 * and above the stated application rates required to transport an MSDU/A-MSDU
10462 * belonging to the TS in this TSPEC.
10463 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10464 */
10465enum qca_wlan_vendor_attr_config_tspec {
10466 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
10467 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
10468 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
10469 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
10470 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
10471 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
10472 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
10473 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
10474 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
10475 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
10476 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
10477 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
10478 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
10479 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
10480 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
10481 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
10482 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
10483 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
10484 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
10485
10486 /* keep last */
10487 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
10488 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
10489 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
10490};
10491
10492/**
10493 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
10494 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
10495 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
10496 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
10497 * frame
10498 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
10499 * Request frame.
10500 */
10501enum qca_wlan_vendor_oci_override_frame_type {
10502 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
10503 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
10504 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
10505 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
10506};
10507
10508/**
10509 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
10510 * OCI override request. These attributes are used inside nested attribute
10511 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
10512 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
10513 *
10514 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
10515 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
10516 * attribute to specify the frame type in which the OCI is to be overridden.
10517 *
10518 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
10519 * OCI frequency (in MHz) to override in the specified frame type.
10520 */
10521enum qca_wlan_vendor_attr_oci_override {
10522 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
10523 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
10524 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
10525
10526 /* keep last */
10527 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
10528 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
10529 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
10530};
10531
10532/**
10533 * enum qca_wlan_medium_assess_type - Type of medium assess request
10534 *
10535 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
10536 */
10537enum qca_wlan_medium_assess_type {
10538 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
10539 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
10540};
10541
10542/**
10543 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
10544 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
10545 *
10546 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
10547 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
10548 * Specify the type of medium assess request and indicate its type in response.
10549 * Possible values are defined in enum qca_wlan_medium_assess_type.
10550 *
10551 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
10552 * u32 attribute. Mandatory in CCA request.
10553 * Specify the assessment period in terms of seconds. Assessment result will be
10554 * sent as the response to the CCA request after the assessment period.
10555 *
10556 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
10557 * u32 attribute. Mandatory in response to CCA request.
10558 * Total timer tick count of the assessment cycle.
10559 *
10560 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
10561 * u32 attribute. Mandatory in response to CCA request.
10562 * Timer tick count of idle time in the assessment cycle.
10563 *
10564 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
10565 * u32 attribute. Mandatory in response to CCA request.
10566 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
10567 *
10568 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
10569 * u32 attribute. Mandatory in response to CCA request.
10570 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
10571 *
10572 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
10573 * s32 attribute. Mandatory in response to CCA request.
10574 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
10575 *
10576 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
10577 * s32 attribute. Mandatory in response to CCA request.
10578 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
10579 *
10580 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
10581 * u8 attribute. Mandatory in congestion report request.
10582 * 1-enable 0-disable.
10583 *
10584 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
10585 * u8 attribute. Mandatory in congestion report enable request and will be
10586 * ignored if present in congestion report disable request. Possible values are
10587 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
10588 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
10589 * congestion percentage reaches the configured threshold.
10590 *
10591 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
10592 * u8 attribute. Optional in congestion report enable request and will be
10593 * ignored if present in congestion report disable request.
10594 * Specify the interval of congestion report event in terms of seconds. Possible
10595 * values are 1-255. Default value 1 will be used if this attribute is omitted
10596 * or using invalid values.
10597 *
10598 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
10599 * u8 attribute. Mandatory in congestion report event.
10600 * Indicate the actual congestion percentage. Possible values are 0-100.
10601 */
10602enum qca_wlan_vendor_attr_medium_assess {
10603 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
10604 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
10605
10606 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
10607 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
10608 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
10609 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
10610 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
10611 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
10612 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
10613
10614 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
10615 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
10616 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
10617 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
10618
10619 /* keep last */
10620 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
10621 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
10622 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
10623};
10624
10625/**
10626 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
10627 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
10628 *
10629 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
10630 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
10631 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
10632 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
10633 */
10634enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
10635 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
10636 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
10637
10638 /* keep last */
10639 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
10640 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
10641 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
10642};
10643
10644/**
10645 * enum qca_sta_connect_fail_reason_codes - Defines values carried
10646 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
10647 * attribute.
10648 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
10649 * for unicast Probe Request frame.
10650 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
10651 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
10652 * auth request.
10653 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
10654 * received from AP.
10655 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
10656 * Association Request frame.
10657 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
10658 * Association Request frame.
10659 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
10660 * frame is not received from AP.
10661 */
10662enum qca_sta_connect_fail_reason_codes {
10663 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
10664 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
10665 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
10666 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
10667 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
10668 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
10669 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
10670};
10671
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080010672#endif /* QCA_VENDOR_H */