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