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