blob: 7a4da46532fbcde2feb922f63a5b5bed8024f215 [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.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004 * Copyright (c) 2018, 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
22/**
Dmitry Shmidtf9bdef92014-04-25 10:46:36 -070023 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
24 */
25enum qca_radiotap_vendor_ids {
26 QCA_RADIOTAP_VID_WLANTEST = 0,
27};
28
29/**
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080030 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
31 *
32 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
33 *
34 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
35 *
Dmitry Shmidt661b4f72014-09-29 14:58:27 -070036 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
37 * internal BSS-selection. This command uses
38 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
39 * for the current connection (i.e., changes policy set by the nl80211
40 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
41 * included to indicate which BSS to use in case roaming is disabled.
42 *
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080043 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
44 * ranges to avoid to reduce issues due to interference or internal
45 * co-existence information in the driver. The event data structure is
46 * defined in struct qca_avoid_freq_list.
Dmitry Shmidtd11f0192014-03-24 12:09:47 -070047 *
48 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
49 * for DFS offloading.
Dmitry Shmidt21de2142014-04-08 10:50:52 -070050 *
51 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
52 * NAN Request/Response and NAN Indication messages. These messages are
Hai Shalomce48b4a2018-09-05 11:41:35 -070053 * interpreted between the framework and the firmware component. While
54 * sending the command from userspace to the driver, payload is not
55 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
56 * is used when receiving vendor events in userspace from the driver.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080057 *
58 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
59 * used to configure PMK to the driver even when not connected. This can
60 * be used to request offloading of key management operations. Only used
61 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
62 *
63 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
64 * NL80211_CMD_ROAM event with optional attributes including information
65 * from offloaded key management operation. Uses
66 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
67 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
68 *
69 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
70 * invoke the ACS function in device and pass selected channels to
71 * hostapd.
72 *
73 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
74 * supported by the driver. enum qca_wlan_vendor_features defines
75 * the possible features.
Dmitry Shmidt7f656022015-02-25 14:36:37 -080076 *
77 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
78 * which supports DFS offloading, to indicate a channel availability check
79 * start.
80 *
81 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
82 * which supports DFS offloading, to indicate a channel availability check
83 * completion.
84 *
85 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
86 * which supports DFS offloading, to indicate that the channel availability
87 * check aborted, no change to the channel status.
88 *
89 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
90 * driver, which supports DFS offloading, to indicate that the
91 * Non-Occupancy Period for this channel is over, channel becomes usable.
92 *
93 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
94 * which supports DFS offloading, to indicate a radar pattern has been
95 * detected. The channel is now unusable.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -070096 *
Roshan Pius3a1667e2018-07-03 15:17:14 -070097 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
98 * based on enum wifi_logger_supported_features. Attributes defined in
99 * enum qca_wlan_vendor_attr_get_logger_features.
100 *
101 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
102 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
103 * attribute for this command. Attributes defined in
104 * enum qca_wlan_vendor_attr_wifi_logger_start.
105 *
106 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
107 * capabilities of the driver, parameters includes the attributes defined
108 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
109 *
110 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
111 * sending of certain periodic IP packet to firmware, attributes defined in
112 * enum qca_wlan_vendor_attr_offloaded_packets.
113 *
114 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
115 * monitoring, defines min and max RSSI which are configured for RSSI
116 * monitoring. Also used to notify the RSSI breach and provides the BSSID
117 * and RSSI value that was breached. Attributes defined in
118 * enum qca_wlan_vendor_attr_rssi_monitoring.
119 *
120 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
121 * Data Path (NDP) related operations, attributes defined in
122 * enum qca_wlan_vendor_attr_ndp_params.
123 *
124 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
125 * Neighbour Discovery offload, attributes defined in
126 * enum qca_wlan_vendor_attr_nd_offload.
127 *
128 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
129 * configuration parameter for BPF packet filter, attributes defined in
130 * enum qca_wlan_vendor_attr_packet_filter.
131 *
132 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
133 * maximum supported size, attributes defined in
134 * enum qca_wlan_vendor_drv_info.
135 *
136 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
137 * data about wake reasons and datapath IP statistics, attributes defined
138 * in enum qca_wlan_vendor_attr_wake_stats.
139 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700140 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
141 * for IEEE 802.11 communicating outside the context of a basic service
142 * set, called OCB command. Uses the attributes defines in
143 * enum qca_wlan_vendor_attr_ocb_set_config.
144 *
145 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
146 * UTC time. Use the attributes defines in
147 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
148 *
149 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
150 * sending OCB timing advert frames. Uses the attributes defines in
151 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
152 *
153 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
154 * OCB timing advert. Uses the attributes defines in
155 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
156 *
157 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
158 * timer value. Uses the attributes defines in
159 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
160 *
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700161 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
162 * start the P2P Listen offload function in device and pass the listen
163 * channel, period, interval, count, device types, and vendor specific
164 * information elements to the device driver and firmware.
165 * Uses the attributes defines in
166 * enum qca_wlan_vendor_attr_p2p_listen_offload.
167 *
168 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
169 * indicate stop request/response of the P2P Listen offload function in
170 * device. As an event, it indicates either the feature stopped after it
171 * was already running or feature has actually failed to start. Uses the
172 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
173 *
174 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
175 * beaconing, this sub command provides the driver, the frequencies on the
176 * 5 GHz band to check for any radar activity. Driver selects one channel
177 * from this priority list provided through
178 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
179 * to check for radar activity on it. If no radar activity is detected
180 * during the channel availability check period, driver internally switches
181 * to the selected frequency of operation. If the frequency is zero, driver
182 * internally selects a channel. The status of this conditional switch is
183 * indicated through an event using the same sub command through
184 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
185 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700186 *
187 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
188 * attributes defined in enum qca_wlan_gpio_attr.
189 *
190 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
191 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
192 * capabilities are to be fetched and other
193 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
194 * requested capabilities.
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700195 *
196 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
197 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
198 * command and event.
199 *
200 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
201 * indoor location features. Capabilities are reported in
202 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
203 *
204 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
205 * (fine timing measurement) session with one or more peers.
206 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
207 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
208 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
209 * events will be reported, followed by
210 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
211 * end of session.
212 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
213 *
214 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
215 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
216 * status code indicating session was aborted.
217 *
218 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
219 * results for one peer. Results are reported in
220 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
221 *
222 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
223 * FTM session is finished, either successfully or aborted by
224 * request.
225 *
226 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
227 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
228 * to enable or disable the responder. LCI/LCR reports can be
229 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
230 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
231 * times to update the LCI/LCR reports.
232 *
233 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
234 * arrival) measurement with a single peer. Specify peer MAC address in
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800235 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
236 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
237 * scan results cache and use the frequency from there).
238 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
239 * Measurement result is reported in
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700240 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
241 *
242 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
243 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
244 *
245 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
246 * the AOA measurement result.
247 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
248 * success/failure status is reported in
249 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
250 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
251 * The antenna array(s) used in the measurement are reported in
252 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700253 *
254 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
255 * data as per the given parameters.
256 *
257 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
258 * specific chain.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800259 *
260 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
261 * configuration for a DMG RF sector. Specify sector index in
262 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
263 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
264 * to return sector information for in
265 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
266 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
267 * exact time where information was captured in
268 * QCA_WLAN_VENDOR_ATTR_TSF.
269 *
270 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
271 * configuration for a DMG RF sector. Specify sector index in
272 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
273 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
274 * for one or more DMG RF modules in
275 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
276 *
277 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
278 * DMG RF sector for a station. This is the sector that the HW
279 * will use to communicate with the station. Specify the MAC address
280 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
281 * needed for unassociated station). Specify sector type to return in
282 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
283 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
284 * Also return the exact time where the information was captured
285 * in QCA_WLAN_VENDOR_ATTR_TSF.
286 *
287 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
288 * selected DMG RF sector for a station. This is the sector that
289 * the HW will use to communicate with the station.
290 * Specify the MAC address of associated station/AP/PCP in
291 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
292 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
293 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
294 * The selected sector will be locked such that it will not be
295 * modified like it normally does (for example when station
296 * moves around). To unlock the selected sector for a station
297 * pass the special value 0xFFFF in the sector index. To unlock
298 * all connected stations also pass a broadcast MAC address.
299 *
300 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
301 * in the host driver. The different TDLS configurations are defined
302 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800303 *
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800304 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
305 * capabilities. The response uses the attributes defined in
306 * enum qca_wlan_vendor_attr_get_he_capabilities.
307 *
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800308 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
309 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
310 * carries the scan cookie of the corresponding scan request. The scan
311 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
Dmitry Shmidt29333592017-01-09 12:27:11 -0800312 *
313 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
314 * Absorption Rate (SAR) power limits. A critical regulation for
315 * FCC compliance, OEMs require methods to set SAR limits on TX
316 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
317 * attributes are used with this command.
Paul Stewart092955c2017-02-06 09:13:09 -0800318 *
319 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
320 * host driver for offloading the implementation of Auto Channel Selection
321 * (ACS) to an external user space entity. This interface is used as the
322 * event from the host driver to the user space entity and also as the
323 * request from the user space entity to the host driver. The event from
324 * the host driver is used by the user space entity as an indication to
325 * start the ACS functionality. The attributes used by this event are
326 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
327 * User space entity uses the same interface to inform the host driver with
328 * selected channels after the ACS operation using the attributes defined
329 * by enum qca_wlan_vendor_attr_external_acs_channels.
330 *
331 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
332 * requisite information leading to a power save failure. The information
333 * carried as part of this event is represented by the
334 * enum qca_attr_chip_power_save_failure attributes.
335 *
336 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
337 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
338 *
339 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
340 * statistics are represented by the enum qca_attr_nud_stats_get
341 * attributes.
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800342 *
343 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
344 * the BSS transition status, whether accept or reject, for a list of
345 * candidate BSSIDs provided by the userspace. This uses the vendor
346 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
347 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
348 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
349 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
350 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
351 * the driver shall specify array of
352 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
353 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
354 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
355 *
356 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
357 * specific QCA module. The trace levels are represented by
358 * enum qca_attr_trace_level attributes.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700359 *
360 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
361 * Protocol antenna limit in different modes. See enum
362 * qca_wlan_vendor_attr_brp_ant_limit_mode.
363 *
364 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
365 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
366 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
367 * identifying the operation in success case.
368 *
369 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
370 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
371 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
372 * be stopped.
373 *
374 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
375 * specific interface. This can be used to modify some of the low level
376 * scan parameters (off channel dwell time, home channel time) in the
377 * driver/firmware. These parameters are maintained within the host driver.
378 * This command is valid only when the interface is in the connected state.
379 * These scan parameters shall be reset by the driver/firmware once
380 * disconnected. The attributes used with this command are defined in
381 * enum qca_wlan_vendor_attr_active_tos.
382 *
383 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
384 * driver has detected an internal failure. This event carries the
385 * information indicating the reason that triggered this detection. The
386 * attributes for this command are defined in
387 * enum qca_wlan_vendor_attr_hang.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700388 *
389 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
390 * of spectral parameters used. The spectral scan parameters are specified
391 * by enum qca_wlan_vendor_attr_spectral_scan.
392 *
393 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
394 * for spectral scan functionality. The debug stats are specified by
395 * enum qca_wlan_vendor_attr_spectral_diag_stats.
396 *
397 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
398 * scan system capabilities. The capabilities are specified
399 * by enum qca_wlan_vendor_attr_spectral_cap.
400 *
401 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
402 * status of spectral scan. The status values are specified
403 * by enum qca_wlan_vendor_attr_spectral_scan_status.
404 *
405 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
406 * peer pending packets. Specify the peer MAC address in
407 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
408 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
409 * in enum qca_wlan_vendor_attr_flush_pending.
410 *
411 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
412 * RF Operating Parameter (RROP) information. The attributes for this
413 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
414 * intended for use by external Auto Channel Selection applications.
415 *
416 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
417 * (SAR) power limits. This is a companion to the command
418 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
419 * settings currently in use. The attributes returned by this command are
420 * defined by enum qca_vendor_attr_sar_limits.
421 *
422 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
423 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
424 * information attached to the respective MAC.
425 * This works both as a query (user space asks the current mode) or event
426 * interface (driver advertising the current mode to the user space).
427 * Driver does not trigger this event for temporary hardware mode changes.
428 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
429 * channel change, etc.) are updated with this event. Attributes for this
430 * interface are defined in enum qca_wlan_vendor_attr_mac.
431 *
432 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
433 * per peer per TID. Attributes for this command are define in
434 * enum qca_wlan_set_qdepth_thresh_attr.
435 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
436 * guide for WLAN driver. Request to suspend of driver and FW if the
437 * temperature is higher than the suspend threshold; resume action is
438 * requested to driver if the temperature is lower than the resume
439 * threshold. In user poll mode, request temperature data by user. For test
440 * purpose, getting thermal shutdown configuration parameters is needed.
441 * Attributes for this interface are defined in
442 * enum qca_wlan_vendor_attr_thermal_cmd.
443 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
444 * driver. Thermal temperature and indication of resume completion are
445 * reported as thermal events. The attributes for this command are defined
446 * in enum qca_wlan_vendor_attr_thermal_event.
447 *
448 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
449 * test configuration. Attributes for this command are defined in
450 * enum qca_wlan_vendor_attr_wifi_test_config.
451 *
452 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
453 * RX filter to receive frames from stations that are active on the
454 * operating channel, but not associated with the local device (e.g., STAs
455 * associated with other APs). Filtering is done based on a list of BSSIDs
456 * and STA MAC addresses added by the user. This command is also used to
457 * fetch the statistics of unassociated stations. The attributes used with
458 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
Hai Shalomce48b4a2018-09-05 11:41:35 -0700459 *
460 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
461 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
462 * carried a payload which was a binary blob of data. The command was not
463 * extendable to send more information. The newer version carries the
464 * legacy blob encapsulated within an attribute and can be extended with
465 * additional vendor attributes that can enhance the NAN command interface.
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800466 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
467 * or stopped within driver/firmware in order to initiate roaming. The
468 * attributes used with this event are defined in enum
469 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
470 * in few cases, e.g., if the host processor is sleeping when this event
471 * is generated in firmware.
472 *
473 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
474 * configure parameters per peer to capture Channel Frequency Response
475 * (CFR) and enable Periodic CFR capture. The attributes for this command
476 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800477 */
478enum qca_nl80211_vendor_subcmds {
479 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
480 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700481 /* subcmds 2..8 not yet allocated */
482 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800483 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700484 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700485 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800486 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800487 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
488 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
489 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
490 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
491 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
492 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
493 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
494 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
495 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
496 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
497 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
498 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
499 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
500 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
501 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
502 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
503 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
504 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
505 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
506 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
507 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
508 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
509 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
510 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
511 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
512 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
513 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
514 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
515 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
516 /* 43..49 - reserved for QCA */
517 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
518 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
519 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700520 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800521 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
522 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800523 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
524 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
525 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
526 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
527 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800528 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
529 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
530 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
531 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
532 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
533 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
534 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
535 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
536 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
537 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
538 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
539 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
540 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700541 /* Wi-Fi configuration subcommands */
542 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
543 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700544 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
545 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
546 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
547 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
548 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
549 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
550 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
551 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
552 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
553 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
554 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -0700555 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700556 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
557 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
558 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
559 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
560 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
561 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
562 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
563 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
564 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -0700565 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700566 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
567 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
568 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
569 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800570 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
571 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
572 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
573 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
574 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800575 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700576 /* 116..117 - reserved for QCA */
577 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -0700578 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
579 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700580 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700581 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
582 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
583 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700584 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
585 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700586 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
587 /* FTM/indoor location subcommands */
588 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
589 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
590 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
591 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
592 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
593 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
594 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
595 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
596 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700597 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
598 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800599 /* DMG low level RF sector operations */
600 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
601 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
602 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
603 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
604 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800605 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800606 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800607 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -0800608 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
609 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
610 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
611 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800612 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
613 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700614 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
615 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
616 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
617 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
618 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700619 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
620 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
621 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
622 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
623 /* Flush peer pending data */
624 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
625 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
626 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
627 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
628 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
629 /* Thermal shutdown commands to protect wifi chip */
630 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
631 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
632 /* Wi-Fi test configuration subcommand */
633 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
634 /* Frame filter operations for other BSSs/unassociated STAs */
635 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700636 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800637 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
638 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800639};
640
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700641enum qca_wlan_vendor_attr {
642 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
643 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
644 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700645 /* Used only when driver sends vendor events to the userspace under the
646 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
647 * commands to the driver.
648 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700649 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -0700650 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
651 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -0700652 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
653 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700654 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -0700655 * by enum qca_roaming_policy.
656 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700657 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
658 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800659 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
660 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800661 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700662 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
663 /* Unsigned 32-bit value. */
664 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
665 /* Unsigned 32-bit value */
666 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
667 /* Unsigned 32-bit value */
668 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
669 /* Unsigned 32-bit value from enum qca_set_band. */
670 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700671 /* Dummy (NOP) attribute for 64 bit padding */
672 QCA_WLAN_VENDOR_ATTR_PAD = 13,
673 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
674 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
675 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
676 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
677 */
678 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
679 /* Indoor location capabilities, returned by
680 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
681 * see enum qca_wlan_vendor_attr_loc_capa.
682 */
683 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
684 /* Array of nested attributes containing information about each peer
685 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
686 * for supported attributes for each peer.
687 */
688 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
689 /* Array of nested attributes containing measurement results for
690 * one or more peers, reported by the
691 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
692 * See enum qca_wlan_vendor_attr_peer_result for list of supported
693 * attributes.
694 */
695 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
696 /* Flag attribute for enabling or disabling responder functionality. */
697 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
698 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
699 * command to specify the LCI report that will be sent by
700 * the responder during a measurement exchange. The format is
701 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
702 */
703 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
704 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
705 * command to specify the location civic report that will
706 * be sent by the responder during a measurement exchange.
707 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
708 */
709 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
710 /* Session/measurement completion status code,
711 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
712 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
713 * see enum qca_vendor_attr_loc_session_status.
714 */
715 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
716 /* Initial dialog token used by responder (0 if not specified),
717 * unsigned 8 bit value.
718 */
719 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
720 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
721 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
722 * AOA measurements are needed as part of an FTM session.
723 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
724 * enum qca_wlan_vendor_attr_aoa_type.
725 */
726 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
727 /* A bit mask (unsigned 32 bit value) of antenna arrays used
728 * by indoor location measurements. Refers to the antenna
729 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
730 */
731 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
732 /* AOA measurement data. Its contents depends on the AOA measurement
733 * type and antenna array mask:
734 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
735 * phase of the strongest CIR path for each antenna in the measured
736 * array(s).
737 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
738 * values, phase and amplitude of the strongest CIR path for each
739 * antenna in the measured array(s).
740 */
741 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700742 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
743 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -0700744 * the corresponding antenna RSSI value
745 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700746 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
747 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -0700748 * to report the specific antenna RSSI value (unsigned 32 bit value)
749 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700750 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800751 /* Frequency in MHz, various uses. Unsigned 32 bit value */
752 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
753 /* TSF timer value, unsigned 64 bit value.
754 * May be returned by various commands.
755 */
756 QCA_WLAN_VENDOR_ATTR_TSF = 29,
757 /* DMG RF sector index, unsigned 16 bit number. Valid values are
758 * 0..127 for sector indices or 65535 as special value used to
759 * unlock sector selection in
760 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
761 */
762 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
763 /* DMG RF sector type, unsigned 8 bit value. One of the values
764 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
765 */
766 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
767 /* Bitmask of DMG RF modules for which information is requested. Each
768 * bit corresponds to an RF module with the same index as the bit
769 * number. Unsigned 32 bit number but only low 8 bits can be set since
770 * all DMG chips currently have up to 8 RF modules.
771 */
772 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
773 /* Array of nested attributes where each entry is DMG RF sector
774 * configuration for a single RF module.
775 * Attributes for each entry are taken from enum
776 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
777 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
778 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
779 */
780 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
781 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
782 * to report frame aggregation statistics to userspace.
783 */
784 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
785 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800786 /* Unsigned 8-bit value representing MBO transition reason code as
787 * provided by the AP used by subcommand
788 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
789 * specified by the userspace in the request to the driver.
790 */
791 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
792 /* Array of nested attributes, BSSID and status code, used by subcommand
793 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
794 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
795 * The userspace space specifies the list/array of candidate BSSIDs in
796 * the order of preference in the request. The driver specifies the
797 * status code, for each BSSID in the list, in the response. The
798 * acceptable candidates are listed in the order preferred by the
799 * driver.
800 */
801 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700802 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
803 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
804 */
805 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
806 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
807 * to define the number of antennas to use for BRP.
808 * different purpose in each ANT_LIMIT_MODE:
809 * DISABLE - ignored
810 * EFFECTIVE - upper limit to number of antennas to be used
811 * FORCE - exact number of antennas to be used
812 * unsigned 8 bit value
813 */
814 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
815 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -0700816 * to report the corresponding antenna index to the chain RSSI value
817 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700818 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800819
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700820 /* keep last */
821 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
822 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
823};
824
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700825enum qca_roaming_policy {
826 QCA_ROAMING_NOT_ALLOWED,
827 QCA_ROAMING_ALLOWED_WITHIN_ESS,
828};
829
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800830enum qca_wlan_vendor_attr_roam_auth {
831 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
832 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
833 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
834 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
835 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
836 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
837 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
838 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800839 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700840 /* Indicates the status of re-association requested by user space for
841 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
842 * Type u16.
843 * Represents the status code from AP. Use
844 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
845 * real status code for failures.
846 */
847 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
848 /* This attribute indicates that the old association was maintained when
849 * a re-association is requested by user space and that re-association
850 * attempt fails (i.e., cannot connect to the requested BSS, but can
851 * remain associated with the BSS with which the association was in
852 * place when being requested to roam). Used along with
853 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
854 * re-association status. Type flag.
855 * This attribute is applicable only for re-association failure cases.
856 */
857 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
858 /* This attribute specifies the PMK if one was newly generated during
859 * FILS roaming. This is added to the PMKSA cache and is used in
860 * subsequent connections with PMKSA caching.
861 */
862 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
863 /* This attribute specifies the PMKID used/generated for the current
864 * FILS roam. This is used in subsequent connections with PMKSA caching.
865 */
866 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
867 /* A 16-bit unsigned value specifying the next sequence number to use
868 * in ERP message in the currently associated realm. This is used in
869 * doing subsequent ERP based connections in the same realm.
870 */
871 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800872 /* keep last */
873 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
874 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
875 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
876};
877
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700878enum qca_wlan_vendor_attr_p2p_listen_offload {
879 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
880 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
881 * of the social channels.
882 */
883 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
884 /* A 32-bit unsigned value; the P2P listen offload period (ms).
885 */
886 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
887 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
888 */
889 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
890 /* A 32-bit unsigned value; number of interval times the firmware needs
891 * to run the offloaded P2P listen operation before it stops.
892 */
893 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
894 /* An array of arbitrary binary data with one or more 8-byte values.
895 * The device types include both primary and secondary device types.
896 */
897 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
898 /* An array of unsigned 8-bit characters; vendor information elements.
899 */
900 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
901 /* A 32-bit unsigned value; a control flag to indicate whether listen
902 * results need to be flushed to wpa_supplicant.
903 */
904 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
905 /* A 8-bit unsigned value; reason code for P2P listen offload stop
906 * event.
907 */
908 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
909 /* keep last */
910 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
911 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
912 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
913};
914
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800915enum qca_wlan_vendor_attr_acs_offload {
916 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
917 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
918 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
919 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
920 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
921 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
Dmitry Shmidtdda10c22015-03-24 16:05:01 -0700922 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
923 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
924 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
925 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
926 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800927 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800928 /* keep last */
929 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
930 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
931 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
932};
933
934enum qca_wlan_vendor_acs_hw_mode {
935 QCA_ACS_MODE_IEEE80211B,
936 QCA_ACS_MODE_IEEE80211G,
937 QCA_ACS_MODE_IEEE80211A,
938 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -0700939 QCA_ACS_MODE_IEEE80211ANY,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800940};
941
942/**
943 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
944 *
945 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
946 * management offload, a mechanism where the station's firmware
947 * does the exchange with the AP to establish the temporal keys
948 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -0700949 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
950 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800951 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -0700952 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700953 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
954 * Listen offload; a mechanism where the station's firmware takes care of
955 * responding to incoming Probe Request frames received from other P2P
956 * Devices whilst in Listen state, rather than having the user space
957 * wpa_supplicant do it. Information from received P2P requests are
958 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700959 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
960 * specific features.
961 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
962 * features.
963 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
964 * specific features only. If a Device sets this bit but not the
965 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
966 * this Device may not support all OCE AP functionalities but can support
967 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700968 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
969 * managed regulatory.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800970 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
971 */
972enum qca_wlan_vendor_features {
973 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -0700974 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800975 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700976 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700977 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
978 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
979 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700980 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800981 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
982};
983
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -0700984/**
985 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
986 *
987 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
988 * the offloaded data.
989 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
990 * data.
991 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
992 * indication.
993 */
994enum qca_wlan_vendor_attr_data_offload_ind {
995 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
996 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
997 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
998 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
999
1000 /* keep last */
1001 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1002 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1003 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1004};
Ravi Joshie6ccb162015-07-16 17:45:41 -07001005
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001006/**
1007 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1008 * OCB config
1009 *
1010 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1011 * configuration
1012 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1013 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1014 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1015 * scheduled
1016 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1017 * information
1018 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1019 * active state configuration
1020 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1021 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1022 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1023 * use in the case that a packet is sent without a TX control header
1024 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1025 * last TA received that the local time set by TA is synchronous to other
1026 * communicating OCB STAs.
1027 */
1028enum qca_wlan_vendor_attr_ocb_set_config {
1029 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1030 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1031 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1032 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1033 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1034 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1035 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1036 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1037 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1038 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1039 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1040 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1041 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1042};
1043
1044/**
1045 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1046 * UTC time
1047 *
1048 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1049 * 10 bytes
1050 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1051 * 5 bytes
1052 */
1053enum qca_wlan_vendor_attr_ocb_set_utc_time {
1054 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1055 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1056 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1057 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1058 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1059 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1060};
1061
1062/**
1063 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1064 * to start sending timing advert frames
1065 *
1066 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1067 * on which to send the frames
1068 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1069 * the frame is sent in 5 seconds
1070 */
1071enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1072 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1073 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1074 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1075 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1076 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1077 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1078};
1079
1080/**
1081 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1082 * to stop timing advert
1083 *
1084 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1085 * frequency on which to stop the timing advert
1086 */
1087enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1088 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1089 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1090 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1091 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1092 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1093};
1094
1095/**
1096 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1097 * get TSF timer value
1098 *
1099 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1100 * timer
1101 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1102 */
1103enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1104 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1105 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1106 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1107 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1108 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1109 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1110};
1111
Ravi Joshie6ccb162015-07-16 17:45:41 -07001112enum qca_vendor_attr_get_preferred_freq_list {
1113 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1114 /* A 32-unsigned value; the interface type/mode for which the preferred
1115 * frequency list is requested (see enum qca_iface_type for possible
1116 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1117 * kernel and in the kernel response back to user-space.
1118 */
1119 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1120 /* An array of 32-unsigned values; values are frequency (MHz); sent
1121 * from kernel space to user space.
1122 */
1123 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001124 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1125 * attribute. Each element contains frequency (MHz), weight, and flag
1126 * bit mask indicating how the frequency should be used in P2P
1127 * negotiation; sent from kernel space to user space.
1128 */
1129 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001130 /* keep last */
1131 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1132 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1133 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1134};
1135
1136enum qca_vendor_attr_probable_oper_channel {
1137 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1138 /* 32-bit unsigned value; indicates the connection/iface type likely to
1139 * come on this channel (see enum qca_iface_type).
1140 */
1141 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1142 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1143 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1144 /* keep last */
1145 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1146 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1147 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1148};
1149
1150enum qca_iface_type {
1151 QCA_IFACE_TYPE_STA,
1152 QCA_IFACE_TYPE_AP,
1153 QCA_IFACE_TYPE_P2P_CLIENT,
1154 QCA_IFACE_TYPE_P2P_GO,
1155 QCA_IFACE_TYPE_IBSS,
1156 QCA_IFACE_TYPE_TDLS,
1157};
1158
1159enum qca_set_band {
1160 QCA_SETBAND_AUTO,
1161 QCA_SETBAND_5G,
1162 QCA_SETBAND_2G,
1163};
1164
Dmitry Shmidt17022322016-04-06 13:28:42 -07001165/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001166 * enum qca_access_policy - Access control policy
1167 *
1168 * Access control policy is applied on the configured IE
1169 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1170 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1171 *
1172 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1173 * the specific configuration (IE) set, i.e., allow all the
1174 * connections which do not match the configuration.
1175 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1176 * the specific configuration (IE) set, i.e., deny all the
1177 * connections which do not match the configuration.
1178 */
1179enum qca_access_policy {
1180 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1181 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1182};
1183
1184/**
Dmitry Shmidt17022322016-04-06 13:28:42 -07001185 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
1186 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
1187 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
1188 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
1189 * SOC timer value at TSF capture
1190 */
1191enum qca_vendor_attr_tsf_cmd {
1192 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1193 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1194 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1195 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
1196 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1197 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1198 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1199};
1200
1201/**
1202 * enum qca_tsf_operation: TSF driver commands
1203 * @QCA_TSF_CAPTURE: Initiate TSF Capture
1204 * @QCA_TSF_GET: Get TSF capture value
1205 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
1206 */
1207enum qca_tsf_cmd {
1208 QCA_TSF_CAPTURE,
1209 QCA_TSF_GET,
1210 QCA_TSF_SYNC_GET,
1211};
1212
1213/**
1214 * enum qca_vendor_attr_wisa_cmd
1215 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1216 * WISA setup vendor commands
1217 */
1218enum qca_vendor_attr_wisa_cmd {
1219 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
1220 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
1221 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
1222 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
1223 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
1224};
1225
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001226/* IEEE 802.11 Vendor Specific elements */
1227
1228/**
1229 * enum qca_vendor_element_id - QCA Vendor Specific element types
1230 *
1231 * These values are used to identify QCA Vendor Specific elements. The
1232 * payload of the element starts with the three octet OUI (OUI_QCA) and
1233 * is followed by a single octet type which is defined by this enum.
1234 *
1235 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1236 * This element can be used to specify preference order for supported
1237 * channels. The channels in this list are in preference order (the first
1238 * one has the highest preference) and are described as a pair of
1239 * (global) Operating Class and Channel Number (each one octet) fields.
1240 *
1241 * This extends the standard P2P functionality by providing option to have
1242 * more than one preferred operating channel. When this element is present,
1243 * it replaces the preference indicated in the Operating Channel attribute.
1244 * For supporting other implementations, the Operating Channel attribute is
1245 * expected to be used with the highest preference channel. Similarly, all
1246 * the channels included in this Preferred channel list element are
1247 * expected to be included in the Channel List attribute.
1248 *
1249 * This vendor element may be included in GO Negotiation Request, P2P
1250 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001251 *
1252 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1253 * This element can be used for pre-standard publication testing of HE
1254 * before P802.11ax draft assigns the element ID. The payload of this
1255 * vendor specific element is defined by the latest P802.11ax draft.
1256 * Please note that the draft is still work in progress and this element
1257 * payload is subject to change.
1258 *
1259 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1260 * This element can be used for pre-standard publication testing of HE
1261 * before P802.11ax draft assigns the element ID. The payload of this
1262 * vendor specific element is defined by the latest P802.11ax draft.
1263 * Please note that the draft is still work in progress and this element
1264 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08001265 *
1266 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1267 * element).
1268 * This element can be used for pre-standard publication testing of HE
1269 * before P802.11ax draft assigns the element ID extension. The payload of
1270 * this vendor specific element is defined by the latest P802.11ax draft
1271 * (not including the Element ID Extension field). Please note that the
1272 * draft is still work in progress and this element payload is subject to
1273 * change.
1274 *
1275 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1276 * This element can be used for pre-standard publication testing of HE
1277 * before P802.11ax draft assigns the element ID extension. The payload of
1278 * this vendor specific element is defined by the latest P802.11ax draft
1279 * (not including the Element ID Extension field). Please note that the
1280 * draft is still work in progress and this element payload is subject to
1281 * change.
1282 *
1283 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1284 * This element can be used for pre-standard publication testing of HE
1285 * before P802.11ax draft assigns the element ID extension. The payload of
1286 * this vendor specific element is defined by the latest P802.11ax draft
1287 * (not including the Element ID Extension field). Please note that the
1288 * draft is still work in progress and this element payload is subject to
1289 * change.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001290 */
1291enum qca_vendor_element_id {
1292 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001293 QCA_VENDOR_ELEM_HE_CAPAB = 1,
1294 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08001295 QCA_VENDOR_ELEM_RAPS = 3,
1296 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
1297 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001298};
1299
1300/**
1301 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1302 *
1303 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1304 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1305 * with frequencies to be scanned (in MHz)
1306 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1307 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1308 * rates to be included
1309 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07001310 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001311 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1312 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07001313 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001314 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07001315 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001316 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07001317 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001318 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001319 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08001320 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1321 * specific BSSID to scan for.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001322 */
1323enum qca_wlan_vendor_attr_scan {
1324 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001325 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
1326 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
1327 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
1328 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
1329 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
1330 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
1331 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
1332 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
1333 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
1334 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
1335 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001336 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
1337 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
1338 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
1339};
1340
1341/**
1342 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07001343 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001344 *
1345 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001346 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001347 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1348 */
1349enum scan_status {
1350 VENDOR_SCAN_STATUS_NEW_RESULTS,
1351 VENDOR_SCAN_STATUS_ABORTED,
1352 VENDOR_SCAN_STATUS_MAX,
1353};
1354
1355/**
1356 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1357 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1358 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1359 */
1360enum qca_vendor_attr_ota_test {
1361 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
1362 /* 8-bit unsigned value to indicate if OTA test is enabled */
1363 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
1364 /* keep last */
1365 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
1366 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
1367 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
1368};
1369
1370/**
1371 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1372 *
1373 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1374 */
1375enum qca_vendor_attr_txpower_scale {
1376 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
1377 /* 8-bit unsigned value to indicate the scaling of tx power */
1378 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
1379 /* keep last */
1380 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
1381 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
1382 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
1383};
1384
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001385/**
1386 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1387 *
1388 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1389 */
1390enum qca_vendor_attr_txpower_decr_db {
1391 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
1392 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001393 * a virtual interface.
1394 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001395 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
1396 /* keep last */
1397 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
1398 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
1399 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
1400};
1401
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001402/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001403 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1404 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001405 */
1406enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001407 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001408 /* Unsigned 32-bit value to set the DTIM period.
1409 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1410 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1411 * DTIM beacons.
1412 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001413 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001414 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1415 * used to calculate statistics like average the TSF offset or average
1416 * number of frame leaked.
1417 * For instance, upon Beacon frame reception:
1418 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1419 * For instance, when evaluating leaky APs:
1420 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1421 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001422 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001423 /* Unsigned 32-bit value to configure guard time, i.e., when
1424 * implementing IEEE power management based on frame control PM bit, how
1425 * long the driver waits before shutting down the radio and after
1426 * receiving an ACK frame for a Data frame with PM bit set.
1427 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001428 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001429 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001430 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001431 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001432 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001433 /* Unsigned 32-bit value to configure the number of continuous
1434 * Beacon Miss which shall be used by the firmware to penalize
1435 * the RSSI.
1436 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001437 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001438 /* Unsigned 8-bit value to configure the channel avoidance indication
1439 * behavior. Firmware to send only one indication and ignore duplicate
1440 * indications when set to avoid multiple Apps wakeups.
1441 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001442 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001443 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001444 * aggregation.
1445 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001446 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001447 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001448 * aggregation.
1449 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001450 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001451 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07001452 * retry threshold (0 disable, 31 max).
1453 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001454 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001455 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07001456 * retry threshold (0 disable, 31 max).
1457 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001458 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001459 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07001460 * retry threshold (0 disable, 31 max).
1461 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001462 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001463 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07001464 * retry threshold (0 disable, 31 max).
1465 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001466 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001467 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001468 * 2G/5G band (0~63, units in us)
1469 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001470 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001471 /* Unsigned 32-bit value to configure the number of unicast TX fail
1472 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07001473 * reached.
1474 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001475 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001476 /* Attribute used to set scan default IEs to the driver.
1477 *
1478 * These IEs can be used by scan operations that will be initiated by
1479 * the driver/firmware.
1480 *
1481 * For further scan requests coming to the driver, these IEs should be
1482 * merged with the IEs received along with scan request coming to the
1483 * driver. If a particular IE is present in the scan default IEs but not
1484 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07001485 * sent in the Probe Request frames for that scan request.
1486 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001487 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001488 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001489 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001490 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001491 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001492 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001493 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001494 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001495 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1496 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001497 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001498 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001499 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1500 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001501 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001502 /* Unsigned 32-bit, defining the access policy.
1503 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001504 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
1505 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001506 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001507 /* Sets the list of full set of IEs for which a specific access policy
1508 * has to be applied. Used along with
1509 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001510 * Zero length payload can be used to clear this access constraint.
1511 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001512 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001513 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
1514 * corresponding configurations are applied. If the interface index is
1515 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07001516 * wiphy.
1517 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001518 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001519 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001520 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001521 /* 8-bit unsigned value to configure the driver and below layers to
1522 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07001523 * 1-Ignore, 0-Don't ignore
1524 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001525 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001526 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07001527 * 1-Enable, 0-Disable
1528 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001529 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001530 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001531 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001532 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07001533 * 1-Enable, 0-Disable
1534 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001535 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001536 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07001537 * the unit is micro-second
1538 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001539 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
1540 /* 32-bit unsigned value to set reorder timeout for AC_VO */
1541 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
1542 /* 32-bit unsigned value to set reorder timeout for AC_VI */
1543 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
1544 /* 32-bit unsigned value to set reorder timeout for AC_BE */
1545 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
1546 /* 32-bit unsigned value to set reorder timeout for AC_BK */
1547 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
1548 /* 6-byte MAC address to point out the specific peer */
1549 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
1550 /* 32-bit unsigned value to set window size for specific peer */
1551 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001552 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
1553 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
1554 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
1555 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001556 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
1557 * station device while in disconnect state. The attribute use the
1558 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
1559 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
1560 * 10 MHz channel width, the station will not connect to a BSS using 20
1561 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07001562 * clear this constraint.
1563 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001564 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
1565 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07001566 * for 2G/5G band (units in us)
1567 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001568 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
1569 /* 32-bit unsigned value to set probe period */
1570 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
1571 /* 32-bit unsigned value to set stay period */
1572 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
1573 /* 32-bit unsigned value to set snr diff */
1574 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
1575 /* 32-bit unsigned value to set probe dwell time */
1576 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
1577 /* 32-bit unsigned value to set mgmt snr weight */
1578 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
1579 /* 32-bit unsigned value to set data snr weight */
1580 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
1581 /* 32-bit unsigned value to set ack snr weight */
1582 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
1583 /* 32-bit unsigned value to configure the listen interval.
1584 * This is in units of beacon intervals. This configuration alters
1585 * the negotiated listen interval with the AP during the connection.
1586 * It is highly recommended to configure a value less than or equal to
1587 * the one negotiated during the association. Configuring any greater
1588 * value can have adverse effects (frame loss, AP disassociating STA,
1589 * etc.).
1590 */
1591 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
1592 /*
1593 * 8 bit unsigned value that is set on an AP/GO virtual interface to
1594 * disable operations that would cause the AP/GO to leave its operating
1595 * channel.
1596 *
1597 * This will restrict the scans to the AP/GO operating channel and the
1598 * channels of the other band, if DBS is supported.A STA/CLI interface
1599 * brought up after this setting is enabled, will be restricted to
1600 * connecting to devices only on the AP/GO interface's operating channel
1601 * or on the other band in DBS case. P2P supported channel list is
1602 * modified, to only include AP interface's operating-channel and the
1603 * channels of the other band if DBS is supported.
1604 *
1605 * These restrictions are only applicable as long as the AP/GO interface
1606 * is alive. If the AP/GO interface is brought down then this
1607 * setting/restriction is forgotten.
1608 *
1609 * If this variable is set on an AP/GO interface while a multi-channel
1610 * concurrent session is active, it has no effect on the operation of
1611 * the current interfaces, other than restricting the scan to the AP/GO
1612 * operating channel and the other band channels if DBS is supported.
1613 * However, if the STA is brought down and restarted then the new STA
1614 * connection will either be formed on the AP/GO channel or on the
1615 * other band in a DBS case. This is because of the scan being
1616 * restricted on these channels as mentioned above.
1617 *
1618 * 1-Restrict / 0-Don't restrict offchannel operations.
1619 */
1620 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
1621 /*
1622 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
1623 * on an interface.
1624 * 1 - Enable, 0 - Disable.
1625 */
1626 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
1627
1628 /*
1629 * 8 bit unsigned value to globally enable/disable scan
1630 * 1 - Enable, 0 - Disable.
1631 */
1632 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
1633
1634 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07001635 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001636 */
1637 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
1638
1639 /* Unsigned 32-bit value to configure the number of continuous
1640 * Beacon Miss which shall be used by the firmware to penalize
1641 * the RSSI for BTC.
1642 */
1643 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
1644
1645 /* 8-bit unsigned value to configure the driver and below layers to
1646 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001647 * 0-enable, 1-disable
1648 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001649 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001650
Roshan Pius3a1667e2018-07-03 15:17:14 -07001651 /* 16-bit unsigned value to configure the level of WLAN latency
1652 * module. See enum qca_wlan_vendor_attr_config_latency_level.
1653 */
1654 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
1655
1656 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
1657 * the connect interface. Exclusively used for the scenarios where the
1658 * device is used as a test bed device with special functionality and
1659 * not recommended for production. This helps driver to not validate the
1660 * RSNE passed from user space and thus allow arbitrary IE data to be
1661 * used for testing purposes.
1662 * 1-enable, 0-disable.
1663 * Applications set/reset this configuration. If not reset, this
1664 * parameter remains in use until the driver is unloaded.
1665 */
1666 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
1667
1668 /* 8-bit unsigned value to trigger green Tx power saving.
1669 * 1-Enable, 0-Disable
1670 */
1671 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
1672
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001673 /* keep last */
1674 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
1675 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
1676 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
1677};
1678
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001679/**
1680 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
1681 */
1682enum qca_wlan_vendor_attr_sap_config {
1683 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
1684 /* 1 - reserved for QCA */
1685 /* List of frequencies on which AP is expected to operate.
1686 * This is irrespective of ACS configuration. This list is a priority
1687 * based one and is looked for before the AP is created to ensure the
1688 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
1689 * the system.
1690 */
1691 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
1692
1693 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
1694 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
1695 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
1696};
1697
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001698/**
1699 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
1700 * conditional channel switch
1701 */
1702enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
1703 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
1704 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07001705 * order)
1706 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001707 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
1708 /* Status of the conditional switch (u32).
1709 * 0: Success, Non-zero: Failure
1710 */
1711 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
1712
1713 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
1714 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
1715 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
1716};
1717
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001718/**
1719 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
1720 */
1721enum qca_wlan_gpio_attr {
1722 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
1723 /* Unsigned 32-bit attribute for GPIO command */
1724 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
1725 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
1726 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
1727 /* Unsigned 32-bit attribute for GPIO value to configure */
1728 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
1729 /* Unsigned 32-bit attribute for GPIO pull type */
1730 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
1731 /* Unsigned 32-bit attribute for GPIO interrupt mode */
1732 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
1733
1734 /* keep last */
1735 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
1736 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
1737 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
1738};
1739
1740/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07001741 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
1742 * MSDUQ depth threshold per peer per tid in the target
1743 *
1744 * Associated Vendor Command:
1745 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
1746 */
1747enum qca_wlan_set_qdepth_thresh_attr {
1748 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
1749 /* 6-byte MAC address */
1750 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
1751 /* Unsigned 32-bit attribute for holding the TID */
1752 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
1753 /* Unsigned 32-bit attribute for holding the update mask
1754 * bit 0 - Update high priority msdu qdepth threshold
1755 * bit 1 - Update low priority msdu qdepth threshold
1756 * bit 2 - Update UDP msdu qdepth threshold
1757 * bit 3 - Update Non UDP msdu qdepth threshold
1758 * rest of bits are reserved
1759 */
1760 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
1761 /* Unsigned 32-bit attribute for holding the threshold value */
1762 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
1763
1764 /* keep last */
1765 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
1766 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
1767 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
1768};
1769
1770/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001771 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
1772 */
1773enum qca_wlan_vendor_attr_get_hw_capability {
1774 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
1775 /* Antenna isolation
1776 * An attribute used in the response.
1777 * The content of this attribute is encoded in a byte array. Each byte
1778 * value is an antenna isolation value. The array length is the number
1779 * of antennas.
1780 */
1781 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
1782 /* Request HW capability
1783 * An attribute used in the request.
1784 * The content of this attribute is a u32 array for one or more of
1785 * hardware capabilities (attribute IDs) that are being requested. Each
1786 * u32 value has a value from this
1787 * enum qca_wlan_vendor_attr_get_hw_capability
1788 * identifying which capabilities are requested.
1789 */
1790 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
1791
1792 /* keep last */
1793 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
1794 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
1795 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
1796};
1797
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001798/**
1799 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
1800 * offload which is an extension for LL_STATS.
1801 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
1802 * If MAC counters do not exceed the threshold, FW will report monitored
1803 * link layer counters periodically as this setting. The first report is
1804 * always triggered by this timer.
1805 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
1806 * For each MAC layer counter, FW holds two copies. One is the current value.
1807 * The other is the last report. Once a current counter's increment is larger
1808 * than the threshold, FW will indicate that counter to host even if the
1809 * monitoring timer does not expire.
1810 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
1811 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
1812 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
1813 * failure code.
1814 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
1815 * 1: TX packet discarded
1816 * 2: No ACK
1817 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001818 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
1819 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
1820 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
1821 * Threshold for all monitored parameters. If per counter dedicated threshold
1822 * is not enabled, this threshold will take effect.
1823 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
1824 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
1825 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
1826 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
1827 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
1828 * Bit0: TX counter unit in MSDU
1829 * Bit1: TX counter unit in MPDU
1830 * Bit2: TX counter unit in PPDU
1831 * Bit3: TX counter unit in byte
1832 * Bit4: Dropped MSDUs
1833 * Bit5: Dropped Bytes
1834 * Bit6: MPDU retry counter
1835 * Bit7: MPDU failure counter
1836 * Bit8: PPDU failure counter
1837 * Bit9: MPDU aggregation counter
1838 * Bit10: MCS counter for ACKed MPDUs
1839 * Bit11: MCS counter for Failed MPDUs
1840 * Bit12: TX Delay counter
1841 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
1842 * Bit0: MAC RX counter unit in MPDU
1843 * Bit1: MAC RX counter unit in byte
1844 * Bit2: PHY RX counter unit in PPDU
1845 * Bit3: PHY RX counter unit in byte
1846 * Bit4: Disorder counter
1847 * Bit5: Retry counter
1848 * Bit6: Duplication counter
1849 * Bit7: Discard counter
1850 * Bit8: MPDU aggregation size counter
1851 * Bit9: MCS counter
1852 * Bit10: Peer STA power state change (wake to sleep) counter
1853 * Bit11: Peer STA power save counter, total time in PS mode
1854 * Bit12: Probe request counter
1855 * Bit13: Other management frames counter
1856 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
1857 * Bit0: Idle time
1858 * Bit1: TX time
1859 * Bit2: time RX in current bss
1860 * Bit3: Out of current bss time
1861 * Bit4: Wireless medium busy time
1862 * Bit5: RX in bad condition time
1863 * Bit6: TX in bad condition time
1864 * Bit7: time wlan card not available
1865 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
1866 * Bit0: Per channel SNR counter
1867 * Bit1: Per channel noise floor counter
1868 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
1869 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
1870 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
1871 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
1872 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
1873 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
1874 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
1875 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
1876 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
1877 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
1878 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
1879 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
1880 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
1881 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
1882 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
1883 * aggregation stats buffer length
1884 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
1885 * buffer for ACKed MPDUs.
1886 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
1887 * buffer for failed MPDUs.
1888 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
1889 * length of delay stats array.
1890 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
1891 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
1892 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
1893 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
1894 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
1895 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
1896 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
1897 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
1898 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
1899 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
1900 * flagged as retransmissions
1901 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
1902 * flagged as duplicated
1903 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
1904 * packets discarded
1905 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
1906 * stats buffer.
1907 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
1908 * stats buffer.
1909 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
1910 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
1911 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
1912 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
1913 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
1914 * requests received
1915 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
1916 * frames received
1917 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
1918 * there is no TX, nor RX, nor interference.
1919 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
1920 * transmitting packets.
1921 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
1922 * for receiving.
1923 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
1924 * interference detected.
1925 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
1926 * receiving packets with errors.
1927 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
1928 * TX no-ACK.
1929 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
1930 * the chip is unable to work in normal conditions.
1931 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
1932 * receiving packets in current BSS.
1933 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
1934 * receiving packets not in current BSS.
1935 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
1936 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
1937 * This is a container for per antenna signal stats.
1938 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
1939 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
1940 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
1941 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07001942 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
1943 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
1944 * message, user layer APP could call gettimeofday to get another
1945 * timestamp and calculate transfer delay for the message.
1946 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
1947 * Real period for this measurement, unit in us.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001948 */
1949enum qca_wlan_vendor_attr_ll_stats_ext {
1950 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
1951
1952 /* Attributes for configurations */
1953 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
1954 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
1955
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001956 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001957 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
1958
1959 /* TX failure event */
1960 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
1961 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
1962 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
1963
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001964 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
1965 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
1966
1967 /* MAC counters */
1968 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
1969 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
1970 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
1971 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
1972 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
1973 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
1974 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
1975 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
1976 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
1977 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
1978 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
1979 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
1980
1981 /* Sub-attributes for PEER_AC_TX */
1982 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
1983 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
1984 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
1985 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
1986 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
1987 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
1988 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
1989 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
1990 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
1991 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
1992 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
1993 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
1994 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
1995 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
1996 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
1997 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
1998 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
1999
2000 /* Sub-attributes for PEER_AC_RX */
2001 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
2002 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
2003 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
2004 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
2005 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
2006 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
2007 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
2008 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
2009 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
2010 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
2011 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
2012 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
2013 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
2014 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
2015 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
2016 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
2017
2018 /* Sub-attributes for CCA_BSS */
2019 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
2020 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
2021 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
2022 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
2023 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
2024 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
2025 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
2026
2027 /* sub-attribute for BSS_RX_TIME */
2028 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
2029 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
2030
2031 /* Sub-attributes for PEER_SIGNAL */
2032 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
2033 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
2034 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
2035 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
2036
2037 /* Sub-attributes for IFACE_BSS */
2038 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
2039 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
2040
Roshan Pius3a1667e2018-07-03 15:17:14 -07002041 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
2042 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
2043
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002044 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
2045 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
2046 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
2047};
2048
2049/* Attributes for FTM commands and events */
2050
2051/**
2052 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
2053 *
2054 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
2055 * enum qca_wlan_vendor_attr_loc_capa_flags.
2056 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
2057 * of measurement sessions that can run concurrently.
2058 * Default is one session (no session concurrency).
2059 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
2060 * peers that are supported in running sessions. For example,
2061 * if the value is 8 and maximum number of sessions is 2, you can
2062 * have one session with 8 unique peers, or 2 sessions with 4 unique
2063 * peers each, and so on.
2064 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
2065 * of bursts per peer, as an exponent (2^value). Default is 0,
2066 * meaning no multi-burst support.
2067 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
2068 * of measurement exchanges allowed in a single burst.
2069 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
2070 * types. A bit mask (unsigned 32 bit value), each bit corresponds
2071 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
2072 */
2073enum qca_wlan_vendor_attr_loc_capa {
2074 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
2075 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
2076 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
2077 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
2078 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
2079 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
2080 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
2081 /* keep last */
2082 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
2083 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
2084 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
2085};
2086
2087/**
2088 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
2089 *
2090 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
2091 * can be configured as an FTM responder (for example, an AP that
2092 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
2093 * will be supported if set.
2094 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
2095 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
2096 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002097 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002098 * supports immediate (ASAP) response.
2099 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
2100 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
2101 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
2102 * requesting AOA measurements as part of an FTM session.
2103 */
2104enum qca_wlan_vendor_attr_loc_capa_flags {
2105 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
2106 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
2107 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
2108 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
2109 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
2110};
2111
2112/**
2113 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
2114 * a single peer in a measurement session.
2115 *
2116 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
2117 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
2118 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002119 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002120 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
2121 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
2122 * list of supported attributes.
2123 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
2124 * secure measurement.
2125 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
2126 * measurement every <value> bursts. If 0 or not specified,
2127 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002128 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
2129 * the measurement frames are exchanged. Optional; if not
2130 * specified, try to locate the peer in the kernel scan
2131 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002132 */
2133enum qca_wlan_vendor_attr_ftm_peer_info {
2134 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
2135 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
2136 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002137 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002138 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
2139 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002140 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002141 /* keep last */
2142 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
2143 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
2144 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
2145};
2146
2147/**
2148 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
2149 * per-peer
2150 *
2151 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
2152 * immediate (ASAP) response from peer.
2153 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
2154 * LCI report from peer. The LCI report includes the absolute
2155 * location of the peer in "official" coordinates (similar to GPS).
2156 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
2157 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
2158 * Location civic report from peer. The LCR includes the location
2159 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
2160 * 11.24.6.7 for more information.
2161 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
2162 * request a secure measurement.
2163 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
2164 */
2165enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
2166 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
2167 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
2168 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
2169 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
2170};
2171
2172/**
2173 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
2174 *
2175 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
2176 * to perform in a single burst.
2177 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
2178 * perform, specified as an exponent (2^value).
2179 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
2180 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
2181 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
2182 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
2183 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
2184 */
2185enum qca_wlan_vendor_attr_ftm_meas_param {
2186 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
2187 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
2188 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
2189 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
2190 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
2191 /* keep last */
2192 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
2193 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
2194 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
2195};
2196
2197/**
2198 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
2199 *
2200 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
2201 * peer.
2202 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
2203 * request for this peer.
2204 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
2205 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
2206 * to measurement results for this peer.
2207 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
2208 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
2209 * request failed and peer requested not to send an additional request
2210 * for this number of seconds.
2211 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
2212 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2213 * 9.4.2.22.10.
2214 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
2215 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2216 * 9.4.2.22.13.
2217 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
2218 * overridden some measurement request parameters. See
2219 * enum qca_wlan_vendor_attr_ftm_meas_param.
2220 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
2221 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
2222 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
2223 * results. Each entry is a nested attribute defined
2224 * by enum qca_wlan_vendor_attr_ftm_meas.
2225 */
2226enum qca_wlan_vendor_attr_ftm_peer_result {
2227 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
2228 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
2229 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
2230 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
2231 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
2232 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
2233 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
2234 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
2235 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
2236 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
2237 /* keep last */
2238 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
2239 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
2240 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
2241};
2242
2243/**
2244 * enum qca_wlan_vendor_attr_ftm_peer_result_status
2245 *
2246 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
2247 * will be provided. Peer may have overridden some measurement parameters,
2248 * in which case overridden parameters will be report by
2249 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
2250 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
2251 * of performing the measurement request. No more results will be sent
2252 * for this peer in this session.
2253 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
2254 * failed, and requested not to send an additional request for number
2255 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
2256 * attribute.
2257 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
2258 * failed. Request was not sent over the air.
2259 */
2260enum qca_wlan_vendor_attr_ftm_peer_result_status {
2261 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
2262 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
2263 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
2264 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
2265};
2266
2267/**
2268 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
2269 * for measurement result, per-peer
2270 *
2271 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
2272 * measurement completed for this peer. No more results will be reported
2273 * for this peer in this session.
2274 */
2275enum qca_wlan_vendor_attr_ftm_peer_result_flags {
2276 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
2277};
2278
2279/**
2280 * enum qca_vendor_attr_loc_session_status: Session completion status code
2281 *
2282 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
2283 * successfully.
2284 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
2285 * by request.
2286 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
2287 * was invalid and was not started.
2288 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
2289 * and did not complete normally (for example out of resources).
2290 */
2291enum qca_vendor_attr_loc_session_status {
2292 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
2293 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
2294 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
2295 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
2296};
2297
2298/**
2299 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
2300 *
2301 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
2302 * recorded by responder, in picoseconds.
2303 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2304 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
2305 * initiator, in picoseconds.
2306 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2307 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
2308 * initiator, in picoseconds.
2309 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2310 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
2311 * responder, in picoseconds.
2312 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2313 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
2314 * during this measurement exchange. Optional and will be provided if
2315 * the hardware can measure it.
2316 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
2317 * responder. Not always provided.
2318 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2319 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
2320 * responder. Not always provided.
2321 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2322 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
2323 * initiator. Not always provided.
2324 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2325 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
2326 * initiator. Not always provided.
2327 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2328 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
2329 */
2330enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002331 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002332 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
2333 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
2334 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
2335 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
2336 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
2337 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
2338 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
2339 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
2340 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
2341 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
2342 /* keep last */
2343 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
2344 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
2345 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
2346};
2347
2348/**
2349 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
2350 *
2351 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
2352 * CIR (channel impulse response) path for each antenna.
2353 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
2354 * of the strongest CIR path for each antenna.
2355 */
2356enum qca_wlan_vendor_attr_aoa_type {
2357 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
2358 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
2359 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
2360};
2361
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002362/**
2363 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
2364 * validate encryption engine
2365 *
2366 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
2367 * This will be included if the request is for decryption; if not included,
2368 * the request is treated as a request for encryption by default.
2369 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
2370 * indicating the key cipher suite. Takes same values as
2371 * NL80211_ATTR_KEY_CIPHER.
2372 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
2373 * Key Id to be used for encryption
2374 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
2375 * Key (TK) to be used for encryption/decryption
2376 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
2377 * Packet number to be specified for encryption/decryption
2378 * 6 bytes for TKIP/CCMP/GCMP.
2379 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
2380 * representing the 802.11 packet (header + payload + FCS) that
2381 * needs to be encrypted/decrypted.
2382 * Encrypted/decrypted response from the driver will also be sent
2383 * to userspace with the same attribute.
2384 */
2385enum qca_wlan_vendor_attr_encryption_test {
2386 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
2387 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
2388 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
2389 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
2390 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
2391 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
2392 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
2393
2394 /* keep last */
2395 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
2396 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
2397 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
2398};
2399
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002400/**
2401 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
2402 * sector for DMG RF sector operations.
2403 *
2404 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
2405 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
2406 */
2407enum qca_wlan_vendor_attr_dmg_rf_sector_type {
2408 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
2409 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
2410 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
2411};
2412
2413/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002414 * BRP antenna limit mode
2415 *
2416 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
2417 * antenna limit, BRP will be performed as usual.
2418 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
2419 * antennas limit. the hardware may use less antennas than the
2420 * maximum limit.
2421 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
2422 * use exactly the specified number of antennas for BRP.
2423 */
2424enum qca_wlan_vendor_attr_brp_ant_limit_mode {
2425 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
2426 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
2427 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
2428 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
2429};
2430
2431/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002432 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
2433 * DMG RF sector configuration for a single RF module.
2434 * The values are defined in a compact way which closely matches
2435 * the way it is stored in HW registers.
2436 * The configuration provides values for 32 antennas and 8 distribution
2437 * amplifiers, and together describes the characteristics of the RF
2438 * sector - such as a beam in some direction with some gain.
2439 *
2440 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
2441 * of RF module for this configuration.
2442 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
2443 * amplifier gain index. Unsigned 32 bit number containing
2444 * bits for all 32 antennas.
2445 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
2446 * amplifier gain index. Unsigned 32 bit number containing
2447 * bits for all 32 antennas.
2448 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
2449 * amplifier gain index. Unsigned 32 bit number containing
2450 * bits for all 32 antennas.
2451 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
2452 * for first 16 antennas, 2 bits per antenna.
2453 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
2454 * for last 16 antennas, 2 bits per antenna.
2455 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
2456 * DTYPE values (3 bits) for each distribution amplifier, followed
2457 * by X16 switch bits for each distribution amplifier. There are
2458 * total of 8 distribution amplifiers.
2459 */
2460enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
2461 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
2462 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
2463 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
2464 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
2465 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
2466 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
2467 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
2468 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
2469
2470 /* keep last */
2471 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
2472 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
2473 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
2474};
2475
2476enum qca_wlan_vendor_attr_ll_stats_set {
2477 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2478 /* Unsigned 32-bit value */
2479 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2480 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
2481 /* keep last */
2482 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2483 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2484 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
2485};
2486
2487enum qca_wlan_vendor_attr_ll_stats_clr {
2488 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2489 /* Unsigned 32bit bitmap for clearing statistics
2490 * All radio statistics 0x00000001
2491 * cca_busy_time (within radio statistics) 0x00000002
2492 * All channel stats (within radio statistics) 0x00000004
2493 * All scan statistics (within radio statistics) 0x00000008
2494 * All interface statistics 0x00000010
2495 * All tx rate statistics (within interface statistics) 0x00000020
2496 * All ac statistics (with in interface statistics) 0x00000040
2497 * All contention (min, max, avg) statistics (within ac statisctics)
2498 * 0x00000080.
2499 */
2500 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
2501 /* Unsigned 8 bit value: Request to stop statistics collection */
2502 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
2503
2504 /* Unsigned 32 bit bitmap: Response from the driver
2505 * for the cleared statistics
2506 */
2507 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
2508 /* Unsigned 8 bit value: Response from driver/firmware
2509 * for the stop request
2510 */
2511 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
2512 /* keep last */
2513 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2514 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2515 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
2516};
2517
2518enum qca_wlan_vendor_attr_ll_stats_get {
2519 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2520 /* Unsigned 32 bit value provided by the caller issuing the GET stats
2521 * command. When reporting the stats results, the driver uses the same
2522 * value to indicate which GET request the results correspond to.
2523 */
2524 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
2525 /* Unsigned 32 bit value - bit mask to identify what statistics are
2526 * requested for retrieval.
2527 * Radio Statistics 0x00000001
2528 * Interface Statistics 0x00000020
2529 * All Peer Statistics 0x00000040
2530 * Peer Statistics 0x00000080
2531 */
2532 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
2533 /* keep last */
2534 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2535 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2536 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
2537};
2538
2539enum qca_wlan_vendor_attr_ll_stats_results {
2540 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2541 /* Unsigned 32bit value. Used by the driver; must match the request id
2542 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2543 */
2544 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2545
2546 /* Unsigned 32 bit value */
2547 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2548 /* Unsigned 32 bit value */
2549 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2550 /* Unsigned 32 bit value */
2551 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2552 /* Unsigned 32 bit value */
2553 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2554 /* Signed 32 bit value */
2555 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2556 /* Signed 32 bit value */
2557 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2558 /* Signed 32 bit value */
2559 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2560
2561 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2562 * nested within the interface stats.
2563 */
2564
2565 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2566 * Type = enum wifi_interface_mode.
2567 */
2568 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2569 /* Interface MAC address. An array of 6 Unsigned int8 */
2570 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2571 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2572 * AUTHENTICATING, etc. valid for STA, CLI only.
2573 */
2574 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2575 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2576 */
2577 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2578 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2579 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2580 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2581 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2582 /* BSSID. An array of 6 unsigned 8 bit values */
2583 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2584 /* Country string advertised by AP. An array of 3 unsigned 8 bit
2585 * values.
2586 */
2587 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2588 /* Country string for this association. An array of 3 unsigned 8 bit
2589 * values.
2590 */
2591 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2592
2593 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2594 * be nested within the interface stats.
2595 */
2596
2597 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2598 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2599 /* Unsigned int 32 value corresponding to respective AC */
2600 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2601 /* Unsigned int 32 value corresponding to respective AC */
2602 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2603 /* Unsigned int 32 value corresponding to respective AC */
2604 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2605 /* Unsigned int 32 value corresponding to respective AC */
2606 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2607 /* Unsigned int 32 value corresponding to respective AC */
2608 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2609 /* Unsigned int 32 value corresponding to respective AC */
2610 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2611 /* Unsigned int 32 value corresponding to respective AC */
2612 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2613 /* Unsigned int 32 value corresponding to respective AC */
2614 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2615 /* Unsigned int 32 value corresponding to respective AC */
2616 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2617 /* Unsigned int 32 values corresponding to respective AC */
2618 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2619 /* Unsigned int 32 values corresponding to respective AC */
2620 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2621 /* Unsigned int 32 values corresponding to respective AC */
2622 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2623 /* Unsigned int 32 values corresponding to respective AC */
2624 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2625 /* Unsigned int 32 values corresponding to respective AC */
2626 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2627 /* Unsigned 32 bit value. Number of peers */
2628 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2629
2630 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2631 * nested within the interface stats.
2632 */
2633
2634 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2635 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2636 /* MAC addr corresponding to respective peer. An array of 6 unsigned
2637 * 8 bit values.
2638 */
2639 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2640 /* Unsigned int 32 bit value representing capabilities corresponding
2641 * to respective peer.
2642 */
2643 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2644 /* Unsigned 32 bit value. Number of rates */
2645 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2646
2647 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2648 * are nested within the rate stat.
2649 */
2650
2651 /* Wi-Fi Rate - separate attributes defined for individual fields */
2652
2653 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2654 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2655 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2656 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2657 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2658 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2659 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07002660 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2661 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002662 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2663
2664 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2665 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2666
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002667 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2668 * nested within the peer info stats.
2669 */
2670
2671 /* Unsigned int 32 bit value. Number of successfully transmitted data
2672 * packets, i.e., with ACK received corresponding to the respective
2673 * rate.
2674 */
2675 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2676 /* Unsigned int 32 bit value. Number of received data packets
2677 * corresponding to the respective rate.
2678 */
2679 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2680 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2681 * received corresponding to the respective rate.
2682 */
2683 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2684 /* Unsigned int 32 bit value. Total number of data packet retries for
2685 * the respective rate.
2686 */
2687 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2688 /* Unsigned int 32 bit value. Total number of short data packet retries
2689 * for the respective rate.
2690 */
2691 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2692 /* Unsigned int 32 bit value. Total number of long data packet retries
2693 * for the respective rate.
2694 */
2695 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2696
2697 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2698 /* Unsigned 32 bit value. Total number of msecs the radio is awake
2699 * accruing over time.
2700 */
2701 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2702 /* Unsigned 32 bit value. Total number of msecs the radio is
2703 * transmitting accruing over time.
2704 */
2705 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2706 /* Unsigned 32 bit value. Total number of msecs the radio is in active
2707 * receive accruing over time.
2708 */
2709 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2710 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2711 * to all scan accruing over time.
2712 */
2713 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2714 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2715 * to NAN accruing over time.
2716 */
2717 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2718 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2719 * to GSCAN accruing over time.
2720 */
2721 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2722 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2723 * to roam scan accruing over time.
2724 */
2725 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2726 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2727 * to PNO scan accruing over time.
2728 */
2729 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2730 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2731 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2732 */
2733 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2734 /* Unsigned 32 bit value. Number of channels. */
2735 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2736
2737 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2738 * be nested within the channel stats.
2739 */
2740
2741 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2742 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2743 /* Unsigned 32 bit value. Primary 20 MHz channel. */
2744 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2745 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2746 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2747 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2748 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2749
2750 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2751 * nested within the radio stats.
2752 */
2753
2754 /* Unsigned int 32 bit value representing total number of msecs the
2755 * radio is awake on that channel accruing over time, corresponding to
2756 * the respective channel.
2757 */
2758 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2759 /* Unsigned int 32 bit value representing total number of msecs the CCA
2760 * register is busy accruing over time corresponding to the respective
2761 * channel.
2762 */
2763 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2764
2765 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2766
2767 /* Signifies the nested list of channel attributes
2768 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
2769 */
2770 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2771
2772 /* Signifies the nested list of peer info attributes
2773 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2774 */
2775 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2776
2777 /* Signifies the nested list of rate info attributes
2778 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2779 */
2780 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2781
2782 /* Signifies the nested list of wmm info attributes
2783 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2784 */
2785 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2786
2787 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2788 * that more stats, e.g., peers or radio, are to follow in the next
2789 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2790 * Otherwise, it is set to 0.
2791 */
2792 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2793
2794 /* Unsigned 64 bit value */
2795 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2796
2797 /* Unsigned 32 bit value */
2798 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2799
2800 /* Unsigned 32 bit value */
2801 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2802
2803 /* Unsigned 32 bit value */
2804 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2805
2806 /* Unsigned 32 bit value */
2807 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2808
2809 /* Unsigned 32 bit value */
2810 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2811
2812 /* Number of msecs the radio spent in transmitting for each power level
2813 */
2814 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2815
2816 /* Unsigned 32 bit value */
2817 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2818 /* Unsigned 32 bit value */
2819 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2820 /* Unsigned 32 bit value */
2821 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2822 /* Unsigned 32 bit value */
2823 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2824
Roshan Pius3a1667e2018-07-03 15:17:14 -07002825 /* Unsigned int 32 value.
2826 * Pending MSDUs corresponding to respective AC.
2827 */
2828 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2829
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002830 /* keep last */
2831 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2832 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2833 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2834};
2835
Roshan Pius3a1667e2018-07-03 15:17:14 -07002836enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002837 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2838 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2839 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2840 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2841
2842 /* keep last */
2843 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2844 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2845 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2846};
2847
2848/**
2849 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
2850 * TDLS configuration to the host driver.
2851 *
2852 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
2853 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
2854 * represents the different TDLS trigger modes.
2855 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
2856 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
2857 * of packets shall meet the criteria for implicit TDLS setup.
2858 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
2859 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
2860 * to initiate a TDLS setup.
2861 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
2862 * a TDLS Discovery to the peer.
2863 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
2864 * discovery attempts to know the TDLS capability of the peer. A peer is
2865 * marked as TDLS not capable if there is no response for all the attempts.
2866 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
2867 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
2868 * number of TX / RX frames meet the criteria for TDLS teardown.
2869 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
2870 * of Tx/Rx packets within a duration
2871 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
2872 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
2873 * corresponding to the RSSI of the peer below which a TDLS setup is
2874 * triggered.
2875 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
2876 * corresponding to the RSSI of the peer above which a TDLS teardown is
2877 * triggered.
2878 */
2879enum qca_wlan_vendor_attr_tdls_configuration {
2880 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
2881 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
2882
2883 /* Attributes configuring the TDLS Implicit Trigger */
2884 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
2885 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
2886 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
2887 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
2888 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
2889 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
2890 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
2891 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
2892
2893 /* keep last */
2894 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
2895 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
2896 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
2897};
2898
2899/**
2900 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
2901 * the driver
2902 *
2903 * The following are the different values for
2904 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
2905 *
2906 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
2907 * the TDLS connection to a respective peer comes from the user space.
2908 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
2909 * TDLS_DISCOVER to do this.
2910 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
2911 * setup/teardown to the eligible peer once the configured criteria
2912 * (such as TX/RX threshold, RSSI) is met. The attributes
2913 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
2914 * the different configuration criteria for the TDLS trigger from the
2915 * host driver.
2916 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
2917 * the TDLS setup / teardown through the implicit mode only to the
2918 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
2919 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
2920 * External mode works on top of the implicit mode. Thus the host driver
2921 * is expected to configure in TDLS Implicit mode too to operate in
2922 * External mode.
2923 * Configuring External mode alone without Implicit mode is invalid.
2924 *
2925 * All the above implementations work as expected only when the host driver
2926 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
2927 * that the TDLS message exchange is not internal to the host driver, but
2928 * depends on wpa_supplicant to do the message exchange.
2929 */
2930enum qca_wlan_vendor_tdls_trigger_mode {
2931 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
2932 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
2933 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
2934};
2935
Dmitry Shmidt29333592017-01-09 12:27:11 -08002936/**
2937 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
2938 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
2939 * that is hard-coded in the Board Data File (BDF).
2940 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
2941 * that is hard-coded in the Board Data File (BDF).
2942 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
2943 * that is hard-coded in the Board Data File (BDF).
2944 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
2945 * that is hard-coded in the Board Data File (BDF).
2946 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
2947 * that is hard-coded in the Board Data File (BDF).
2948 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
2949 * source of SAR power limits, thereby disabling the SAR power
2950 * limit feature.
2951 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
2952 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002953 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
2954 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08002955 *
2956 * This enumerates the valid set of values that may be supplied for
2957 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07002958 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
2959 * the response to an instance of the
2960 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08002961 */
2962enum qca_vendor_attr_sar_limits_selections {
2963 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
2964 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
2965 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
2966 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
2967 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
2968 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
2969 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07002970 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002971};
2972
2973/**
2974 * enum qca_vendor_attr_sar_limits_spec_modulations -
2975 * SAR limits specification modulation
2976 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
2977 * CCK modulation
2978 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
2979 * OFDM modulation
2980 *
2981 * This enumerates the valid set of values that may be supplied for
2982 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
2983 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
2984 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07002985 * command or in the response to an instance of the
2986 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08002987 */
2988enum qca_vendor_attr_sar_limits_spec_modulations {
2989 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
2990 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
2991};
2992
2993/**
2994 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
2995 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002996 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08002997 * select which SAR power limit table should be used. Valid
2998 * values are enumerated in enum
2999 * %qca_vendor_attr_sar_limits_selections. The existing SAR
3000 * power limit selection is unchanged if this attribute is not
3001 * present.
3002 *
3003 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
3004 * which specifies the number of SAR power limit specifications
3005 * which will follow.
3006 *
3007 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
3008 * limit specifications. The number of specifications is
3009 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
3010 * specification contains a set of
3011 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
3012 * specification is uniquely identified by the attributes
3013 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
3014 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
3015 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
3016 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07003017 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
3018 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
3019 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
3020 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
3021 * needed based upon the value of
3022 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003023 *
3024 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
3025 * indicate for which band this specification applies. Valid
3026 * values are enumerated in enum %nl80211_band (although not all
3027 * bands may be supported by a given device). If the attribute is
3028 * not supplied then the specification will be applied to all
3029 * supported bands.
3030 *
3031 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
3032 * to indicate for which antenna chain this specification
3033 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
3034 * attribute is not supplied then the specification will be
3035 * applied to all chains.
3036 *
3037 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
3038 * value to indicate for which modulation scheme this
3039 * specification applies. Valid values are enumerated in enum
3040 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
3041 * is not supplied then the specification will be applied to all
3042 * modulation schemes.
3043 *
3044 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
3045 * value to specify the actual power limit value in units of 0.5
3046 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07003047 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3048 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003049 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07003050 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
3051 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
3052 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3053 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
3054 *
3055 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
3056 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003057 */
3058enum qca_vendor_attr_sar_limits {
3059 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
3060 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
3061 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
3062 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
3063 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
3064 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
3065 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
3066 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07003067 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003068
3069 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
3070 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
3071 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
3072};
3073
3074/**
3075 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
3076 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
3077 */
3078enum qca_wlan_vendor_attr_get_wifi_info {
3079 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3080 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
3081 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
3082
3083 /* keep last */
3084 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3085 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
3086 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3087};
3088
3089/*
3090 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
3091 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
3092 */
3093enum qca_wlan_vendor_attr_wifi_logger_start {
3094 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
3095 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
3096 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
3097 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
3098
3099 /* keep last */
3100 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
3101 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
3102 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
3103};
3104
3105enum qca_wlan_vendor_attr_logger_results {
3106 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3107
3108 /* Unsigned 32-bit value; must match the request Id supplied by
3109 * Wi-Fi HAL in the corresponding subcmd NL msg.
3110 */
3111 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3112
3113 /* Unsigned 32-bit value; used to indicate the size of memory
3114 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003115 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08003116 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3117
3118 /* keep last */
3119 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3120 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3121 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3122};
3123
3124enum qca_wlan_vendor_attr_roaming_config_params {
3125 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3126
3127 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3128 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3129
3130 /* Attributes for wifi_set_ssid_white_list */
3131 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3132 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3133 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3134
3135 /* Attributes for set_roam_params */
3136 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3137 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3138 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3139 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3140 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3141 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3142 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3143
3144 /* Attribute for set_lazy_roam */
3145 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3146
3147 /* Attribute for set_lazy_roam with preferences */
3148 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3149 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3150 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3151 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3152
3153 /* Attribute for set_blacklist bssid params */
3154 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3155 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3156 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
3157
3158 /* keep last */
3159 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3160 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3161 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3162};
3163
3164/*
3165 * enum qca_wlan_vendor_attr_roam_subcmd: Attributes for data used by
3166 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3167 */
3168enum qca_wlan_vendor_attr_roam_subcmd {
3169 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID = 0,
3170 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST = 1,
3171 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
3172 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM = 3,
3173 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS = 4,
3174 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS = 5,
3175 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID = 6,
3176
3177 /* keep last */
3178 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST,
3179 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX =
3180 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST - 1,
3181};
3182
3183enum qca_wlan_vendor_attr_gscan_config_params {
3184 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
3185
3186 /* Unsigned 32-bit value */
3187 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
3188
3189 /* Attributes for data used by
3190 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
3191 */
3192 /* Unsigned 32-bit value */
3193 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
3194 = 2,
3195 /* Unsigned 32-bit value */
3196 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
3197 = 3,
3198
3199 /* Attributes for input params used by
3200 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
3201 */
3202
3203 /* Unsigned 32-bit value; channel frequency */
3204 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
3205 /* Unsigned 32-bit value; dwell time in ms. */
3206 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
3207 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
3208 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
3209 /* Unsigned 8-bit value; channel class */
3210 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
3211
3212 /* Unsigned 8-bit value; bucket index, 0 based */
3213 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
3214 /* Unsigned 8-bit value; band. */
3215 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
3216 /* Unsigned 32-bit value; desired period, in ms. */
3217 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
3218 /* Unsigned 8-bit value; report events semantics. */
3219 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
3220 /* Unsigned 32-bit value. Followed by a nested array of
3221 * GSCAN_CHANNEL_SPEC_* attributes.
3222 */
3223 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
3224
3225 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
3226 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
3227 */
3228 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
3229
3230 /* Unsigned 32-bit value; base timer period in ms. */
3231 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
3232 /* Unsigned 32-bit value; number of APs to store in each scan in the
3233 * BSSID/RSSI history buffer (keep the highest RSSI APs).
3234 */
3235 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
3236 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
3237 * up AP.
3238 */
3239 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
3240 = 16,
3241
3242 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
3243 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
3244 * of the array is determined by NUM_BUCKETS.
3245 */
3246 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
3247
3248 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
3249 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
3250 */
3251 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
3252
3253 /* Unsigned 8-bit value */
3254 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
3255 = 19,
3256 /* Unsigned 32-bit value; maximum number of results to be returned. */
3257 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
3258 = 20,
3259
3260 /* An array of 6 x unsigned 8-bit value */
3261 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
3262 /* Signed 32-bit value */
3263 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
3264 /* Signed 32-bit value */
3265 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
3266 /* Unsigned 32-bit value */
3267 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
3268
3269 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
3270 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
3271 * array is determined by NUM_AP.
3272 */
3273 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
3274
3275 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
3276 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
3277 */
3278 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
3279
3280 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
3281 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
3282 = 27,
3283 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
3284 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
3285 = 28,
3286 /* Unsigned 32-bit value; number of APs breaching threshold. */
3287 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
3288 /* Unsigned 32-bit value; number of APs. Followed by an array of
3289 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
3290 */
3291 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
3292 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
3293 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
3294 = 31,
3295 /* Unsigned 32-bit value. If max_period is non zero or different than
3296 * period, then this bucket is an exponential backoff bucket.
3297 */
3298 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
3299 /* Unsigned 32-bit value. */
3300 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
3301 /* Unsigned 32-bit value. For exponential back off bucket, number of
3302 * scans to perform for a given period.
3303 */
3304 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
3305 /* Unsigned 8-bit value; in number of scans, wake up AP after these
3306 * many scans.
3307 */
3308 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
3309 = 35,
3310
3311 /* Attributes for data used by
3312 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
3313 */
3314 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
3315 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
3316 = 36,
3317 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
3318 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
3319 * size of the array is determined by NUM_SSID.
3320 */
3321 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
3322 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
3323 * attributes.
3324 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
3325 */
3326 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
3327
3328 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3329 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
3330 /* Unsigned 8-bit value */
3331 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
3332 /* Signed 32-bit value */
3333 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
3334 /* Signed 32-bit value */
3335 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
3336 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
3337 */
3338 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
3339
3340 /* keep last */
3341 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
3342 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
3343 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
3344};
3345
3346enum qca_wlan_vendor_attr_gscan_results {
3347 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
3348
3349 /* Unsigned 32-bit value; must match the request Id supplied by
3350 * Wi-Fi HAL in the corresponding subcmd NL msg.
3351 */
3352 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
3353
3354 /* Unsigned 32-bit value; used to indicate the status response from
3355 * firmware/driver for the vendor sub-command.
3356 */
3357 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
3358
3359 /* GSCAN Valid Channels attributes */
3360 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
3361 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
3362 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
3363 * representing channel numbers.
3364 */
3365 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
3366
3367 /* GSCAN Capabilities attributes */
3368 /* Unsigned 32-bit value */
3369 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
3370 /* Unsigned 32-bit value */
3371 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
3372 /* Unsigned 32-bit value */
3373 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
3374 = 7,
3375 /* Unsigned 32-bit value */
3376 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
3377 = 8,
3378 /* Signed 32-bit value */
3379 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
3380 = 9,
3381 /* Unsigned 32-bit value */
3382 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
3383 /* Unsigned 32-bit value */
3384 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
3385 = 11,
3386 /* Unsigned 32-bit value */
3387 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
3388 = 12,
3389
3390 /* GSCAN Attributes used with
3391 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
3392 */
3393
3394 /* Unsigned 32-bit value */
3395 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
3396
3397 /* GSCAN attributes used with
3398 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
3399 */
3400
3401 /* An array of NUM_RESULTS_AVAILABLE x
3402 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
3403 */
3404 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
3405
3406 /* Unsigned 64-bit value; age of sample at the time of retrieval */
3407 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
3408 /* 33 x unsigned 8-bit value; NULL terminated SSID */
3409 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
3410 /* An array of 6 x unsigned 8-bit value */
3411 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
3412 /* Unsigned 32-bit value; channel frequency in MHz */
3413 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
3414 /* Signed 32-bit value */
3415 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
3416 /* Unsigned 32-bit value */
3417 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
3418 /* Unsigned 32-bit value */
3419 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
3420 /* Unsigned 16-bit value */
3421 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
3422 /* Unsigned 16-bit value */
3423 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
3424 /* Unsigned 32-bit value; size of the IE DATA blob */
3425 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
3426 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
3427 * information elements found in the beacon; this data should be a
3428 * packed list of wifi_information_element objects, one after the
3429 * other.
3430 */
3431 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
3432
3433 /* Unsigned 8-bit value; set by driver to indicate more scan results are
3434 * available.
3435 */
3436 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
3437
3438 /* GSCAN attributes for
3439 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
3440 */
3441 /* Unsigned 8-bit value */
3442 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
3443 /* Unsigned 32-bit value */
3444 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
3445
3446 /* GSCAN attributes for
3447 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
3448 */
3449 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3450 * to indicate number of results.
3451 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3452 * list of results.
3453 */
3454
3455 /* GSCAN attributes for
3456 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
3457 */
3458 /* An array of 6 x unsigned 8-bit value */
3459 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
3460 /* Unsigned 32-bit value */
3461 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
3462 = 30,
3463 /* Unsigned 32-bit value. */
3464 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
3465 = 31,
3466 /* A nested array of signed 32-bit RSSI values. Size of the array is
3467 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
3468 */
3469 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
3470 = 32,
3471
3472 /* GSCAN attributes used with
3473 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
3474 */
3475 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3476 * to indicate number of gscan cached results returned.
3477 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
3478 * the list of gscan cached results.
3479 */
3480
3481 /* An array of NUM_RESULTS_AVAILABLE x
3482 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
3483 */
3484 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
3485 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
3486 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
3487 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
3488 */
3489 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
3490 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3491 * to indicate number of wifi scan results/bssids retrieved by the scan.
3492 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3493 * list of wifi scan results returned for each cached result block.
3494 */
3495
3496 /* GSCAN attributes for
3497 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
3498 */
3499 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
3500 * number of results.
3501 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3502 * list of wifi scan results returned for each
3503 * wifi_passpoint_match_result block.
3504 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
3505 */
3506
3507 /* GSCAN attributes for
3508 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
3509 */
3510 /* Unsigned 32-bit value */
3511 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
3512 = 36,
3513 /* A nested array of
3514 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
3515 * attributes. Array size =
3516 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
3517 */
3518 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
3519
3520 /* Unsigned 32-bit value; network block id for the matched network */
3521 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
3522 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3523 * list of wifi scan results returned for each
3524 * wifi_passpoint_match_result block.
3525 */
3526 /* Unsigned 32-bit value */
3527 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
3528 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
3529 * ANQP data in the information_element format.
3530 */
3531 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
3532
3533 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3534 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
3535 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3536 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
3537 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3538 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
3539 = 43,
3540 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3541 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
3542 = 44,
3543
3544 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
3545
Hai Shalomce48b4a2018-09-05 11:41:35 -07003546 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
3547 * This is used to limit the maximum number of BSSIDs while sending
3548 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with attributes
3549 * QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID and
3550 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
3551 */
3552 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
3553
Dmitry Shmidt29333592017-01-09 12:27:11 -08003554 /* keep last */
3555 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
3556 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
3557 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
3558};
3559
3560enum qca_wlan_vendor_attr_pno_config_params {
3561 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3562 /* Attributes for data used by
3563 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3564 */
3565 /* Unsigned 32-bit value */
3566 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3567 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3568 * attributes. Array size =
3569 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3570 */
3571 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3572
3573 /* Unsigned 32-bit value */
3574 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3575 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
3576 * realm, 0 if unspecified.
3577 */
3578 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3579 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
3580 * match, 0 if unspecified.
3581 */
3582 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3583 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
3584 * unspecified.
3585 */
3586 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3587
3588 /* Attributes for data used by
3589 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3590 */
3591 /* Unsigned 32-bit value */
3592 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3593 /* Array of nested
3594 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3595 * attributes. Array size =
3596 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
3597 */
3598 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3599 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3600 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3601 /* Signed 8-bit value; threshold for considering this SSID as found,
3602 * required granularity for this threshold is 4 dBm to 8 dBm.
3603 */
3604 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
3605 = 10,
3606 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
3607 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3608 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
3609 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3610 /* Unsigned 8-bit to indicate ePNO type;
3611 * It takes values from qca_wlan_epno_type
3612 */
3613 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3614
3615 /* Nested attribute to send the channel list */
3616 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3617
3618 /* Unsigned 32-bit value; indicates the interval between PNO scan
3619 * cycles in msec.
3620 */
3621 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3622 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3623 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3624 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3625 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3626 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3627 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3628 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003629 /* Unsigned 32-bit value, representing the PNO Request ID */
3630 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003631
3632 /* keep last */
3633 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3634 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3635 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3636};
3637
Paul Stewart092955c2017-02-06 09:13:09 -08003638/**
3639 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
3640 * the ACS has to be triggered. These values are used by
3641 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
3642 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
3643 */
3644enum qca_wlan_vendor_acs_select_reason {
3645 /* Represents the reason that the ACS triggered during the AP start */
3646 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
3647 /* Represents the reason that DFS found with the current channel */
3648 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
3649 /* Represents the reason that LTE co-exist in the current band. */
3650 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
3651};
3652
3653/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003654 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
3655 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
3656 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
3657 * external ACS policies to select the channels w.r.t. the PCL weights.
3658 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
3659 * their PCL weights.)
3660 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
3661 * select a channel with non-zero PCL weight.
3662 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
3663 * channel with non-zero PCL weight.
3664 *
3665 */
3666enum qca_wlan_vendor_attr_external_acs_policy {
3667 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
3668 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
3669};
3670
3671/**
Paul Stewart092955c2017-02-06 09:13:09 -08003672 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3673 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3674 */
3675enum qca_wlan_vendor_channel_prop_flags {
3676 /* Bits 0, 1, 2, and 3 are reserved */
3677
3678 /* Turbo channel */
3679 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
3680 /* CCK channel */
3681 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
3682 /* OFDM channel */
3683 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
3684 /* 2.4 GHz spectrum channel. */
3685 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
3686 /* 5 GHz spectrum channel */
3687 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
3688 /* Only passive scan allowed */
3689 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
3690 /* Dynamic CCK-OFDM channel */
3691 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
3692 /* GFSK channel (FHSS PHY) */
3693 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
3694 /* Radar found on channel */
3695 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
3696 /* 11a static turbo channel only */
3697 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
3698 /* Half rate channel */
3699 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
3700 /* Quarter rate channel */
3701 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
3702 /* HT 20 channel */
3703 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
3704 /* HT 40 with extension channel above */
3705 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
3706 /* HT 40 with extension channel below */
3707 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
3708 /* HT 40 intolerant */
3709 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
3710 /* VHT 20 channel */
3711 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
3712 /* VHT 40 with extension channel above */
3713 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
3714 /* VHT 40 with extension channel below */
3715 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
3716 /* VHT 80 channel */
3717 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
3718 /* HT 40 intolerant mark bit for ACS use */
3719 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3720 /* Channel temporarily blocked due to noise */
3721 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
3722 /* VHT 160 channel */
3723 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
3724 /* VHT 80+80 channel */
3725 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003726 /* HE 20 channel */
3727 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
3728 /* HE 40 with extension channel above */
3729 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
3730 /* HE 40 with extension channel below */
3731 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
3732 /* HE 40 intolerant */
3733 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
3734};
3735
3736/**
3737 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3738 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3739 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3740 */
3741enum qca_wlan_vendor_channel_prop_flags_2 {
3742 /* HE 40 intolerant mark bit for ACS use */
3743 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3744 /* HE 80 channel */
3745 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
3746 /* HE 160 channel */
3747 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
3748 /* HE 80+80 channel */
3749 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08003750};
3751
3752/**
3753 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3754 * each channel. This is used by
3755 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3756 */
3757enum qca_wlan_vendor_channel_prop_flags_ext {
3758 /* Radar found on channel */
3759 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
3760 /* DFS required on channel */
3761 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
3762 /* DFS required on channel for 2nd band of 80+80 */
3763 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
3764 /* If channel has been checked for DFS */
3765 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
3766 /* Excluded in 802.11d */
3767 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
3768 /* Channel Switch Announcement received on this channel */
3769 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
3770 /* Ad-hoc is not allowed */
3771 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
3772 /* Station only channel */
3773 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3774 /* DFS radar history for slave device (STA mode) */
3775 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
3776 /* DFS CAC valid for slave device (STA mode) */
3777 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
3778};
3779
3780/**
3781 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
3782 * information. These attributes are sent as part of
3783 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
3784 * attributes correspond to a single channel.
3785 */
3786enum qca_wlan_vendor_external_acs_event_chan_info_attr {
3787 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
3788
3789 /* A bitmask (u32) with flags specified in
3790 * enum qca_wlan_vendor_channel_prop_flags.
3791 */
3792 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
3793 /* A bitmask (u32) with flags specified in
3794 * enum qca_wlan_vendor_channel_prop_flags_ext.
3795 */
3796 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
3797 /* frequency in MHz (u32) */
3798 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
3799 /* maximum regulatory transmission power (u32) */
3800 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
3801 /* maximum transmission power (u32) */
3802 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
3803 /* minimum transmission power (u32) */
3804 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
3805 /* regulatory class id (u8) */
3806 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
3807 /* maximum antenna gain in (u8) */
3808 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
3809 /* VHT segment 0 (u8) */
3810 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
3811 /* VHT segment 1 (u8) */
3812 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003813 /* A bitmask (u32) with flags specified in
3814 * enum qca_wlan_vendor_channel_prop_flags_2.
3815 */
3816 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08003817
3818 /* keep last */
3819 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
3820 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
3821 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
3822};
3823
3824/**
3825 * qca_wlan_vendor_attr_pcl: Represents attributes for
3826 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07003827 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
3828 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08003829 */
3830enum qca_wlan_vendor_attr_pcl {
3831 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
3832
3833 /* Channel number (u8) */
3834 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
3835 /* Channel weightage (u8) */
3836 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07003837 /* Channel frequency (u32) in MHz */
3838 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
3839 /* Channel flags (u32)
3840 * bit 0 set: channel to be used for GO role,
3841 * bit 1 set: channel to be used on CLI role,
3842 * bit 2 set: channel must be considered for operating channel
3843 * selection & peer chosen operating channel should be
3844 * one of the channels with this flag set,
3845 * bit 3 set: channel should be excluded in GO negotiation
3846 */
3847 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Paul Stewart092955c2017-02-06 09:13:09 -08003848};
3849
3850/**
3851 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
3852 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
3853 * host driver.
3854 */
3855enum qca_wlan_vendor_attr_external_acs_event {
3856 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
3857
3858 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
3859 * This helps ACS module to understand why ACS needs to be started.
3860 */
3861 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
3862 /* Flag attribute to indicate if driver supports spectral scanning */
3863 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
3864 /* Flag attribute to indicate if 11ac is offloaded to firmware */
3865 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
3866 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07003867 * capability as part of scan operation
3868 */
Paul Stewart092955c2017-02-06 09:13:09 -08003869 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
3870 /* Flag attribute to indicate interface status is UP */
3871 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
3872 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07003873 * values.
3874 */
Paul Stewart092955c2017-02-06 09:13:09 -08003875 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
3876 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
3877 * This is the upper bound of channel width. ACS logic should try to get
3878 * a channel with the specified width and if not found, look for lower
3879 * values.
3880 */
3881 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
3882 /* This (u8) will hold values of one of enum nl80211_bands */
3883 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
3884 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07003885 * values
3886 */
Paul Stewart092955c2017-02-06 09:13:09 -08003887 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
3888 /* Array of (u32) supported frequency list among which ACS should choose
3889 * best frequency.
3890 */
3891 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
3892 /* Preferred channel list by the driver which will have array of nested
3893 * values as per enum qca_wlan_vendor_attr_pcl attribute.
3894 */
3895 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
3896 /* Array of nested attribute for each channel. It takes attr as defined
3897 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
3898 */
3899 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003900 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
3901 * It uses values defined in enum
3902 * qca_wlan_vendor_attr_external_acs_policy.
3903 */
3904 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07003905 /* Reference RF Operating Parameter (RROP) availability information
3906 * (u16). It uses values defined in enum
3907 * qca_wlan_vendor_attr_rropavail_info.
3908 */
3909 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Paul Stewart092955c2017-02-06 09:13:09 -08003910
3911 /* keep last */
3912 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
3913 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
3914 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
3915};
3916
3917/**
3918 * qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
3919 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
3920 * in priority order as decided after ACS operation in userspace.
3921 */
3922enum qca_wlan_vendor_attr_external_acs_channels {
3923 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
3924
3925 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
3926 */
3927 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
3928
3929 /* Array of nested values for each channel with following attributes:
3930 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
3931 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
3932 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
3933 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
3934 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
3935 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
3936 */
3937 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
3938 /* This (u8) will hold values of one of enum nl80211_bands */
3939 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
3940 /* Primary channel (u8) */
3941 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
3942 /* Secondary channel (u8) used for HT 40 MHz channels */
3943 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
3944 /* VHT seg0 channel (u8) */
3945 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
3946 /* VHT seg1 channel (u8) */
3947 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
3948 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
3949 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
3950
3951 /* keep last */
3952 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
3953 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
3954 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
3955};
3956
3957enum qca_chip_power_save_failure_reason {
3958 /* Indicates if the reason for the failure is due to a protocol
3959 * layer/module.
3960 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07003961 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08003962 /* Indicates if the reason for the failure is due to a hardware issue.
3963 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07003964 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08003965};
3966
3967/**
3968 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
3969 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
3970 * information leading to the power save failure.
3971 */
3972enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07003973 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
3974 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08003975 * These reasons are represented by
3976 * enum qca_chip_power_save_failure_reason.
3977 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07003978 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08003979
Roshan Pius3a1667e2018-07-03 15:17:14 -07003980 /* keep last */
3981 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
3982 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
3983 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
3984};
3985
3986/**
3987 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
3988 * data types for which the stats have to get collected.
3989 */
3990enum qca_wlan_vendor_nud_stats_data_pkt_flags {
3991 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
3992 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
3993 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
3994 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
3995 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
3996 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
3997 * to represent the stats of respective data type.
3998 */
3999 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
4000 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
4001 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
4002};
4003
4004enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
4005 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
4006 /* Represents the data packet type to be monitored (u32).
4007 * Host driver tracks the stats corresponding to each data frame
4008 * represented by these flags.
4009 * These data packets are represented by
4010 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
4011 */
4012 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
4013 /* Name corresponding to the DNS frame for which the respective DNS
4014 * stats have to get monitored (string). Max string length 255.
4015 */
4016 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
4017 /* source port on which the respective proto stats have to get
4018 * collected (u32).
4019 */
4020 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
4021 /* destination port on which the respective proto stats have to get
4022 * collected (u32).
4023 */
4024 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
4025 /* IPv4 address for which the destined data packets have to be
4026 * monitored. (in network byte order), u32.
4027 */
4028 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
4029 /* IPv6 address for which the destined data packets have to be
4030 * monitored. (in network byte order), 16 bytes array.
4031 */
4032 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
4033
4034 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
4035 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
4036 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08004037};
4038
4039/**
4040 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
4041 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
4042 * information to start/stop the NUD statistics collection.
4043 */
4044enum qca_attr_nud_stats_set {
4045 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
4046
4047 /* Flag to start/stop the NUD statistics collection.
4048 * Start - If included, Stop - If not included
4049 */
4050 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004051 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08004052 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004053 /* Represents the list of data packet types to be monitored.
4054 * Host driver tracks the stats corresponding to each data frame
4055 * represented by these flags.
4056 * These data packets are represented by
4057 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
4058 */
4059 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08004060
4061 /* keep last */
4062 QCA_ATTR_NUD_STATS_SET_LAST,
4063 QCA_ATTR_NUD_STATS_SET_MAX =
4064 QCA_ATTR_NUD_STATS_SET_LAST - 1,
4065};
4066
Roshan Pius3a1667e2018-07-03 15:17:14 -07004067enum qca_attr_nud_data_stats {
4068 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
4069 /* Data packet type for which the stats are collected (u32).
4070 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
4071 */
4072 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
4073 /* Name corresponding to the DNS frame for which the respective DNS
4074 * stats are monitored (string). Max string length 255.
4075 */
4076 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
4077 /* source port on which the respective proto stats are collected (u32).
4078 */
4079 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
4080 /* destination port on which the respective proto stats are collected
4081 * (u32).
4082 */
4083 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
4084 /* IPv4 address for which the destined data packets have to be
4085 * monitored. (in network byte order), u32.
4086 */
4087 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
4088 /* IPv6 address for which the destined data packets have to be
4089 * monitored. (in network byte order), 16 bytes array.
4090 */
4091 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
4092 /* Data packet Request count received from netdev (u32). */
4093 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
4094 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
4095 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
4096 /* Data packet Request count received by lower MAC from upper MAC
4097 * (u32)
4098 */
4099 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
4100 /* Data packet Request count successfully transmitted by the device
4101 * (u32)
4102 */
4103 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
4104 /* Data packet Response count received by lower MAC (u32) */
4105 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
4106 /* Data packet Response count received by upper MAC (u32) */
4107 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
4108 /* Data packet Response count delivered to netdev (u32) */
4109 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
4110 /* Data Packet Response count that are dropped out of order (u32) */
4111 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
4112
4113 /* keep last */
4114 QCA_ATTR_NUD_DATA_STATS_LAST,
4115 QCA_ATTR_NUD_DATA_STATS_MAX =
4116 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
4117};
4118
Paul Stewart092955c2017-02-06 09:13:09 -08004119/**
4120 * qca_attr_nud_stats_get: Attributes to vendor subcmd
4121 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4122 * NUD statistics collected when queried.
4123 */
4124enum qca_attr_nud_stats_get {
4125 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004126 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08004127 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004128 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08004129 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004130 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08004131 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004132 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08004133 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004134 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08004135 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004136 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08004137 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004138 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08004139 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004140 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08004141 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
4142 /* Flag indicating if the station's link to the AP is active.
4143 * Active Link - If included, Inactive link - If not included
4144 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004145 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08004146 /* Flag indicating if there is any duplicate address detected (DAD).
4147 * Yes - If detected, No - If not detected.
4148 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004149 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004150 /* List of Data packet types for which the stats are requested.
4151 * This list does not carry ARP stats as they are done by the
4152 * above attributes. Represented by enum qca_attr_nud_data_stats.
4153 */
4154 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08004155
4156 /* keep last */
4157 QCA_ATTR_NUD_STATS_GET_LAST,
4158 QCA_ATTR_NUD_STATS_GET_MAX =
4159 QCA_ATTR_NUD_STATS_GET_LAST - 1,
4160};
4161
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08004162enum qca_wlan_btm_candidate_status {
4163 QCA_STATUS_ACCEPT = 0,
4164 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4165 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4166 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4167 QCA_STATUS_REJECT_LOW_RSSI = 4,
4168 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4169 QCA_STATUS_REJECT_UNKNOWN = 6,
4170};
4171
4172enum qca_wlan_vendor_attr_btm_candidate_info {
4173 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4174
4175 /* 6-byte MAC address representing the BSSID of transition candidate */
4176 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4177 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4178 * returned by the driver. It says whether the BSSID provided in
4179 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4180 * the driver, if not it specifies the reason for rejection.
4181 * Note that the user-space can overwrite the transition reject reason
4182 * codes provided by driver based on more information.
4183 */
4184 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4185
4186 /* keep last */
4187 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4188 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4189 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4190};
4191
4192enum qca_attr_trace_level {
4193 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4194 /*
4195 * Nested array of the following attributes:
4196 * QCA_ATTR_TRACE_LEVEL_MODULE,
4197 * QCA_ATTR_TRACE_LEVEL_MASK.
4198 */
4199 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4200 /*
4201 * Specific QCA host driver module. Please refer to the QCA host
4202 * driver implementation to get the specific module ID.
4203 */
4204 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4205 /* Different trace level masks represented in the QCA host driver. */
4206 QCA_ATTR_TRACE_LEVEL_MASK = 3,
4207
4208 /* keep last */
4209 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4210 QCA_ATTR_TRACE_LEVEL_MAX =
4211 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4212};
4213
4214/**
4215 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
4216 */
4217enum qca_wlan_vendor_attr_get_he_capabilities {
4218 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
4219 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07004220 * (u8 attribute: 0 = not supported, 1 = supported)
4221 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08004222 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
4223 /* HE PHY capabilities, array of 3 u32 values */
4224 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
4225 /* HE MAC capabilities (u32 attribute) */
4226 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
4227 /* HE MCS map (u32 attribute) */
4228 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
4229 /* Number of SS (u32 attribute) */
4230 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
4231 /* RU count (u32 attribute) */
4232 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
4233 /* PPE threshold data, array of 8 u32 values */
4234 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
4235
4236 /* keep last */
4237 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
4238 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
4239 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
4240};
4241
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004242/**
4243 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
4244 */
4245enum qca_wlan_vendor_attr_spectral_scan {
4246 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
4247 /* Number of times the chip enters spectral scan mode before
4248 * deactivating spectral scans. When set to 0, chip will enter spectral
4249 * scan mode continuously. u32 attribute.
4250 */
4251 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
4252 /* Spectral scan period. Period increment resolution is 256*Tclk,
4253 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
4254 */
4255 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
4256 /* Spectral scan priority. u32 attribute. */
4257 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
4258 /* Number of FFT data points to compute. u32 attribute. */
4259 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
4260 /* Enable targeted gain change before starting the spectral scan FFT.
4261 * u32 attribute.
4262 */
4263 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
4264 /* Restart a queued spectral scan. u32 attribute. */
4265 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
4266 /* Noise floor reference number for the calculation of bin power.
4267 * u32 attribute.
4268 */
4269 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
4270 /* Disallow spectral scan triggers after TX/RX packets by setting
4271 * this delay value to roughly SIFS time period or greater.
4272 * u32 attribute.
4273 */
4274 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
4275 /* Number of strong bins (inclusive) per sub-channel, below
4276 * which a signal is declared a narrow band tone. u32 attribute.
4277 */
4278 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
4279 /* Specify the threshold over which a bin is declared strong (for
4280 * scan bandwidth analysis). u32 attribute.
4281 */
4282 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
4283 /* Spectral scan report mode. u32 attribute. */
4284 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
4285 /* RSSI report mode, if the ADC RSSI is below
4286 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
4287 * then FFTs will not trigger, but timestamps and summaries get
4288 * reported. u32 attribute.
4289 */
4290 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
4291 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
4292 * to ensure spectral scan reporting with normal error code.
4293 * u32 attribute.
4294 */
4295 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
4296 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
4297 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
4298 * u32 attribute.
4299 */
4300 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
4301 /* Format of FFT report to software for spectral scan triggered FFTs.
4302 * 0: No FFT report (only spectral scan summary report)
4303 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
4304 * report
4305 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
4306 * bins (in-band) per FFT + spectral scan summary report
4307 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
4308 * bins (all) per FFT + spectral scan summary report
4309 * u32 attribute.
4310 */
4311 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
4312 /* Number of LSBs to shift out in order to scale the FFT bins.
4313 * u32 attribute.
4314 */
4315 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
4316 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
4317 * in dBm power. u32 attribute.
4318 */
4319 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
4320 /* Per chain enable mask to select input ADC for search FFT.
4321 * u32 attribute.
4322 */
4323 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
4324 /* An unsigned 64-bit integer provided by host driver to identify the
4325 * spectral scan request. This attribute is included in the scan
4326 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
4327 * and used as an attribute in
4328 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
4329 * specific scan to be stopped.
4330 */
4331 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004332 /* Skip interval for FFT reports. u32 attribute */
4333 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
4334 /* Set to report only one set of FFT results.
4335 * u32 attribute.
4336 */
4337 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
4338 /* Debug level for spectral module in driver.
4339 * 0 : Verbosity level 0
4340 * 1 : Verbosity level 1
4341 * 2 : Verbosity level 2
4342 * 3 : Matched filterID display
4343 * 4 : One time dump of FFT report
4344 * u32 attribute.
4345 */
4346 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
4347 /* Type of spectral scan request. u32 attribute.
4348 * It uses values defined in enum
4349 * qca_wlan_vendor_attr_spectral_scan_request_type.
4350 */
4351 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004352
4353 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
4354 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
4355 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
4356};
4357
Roshan Pius3a1667e2018-07-03 15:17:14 -07004358/**
4359 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
4360 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
4361 */
4362enum qca_wlan_vendor_attr_spectral_diag_stats {
4363 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
4364 /* Number of spectral TLV signature mismatches.
4365 * u64 attribute.
4366 */
4367 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
4368 /* Number of spectral phyerror events with insufficient length when
4369 * parsing for secondary 80 search FFT report. u64 attribute.
4370 */
4371 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
4372 /* Number of spectral phyerror events without secondary 80
4373 * search FFT report. u64 attribute.
4374 */
4375 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
4376 /* Number of spectral phyerror events with vht operation segment 1 id
4377 * mismatches in search fft report. u64 attribute.
4378 */
4379 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
4380 /* Number of spectral phyerror events with vht operation segment 2 id
4381 * mismatches in search fft report. u64 attribute.
4382 */
4383 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
4384
4385 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
4386 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
4387 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
4388};
4389
4390/**
4391 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
4392 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
4393 */
4394enum qca_wlan_vendor_attr_spectral_cap {
4395 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
4396 /* Flag attribute to indicate phydiag capability */
4397 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
4398 /* Flag attribute to indicate radar detection capability */
4399 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
4400 /* Flag attribute to indicate spectral capability */
4401 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
4402 /* Flag attribute to indicate advanced spectral capability */
4403 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
4404 /* Spectral hardware generation. u32 attribute.
4405 * It uses values defined in enum
4406 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
4407 */
4408 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
4409
4410 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
4411 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
4412 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
4413};
4414
4415/**
4416 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
4417 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
4418 */
4419enum qca_wlan_vendor_attr_spectral_scan_status {
4420 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
4421 /* Flag attribute to indicate whether spectral scan is enabled */
4422 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
4423 /* Flag attribute to indicate whether spectral scan is in progress*/
4424 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
4425
4426 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
4427 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
4428 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
4429};
4430
4431/**
4432 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
4433 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
4434 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
4435 * spectral scan request types.
4436 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
4437 * set the spectral parameters and start scan.
4438 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
4439 * only set the spectral parameters.
4440 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
4441 * only start the spectral scan.
4442 */
4443enum qca_wlan_vendor_attr_spectral_scan_request_type {
4444 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
4445 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
4446 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
4447};
4448
4449/**
4450 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
4451 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
4452 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
4453 * spectral hardware generation.
4454 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
4455 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
4456 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
4457 */
4458enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
4459 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
4460 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
4461 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
4462};
4463
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004464enum qca_wlan_vendor_tos {
4465 QCA_WLAN_VENDOR_TOS_BK = 0,
4466 QCA_WLAN_VENDOR_TOS_BE = 1,
4467 QCA_WLAN_VENDOR_TOS_VI = 2,
4468 QCA_WLAN_VENDOR_TOS_VO = 3,
4469};
4470
4471/**
4472 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
4473 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
4474 */
4475enum qca_wlan_vendor_attr_active_tos {
4476 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
4477 /* Type Of Service - Represented by qca_wlan_vendor_tos */
4478 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
4479 /* Flag attribute representing the start (attribute included) or stop
4480 * (attribute not included) of the respective TOS.
4481 */
4482 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
4483};
4484
4485enum qca_wlan_vendor_hang_reason {
4486 /* Unspecified reason */
4487 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
4488 /* No Map for the MAC entry for the received frame */
4489 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
4490 /* Peer deletion timeout happened */
4491 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
4492 /* Peer unmap timeout */
4493 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
4494 /* Scan request timed out */
4495 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
4496 /* Consecutive Scan attempt failures */
4497 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
4498 /* Unable to get the message buffer */
4499 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
4500 /* Current command processing is timedout */
4501 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
4502 /* Timeout for an ACK from FW for suspend request */
4503 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
4504 /* Timeout for an ACK from FW for resume request */
4505 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
4506 /* Transmission timeout for consecutive data frames */
4507 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
4508 /* Timeout for the TX completion status of data frame */
4509 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
4510 /* DXE failure for TX/RX, DXE resource unavailability */
4511 QCA_WLAN_HANG_DXE_FAILURE = 12,
4512 /* WMI pending commands exceed the maximum count */
4513 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
4514};
4515
4516/**
4517 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
4518 * QCA_NL80211_VENDOR_SUBCMD_HANG.
4519 */
4520enum qca_wlan_vendor_attr_hang {
4521 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
4522 /* Reason for the hang - u32 attribute with a value from enum
4523 * qca_wlan_vendor_hang_reason.
4524 */
4525 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
4526
4527 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
4528 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
4529 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
4530};
4531
Roshan Pius3a1667e2018-07-03 15:17:14 -07004532/**
4533 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
4534 * flushing pending traffic in firmware.
4535 *
4536 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
4537 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
4538 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
4539 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
4540 * flush packets with access category.
4541 */
4542enum qca_wlan_vendor_attr_flush_pending {
4543 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
4544 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
4545 QCA_WLAN_VENDOR_ATTR_AC = 2,
4546
4547 /* keep last */
4548 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
4549 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
4550 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
4551};
4552
4553/**
4554 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
4555 * RF Operating Parameter (RROP) information is available, and if so, at which
4556 * point in the application-driver interaction sequence it can be retrieved by
4557 * the application from the driver. This point may vary by architecture and
4558 * other factors. This is a u16 value.
4559 */
4560enum qca_wlan_vendor_attr_rropavail_info {
4561 /* RROP information is unavailable. */
4562 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
4563 /* RROP information is available and the application can retrieve the
4564 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
4565 * event from the driver.
4566 */
4567 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
4568 /* RROP information is available only after a vendor specific scan
4569 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
4570 * successfully completed. The application can retrieve the information
4571 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
4572 * the driver.
4573 */
4574 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
4575};
4576
4577/**
4578 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
4579 * Representative RF Operating Parameter (RROP) information. It is sent for the
4580 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
4581 * intended for use by external Auto Channel Selection applications. It provides
4582 * guidance values for some RF parameters that are used by the system during
4583 * operation. These values could vary by channel, band, radio, and so on.
4584 */
4585enum qca_wlan_vendor_attr_rrop_info {
4586 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
4587
4588 /* Representative Tx Power List (RTPL) which has an array of nested
4589 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
4590 */
4591 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
4592
4593 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
4594 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
4595 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
4596};
4597
4598/**
4599 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
4600 * entry instances in the Representative Tx Power List (RTPL). It provides
4601 * simplified power values intended for helping external Auto channel Selection
4602 * applications compare potential Tx power performance between channels, other
4603 * operating conditions remaining identical. These values are not necessarily
4604 * the actual Tx power values that will be used by the system. They are also not
4605 * necessarily the max or average values that will be used. Instead, they are
4606 * relative, summarized keys for algorithmic use computed by the driver or
4607 * underlying firmware considering a number of vendor specific factors.
4608 */
4609enum qca_wlan_vendor_attr_rtplinst {
4610 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
4611
4612 /* Primary channel number (u8) */
4613 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
4614 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
4615 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
4616 /* Representative Tx power in dBm (s32) with emphasis on range. */
4617 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
4618
4619 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
4620 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
4621 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
4622};
4623
4624/**
4625 * enum qca_wlan_vendor_attr_config_latency_level - Level for
4626 * wlan latency module.
4627 *
4628 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
4629 * power saving which would causing data exchange out of service, this
4630 * would be a big impact on latency. For latency sensitive applications over
4631 * Wi-Fi are intolerant to such operations and thus would configure them
4632 * to meet their respective needs. It is well understood by such applications
4633 * that altering the default behavior would degrade the Wi-Fi functionality
4634 * w.r.t the above pointed WLAN operations.
4635 *
4636 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
4637 * Default WLAN operation level which throughput orientated.
4638 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
4639 * Use moderate level to improve latency by limit scan duration.
4640 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
4641 * Use low latency level to benifit application like concurrent
4642 * downloading or video streaming via constraint scan/adaptive PS.
4643 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
4644 * Use ultra low latency level to benefit for gaming/voice
4645 * application via constraint scan/roaming/adaptive PS.
4646 */
4647enum qca_wlan_vendor_attr_config_latency_level {
4648 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
4649 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
4650 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
4651 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
4652 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
4653
4654 /* keep last */
4655 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
4656 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
4657 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
4658};
4659
4660/**
4661 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
4662 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
4663 */
4664enum qca_wlan_vendor_attr_mac {
4665 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
4666
4667 /* MAC mode info list which has an array of nested values as
4668 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
4669 */
4670 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
4671
4672 /* keep last */
4673 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
4674 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
4675 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
4676};
4677
4678/**
4679 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
4680 * Wi-Fi netdev interface on a respective MAC.
4681 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
4682 */
4683enum qca_wlan_vendor_attr_mac_iface_info {
4684 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
4685 /* Wi-Fi netdev's interface index (u32) */
4686 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
4687 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
4688 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
4689
4690 /* keep last */
4691 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
4692 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
4693 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
4694};
4695
4696/**
4697 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
4698 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
4699 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
4700 */
4701enum qca_wlan_vendor_attr_mac_info {
4702 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
4703 /* Hardware MAC ID associated for the MAC (u32) */
4704 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
4705 /* Band supported by the MAC at a given point.
4706 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
4707 * nl80211_band.
4708 */
4709 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
4710 /* Refers to list of WLAN netdev interfaces associated with this MAC.
4711 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
4712 */
4713 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
4714
4715 /* keep last */
4716 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
4717 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
4718 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
4719};
4720
4721/**
4722 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
4723 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
4724 */
4725enum qca_wlan_vendor_attr_get_logger_features {
4726 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
4727 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
4728 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
4729 /* keep last */
4730 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
4731 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
4732 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
4733};
4734
4735/**
4736 * enum wifi_logger_supported_features - Values for supported logger features
4737 */
4738enum wifi_logger_supported_features {
4739 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
4740 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
4741 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
4742 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
4743 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
4744 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
4745 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
4746 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
4747 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
4748};
4749
4750/**
4751 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
4752 * capabilities features
4753 */
4754enum qca_wlan_tdls_caps_features_supported {
4755 WIFI_TDLS_SUPPORT = (1 << (0)),
4756 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
4757 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
4758};
4759
4760/**
4761 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
4762 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
4763 */
4764enum qca_wlan_vendor_attr_tdls_get_capabilities {
4765 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
4766 /* Indicates the max concurrent sessions */
4767 /* Unsigned 32-bit value */
4768 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
4769 /* Indicates the support for features */
4770 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
4771 */
4772 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
4773
4774 /* keep last */
4775 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
4776 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
4777 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
4778};
4779
4780/**
4781 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
4782 * command used as value for the attribute
4783 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
4784 */
4785enum qca_wlan_offloaded_packets_sending_control {
4786 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
4787 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
4788 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
4789};
4790
4791/**
4792 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
4793 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
4794 */
4795enum qca_wlan_vendor_attr_offloaded_packets {
4796 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
4797 /* Takes valid value from the enum
4798 * qca_wlan_offloaded_packets_sending_control
4799 * Unsigned 32-bit value
4800 */
4801 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
4802 /* Unsigned 32-bit value */
4803 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
4804 /* array of u8 len: Max packet size */
4805 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
4806 /* 6-byte MAC address used to represent source MAC address */
4807 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
4808 /* 6-byte MAC address used to represent destination MAC address */
4809 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
4810 /* Unsigned 32-bit value, in milli seconds */
4811 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
4812
4813 /* keep last */
4814 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
4815 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
4816 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
4817};
4818
4819/**
4820 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
4821 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
4822 */
4823enum qca_wlan_rssi_monitoring_control {
4824 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
4825 QCA_WLAN_RSSI_MONITORING_START,
4826 QCA_WLAN_RSSI_MONITORING_STOP,
4827};
4828
4829/**
4830 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
4831 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
4832 */
4833enum qca_wlan_vendor_attr_rssi_monitoring {
4834 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
4835 /* Takes valid value from the enum
4836 * qca_wlan_rssi_monitoring_control
4837 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
4838 */
4839 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
4840 /* Unsigned 32-bit value */
4841 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
4842 /* Signed 8-bit value in dBm */
4843 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
4844 /* Signed 8-bit value in dBm */
4845 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
4846 /* attributes to be used/received in callback */
4847 /* 6-byte MAC address used to represent current BSSID MAC address */
4848 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
4849 /* Signed 8-bit value indicating the current RSSI */
4850 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
4851 /* keep last */
4852 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
4853 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
4854 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
4855};
4856
4857/**
4858 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
4859 * QCA_NL80211_VENDOR_SUBCMD_NDP.
4860 */
4861enum qca_wlan_vendor_attr_ndp_params {
4862 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
4863 /* Unsigned 32-bit value
4864 * enum of sub commands values in qca_wlan_ndp_sub_cmd
4865 */
4866 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
4867 /* Unsigned 16-bit value */
4868 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
4869 /* NL attributes for data used NDP SUB cmds */
4870 /* Unsigned 32-bit value indicating a service info */
4871 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
4872 /* Unsigned 32-bit value; channel frequency in MHz */
4873 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
4874 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
4875 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
4876 /* Interface name on which NDP is being created */
4877 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
4878 /* Unsigned 32-bit value for security */
4879 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
4880 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
4881 /* Unsigned 32-bit value for QoS */
4882 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
4883 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
4884 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
4885 /* Unsigned 32-bit value for NDP instance Id */
4886 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
4887 /* Array of instance Ids */
4888 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
4889 /* Unsigned 32-bit value for initiator/responder NDP response code
4890 * accept/reject
4891 */
4892 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
4893 /* NDI MAC address. An array of 6 Unsigned int8 */
4894 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
4895 /* Unsigned 32-bit value errors types returned by driver
4896 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
4897 * NanStatusType includes these values.
4898 */
4899 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
4900 /* Unsigned 32-bit value error values returned by driver
4901 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
4902 * NanInternalStatusType includes these values.
4903 */
4904 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
4905 /* Unsigned 32-bit value for Channel setup configuration
4906 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
4907 * NanDataPathChannelCfg includes these values.
4908 */
4909 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
4910 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
4911 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
4912 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
4913 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
4914 /* Security Context Identifier that contains the PMKID
4915 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
4916 */
4917 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
4918 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
4919 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
4920 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
4921 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
4922 /* Unsigned 32-bit bitmap indicating schedule update
4923 * BIT_0: NSS Update
4924 * BIT_1: Channel list update
4925 */
4926 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
4927 /* Unsigned 32-bit value for NSS */
4928 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
4929 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
4930 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
4931 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
4932 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
4933 */
4934 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
4935 /* Array of channel/band width */
4936 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
4937 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
4938 * This attribute is used and optional for ndp request, ndp response,
4939 * ndp indication, and ndp confirm.
4940 */
4941 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
4942 /* Unsigned 16-bit value indicating transport port used by NDP.
4943 * This attribute is used and optional for ndp response, ndp indication,
4944 * and ndp confirm.
4945 */
4946 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
4947 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
4948 * the Internet Assigned Numbers Authority (IANA) as per:
4949 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
4950 * This attribute is used and optional for ndp response, ndp indication,
4951 * and ndp confirm.
4952 */
4953 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08004954 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
4955 * 1:support 0:not support
4956 */
4957 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004958
4959 /* keep last */
4960 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
4961 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
4962 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
4963};
4964
4965enum qca_wlan_ndp_sub_cmd {
4966 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
4967 /* Command to create a NAN data path interface */
4968 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
4969 /* Command to delete a NAN data path interface */
4970 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
4971 /* Command to initiate a NAN data path session */
4972 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
4973 /* Command to notify if the NAN data path session was sent */
4974 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
4975 /* Command to respond to NAN data path session */
4976 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
4977 /* Command to notify on the responder about the response */
4978 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
4979 /* Command to initiate a NAN data path end */
4980 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
4981 /* Command to notify the if end request was sent */
4982 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
4983 /* Command to notify the peer about the end request */
4984 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
4985 /* Command to confirm the NAN data path session is complete */
4986 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
4987 /* Command to indicate the peer about the end request being received */
4988 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
4989 /* Command to indicate the peer of schedule update */
4990 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
4991};
4992
4993/**
4994 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
4995 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
4996 */
4997enum qca_wlan_vendor_attr_nd_offload {
4998 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
4999 /* Flag to set Neighbour Discovery offload */
5000 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
5001 /* Keep last */
5002 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
5003 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
5004 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
5005};
5006
5007/**
5008 * enum packet_filter_sub_cmd - Packet filter sub commands
5009 */
5010enum packet_filter_sub_cmd {
5011 /**
5012 * Write packet filter program and/or data. The driver/firmware should
5013 * disable APF before writing into local buffer and re-enable APF after
5014 * writing is done.
5015 */
5016 QCA_WLAN_SET_PACKET_FILTER = 1,
5017 /* Get packet filter feature capabilities from driver */
5018 QCA_WLAN_GET_PACKET_FILTER = 2,
5019 /**
5020 * Write packet filter program and/or data. User space will send the
5021 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
5022 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
5023 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
5024 * enable/disable is given to user space with this command. Also,
5025 * user space sends the length of program portion in the buffer within
5026 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
5027 */
5028 QCA_WLAN_WRITE_PACKET_FILTER = 3,
5029 /* Read packet filter program and/or data */
5030 QCA_WLAN_READ_PACKET_FILTER = 4,
5031 /* Enable APF feature */
5032 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
5033 /* Disable APF feature */
5034 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
5035};
5036
5037/**
5038 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
5039 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
5040 */
5041enum qca_wlan_vendor_attr_packet_filter {
5042 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
5043 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
5044 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
5045 /* Unsigned 32-bit value indicating the packet filter version */
5046 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
5047 /* Unsigned 32-bit value indicating the packet filter id */
5048 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
5049 /**
5050 * Unsigned 32-bit value indicating the packet filter size including
5051 * program + data.
5052 */
5053 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
5054 /* Unsigned 32-bit value indicating the packet filter current offset */
5055 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
5056 /* Program and/or data in bytes */
5057 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
5058 /* Unsigned 32-bit value of the length of the program section in packet
5059 * filter buffer.
5060 */
5061 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
5062
5063 /* keep last */
5064 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
5065 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
5066 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
5067};
5068
5069/**
5070 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
5071 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
5072 */
5073enum qca_wlan_vendor_drv_info {
5074 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
5075 /* Maximum Message size info between firmware & HOST
5076 * Unsigned 32-bit value
5077 */
5078 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
5079 /* keep last */
5080 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
5081 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
5082 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
5083};
5084
5085/**
5086 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
5087 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
5088 */
5089enum qca_wlan_vendor_attr_wake_stats {
5090 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
5091 /* Unsigned 32-bit value indicating the total count of wake event */
5092 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
5093 /* Array of individual wake count, each index representing wake reason
5094 */
5095 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
5096 /* Unsigned 32-bit value representing wake count array */
5097 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
5098 /* Unsigned 32-bit total wake count value of driver/fw */
5099 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
5100 /* Array of wake stats of driver/fw */
5101 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
5102 /* Unsigned 32-bit total wake count value of driver/fw */
5103 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
5104 /* Unsigned 32-bit total wake count value of packets received */
5105 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
5106 /* Unsigned 32-bit wake count value unicast packets received */
5107 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
5108 /* Unsigned 32-bit wake count value multicast packets received */
5109 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
5110 /* Unsigned 32-bit wake count value broadcast packets received */
5111 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
5112 /* Unsigned 32-bit wake count value of ICMP packets */
5113 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
5114 /* Unsigned 32-bit wake count value of ICMP6 packets */
5115 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
5116 /* Unsigned 32-bit value ICMP6 router advertisement */
5117 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
5118 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
5119 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
5120 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
5121 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
5122 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
5123 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
5124 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
5125 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
5126 /* Unsigned 32-bit wake count value of receive side multicast */
5127 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
5128 /* Unsigned 32-bit wake count value of a given RSSI breach */
5129 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
5130 /* Unsigned 32-bit wake count value of low RSSI */
5131 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
5132 /* Unsigned 32-bit value GSCAN count */
5133 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
5134 /* Unsigned 32-bit value PNO complete count */
5135 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
5136 /* Unsigned 32-bit value PNO match count */
5137 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
5138 /* keep last */
5139 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
5140 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
5141 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
5142};
5143
5144/**
5145 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
5146 * cmd value. Used for NL attributes for data used by
5147 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5148 */
5149enum qca_wlan_vendor_attr_thermal_cmd {
5150 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
5151 /* The value of command, driver will implement different operations
5152 * according to this value. It uses values defined in
5153 * enum qca_wlan_vendor_attr_thermal_cmd_type.
5154 * u32 attribute.
5155 */
5156 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
5157
5158 /* keep last */
5159 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
5160 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
5161 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
5162};
5163
5164/**
5165 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
5166 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
5167 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
5168 * thermal command types sent to driver.
5169 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
5170 * get thermal shutdown configuration parameters for display. Parameters
5171 * responded from driver are defined in
5172 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
5173 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
5174 * get temperature. Host should respond with a temperature data. It is defined
5175 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
5176 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
5177 * suspend action.
5178 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
5179 * resume action.
5180 */
5181enum qca_wlan_vendor_attr_thermal_cmd_type {
5182 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
5183 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
5184 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
5185 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
5186};
5187
5188/**
5189 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
5190 * to get chip temperature by user.
5191 * enum values are used for NL attributes for data used by
5192 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
5193 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5194 */
5195enum qca_wlan_vendor_attr_thermal_get_temperature {
5196 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
5197 /* Temperature value (degree Celsius) from driver.
5198 * u32 attribute.
5199 */
5200 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
5201
5202 /* keep last */
5203 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
5204 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
5205 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
5206};
5207
5208/**
5209 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
5210 * to get configuration parameters of thermal shutdown feature. Enum values are
5211 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
5212 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5213 */
5214enum qca_wlan_vendor_attr_get_thermal_params_rsp {
5215 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
5216 /* Indicate if the thermal shutdown feature is enabled.
5217 * NLA_FLAG attribute.
5218 */
5219 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
5220 /* Indicate if the auto mode is enabled.
5221 * Enable: Driver triggers the suspend/resume action.
5222 * Disable: User space triggers the suspend/resume action.
5223 * NLA_FLAG attribute.
5224 */
5225 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
5226 /* Thermal resume threshold (degree Celsius). Issue the resume command
5227 * if the temperature value is lower than this threshold.
5228 * u16 attribute.
5229 */
5230 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
5231 /* Thermal warning threshold (degree Celsius). FW reports temperature
5232 * to driver if it's higher than this threshold.
5233 * u16 attribute.
5234 */
5235 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
5236 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
5237 * if the temperature value is higher than this threshold.
5238 * u16 attribute.
5239 */
5240 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
5241 /* FW reports temperature data periodically at this interval (ms).
5242 * u16 attribute.
5243 */
5244 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
5245
5246 /* keep last */
5247 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
5248 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
5249 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
5250};
5251
5252/**
5253 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
5254 * report thermal events from driver to user space.
5255 * enum values are used for NL attributes for data used by
5256 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
5257 */
5258enum qca_wlan_vendor_attr_thermal_event {
5259 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
5260 /* Temperature value (degree Celsius) from driver.
5261 * u32 attribute.
5262 */
5263 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
5264 /* Indication of resume completion from power save mode.
5265 * NLA_FLAG attribute.
5266 */
5267 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
5268
5269 /* keep last */
5270 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
5271 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
5272 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
5273};
5274
5275/**
5276 * enum he_fragmentation_val - HE fragmentation support values
5277 * Indicates level of dynamic fragmentation that is supported by
5278 * a STA as a recipient.
5279 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
5280 * (HE MAC Capabilities Information field) and are used in HE Capabilities
5281 * element to advertise the support. These values are validated in the driver
5282 * to check the device capability and advertised in the HE Capabilities
5283 * element. These values are used to configure testbed device to allow the
5284 * advertised hardware capabilities to be downgraded for testing purposes.
5285 *
5286 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
5287 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
5288 * contained within an MPDU or S-MPDU, no support for dynamic fragments
5289 * within an A-MPDU that is not an S-MPDU.
5290 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
5291 * contained within an MPDU or S-MPDU and support for up to one dynamic
5292 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
5293 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
5294 * MPDU or S-MPDU.
5295 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
5296 * contained within an MPDU or S-MPDU and support for multiple dynamic
5297 * fragments for each MSDU and for each A-MSDU if supported by the
5298 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
5299 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
5300 */
5301enum he_fragmentation_val {
5302 HE_FRAG_DISABLE,
5303 HE_FRAG_LEVEL1,
5304 HE_FRAG_LEVEL2,
5305 HE_FRAG_LEVEL3,
5306};
5307
5308/**
5309 * enum he_mcs_config - HE MCS support configuration
5310 *
5311 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
5312 * These values are used in driver to configure the HE MCS map to advertise
5313 * Tx/Rx MCS map in HE capability and these values are applied for all the
5314 * streams supported by the device. To configure MCS for different bandwidths,
5315 * vendor command needs to be sent using this attribute with appropriate value.
5316 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
5317 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
5318 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
5319 * These values are used to configure testbed device to allow the advertised
5320 * hardware capabilities to be downgraded for testing purposes. The enum values
5321 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
5322 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
5323 * These values are validated in the driver before setting the MCS map and
5324 * driver returns error if the input is other than these enum values.
5325 *
5326 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
5327 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
5328 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
5329 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
5330 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
5331 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
5332 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
5333 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
5334 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
5335 */
5336enum he_mcs_config {
5337 HE_80_MCS0_7 = 0,
5338 HE_80_MCS0_9 = 1,
5339 HE_80_MCS0_11 = 2,
5340 HE_160_MCS0_7 = 4,
5341 HE_160_MCS0_9 = 5,
5342 HE_160_MCS0_11 = 6,
5343 HE_80P80_MCS0_7 = 8,
5344 HE_80P80_MCS0_9 = 9,
5345 HE_80P80_MCS0_11 = 10,
5346};
5347
5348/**
5349 * enum qca_wlan_ba_session_config - BA session configuration
5350 *
5351 * Indicates the configuration values for BA session configuration attribute.
5352 *
5353 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
5354 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
5355 */
5356enum qca_wlan_ba_session_config {
5357 QCA_WLAN_ADD_BA = 1,
5358 QCA_WLAN_DELETE_BA = 2,
5359};
5360
5361/**
5362 * enum qca_wlan_ac_type - Access category type
5363 *
5364 * Indicates the access category type value.
5365 *
5366 * @QCA_WLAN_AC_BE: BE access category
5367 * @QCA_WLAN_AC_BK: BK access category
5368 * @QCA_WLAN_AC_VI: VI access category
5369 * @QCA_WLAN_AC_VO: VO access category
5370 * @QCA_WLAN_AC_ALL: All ACs
5371 */
5372enum qca_wlan_ac_type {
5373 QCA_WLAN_AC_BE = 0,
5374 QCA_WLAN_AC_BK = 1,
5375 QCA_WLAN_AC_VI = 2,
5376 QCA_WLAN_AC_VO = 3,
5377 QCA_WLAN_AC_ALL = 4,
5378};
5379
5380/**
5381 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
5382 *
5383 * Indicates the HE LTF configuration value.
5384 *
5385 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
5386 * based on the GI setting
5387 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
5388 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
5389 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
5390 */
5391enum qca_wlan_he_ltf_cfg {
5392 QCA_WLAN_HE_LTF_AUTO = 0,
5393 QCA_WLAN_HE_LTF_1X = 1,
5394 QCA_WLAN_HE_LTF_2X = 2,
5395 QCA_WLAN_HE_LTF_4X = 3,
5396};
5397
Hai Shalomc9e41a12018-07-31 14:41:42 -07005398/**
5399 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
5400 *
5401 * Indicates the HE trigger frame MAC padding duration value.
5402 *
5403 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
5404 * process the trigger frame.
5405 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
5406 * trigger frame.
5407 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
5408 * trigger frame.
5409 */
5410enum qca_wlan_he_mac_padding_dur {
5411 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
5412 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
5413 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
5414};
5415
Roshan Pius3a1667e2018-07-03 15:17:14 -07005416/* Attributes for data used by
5417 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
5418 */
5419enum qca_wlan_vendor_attr_wifi_test_config {
5420 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
5421 /* 8-bit unsigned value to configure the driver to enable/disable
5422 * WMM feature. This attribute is used to configure testbed device.
5423 * 1-enable, 0-disable
5424 */
5425 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
5426
5427 /* 8-bit unsigned value to configure the driver to accept/reject
5428 * the addba request from peer. This attribute is used to configure
5429 * the testbed device.
5430 * 1-accept addba, 0-reject addba
5431 */
5432 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
5433
5434 /* 8-bit unsigned value to configure the driver to send or not to
5435 * send the addba request to peer.
5436 * This attribute is used to configure the testbed device.
5437 * 1-send addba, 0-do not send addba
5438 */
5439 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
5440
5441 /* 8-bit unsigned value to indicate the HE fragmentation support.
5442 * Uses enum he_fragmentation_val values.
5443 * This attribute is used to configure the testbed device to
5444 * allow the advertised hardware capabilities to be downgraded
5445 * for testing purposes.
5446 */
5447 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
5448
5449 /* 8-bit unsigned value to indicate the HE MCS support.
5450 * Uses enum he_mcs_config values.
5451 * This attribute is used to configure the testbed device to
5452 * allow the advertised hardware capabilities to be downgraded
5453 * for testing purposes.
5454 */
5455 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
5456
5457 /* 8-bit unsigned value to configure the driver to allow or not to
5458 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
5459 * This attribute is used to configure the testbed device.
5460 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
5461 */
5462 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
5463
5464 /* 8-bit unsigned value to configure the driver to add a
5465 * new BA session or delete the existing BA session for
5466 * given TID. ADDBA command uses the buffer size and TID
5467 * configuration if user specifies the values else default
5468 * value for buffer size is used for all TIDs if the TID
5469 * also not specified. For DEL_BA command TID value is
5470 * required to process the command.
5471 * Uses enum qca_wlan_ba_session_config values.
5472 * This attribute is used to configure the testbed device.
5473 */
5474 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
5475
Hai Shalomce48b4a2018-09-05 11:41:35 -07005476 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07005477 * request and response frames.
5478 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07005479 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005480 */
5481 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
5482
5483 /* 8-bit unsigned value to configure the buffer size in addba
5484 * request and response frames.
5485 * This attribute is used to configure the testbed device.
5486 */
5487 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
5488
5489 /* 8-bit unsigned value to configure the no ack policy.
5490 * To configure no ack policy, access category value is
5491 * required to process the command.
5492 * This attribute is used to configure the testbed device.
5493 * 1 - enable no ack, 0 - disable no ack.
5494 */
5495 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
5496
5497 /* 8-bit unsigned value to configure the AC for no ack policy
5498 * This attribute is used to configure the testbed device.
5499 * Uses the enum qca_wlan_ac_type values.
5500 */
5501 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
5502
5503 /* 8-bit unsigned value to configure the HE LTF
5504 * This attribute is used to configure the testbed device.
5505 * Uses the enum qca_wlan_he_ltf_cfg values.
5506 */
5507 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
5508
5509 /* 8-bit unsigned value to configure the tx beamformee.
5510 * This attribute is used to configure the testbed device.
5511 * 1-enable, 0-disable.
5512 */
5513 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
5514
5515 /* 8-bit unsigned value to configure the tx beamformee number
5516 * of space-time streams.
5517 * This attribute is used to configure the testbed device.
5518 * The range of the value is 0 to 8.
5519 */
5520 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
5521
5522 /* 8-bit unsigned value to configure the MU EDCA params for given AC
5523 * This attribute is used to configure the testbed device.
5524 * Uses the enum qca_wlan_ac_type values.
5525 */
5526 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
5527
5528 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
5529 * To configure MU EDCA AIFSN value, MU EDCA access category value
5530 * is required to process the command.
5531 * This attribute is used to configure the testbed device.
5532 */
5533 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
5534
5535 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
5536 * given AC.
5537 * To configure MU EDCA ECW min value, MU EDCA access category value
5538 * is required to process the command.
5539 * This attribute is used to configure the testbed device.
5540 */
5541 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
5542
5543 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
5544 * given AC.
5545 * To configure MU EDCA ECW max value, MU EDCA access category value
5546 * is required to process the command.
5547 * This attribute is used to configure the testbed device.
5548 */
5549 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
5550
5551 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
5552 * To configure MU EDCA timer value, MU EDCA access category value
5553 * is required to process the command.
5554 * This attribute is used to configure the testbed device.
5555 */
5556 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
5557
Hai Shalomc9e41a12018-07-31 14:41:42 -07005558 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
5559 * duration.
5560 * This attribute is used to configure the testbed device.
5561 * Uses the enum qca_wlan_he_mac_padding_dur values.
5562 */
5563 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
5564
Hai Shalomce48b4a2018-09-05 11:41:35 -07005565 /* 8-bit unsigned value to override the MU EDCA params to defaults
5566 * regardless of the AP beacon MU EDCA params. If it is enabled use
5567 * the default values else use the MU EDCA params from AP beacon.
5568 * This attribute is used to configure the testbed device.
5569 * 1-enable, 0-disable.
5570 */
5571 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
5572
Hai Shalom39ba6fc2019-01-22 12:40:38 -08005573 /* 8-bit unsigned value to configure the support for receiving
5574 * an MPDU that contains an operating mode control subfield.
5575 * This attribute is used to configure the testbed device.
5576 * 1-enable, 0-disable.
5577 */
5578 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
5579
5580 /* Nested attribute values required to setup the TWT session.
5581 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
5582 * information to set up the session. It contains broadcast flags,
5583 * set_up flags, trigger value, flow type, flow ID, wake interval
5584 * exponent, protection, target wake time, wake duration, wake interval
5585 * mantissa. These nested attributes are used to setup a host triggered
5586 * TWT session.
5587 */
5588 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
5589
5590 /* This nested attribute is used to terminate the current TWT session.
5591 * It does not currently carry any attributes.
5592 */
5593 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
5594
5595 /* This nested attribute is used to suspend the current TWT session.
5596 * It does not currently carry any attributes.
5597 */
5598 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
5599
5600 /* Nested attribute values to indicate the request for resume.
5601 * This attribute is used to resume the TWT session.
5602 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
5603 * parameters required to resume the TWT session.
5604 */
5605 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
5606
Roshan Pius3a1667e2018-07-03 15:17:14 -07005607 /* keep last */
5608 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
5609 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
5610 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
5611};
5612
5613/**
5614 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
5615 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5616 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
5617 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
5618 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
5619 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
5620 * statistics of an unassociated station by specifying the MAC address in
5621 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
5622 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
5623 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
5624 * the statistics of all unassociated stations by specifying the Broadcast MAC
5625 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
5626 * above procedure. In the response, driver shall specify statistics
5627 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
5628 */
5629enum qca_wlan_vendor_attr_bss_filter {
5630 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
5631 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
5632 /* Other BSS filter type, unsigned 8 bit value. One of the values
5633 * in enum qca_wlan_vendor_bss_filter_type.
5634 */
5635 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
5636 /* Other BSS filter action, unsigned 8 bit value. One of the values
5637 * in enum qca_wlan_vendor_bss_filter_action.
5638 */
5639 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
5640 /* Array of nested attributes where each entry is the statistics
5641 * information of the specified station that belong to another BSS.
5642 * Attributes for each entry are taken from enum
5643 * qca_wlan_vendor_bss_filter_sta_stats.
5644 * Other BSS station configured in
5645 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
5646 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
5647 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
5648 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
5649 */
5650 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
5651
5652 /* keep last */
5653 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
5654 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
5655 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
5656};
5657
5658/**
5659 * enum qca_wlan_vendor_bss_filter_type - Type of
5660 * filter used in other BSS filter operations. Used by the vendor command
5661 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5662 *
5663 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
5664 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
5665 */
5666enum qca_wlan_vendor_bss_filter_type {
5667 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
5668 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
5669};
5670
5671/**
5672 * enum qca_wlan_vendor_bss_filter_action - Type of
5673 * action in other BSS filter operations. Used by the vendor command
5674 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5675 *
5676 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
5677 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
5678 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
5679 */
5680enum qca_wlan_vendor_bss_filter_action {
5681 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
5682 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
5683 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
5684};
5685
5686/**
5687 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
5688 * the statistics of a specific unassociated station belonging to another BSS.
5689 * The statistics provides information of the unassociated station
5690 * filtered by other BSS operation - such as MAC, signal value.
5691 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
5692 *
5693 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
5694 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
5695 * of the station. Unsigned 8 bit number containing RSSI.
5696 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
5697 * driver for the last received RSSI. Unsigned 64 bit number containing
5698 * nanoseconds from the boottime.
5699 */
5700enum qca_wlan_vendor_bss_filter_sta_stats {
5701 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
5702 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
5703 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
5704 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
5705
5706 /* keep last */
5707 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
5708 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
5709 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
5710};
5711
Hai Shalomce48b4a2018-09-05 11:41:35 -07005712/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
5713 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
5714 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
5715 */
5716enum qca_wlan_nan_ext_subcmd_type {
5717 /* Subcmd of type NAN Enable Request */
5718 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
5719 /* Subcmd of type NAN Disable Request */
5720 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
5721};
5722
5723/**
5724 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
5725 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
5726 */
5727enum qca_wlan_vendor_attr_nan_params {
5728 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
5729 /* Carries NAN command for firmware component. Every vendor command
5730 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
5731 * payload containing the NAN command. NLA_BINARY attribute.
5732 */
5733 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
5734 /* Indicates the type of NAN command sent with
5735 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
5736 * describes the possible range of values. This attribute is mandatory
5737 * if the command being issued is either
5738 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
5739 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
5740 */
5741 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
5742 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
5743 * band. This attribute is mandatory when command type is
5744 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
5745 */
5746 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
5747 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
5748 * band. This attribute is optional and should be included when command
5749 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
5750 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
5751 */
5752 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
5753
5754 /* keep last */
5755 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
5756 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
5757 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
5758};
5759
Hai Shalom39ba6fc2019-01-22 12:40:38 -08005760/**
5761 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
5762 * TWT (Target Wake Time) setup request. These attributes are sent as part of
5763 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
5764 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
5765 *
5766 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
5767 * Disable (flag attribute not present) - Individual TWT
5768 * Enable (flag attribute present) - Broadcast TWT.
5769 * Individual means the session is between the STA and the AP.
5770 * This session is established using a separate negotiation between
5771 * STA and AP.
5772 * Broadcast means the session is across multiple STAs and an AP. The
5773 * configuration parameters are announced in Beacon frames by the AP.
5774 *
5775 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
5776 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
5777 * specify the TWT request type
5778 *
5779 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
5780 * Enable (flag attribute present) - TWT with trigger support.
5781 * Disable (flag attribute not present) - TWT without trigger support.
5782 * Trigger means the AP will send the trigger frame to allow STA to send data.
5783 * Without trigger, the STA will wait for the MU EDCA timer before
5784 * transmitting the data.
5785 *
5786 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
5787 * 0 - Announced TWT - In this mode, STA may skip few service periods to
5788 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
5789 * NULL frame to AP.
5790 * 1 - Unannounced TWT - The STA will wakeup during every SP.
5791 *
5792 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
5793 * Flow ID is the unique identifier for each TWT session.
5794 * Currently this is not required and dialog ID will be set to zero.
5795 *
5796 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
5797 * This attribute (exp) is used along with the mantissa to derive the
5798 * wake interval using the following formula:
5799 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
5800 * Wake interval is the interval between 2 successive SP.
5801 *
5802 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
5803 * Enable (flag attribute present) - Protection required.
5804 * Disable (flag attribute not present) - Protection not required.
5805 * If protection is enabled, then the AP will use protection
5806 * mechanism using RTS/CTS to self to reserve the airtime.
5807 *
5808 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
5809 * This attribute is used as the SP offset which is the offset from
5810 * TSF after which the wake happens. The units are in microseconds. If
5811 * this attribute is not provided, then the value will be set to zero.
5812 *
5813 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
5814 * This is the duration of the service period. The units are in TU.
5815 *
5816 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
5817 * This attribute is used to configure wake interval mantissa.
5818 * The units are in TU.
5819 */
5820enum qca_wlan_vendor_attr_twt_setup {
5821 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
5822 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
5823 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
5824 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
5825 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
5826 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
5827 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
5828 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
5829 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
5830 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
5831 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
5832
5833 /* keep last */
5834 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
5835 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
5836 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
5837};
5838
5839/**
5840 * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for
5841 * TWT (Target Wake Time) resume request. These attributes are sent as part of
5842 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
5843 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
5844 *
5845 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
5846 * This attribute is used as the SP offset which is the offset from
5847 * TSF after which the wake happens. The units are in microseconds.
5848 * If this attribute is not provided, then the value will be set to
5849 * zero.
5850 *
5851 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
5852 * This attribute represents the next TWT subfield size.
5853 */
5854enum qca_wlan_vendor_attr_twt_resume {
5855 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
5856 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
5857 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
5858
5859 /* keep last */
5860 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
5861 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
5862 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
5863};
5864
5865/**
5866 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
5867 * Represents the setup type being requested for TWT.
5868 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
5869 * parameters but relying on AP to fill the parameters during the negotiation.
5870 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
5871 * values which the AP may accept or AP may provide alternative parameters
5872 * which the STA may accept.
5873 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
5874 * alternate parameters than the requested ones.
5875 */
5876enum qca_wlan_vendor_twt_setup_req_type {
5877 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
5878 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
5879 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
5880};
5881
5882/**
5883 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
5884 *
5885 * Indicates the type of roam scan event sent by firmware/driver.
5886 *
5887 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
5888 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
5889 */
5890enum qca_wlan_roam_scan_event_type {
5891 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
5892 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
5893};
5894
5895/**
5896 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
5897 *
5898 * Indicates the reason for triggering roam scan by firmware/driver.
5899 *
5900 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
5901 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
5902 */
5903enum qca_wlan_roam_scan_trigger_reason {
5904 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
5905 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
5906};
5907
5908/**
5909 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
5910 * roam scan related details from driver/firmware to user space. enum values
5911 * are used for NL attributes sent with
5912 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
5913 */
5914enum qca_wlan_vendor_attr_roam_scan {
5915 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
5916 /* Encapsulates type of roam scan event being reported. enum
5917 * qca_wlan_roam_scan_event_type describes the possible range of
5918 * values. u32 attribute.
5919 */
5920 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
5921 /* Encapsulates reason for triggering roam scan. enum
5922 * qca_wlan_roam_scan_trigger_reason describes the possible range of
5923 * values. u32 attribute.
5924 */
5925 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
5926
5927 /* keep last */
5928 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
5929 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
5930 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
5931};
5932
5933/**
5934 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
5935 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
5936 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
5937 */
5938enum qca_wlan_vendor_cfr_method {
5939 /* CFR method using QOS Null frame */
5940 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
5941};
5942
5943/**
5944 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
5945 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
5946 * Channel Frequency Response capture parameters and enable periodic CFR
5947 * capture.
5948 */
5949enum qca_wlan_vendor_peer_cfr_capture_attr {
5950 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
5951 /* 6-byte MAC address of the peer.
5952 * This attribute is mandatory.
5953 */
5954 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
5955 /* Enable peer CFR Capture, flag attribute.
5956 * This attribute is mandatory to enable peer CFR capture.
5957 * If this attribute is not present, peer CFR capture is disabled.
5958 */
5959 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
5960 /* BW of measurement, attribute uses the values in enum nl80211_chan_width
5961 * Supported values: 20, 40, 80, 80+80, 160.
5962 * Note that all targets may not support all bandwidths.
5963 * u8 attribute. This attribute is mandatory if attribute
5964 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
5965 */
5966 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
5967 /* Periodicity of CFR measurement in msec.
5968 * Periodicity should be a multiple of Base timer.
5969 * Current Base timer value supported is 10 msecs (default).
5970 * 0 for one shot capture. u32 attribute.
5971 * This attribute is mandatory if attribute
5972 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
5973 */
5974 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
5975 /* Method used to capture Channel Frequency Response.
5976 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
5977 * u8 attribute. This attribute is mandatory if attribute
5978 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
5979 */
5980 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
5981 /* Enable periodic CFR capture, flag attribute.
5982 * This attribute is mandatory to enable Periodic CFR capture.
5983 * If this attribute is not present, periodic CFR capture is disabled.
5984 */
5985 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
5986
5987 /* Keep last */
5988 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
5989 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
5990 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
5991};
5992
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08005993#endif /* QCA_VENDOR_H */