blob: 778c217fb7c0e9e2df709de18e00339d1895c4ef [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
Hai Shalomc3565922019-10-28 11:58:20 -070075 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -080076 *
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 *
Hai Shalomc3565922019-10-28 11:58:20 -0700173 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
174 * DFS policy and channel hint for ACS operation. This command uses the
175 * attributes defined in enum qca_wlan_vendor_attr_acs_config and
176 * enum qca_acs_dfs_mode.
177 *
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700178 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
179 * start the P2P Listen offload function in device and pass the listen
180 * channel, period, interval, count, device types, and vendor specific
181 * information elements to the device driver and firmware.
182 * Uses the attributes defines in
183 * enum qca_wlan_vendor_attr_p2p_listen_offload.
184 *
185 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
186 * indicate stop request/response of the P2P Listen offload function in
187 * device. As an event, it indicates either the feature stopped after it
188 * was already running or feature has actually failed to start. Uses the
189 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
190 *
191 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
192 * beaconing, this sub command provides the driver, the frequencies on the
193 * 5 GHz band to check for any radar activity. Driver selects one channel
194 * from this priority list provided through
195 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
196 * to check for radar activity on it. If no radar activity is detected
197 * during the channel availability check period, driver internally switches
198 * to the selected frequency of operation. If the frequency is zero, driver
199 * internally selects a channel. The status of this conditional switch is
200 * indicated through an event using the same sub command through
201 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
202 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700203 *
204 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
205 * attributes defined in enum qca_wlan_gpio_attr.
206 *
207 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
208 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
209 * capabilities are to be fetched and other
210 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
211 * requested capabilities.
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700212 *
213 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
214 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
215 * command and event.
216 *
217 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
218 * indoor location features. Capabilities are reported in
219 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
220 *
221 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
222 * (fine timing measurement) session with one or more peers.
223 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
224 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
225 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
226 * events will be reported, followed by
227 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
228 * end of session.
229 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
230 *
231 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
232 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
233 * status code indicating session was aborted.
234 *
235 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
236 * results for one peer. Results are reported in
237 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
238 *
239 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
240 * FTM session is finished, either successfully or aborted by
241 * request.
242 *
243 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
244 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
245 * to enable or disable the responder. LCI/LCR reports can be
246 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
247 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
248 * times to update the LCI/LCR reports.
249 *
250 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
251 * arrival) measurement with a single peer. Specify peer MAC address in
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800252 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
253 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
254 * scan results cache and use the frequency from there).
255 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
256 * Measurement result is reported in
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700257 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
258 *
259 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
260 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
261 *
262 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
263 * the AOA measurement result.
264 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
265 * success/failure status is reported in
266 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
267 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
268 * The antenna array(s) used in the measurement are reported in
269 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700270 *
271 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
272 * data as per the given parameters.
273 *
274 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
275 * specific chain.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800276 *
277 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
278 * configuration for a DMG RF sector. Specify sector index in
279 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
280 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
281 * to return sector information for in
282 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
283 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
284 * exact time where information was captured in
285 * QCA_WLAN_VENDOR_ATTR_TSF.
286 *
287 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
288 * configuration for a DMG RF sector. Specify sector index in
289 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
290 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
291 * for one or more DMG RF modules in
292 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
293 *
294 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
295 * DMG RF sector for a station. This is the sector that the HW
296 * will use to communicate with the station. Specify the MAC address
297 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
298 * needed for unassociated station). Specify sector type to return in
299 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
300 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
301 * Also return the exact time where the information was captured
302 * in QCA_WLAN_VENDOR_ATTR_TSF.
303 *
304 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
305 * selected DMG RF sector for a station. This is the sector that
306 * the HW will use to communicate with the station.
307 * Specify the MAC address of associated station/AP/PCP in
308 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
309 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
310 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
311 * The selected sector will be locked such that it will not be
312 * modified like it normally does (for example when station
313 * moves around). To unlock the selected sector for a station
314 * pass the special value 0xFFFF in the sector index. To unlock
315 * all connected stations also pass a broadcast MAC address.
316 *
317 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
318 * in the host driver. The different TDLS configurations are defined
319 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800320 *
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800321 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
322 * capabilities. The response uses the attributes defined in
323 * enum qca_wlan_vendor_attr_get_he_capabilities.
324 *
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800325 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
326 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
327 * carries the scan cookie of the corresponding scan request. The scan
328 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
Dmitry Shmidt29333592017-01-09 12:27:11 -0800329 *
330 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
331 * Absorption Rate (SAR) power limits. A critical regulation for
332 * FCC compliance, OEMs require methods to set SAR limits on TX
333 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
334 * attributes are used with this command.
Paul Stewart092955c2017-02-06 09:13:09 -0800335 *
336 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
337 * host driver for offloading the implementation of Auto Channel Selection
338 * (ACS) to an external user space entity. This interface is used as the
339 * event from the host driver to the user space entity and also as the
340 * request from the user space entity to the host driver. The event from
341 * the host driver is used by the user space entity as an indication to
342 * start the ACS functionality. The attributes used by this event are
343 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
344 * User space entity uses the same interface to inform the host driver with
345 * selected channels after the ACS operation using the attributes defined
346 * by enum qca_wlan_vendor_attr_external_acs_channels.
347 *
348 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
349 * requisite information leading to a power save failure. The information
350 * carried as part of this event is represented by the
351 * enum qca_attr_chip_power_save_failure attributes.
352 *
353 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
354 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
355 *
356 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
357 * statistics are represented by the enum qca_attr_nud_stats_get
358 * attributes.
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800359 *
360 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
361 * the BSS transition status, whether accept or reject, for a list of
362 * candidate BSSIDs provided by the userspace. This uses the vendor
363 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
364 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
365 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
366 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
367 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
368 * the driver shall specify array of
369 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
370 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
371 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
372 *
373 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
374 * specific QCA module. The trace levels are represented by
375 * enum qca_attr_trace_level attributes.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700376 *
377 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
378 * Protocol antenna limit in different modes. See enum
379 * qca_wlan_vendor_attr_brp_ant_limit_mode.
380 *
381 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
382 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
383 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
Hai Shalom81f62d82019-07-22 12:10:00 -0700384 * identifying the operation in success case. In failure cases an
385 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
386 * describing the reason for the failure is returned.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700387 *
388 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
389 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
390 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
391 * be stopped.
392 *
393 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
394 * specific interface. This can be used to modify some of the low level
395 * scan parameters (off channel dwell time, home channel time) in the
396 * driver/firmware. These parameters are maintained within the host driver.
397 * This command is valid only when the interface is in the connected state.
398 * These scan parameters shall be reset by the driver/firmware once
399 * disconnected. The attributes used with this command are defined in
400 * enum qca_wlan_vendor_attr_active_tos.
401 *
402 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
403 * driver has detected an internal failure. This event carries the
404 * information indicating the reason that triggered this detection. The
405 * attributes for this command are defined in
406 * enum qca_wlan_vendor_attr_hang.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700407 *
408 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
409 * of spectral parameters used. The spectral scan parameters are specified
410 * by enum qca_wlan_vendor_attr_spectral_scan.
411 *
412 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
413 * for spectral scan functionality. The debug stats are specified by
414 * enum qca_wlan_vendor_attr_spectral_diag_stats.
415 *
416 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
417 * scan system capabilities. The capabilities are specified
418 * by enum qca_wlan_vendor_attr_spectral_cap.
419 *
420 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
421 * status of spectral scan. The status values are specified
422 * by enum qca_wlan_vendor_attr_spectral_scan_status.
423 *
424 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
425 * peer pending packets. Specify the peer MAC address in
426 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
427 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
428 * in enum qca_wlan_vendor_attr_flush_pending.
429 *
430 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
431 * RF Operating Parameter (RROP) information. The attributes for this
432 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
433 * intended for use by external Auto Channel Selection applications.
434 *
435 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
436 * (SAR) power limits. This is a companion to the command
437 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
438 * settings currently in use. The attributes returned by this command are
439 * defined by enum qca_vendor_attr_sar_limits.
440 *
441 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
442 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
443 * information attached to the respective MAC.
444 * This works both as a query (user space asks the current mode) or event
445 * interface (driver advertising the current mode to the user space).
446 * Driver does not trigger this event for temporary hardware mode changes.
447 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
448 * channel change, etc.) are updated with this event. Attributes for this
449 * interface are defined in enum qca_wlan_vendor_attr_mac.
450 *
451 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
452 * per peer per TID. Attributes for this command are define in
453 * enum qca_wlan_set_qdepth_thresh_attr.
454 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
455 * guide for WLAN driver. Request to suspend of driver and FW if the
456 * temperature is higher than the suspend threshold; resume action is
457 * requested to driver if the temperature is lower than the resume
458 * threshold. In user poll mode, request temperature data by user. For test
459 * purpose, getting thermal shutdown configuration parameters is needed.
460 * Attributes for this interface are defined in
461 * enum qca_wlan_vendor_attr_thermal_cmd.
462 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
463 * driver. Thermal temperature and indication of resume completion are
464 * reported as thermal events. The attributes for this command are defined
465 * in enum qca_wlan_vendor_attr_thermal_event.
466 *
467 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
468 * test configuration. Attributes for this command are defined in
469 * enum qca_wlan_vendor_attr_wifi_test_config.
470 *
471 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
472 * RX filter to receive frames from stations that are active on the
473 * operating channel, but not associated with the local device (e.g., STAs
474 * associated with other APs). Filtering is done based on a list of BSSIDs
475 * and STA MAC addresses added by the user. This command is also used to
476 * fetch the statistics of unassociated stations. The attributes used with
477 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
Hai Shalomce48b4a2018-09-05 11:41:35 -0700478 *
479 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
480 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
481 * carried a payload which was a binary blob of data. The command was not
482 * extendable to send more information. The newer version carries the
483 * legacy blob encapsulated within an attribute and can be extended with
484 * additional vendor attributes that can enhance the NAN command interface.
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800485 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
486 * or stopped within driver/firmware in order to initiate roaming. The
487 * attributes used with this event are defined in enum
488 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
489 * in few cases, e.g., if the host processor is sleeping when this event
490 * is generated in firmware.
491 *
492 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
493 * configure parameters per peer to capture Channel Frequency Response
494 * (CFR) and enable Periodic CFR capture. The attributes for this command
495 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr.
Hai Shalom74f70d42019-02-11 14:42:39 -0800496 *
497 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
498 * in throughput dynamically. The driver estimates the throughput based on
499 * number of packets being transmitted/received per second and indicates
500 * the changes in throughput to user space. Userspace tools can use this
501 * information to configure kernel's TCP parameters in order to achieve
502 * peak throughput. Optionally, the driver will also send guidance on
503 * modifications to kernel's TCP parameters which can be referred by
504 * userspace tools. The attributes used with this event are defined in enum
505 * qca_wlan_vendor_attr_throughput_change.
506 *
507 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
508 * priorities among different types of traffic during coex scenarios.
509 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
510 * profiles mentioned in enum qca_coex_config_profiles. The associated
511 * attributes used with this command are defined in enum
512 * qca_vendor_attr_coex_config.
513 *
514 * Based on the config provided, FW will boost the weight and prioritize
515 * the traffic for that subsystem (WLAN/BT/Zigbee).
516 *
517 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
518 * the supported AKM suite selectorss from the driver. It returns the list
519 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
Hai Shalom021b0b52019-04-10 11:17:58 -0700520 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
521 * state from the driver. It returns the firmware state in the attribute
522 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
523 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
524 * is used by the driver to flush per-peer cached statistics to user space
525 * application. This interface is used as an event from the driver to
526 * user space application. Attributes for this event are specified in
527 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
528 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
529 * sent in the event.
530 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
531 * improve the success rate of Zigbee joining network.
532 * Due to PTA master limitation, Zigbee joining network success rate is
533 * low while WLAN is working. The WLAN driver needs to configure some
534 * parameters including Zigbee state and specific WLAN periods to enhance
535 * PTA master. All these parameters are delivered by the attributes
536 * defined in enum qca_mpta_helper_vendor_attr.
Hai Shalom81f62d82019-07-22 12:10:00 -0700537 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
538 * implement Beacon frame reporting feature.
539 *
540 * Userspace can request the driver/firmware to periodically report
541 * received Beacon frames whose BSSID is same as the current connected
542 * BSS's MAC address.
543 *
544 * In case the STA seamlessly (without sending disconnect indication to
545 * userspace) roams to a different BSS, Beacon frame reporting will be
546 * automatically enabled for the Beacon frames whose BSSID is same as the
547 * MAC address of the new BSS. Beacon reporting will be stopped when the
548 * STA is disconnected (when the disconnect indication is sent to
549 * userspace) and need to be explicitly enabled by userspace for next
550 * connection.
551 *
552 * When a Beacon frame matching configured conditions is received, and if
553 * userspace has requested to send asynchronous beacon reports, the
554 * driver/firmware will encapsulate the details of the Beacon frame in an
555 * event and send it to userspace along with updating the BSS information
556 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
557 * scan cache with the information from the received Beacon frame but will
558 * not send any active report to userspace.
559 *
560 * The userspace can request the driver/firmware to stop reporting Beacon
561 * frames. If the driver/firmware is not able to receive Beacon frames due
562 * to other Wi-Fi operations such as off-channel activities, etc., the
563 * driver/firmware will send a pause event to userspace and stop reporting
564 * Beacon frames. Whether the beacon reporting will be automatically
565 * resumed or not by the driver/firmware later will be reported to
566 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
567 * flag. The beacon reporting shall be resumed for all the cases except
568 * either when userspace sets
569 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
570 * which triggered the current beacon reporting or during any disconnection
571 * case as indicated by setting
572 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
573 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
574 * driver.
575 *
576 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
577 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
578 * flag not set, the next first
579 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
580 * shall be considered as un-pause event.
581 *
582 * All the attributes used with this command are defined in
583 * enum qca_wlan_vendor_attr_beacon_reporting_params.
584 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
585 * interop issues with the DUT. This sub command is used to transfer the
586 * AP info between the driver and user space. This works both as a command
587 * and an event. As a command, it configures the stored list of APs from
588 * user space to firmware; as an event, it indicates the AP info detected
589 * by the firmware to user space for persistent storage. The attributes
590 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
591 * the parameters.
Hai Shalomc3565922019-10-28 11:58:20 -0700592 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
593 * send/receive OEM data binary blobs to/from application/service to/from
594 * firmware. The attributes defined in enum
595 * qca_wlan_vendor_attr_oem_data_params are used to deliver the
596 * parameters.
597 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
598 * to send/receive avoid frequency data using
599 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
600 * This new command is alternative to existing command
601 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
602 * is using stream of bytes instead of structured data using vendor
603 * attributes.
604 *
605 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
606 * add the STA node details in driver/firmware. Attributes for this event
607 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
608 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
609 * coex chain mode from application/service.
610 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
611 * to deliver the parameters.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800612 *
613 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
614 * get information of a station from driver to userspace. This command can
615 * be used in both STA and AP modes. For STA mode, it provides information
616 * of the current association when in connected state or the last
617 * association when in disconnected state. For AP mode, only information
618 * of the currently connected stations is available. This command uses
619 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800620 */
621enum qca_nl80211_vendor_subcmds {
622 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
623 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700624 /* subcmds 2..8 not yet allocated */
625 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800626 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700627 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700628 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800629 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800630 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
631 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
632 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
633 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
634 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
635 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
636 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
637 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
638 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
639 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
640 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
641 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
642 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
643 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
644 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
645 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
646 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
647 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
648 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
649 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
650 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
651 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
652 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
653 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
654 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
655 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
656 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
657 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
658 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
659 /* 43..49 - reserved for QCA */
660 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
661 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
662 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700663 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800664 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
665 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800666 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
667 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
668 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
669 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
670 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800671 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
672 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
673 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
674 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
675 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
676 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
677 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
678 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
679 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
680 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
681 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
682 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
683 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -0700684 /* Wi-Fi configuration subcommands */
685 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
686 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700687 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
688 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
689 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
690 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
691 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
692 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
693 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
694 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
695 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
696 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
697 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -0700698 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -0700699 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
700 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
701 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
702 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
703 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
704 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
705 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
706 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
707 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -0700708 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700709 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
710 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
711 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
712 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -0800713 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
714 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
715 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
716 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
717 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -0800718 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -0700719 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
720 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700721 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -0700722 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
723 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -0700724 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700725 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
726 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
727 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700728 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
729 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700730 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
731 /* FTM/indoor location subcommands */
732 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
733 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
734 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
735 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
736 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
737 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
738 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
739 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
740 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700741 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
742 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800743 /* DMG low level RF sector operations */
744 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
745 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
746 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
747 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
748 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800749 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800750 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -0800751 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -0800752 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
753 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
754 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
755 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800756 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
757 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700758 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
759 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
760 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
761 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
762 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -0700763 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
764 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
765 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
766 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
767 /* Flush peer pending data */
768 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
769 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
770 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
771 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
772 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
773 /* Thermal shutdown commands to protect wifi chip */
774 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
775 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
776 /* Wi-Fi test configuration subcommand */
777 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
778 /* Frame filter operations for other BSSs/unassociated STAs */
779 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700780 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800781 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
782 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -0800783 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
784 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
785 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -0700786 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
787 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
788 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -0700789 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
790 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -0700791 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
792 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
793 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
794 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800795 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800796};
797
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700798enum qca_wlan_vendor_attr {
799 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
800 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
801 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -0700802 /* Used only when driver sends vendor events to the userspace under the
803 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
804 * commands to the driver.
805 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700806 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -0700807 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
808 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -0700809 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
810 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700811 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -0700812 * by enum qca_roaming_policy.
813 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700814 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
815 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800816 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
817 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800818 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -0700819 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
820 /* Unsigned 32-bit value. */
821 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
822 /* Unsigned 32-bit value */
823 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
824 /* Unsigned 32-bit value */
825 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
826 /* Unsigned 32-bit value from enum qca_set_band. */
827 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700828 /* Dummy (NOP) attribute for 64 bit padding */
829 QCA_WLAN_VENDOR_ATTR_PAD = 13,
830 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
831 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
832 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
833 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
834 */
835 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
836 /* Indoor location capabilities, returned by
837 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
838 * see enum qca_wlan_vendor_attr_loc_capa.
839 */
840 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
841 /* Array of nested attributes containing information about each peer
842 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
843 * for supported attributes for each peer.
844 */
845 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
846 /* Array of nested attributes containing measurement results for
847 * one or more peers, reported by the
848 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
849 * See enum qca_wlan_vendor_attr_peer_result for list of supported
850 * attributes.
851 */
852 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
853 /* Flag attribute for enabling or disabling responder functionality. */
854 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
855 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
856 * command to specify the LCI report that will be sent by
857 * the responder during a measurement exchange. The format is
858 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
859 */
860 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
861 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
862 * command to specify the location civic report that will
863 * be sent by the responder during a measurement exchange.
864 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
865 */
866 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
867 /* Session/measurement completion status code,
868 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
869 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
870 * see enum qca_vendor_attr_loc_session_status.
871 */
872 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
873 /* Initial dialog token used by responder (0 if not specified),
874 * unsigned 8 bit value.
875 */
876 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
877 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
878 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
879 * AOA measurements are needed as part of an FTM session.
880 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
881 * enum qca_wlan_vendor_attr_aoa_type.
882 */
883 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
884 /* A bit mask (unsigned 32 bit value) of antenna arrays used
885 * by indoor location measurements. Refers to the antenna
886 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
887 */
888 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
889 /* AOA measurement data. Its contents depends on the AOA measurement
890 * type and antenna array mask:
891 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
892 * phase of the strongest CIR path for each antenna in the measured
893 * array(s).
894 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
895 * values, phase and amplitude of the strongest CIR path for each
896 * antenna in the measured array(s).
897 */
898 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700899 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
900 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -0700901 * the corresponding antenna RSSI value
902 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700903 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
904 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -0700905 * to report the specific antenna RSSI value (unsigned 32 bit value)
906 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700907 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800908 /* Frequency in MHz, various uses. Unsigned 32 bit value */
909 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
910 /* TSF timer value, unsigned 64 bit value.
911 * May be returned by various commands.
912 */
913 QCA_WLAN_VENDOR_ATTR_TSF = 29,
914 /* DMG RF sector index, unsigned 16 bit number. Valid values are
915 * 0..127 for sector indices or 65535 as special value used to
916 * unlock sector selection in
917 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
918 */
919 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
920 /* DMG RF sector type, unsigned 8 bit value. One of the values
921 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
922 */
923 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
924 /* Bitmask of DMG RF modules for which information is requested. Each
925 * bit corresponds to an RF module with the same index as the bit
926 * number. Unsigned 32 bit number but only low 8 bits can be set since
927 * all DMG chips currently have up to 8 RF modules.
928 */
929 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
930 /* Array of nested attributes where each entry is DMG RF sector
931 * configuration for a single RF module.
932 * Attributes for each entry are taken from enum
933 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
934 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
935 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
936 */
937 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
938 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
939 * to report frame aggregation statistics to userspace.
940 */
941 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
942 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800943 /* Unsigned 8-bit value representing MBO transition reason code as
944 * provided by the AP used by subcommand
945 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
946 * specified by the userspace in the request to the driver.
947 */
948 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
949 /* Array of nested attributes, BSSID and status code, used by subcommand
950 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
951 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
952 * The userspace space specifies the list/array of candidate BSSIDs in
953 * the order of preference in the request. The driver specifies the
954 * status code, for each BSSID in the list, in the response. The
955 * acceptable candidates are listed in the order preferred by the
956 * driver.
957 */
958 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700959 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
960 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
961 */
962 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
963 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
964 * to define the number of antennas to use for BRP.
965 * different purpose in each ANT_LIMIT_MODE:
966 * DISABLE - ignored
967 * EFFECTIVE - upper limit to number of antennas to be used
968 * FORCE - exact number of antennas to be used
969 * unsigned 8 bit value
970 */
971 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
972 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -0700973 * to report the corresponding antenna index to the chain RSSI value
974 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700975 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -0800976 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
977 * the specific antenna EVM value (unsigned 32 bit value). With a
978 * determinate group of antennas, the driver specifies the EVM value
979 * for each antenna ID, and application extract them in user space.
980 */
981 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -0700982 /*
983 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
984 * wlan firmware current state. FW state is an unsigned 8 bit value,
985 * one of the values in enum qca_wlan_vendor_attr_fw_state.
986 */
987 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800988
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700989 /* keep last */
990 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
991 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
992};
993
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700994enum qca_roaming_policy {
995 QCA_ROAMING_NOT_ALLOWED,
996 QCA_ROAMING_ALLOWED_WITHIN_ESS,
997};
998
Hai Shalom021b0b52019-04-10 11:17:58 -0700999/**
1000 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1001 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1002 *
1003 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1004 * reasons.
1005 *
1006 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1007 * the configured threshold.
1008 *
1009 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1010 * beacon misses from the then connected AP.
1011 *
1012 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1013 * by the connected AP.
1014 *
1015 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1016 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1017 *
1018 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1019 * or environment being very noisy or congested.
1020 *
1021 * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
1022 * from the user (user space).
1023 *
1024 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1025 * the connected AP.
1026 *
1027 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1028 * breaching out the configured threshold.
1029 */
1030enum qca_roam_reason {
1031 QCA_ROAM_REASON_UNKNOWN,
1032 QCA_ROAM_REASON_PER,
1033 QCA_ROAM_REASON_BEACON_MISS,
1034 QCA_ROAM_REASON_POOR_RSSI,
1035 QCA_ROAM_REASON_BETTER_RSSI,
1036 QCA_ROAM_REASON_CONGESTION,
1037 QCA_ROAM_REASON_USER_TRIGGER,
1038 QCA_ROAM_REASON_BTM,
1039 QCA_ROAM_REASON_BSS_LOAD,
1040};
1041
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001042enum qca_wlan_vendor_attr_roam_auth {
1043 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
1044 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1045 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1046 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1047 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1048 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1049 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1050 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001051 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001052 /* Indicates the status of re-association requested by user space for
1053 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1054 * Type u16.
1055 * Represents the status code from AP. Use
1056 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1057 * real status code for failures.
1058 */
1059 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1060 /* This attribute indicates that the old association was maintained when
1061 * a re-association is requested by user space and that re-association
1062 * attempt fails (i.e., cannot connect to the requested BSS, but can
1063 * remain associated with the BSS with which the association was in
1064 * place when being requested to roam). Used along with
1065 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1066 * re-association status. Type flag.
1067 * This attribute is applicable only for re-association failure cases.
1068 */
1069 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1070 /* This attribute specifies the PMK if one was newly generated during
1071 * FILS roaming. This is added to the PMKSA cache and is used in
1072 * subsequent connections with PMKSA caching.
1073 */
1074 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1075 /* This attribute specifies the PMKID used/generated for the current
1076 * FILS roam. This is used in subsequent connections with PMKSA caching.
1077 */
1078 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1079 /* A 16-bit unsigned value specifying the next sequence number to use
1080 * in ERP message in the currently associated realm. This is used in
1081 * doing subsequent ERP based connections in the same realm.
1082 */
1083 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001084 /* A 16-bit unsigned value representing the reasons for the roaming.
1085 * Defined by enum qca_roam_reason.
1086 */
1087 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
1088
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001089 /* keep last */
1090 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1091 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1092 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1093};
1094
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001095enum qca_wlan_vendor_attr_p2p_listen_offload {
1096 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1097 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1098 * of the social channels.
1099 */
1100 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1101 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1102 */
1103 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1104 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1105 */
1106 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1107 /* A 32-bit unsigned value; number of interval times the firmware needs
1108 * to run the offloaded P2P listen operation before it stops.
1109 */
1110 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1111 /* An array of arbitrary binary data with one or more 8-byte values.
1112 * The device types include both primary and secondary device types.
1113 */
1114 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1115 /* An array of unsigned 8-bit characters; vendor information elements.
1116 */
1117 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1118 /* A 32-bit unsigned value; a control flag to indicate whether listen
1119 * results need to be flushed to wpa_supplicant.
1120 */
1121 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1122 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1123 * event.
1124 */
1125 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1126 /* keep last */
1127 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1128 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1129 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1130};
1131
Hai Shalomc3565922019-10-28 11:58:20 -07001132/**
1133 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1134 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1135 *
1136 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1137 * Used with event to notify the primary channel number selected in ACS
1138 * operation.
1139 * Note: If both the driver and user-space application supports the 6 GHz band,
1140 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1141 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1142 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1143 * is still used if either of the driver or user space application doesn't
1144 * support the 6 GHz band.
1145 *
1146 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1147 * Used with event to notify the secondary channel number selected in ACS
1148 * operation.
1149 * Note: If both the driver and user-space application supports the 6 GHz band,
1150 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1151 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1152 * To maintain backward compatibility,
1153 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1154 * the driver or user space application doesn't support 6 GHz band.
1155 *
1156 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1157 * (a) Used with command to configure hw_mode from
1158 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1159 * (b) Also used with event to notify the hw_mode of selected primary channel
1160 * in ACS operation.
1161 *
1162 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1163 * Used with command to configure ACS operation for HT mode.
1164 * Disable (flag attribute not present) - HT disabled and
1165 * Enable (flag attribute present) - HT enabled.
1166 *
1167 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1168 * Used with command to configure ACS operation for HT40 mode.
1169 * Disable (flag attribute not present) - HT40 disabled and
1170 * Enable (flag attribute present) - HT40 enabled.
1171 *
1172 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1173 * Used with command to configure ACS operation for VHT mode.
1174 * Disable (flag attribute not present) - VHT disabled and
1175 * Enable (flag attribute present) - VHT enabled.
1176 *
1177 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1178 * mandatory with event.
1179 * If specified in command path, ACS operation is configured with the given
1180 * channel width (in MHz).
1181 * In event path, specifies the channel width of the primary channel selected.
1182 *
1183 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1184 * Used with command to configure channel list using an array of
1185 * channel numbers (u8).
1186 * Note: If both the driver and user-space application supports the 6 GHz band,
1187 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1188 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1189 *
1190 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1191 * Used with event to notify the VHT segment 0 center channel number selected in
1192 * ACS operation.
1193 * Note: If both the driver and user-space application supports the 6 GHz band,
1194 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1195 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1196 * To maintain backward compatibility,
1197 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1198 * the driver or user space application doesn't support the 6 GHz band.
1199 *
1200 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1201 * Used with event to notify the VHT segment 1 center channel number selected in
1202 * ACS operation.
1203 * Note: If both the driver and user-space application supports the 6 GHz band,
1204 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1205 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1206 * To maintain backward compatibility,
1207 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1208 * the driver or user space application doesn't support the 6 GHz band.
1209 *
1210 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1211 * Used with command to configure the channel list using an array of channel
1212 * center frequencies in MHz (u32).
1213 * Note: If both the driver and user-space application supports the 6 GHz band,
1214 * the driver first parses the frequency list and if it fails to get a frequency
1215 * list, parses the channel list specified using
1216 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1217 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1218 *
1219 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1220 * Used with event to notify the primary channel center frequency (MHz) selected
1221 * in ACS operation.
1222 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1223 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1224 *
1225 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1226 * Used with event to notify the secondary channel center frequency (MHz)
1227 * selected in ACS operation.
1228 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1229 * includes this attribute along with
1230 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1231 *
1232 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1233 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1234 * selected in ACS operation.
1235 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1236 * includes this attribute along with
1237 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1238 *
1239 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1240 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1241 * selected in ACS operation.
1242 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1243 * includes this attribute along with
1244 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
1245 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001246enum qca_wlan_vendor_attr_acs_offload {
1247 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07001248 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1249 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1250 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1251 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1252 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1253 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1254 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1255 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1256 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1257 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1258 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1259 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1260 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1261 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1262 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
1263
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001264 /* keep last */
1265 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1266 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1267 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1268};
1269
Hai Shalomc3565922019-10-28 11:58:20 -07001270/**
1271 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1272 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1273 *
1274 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1275 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1276 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1277 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1278 * @QCA_ACS_MODE_IEEE80211ANY: all modes
1279 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1280 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001281enum qca_wlan_vendor_acs_hw_mode {
1282 QCA_ACS_MODE_IEEE80211B,
1283 QCA_ACS_MODE_IEEE80211G,
1284 QCA_ACS_MODE_IEEE80211A,
1285 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001286 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07001287 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001288};
1289
1290/**
1291 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1292 *
1293 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1294 * management offload, a mechanism where the station's firmware
1295 * does the exchange with the AP to establish the temporal keys
1296 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001297 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1298 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001299 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07001300 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001301 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1302 * Listen offload; a mechanism where the station's firmware takes care of
1303 * responding to incoming Probe Request frames received from other P2P
1304 * Devices whilst in Listen state, rather than having the user space
1305 * wpa_supplicant do it. Information from received P2P requests are
1306 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001307 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1308 * specific features.
1309 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1310 * features.
1311 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1312 * specific features only. If a Device sets this bit but not the
1313 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1314 * this Device may not support all OCE AP functionalities but can support
1315 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001316 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1317 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07001318 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07001319 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1320 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001321 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1322 */
1323enum qca_wlan_vendor_features {
1324 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07001325 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001326 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001327 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001328 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
1329 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
1330 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001331 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Hai Shalom021b0b52019-04-10 11:17:58 -07001332 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07001333 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
1334 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001335 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1336};
1337
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001338/**
1339 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1340 *
1341 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1342 * the offloaded data.
1343 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1344 * data.
1345 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1346 * indication.
1347 */
1348enum qca_wlan_vendor_attr_data_offload_ind {
1349 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1350 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1351 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1352 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1353
1354 /* keep last */
1355 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1356 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1357 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1358};
Ravi Joshie6ccb162015-07-16 17:45:41 -07001359
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001360/**
1361 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1362 * OCB config
1363 *
1364 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1365 * configuration
1366 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1367 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1368 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1369 * scheduled
1370 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1371 * information
1372 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1373 * active state configuration
1374 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1375 * OCB_CONFIG_FLAG_80211_FRAME_MODE
1376 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1377 * use in the case that a packet is sent without a TX control header
1378 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1379 * last TA received that the local time set by TA is synchronous to other
1380 * communicating OCB STAs.
1381 */
1382enum qca_wlan_vendor_attr_ocb_set_config {
1383 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1384 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1385 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1386 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1387 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1388 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1389 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1390 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1391 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1392 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1393 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1394 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1395 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1396};
1397
1398/**
1399 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1400 * UTC time
1401 *
1402 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1403 * 10 bytes
1404 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1405 * 5 bytes
1406 */
1407enum qca_wlan_vendor_attr_ocb_set_utc_time {
1408 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1409 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1410 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1411 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1412 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1413 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1414};
1415
1416/**
1417 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1418 * to start sending timing advert frames
1419 *
1420 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1421 * on which to send the frames
1422 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1423 * the frame is sent in 5 seconds
1424 */
1425enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1426 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1427 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1428 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1429 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1430 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1431 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1432};
1433
1434/**
1435 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1436 * to stop timing advert
1437 *
1438 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1439 * frequency on which to stop the timing advert
1440 */
1441enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1442 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1443 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1444 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1445 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1446 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1447};
1448
1449/**
1450 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1451 * get TSF timer value
1452 *
1453 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1454 * timer
1455 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1456 */
1457enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1458 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1459 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1460 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1461 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1462 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1463 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1464};
1465
Ravi Joshie6ccb162015-07-16 17:45:41 -07001466enum qca_vendor_attr_get_preferred_freq_list {
1467 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1468 /* A 32-unsigned value; the interface type/mode for which the preferred
1469 * frequency list is requested (see enum qca_iface_type for possible
1470 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1471 * kernel and in the kernel response back to user-space.
1472 */
1473 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1474 /* An array of 32-unsigned values; values are frequency (MHz); sent
1475 * from kernel space to user space.
1476 */
1477 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001478 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1479 * attribute. Each element contains frequency (MHz), weight, and flag
1480 * bit mask indicating how the frequency should be used in P2P
1481 * negotiation; sent from kernel space to user space.
1482 */
1483 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001484 /* keep last */
1485 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1486 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1487 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1488};
1489
1490enum qca_vendor_attr_probable_oper_channel {
1491 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1492 /* 32-bit unsigned value; indicates the connection/iface type likely to
1493 * come on this channel (see enum qca_iface_type).
1494 */
1495 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1496 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1497 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1498 /* keep last */
1499 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1500 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1501 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1502};
1503
1504enum qca_iface_type {
1505 QCA_IFACE_TYPE_STA,
1506 QCA_IFACE_TYPE_AP,
1507 QCA_IFACE_TYPE_P2P_CLIENT,
1508 QCA_IFACE_TYPE_P2P_GO,
1509 QCA_IFACE_TYPE_IBSS,
1510 QCA_IFACE_TYPE_TDLS,
1511};
1512
1513enum qca_set_band {
1514 QCA_SETBAND_AUTO,
1515 QCA_SETBAND_5G,
1516 QCA_SETBAND_2G,
1517};
1518
Dmitry Shmidt17022322016-04-06 13:28:42 -07001519/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001520 * enum qca_access_policy - Access control policy
1521 *
1522 * Access control policy is applied on the configured IE
1523 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1524 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1525 *
1526 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1527 * the specific configuration (IE) set, i.e., allow all the
1528 * connections which do not match the configuration.
1529 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1530 * the specific configuration (IE) set, i.e., deny all the
1531 * connections which do not match the configuration.
1532 */
1533enum qca_access_policy {
1534 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1535 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1536};
1537
1538/**
Dmitry Shmidt17022322016-04-06 13:28:42 -07001539 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
1540 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
1541 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
1542 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
1543 * SOC timer value at TSF capture
1544 */
1545enum qca_vendor_attr_tsf_cmd {
1546 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1547 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1548 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1549 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
1550 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1551 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1552 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1553};
1554
1555/**
1556 * enum qca_tsf_operation: TSF driver commands
1557 * @QCA_TSF_CAPTURE: Initiate TSF Capture
1558 * @QCA_TSF_GET: Get TSF capture value
1559 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
1560 */
1561enum qca_tsf_cmd {
1562 QCA_TSF_CAPTURE,
1563 QCA_TSF_GET,
1564 QCA_TSF_SYNC_GET,
1565};
1566
1567/**
1568 * enum qca_vendor_attr_wisa_cmd
1569 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1570 * WISA setup vendor commands
1571 */
1572enum qca_vendor_attr_wisa_cmd {
1573 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
1574 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
1575 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
1576 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
1577 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
1578};
1579
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001580/* IEEE 802.11 Vendor Specific elements */
1581
1582/**
1583 * enum qca_vendor_element_id - QCA Vendor Specific element types
1584 *
1585 * These values are used to identify QCA Vendor Specific elements. The
1586 * payload of the element starts with the three octet OUI (OUI_QCA) and
1587 * is followed by a single octet type which is defined by this enum.
1588 *
1589 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1590 * This element can be used to specify preference order for supported
1591 * channels. The channels in this list are in preference order (the first
1592 * one has the highest preference) and are described as a pair of
1593 * (global) Operating Class and Channel Number (each one octet) fields.
1594 *
1595 * This extends the standard P2P functionality by providing option to have
1596 * more than one preferred operating channel. When this element is present,
1597 * it replaces the preference indicated in the Operating Channel attribute.
1598 * For supporting other implementations, the Operating Channel attribute is
1599 * expected to be used with the highest preference channel. Similarly, all
1600 * the channels included in this Preferred channel list element are
1601 * expected to be included in the Channel List attribute.
1602 *
1603 * This vendor element may be included in GO Negotiation Request, P2P
1604 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001605 *
1606 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1607 * This element can be used for pre-standard publication testing of HE
1608 * before P802.11ax draft assigns the element ID. The payload of this
1609 * vendor specific element is defined by the latest P802.11ax draft.
1610 * Please note that the draft is still work in progress and this element
1611 * payload is subject to change.
1612 *
1613 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1614 * This element can be used for pre-standard publication testing of HE
1615 * before P802.11ax draft assigns the element ID. The payload of this
1616 * vendor specific element is defined by the latest P802.11ax draft.
1617 * Please note that the draft is still work in progress and this element
1618 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08001619 *
1620 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1621 * element).
1622 * This element can be used for pre-standard publication testing of HE
1623 * before P802.11ax draft assigns the element ID extension. The payload of
1624 * this vendor specific element is defined by the latest P802.11ax draft
1625 * (not including the Element ID Extension field). Please note that the
1626 * draft is still work in progress and this element payload is subject to
1627 * change.
1628 *
1629 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1630 * This element can be used for pre-standard publication testing of HE
1631 * before P802.11ax draft assigns the element ID extension. The payload of
1632 * this vendor specific element is defined by the latest P802.11ax draft
1633 * (not including the Element ID Extension field). Please note that the
1634 * draft is still work in progress and this element payload is subject to
1635 * change.
1636 *
1637 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1638 * This element can be used for pre-standard publication testing of HE
1639 * before P802.11ax draft assigns the element ID extension. The payload of
1640 * this vendor specific element is defined by the latest P802.11ax draft
1641 * (not including the Element ID Extension field). Please note that the
1642 * draft is still work in progress and this element payload is subject to
1643 * change.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001644 */
1645enum qca_vendor_element_id {
1646 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07001647 QCA_VENDOR_ELEM_HE_CAPAB = 1,
1648 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08001649 QCA_VENDOR_ELEM_RAPS = 3,
1650 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
1651 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001652};
1653
1654/**
1655 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1656 *
1657 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1658 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1659 * with frequencies to be scanned (in MHz)
1660 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1661 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1662 * rates to be included
1663 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07001664 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001665 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1666 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07001667 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001668 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07001669 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001670 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07001671 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001672 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001673 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08001674 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1675 * specific BSSID to scan for.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001676 */
1677enum qca_wlan_vendor_attr_scan {
1678 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001679 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
1680 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
1681 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
1682 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
1683 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
1684 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
1685 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
1686 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
1687 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
1688 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
1689 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001690 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
1691 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
1692 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
1693};
1694
1695/**
1696 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07001697 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001698 *
1699 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001700 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001701 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1702 */
1703enum scan_status {
1704 VENDOR_SCAN_STATUS_NEW_RESULTS,
1705 VENDOR_SCAN_STATUS_ABORTED,
1706 VENDOR_SCAN_STATUS_MAX,
1707};
1708
1709/**
1710 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1711 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1712 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1713 */
1714enum qca_vendor_attr_ota_test {
1715 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
1716 /* 8-bit unsigned value to indicate if OTA test is enabled */
1717 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
1718 /* keep last */
1719 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
1720 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
1721 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
1722};
1723
1724/**
1725 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1726 *
1727 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1728 */
1729enum qca_vendor_attr_txpower_scale {
1730 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
1731 /* 8-bit unsigned value to indicate the scaling of tx power */
1732 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
1733 /* keep last */
1734 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
1735 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
1736 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
1737};
1738
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001739/**
1740 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1741 *
1742 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1743 */
1744enum qca_vendor_attr_txpower_decr_db {
1745 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
1746 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001747 * a virtual interface.
1748 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001749 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
1750 /* keep last */
1751 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
1752 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
1753 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
1754};
1755
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001756/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001757 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1758 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001759 */
1760enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001761 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001762 /* Unsigned 32-bit value to set the DTIM period.
1763 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1764 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1765 * DTIM beacons.
1766 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001767 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001768 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1769 * used to calculate statistics like average the TSF offset or average
1770 * number of frame leaked.
1771 * For instance, upon Beacon frame reception:
1772 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1773 * For instance, when evaluating leaky APs:
1774 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1775 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001776 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001777 /* Unsigned 32-bit value to configure guard time, i.e., when
1778 * implementing IEEE power management based on frame control PM bit, how
1779 * long the driver waits before shutting down the radio and after
1780 * receiving an ACK frame for a Data frame with PM bit set.
1781 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001782 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001783 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001784 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001785 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001786 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001787 /* Unsigned 32-bit value to configure the number of continuous
1788 * Beacon Miss which shall be used by the firmware to penalize
1789 * the RSSI.
1790 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001791 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001792 /* Unsigned 8-bit value to configure the channel avoidance indication
1793 * behavior. Firmware to send only one indication and ignore duplicate
1794 * indications when set to avoid multiple Apps wakeups.
1795 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001796 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001797 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001798 * aggregation.
1799 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001800 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001801 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001802 * aggregation.
1803 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001804 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001805 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07001806 * retry threshold (0 disable, 31 max).
1807 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001808 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001809 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07001810 * retry threshold (0 disable, 31 max).
1811 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001812 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001813 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07001814 * retry threshold (0 disable, 31 max).
1815 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001816 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001817 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07001818 * retry threshold (0 disable, 31 max).
1819 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001820 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001821 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001822 * 2G/5G band (0~63, units in us)
1823 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001824 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001825 /* Unsigned 32-bit value to configure the number of unicast TX fail
1826 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07001827 * reached.
1828 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001829 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001830 /* Attribute used to set scan default IEs to the driver.
1831 *
1832 * These IEs can be used by scan operations that will be initiated by
1833 * the driver/firmware.
1834 *
1835 * For further scan requests coming to the driver, these IEs should be
1836 * merged with the IEs received along with scan request coming to the
1837 * driver. If a particular IE is present in the scan default IEs but not
1838 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07001839 * sent in the Probe Request frames for that scan request.
1840 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001841 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001842 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001843 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001844 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001845 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001846 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001847 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001848 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001849 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1850 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001851 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001852 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07001853 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1854 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001855 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001856 /* Unsigned 32-bit, defining the access policy.
1857 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07001858 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
1859 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001860 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001861 /* Sets the list of full set of IEs for which a specific access policy
1862 * has to be applied. Used along with
1863 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07001864 * Zero length payload can be used to clear this access constraint.
1865 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001866 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001867 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
1868 * corresponding configurations are applied. If the interface index is
1869 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07001870 * wiphy.
1871 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001872 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001873 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001874 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001875 /* 8-bit unsigned value to configure the driver and below layers to
1876 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07001877 * 1-Ignore, 0-Don't ignore
1878 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001879 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001880 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07001881 * 1-Enable, 0-Disable
1882 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001883 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001884 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001885 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001886 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07001887 * 1-Enable, 0-Disable
1888 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001889 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001890 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07001891 * the unit is micro-second
1892 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001893 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
1894 /* 32-bit unsigned value to set reorder timeout for AC_VO */
1895 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
1896 /* 32-bit unsigned value to set reorder timeout for AC_VI */
1897 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
1898 /* 32-bit unsigned value to set reorder timeout for AC_BE */
1899 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
1900 /* 32-bit unsigned value to set reorder timeout for AC_BK */
1901 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
1902 /* 6-byte MAC address to point out the specific peer */
1903 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
1904 /* 32-bit unsigned value to set window size for specific peer */
1905 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001906 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
1907 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
1908 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
1909 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001910 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
1911 * station device while in disconnect state. The attribute use the
1912 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
1913 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
1914 * 10 MHz channel width, the station will not connect to a BSS using 20
1915 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07001916 * clear this constraint.
1917 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001918 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
1919 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07001920 * for 2G/5G band (units in us)
1921 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001922 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
1923 /* 32-bit unsigned value to set probe period */
1924 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
1925 /* 32-bit unsigned value to set stay period */
1926 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
1927 /* 32-bit unsigned value to set snr diff */
1928 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
1929 /* 32-bit unsigned value to set probe dwell time */
1930 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
1931 /* 32-bit unsigned value to set mgmt snr weight */
1932 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
1933 /* 32-bit unsigned value to set data snr weight */
1934 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
1935 /* 32-bit unsigned value to set ack snr weight */
1936 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
1937 /* 32-bit unsigned value to configure the listen interval.
1938 * This is in units of beacon intervals. This configuration alters
1939 * the negotiated listen interval with the AP during the connection.
1940 * It is highly recommended to configure a value less than or equal to
1941 * the one negotiated during the association. Configuring any greater
1942 * value can have adverse effects (frame loss, AP disassociating STA,
1943 * etc.).
1944 */
1945 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
1946 /*
1947 * 8 bit unsigned value that is set on an AP/GO virtual interface to
1948 * disable operations that would cause the AP/GO to leave its operating
1949 * channel.
1950 *
1951 * This will restrict the scans to the AP/GO operating channel and the
1952 * channels of the other band, if DBS is supported.A STA/CLI interface
1953 * brought up after this setting is enabled, will be restricted to
1954 * connecting to devices only on the AP/GO interface's operating channel
1955 * or on the other band in DBS case. P2P supported channel list is
1956 * modified, to only include AP interface's operating-channel and the
1957 * channels of the other band if DBS is supported.
1958 *
1959 * These restrictions are only applicable as long as the AP/GO interface
1960 * is alive. If the AP/GO interface is brought down then this
1961 * setting/restriction is forgotten.
1962 *
1963 * If this variable is set on an AP/GO interface while a multi-channel
1964 * concurrent session is active, it has no effect on the operation of
1965 * the current interfaces, other than restricting the scan to the AP/GO
1966 * operating channel and the other band channels if DBS is supported.
1967 * However, if the STA is brought down and restarted then the new STA
1968 * connection will either be formed on the AP/GO channel or on the
1969 * other band in a DBS case. This is because of the scan being
1970 * restricted on these channels as mentioned above.
1971 *
1972 * 1-Restrict / 0-Don't restrict offchannel operations.
1973 */
1974 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
1975 /*
1976 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
1977 * on an interface.
1978 * 1 - Enable, 0 - Disable.
1979 */
1980 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
1981
1982 /*
1983 * 8 bit unsigned value to globally enable/disable scan
1984 * 1 - Enable, 0 - Disable.
1985 */
1986 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
1987
1988 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07001989 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001990 */
1991 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
1992
1993 /* Unsigned 32-bit value to configure the number of continuous
1994 * Beacon Miss which shall be used by the firmware to penalize
1995 * the RSSI for BTC.
1996 */
1997 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
1998
1999 /* 8-bit unsigned value to configure the driver and below layers to
2000 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002001 * 0-enable, 1-disable
2002 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002003 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002004
Roshan Pius3a1667e2018-07-03 15:17:14 -07002005 /* 16-bit unsigned value to configure the level of WLAN latency
2006 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2007 */
2008 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2009
2010 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2011 * the connect interface. Exclusively used for the scenarios where the
2012 * device is used as a test bed device with special functionality and
2013 * not recommended for production. This helps driver to not validate the
2014 * RSNE passed from user space and thus allow arbitrary IE data to be
2015 * used for testing purposes.
2016 * 1-enable, 0-disable.
2017 * Applications set/reset this configuration. If not reset, this
2018 * parameter remains in use until the driver is unloaded.
2019 */
2020 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2021
2022 /* 8-bit unsigned value to trigger green Tx power saving.
2023 * 1-Enable, 0-Disable
2024 */
2025 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2026
Hai Shalomc3565922019-10-28 11:58:20 -07002027 /* Attribute to configure disconnect IEs to the driver.
2028 * This carries an array of unsigned 8-bit characters.
2029 *
2030 * If this is configured, driver shall fill the IEs in disassoc/deauth
2031 * frame.
2032 * These IEs are expected to be considered only for the next
2033 * immediate disconnection (disassoc/deauth frame) originated by
2034 * the DUT, irrespective of the entity (user space/driver/firmware)
2035 * triggering the disconnection.
2036 * The host drivers are not expected to use the IEs set through
2037 * this interface for further disconnections after the first immediate
2038 * disconnection initiated post the configuration.
2039 * If the IEs are also updated through cfg80211 interface (after the
2040 * enhancement to cfg80211_disconnect), host driver is expected to
2041 * take the union of IEs from both of these interfaces and send in
2042 * further disassoc/deauth frames.
2043 */
2044 QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES = 58,
2045
2046 /* 8-bit unsigned value for ELNA bypass.
2047 * 1-Enable, 0-Disable
2048 */
2049 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2050
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002051 /* keep last */
2052 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
2053 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
2054 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
2055};
2056
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002057/**
2058 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07002059 *
2060 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
2061 * Channel number on which Access Point should restart.
2062 * Note: If both the driver and user space application supports the 6 GHz band,
2063 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
2064 * should be used.
2065 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
2066 * is still used if either of the driver or user space application doesn't
2067 * support the 6 GHz band.
2068 *
2069 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
2070 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002071 */
2072enum qca_wlan_vendor_attr_sap_config {
2073 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002074 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
2075
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002076 /* List of frequencies on which AP is expected to operate.
2077 * This is irrespective of ACS configuration. This list is a priority
2078 * based one and is looked for before the AP is created to ensure the
2079 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
2080 * the system.
2081 */
2082 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07002083 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07002084
2085 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
2086 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
2087 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
2088};
2089
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002090/**
2091 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
2092 * conditional channel switch
2093 */
2094enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
2095 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
2096 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07002097 * order)
2098 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002099 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
2100 /* Status of the conditional switch (u32).
2101 * 0: Success, Non-zero: Failure
2102 */
2103 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
2104
2105 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
2106 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
2107 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
2108};
2109
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002110/**
2111 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
2112 */
2113enum qca_wlan_gpio_attr {
2114 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
2115 /* Unsigned 32-bit attribute for GPIO command */
2116 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
2117 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
2118 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
2119 /* Unsigned 32-bit attribute for GPIO value to configure */
2120 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
2121 /* Unsigned 32-bit attribute for GPIO pull type */
2122 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
2123 /* Unsigned 32-bit attribute for GPIO interrupt mode */
2124 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
2125
2126 /* keep last */
2127 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
2128 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
2129 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
2130};
2131
2132/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07002133 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
2134 * MSDUQ depth threshold per peer per tid in the target
2135 *
2136 * Associated Vendor Command:
2137 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
2138 */
2139enum qca_wlan_set_qdepth_thresh_attr {
2140 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
2141 /* 6-byte MAC address */
2142 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
2143 /* Unsigned 32-bit attribute for holding the TID */
2144 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
2145 /* Unsigned 32-bit attribute for holding the update mask
2146 * bit 0 - Update high priority msdu qdepth threshold
2147 * bit 1 - Update low priority msdu qdepth threshold
2148 * bit 2 - Update UDP msdu qdepth threshold
2149 * bit 3 - Update Non UDP msdu qdepth threshold
2150 * rest of bits are reserved
2151 */
2152 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
2153 /* Unsigned 32-bit attribute for holding the threshold value */
2154 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
2155
2156 /* keep last */
2157 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
2158 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
2159 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
2160};
2161
2162/**
Hai Shalomc3565922019-10-28 11:58:20 -07002163 * enum qca_acs_dfs_mode - Defines different types of DFS channel
2164 * configurations for ACS operation.
2165 *
2166 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
2167 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
2168 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
2169 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
2170 */
2171enum qca_acs_dfs_mode {
2172 QCA_ACS_DFS_MODE_NONE = 0,
2173 QCA_ACS_DFS_MODE_ENABLE = 1,
2174 QCA_ACS_DFS_MODE_DISABLE = 2,
2175 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
2176};
2177
2178/**
2179 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
2180 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
2181 *
2182 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
2183 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
2184 *
2185 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
2186 * channel number hint for ACS operation, if valid channel is specified then
2187 * ACS operation gives priority to this channel.
2188 * Note: If both the driver and user space application supports the 6 GHz band,
2189 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
2190 * should be used.
2191 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
2192 * is still used if either of the driver or user space application doesn't
2193 * support the 6 GHz band.
2194 *
2195 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
2196 * Channel center frequency (MHz) hint for ACS operation, if a valid center
2197 * frequency is specified, ACS operation gives priority to this channel.
2198 */
2199enum qca_wlan_vendor_attr_acs_config {
2200 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
2201 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
2202 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
2203 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
2204
2205 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
2206 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
2207 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
2208};
2209
2210/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002211 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
2212 */
2213enum qca_wlan_vendor_attr_get_hw_capability {
2214 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
2215 /* Antenna isolation
2216 * An attribute used in the response.
2217 * The content of this attribute is encoded in a byte array. Each byte
2218 * value is an antenna isolation value. The array length is the number
2219 * of antennas.
2220 */
2221 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
2222 /* Request HW capability
2223 * An attribute used in the request.
2224 * The content of this attribute is a u32 array for one or more of
2225 * hardware capabilities (attribute IDs) that are being requested. Each
2226 * u32 value has a value from this
2227 * enum qca_wlan_vendor_attr_get_hw_capability
2228 * identifying which capabilities are requested.
2229 */
2230 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
2231
2232 /* keep last */
2233 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
2234 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
2235 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
2236};
2237
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002238/**
2239 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
2240 * offload which is an extension for LL_STATS.
2241 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
2242 * If MAC counters do not exceed the threshold, FW will report monitored
2243 * link layer counters periodically as this setting. The first report is
2244 * always triggered by this timer.
2245 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
2246 * For each MAC layer counter, FW holds two copies. One is the current value.
2247 * The other is the last report. Once a current counter's increment is larger
2248 * than the threshold, FW will indicate that counter to host even if the
2249 * monitoring timer does not expire.
2250 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
2251 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
2252 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
2253 * failure code.
2254 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
2255 * 1: TX packet discarded
2256 * 2: No ACK
2257 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002258 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
2259 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
2260 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
2261 * Threshold for all monitored parameters. If per counter dedicated threshold
2262 * is not enabled, this threshold will take effect.
2263 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
2264 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
2265 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
2266 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
2267 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
2268 * Bit0: TX counter unit in MSDU
2269 * Bit1: TX counter unit in MPDU
2270 * Bit2: TX counter unit in PPDU
2271 * Bit3: TX counter unit in byte
2272 * Bit4: Dropped MSDUs
2273 * Bit5: Dropped Bytes
2274 * Bit6: MPDU retry counter
2275 * Bit7: MPDU failure counter
2276 * Bit8: PPDU failure counter
2277 * Bit9: MPDU aggregation counter
2278 * Bit10: MCS counter for ACKed MPDUs
2279 * Bit11: MCS counter for Failed MPDUs
2280 * Bit12: TX Delay counter
2281 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
2282 * Bit0: MAC RX counter unit in MPDU
2283 * Bit1: MAC RX counter unit in byte
2284 * Bit2: PHY RX counter unit in PPDU
2285 * Bit3: PHY RX counter unit in byte
2286 * Bit4: Disorder counter
2287 * Bit5: Retry counter
2288 * Bit6: Duplication counter
2289 * Bit7: Discard counter
2290 * Bit8: MPDU aggregation size counter
2291 * Bit9: MCS counter
2292 * Bit10: Peer STA power state change (wake to sleep) counter
2293 * Bit11: Peer STA power save counter, total time in PS mode
2294 * Bit12: Probe request counter
2295 * Bit13: Other management frames counter
2296 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
2297 * Bit0: Idle time
2298 * Bit1: TX time
2299 * Bit2: time RX in current bss
2300 * Bit3: Out of current bss time
2301 * Bit4: Wireless medium busy time
2302 * Bit5: RX in bad condition time
2303 * Bit6: TX in bad condition time
2304 * Bit7: time wlan card not available
2305 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
2306 * Bit0: Per channel SNR counter
2307 * Bit1: Per channel noise floor counter
2308 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
2309 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
2310 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
2311 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
2312 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
2313 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
2314 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
2315 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
2316 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
2317 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
2318 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
2319 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
2320 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
2321 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
2322 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
2323 * aggregation stats buffer length
2324 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
2325 * buffer for ACKed MPDUs.
2326 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
2327 * buffer for failed MPDUs.
2328 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
2329 * length of delay stats array.
2330 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
2331 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
2332 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
2333 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
2334 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
2335 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
2336 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
2337 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
2338 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
2339 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
2340 * flagged as retransmissions
2341 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
2342 * flagged as duplicated
2343 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
2344 * packets discarded
2345 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
2346 * stats buffer.
2347 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
2348 * stats buffer.
2349 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
2350 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
2351 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
2352 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
2353 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
2354 * requests received
2355 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
2356 * frames received
2357 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
2358 * there is no TX, nor RX, nor interference.
2359 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
2360 * transmitting packets.
2361 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
2362 * for receiving.
2363 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
2364 * interference detected.
2365 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
2366 * receiving packets with errors.
2367 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
2368 * TX no-ACK.
2369 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
2370 * the chip is unable to work in normal conditions.
2371 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
2372 * receiving packets in current BSS.
2373 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
2374 * receiving packets not in current BSS.
2375 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
2376 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
2377 * This is a container for per antenna signal stats.
2378 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
2379 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
2380 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
2381 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07002382 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
2383 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
2384 * message, user layer APP could call gettimeofday to get another
2385 * timestamp and calculate transfer delay for the message.
2386 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
2387 * Real period for this measurement, unit in us.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002388 */
2389enum qca_wlan_vendor_attr_ll_stats_ext {
2390 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
2391
2392 /* Attributes for configurations */
2393 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
2394 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
2395
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002396 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002397 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
2398
2399 /* TX failure event */
2400 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
2401 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
2402 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
2403
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002404 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
2405 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
2406
2407 /* MAC counters */
2408 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
2409 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
2410 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
2411 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
2412 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
2413 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
2414 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
2415 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
2416 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
2417 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
2418 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
2419 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
2420
2421 /* Sub-attributes for PEER_AC_TX */
2422 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
2423 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
2424 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
2425 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
2426 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
2427 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
2428 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
2429 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
2430 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
2431 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
2432 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
2433 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
2434 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
2435 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
2436 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
2437 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
2438 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
2439
2440 /* Sub-attributes for PEER_AC_RX */
2441 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
2442 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
2443 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
2444 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
2445 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
2446 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
2447 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
2448 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
2449 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
2450 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
2451 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
2452 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
2453 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
2454 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
2455 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
2456 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
2457
2458 /* Sub-attributes for CCA_BSS */
2459 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
2460 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
2461 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
2462 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
2463 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
2464 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
2465 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
2466
2467 /* sub-attribute for BSS_RX_TIME */
2468 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
2469 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
2470
2471 /* Sub-attributes for PEER_SIGNAL */
2472 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
2473 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
2474 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
2475 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
2476
2477 /* Sub-attributes for IFACE_BSS */
2478 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
2479 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
2480
Roshan Pius3a1667e2018-07-03 15:17:14 -07002481 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
2482 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
2483
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002484 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
2485 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
2486 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
2487};
2488
2489/* Attributes for FTM commands and events */
2490
2491/**
2492 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
2493 *
2494 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
2495 * enum qca_wlan_vendor_attr_loc_capa_flags.
2496 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
2497 * of measurement sessions that can run concurrently.
2498 * Default is one session (no session concurrency).
2499 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
2500 * peers that are supported in running sessions. For example,
2501 * if the value is 8 and maximum number of sessions is 2, you can
2502 * have one session with 8 unique peers, or 2 sessions with 4 unique
2503 * peers each, and so on.
2504 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
2505 * of bursts per peer, as an exponent (2^value). Default is 0,
2506 * meaning no multi-burst support.
2507 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
2508 * of measurement exchanges allowed in a single burst.
2509 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
2510 * types. A bit mask (unsigned 32 bit value), each bit corresponds
2511 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
2512 */
2513enum qca_wlan_vendor_attr_loc_capa {
2514 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
2515 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
2516 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
2517 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
2518 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
2519 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
2520 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
2521 /* keep last */
2522 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
2523 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
2524 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
2525};
2526
2527/**
2528 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
2529 *
2530 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
2531 * can be configured as an FTM responder (for example, an AP that
2532 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
2533 * will be supported if set.
2534 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
2535 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
2536 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002537 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002538 * supports immediate (ASAP) response.
2539 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
2540 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
2541 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
2542 * requesting AOA measurements as part of an FTM session.
2543 */
2544enum qca_wlan_vendor_attr_loc_capa_flags {
2545 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
2546 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
2547 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
2548 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
2549 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
2550};
2551
2552/**
2553 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
2554 * a single peer in a measurement session.
2555 *
2556 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
2557 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
2558 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002559 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002560 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
2561 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
2562 * list of supported attributes.
2563 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
2564 * secure measurement.
2565 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
2566 * measurement every <value> bursts. If 0 or not specified,
2567 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002568 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
2569 * the measurement frames are exchanged. Optional; if not
2570 * specified, try to locate the peer in the kernel scan
2571 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002572 */
2573enum qca_wlan_vendor_attr_ftm_peer_info {
2574 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
2575 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
2576 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002577 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002578 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
2579 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002580 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002581 /* keep last */
2582 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
2583 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
2584 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
2585};
2586
2587/**
2588 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
2589 * per-peer
2590 *
2591 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
2592 * immediate (ASAP) response from peer.
2593 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
2594 * LCI report from peer. The LCI report includes the absolute
2595 * location of the peer in "official" coordinates (similar to GPS).
2596 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
2597 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
2598 * Location civic report from peer. The LCR includes the location
2599 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
2600 * 11.24.6.7 for more information.
2601 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
2602 * request a secure measurement.
2603 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
2604 */
2605enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
2606 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
2607 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
2608 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
2609 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
2610};
2611
2612/**
2613 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
2614 *
2615 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
2616 * to perform in a single burst.
2617 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
2618 * perform, specified as an exponent (2^value).
2619 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
2620 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
2621 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
2622 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
2623 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
2624 */
2625enum qca_wlan_vendor_attr_ftm_meas_param {
2626 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
2627 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
2628 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
2629 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
2630 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
2631 /* keep last */
2632 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
2633 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
2634 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
2635};
2636
2637/**
2638 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
2639 *
2640 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
2641 * peer.
2642 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
2643 * request for this peer.
2644 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
2645 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
2646 * to measurement results for this peer.
2647 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
2648 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
2649 * request failed and peer requested not to send an additional request
2650 * for this number of seconds.
2651 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
2652 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2653 * 9.4.2.22.10.
2654 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
2655 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2656 * 9.4.2.22.13.
2657 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
2658 * overridden some measurement request parameters. See
2659 * enum qca_wlan_vendor_attr_ftm_meas_param.
2660 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
2661 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
2662 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
2663 * results. Each entry is a nested attribute defined
2664 * by enum qca_wlan_vendor_attr_ftm_meas.
2665 */
2666enum qca_wlan_vendor_attr_ftm_peer_result {
2667 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
2668 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
2669 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
2670 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
2671 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
2672 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
2673 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
2674 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
2675 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
2676 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
2677 /* keep last */
2678 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
2679 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
2680 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
2681};
2682
2683/**
2684 * enum qca_wlan_vendor_attr_ftm_peer_result_status
2685 *
2686 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
2687 * will be provided. Peer may have overridden some measurement parameters,
2688 * in which case overridden parameters will be report by
2689 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
2690 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
2691 * of performing the measurement request. No more results will be sent
2692 * for this peer in this session.
2693 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
2694 * failed, and requested not to send an additional request for number
2695 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
2696 * attribute.
2697 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
2698 * failed. Request was not sent over the air.
2699 */
2700enum qca_wlan_vendor_attr_ftm_peer_result_status {
2701 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
2702 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
2703 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
2704 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
2705};
2706
2707/**
2708 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
2709 * for measurement result, per-peer
2710 *
2711 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
2712 * measurement completed for this peer. No more results will be reported
2713 * for this peer in this session.
2714 */
2715enum qca_wlan_vendor_attr_ftm_peer_result_flags {
2716 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
2717};
2718
2719/**
2720 * enum qca_vendor_attr_loc_session_status: Session completion status code
2721 *
2722 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
2723 * successfully.
2724 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
2725 * by request.
2726 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
2727 * was invalid and was not started.
2728 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
2729 * and did not complete normally (for example out of resources).
2730 */
2731enum qca_vendor_attr_loc_session_status {
2732 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
2733 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
2734 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
2735 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
2736};
2737
2738/**
2739 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
2740 *
2741 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
2742 * recorded by responder, in picoseconds.
2743 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2744 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
2745 * initiator, in picoseconds.
2746 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2747 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
2748 * initiator, in picoseconds.
2749 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2750 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
2751 * responder, in picoseconds.
2752 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2753 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
2754 * during this measurement exchange. Optional and will be provided if
2755 * the hardware can measure it.
2756 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
2757 * responder. Not always provided.
2758 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2759 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
2760 * responder. Not always provided.
2761 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2762 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
2763 * initiator. Not always provided.
2764 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2765 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
2766 * initiator. Not always provided.
2767 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2768 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
2769 */
2770enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002771 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07002772 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
2773 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
2774 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
2775 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
2776 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
2777 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
2778 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
2779 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
2780 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
2781 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
2782 /* keep last */
2783 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
2784 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
2785 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
2786};
2787
2788/**
2789 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
2790 *
2791 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
2792 * CIR (channel impulse response) path for each antenna.
2793 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
2794 * of the strongest CIR path for each antenna.
2795 */
2796enum qca_wlan_vendor_attr_aoa_type {
2797 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
2798 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
2799 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
2800};
2801
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002802/**
2803 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
2804 * validate encryption engine
2805 *
2806 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
2807 * This will be included if the request is for decryption; if not included,
2808 * the request is treated as a request for encryption by default.
2809 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
2810 * indicating the key cipher suite. Takes same values as
2811 * NL80211_ATTR_KEY_CIPHER.
2812 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
2813 * Key Id to be used for encryption
2814 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
2815 * Key (TK) to be used for encryption/decryption
2816 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
2817 * Packet number to be specified for encryption/decryption
2818 * 6 bytes for TKIP/CCMP/GCMP.
2819 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
2820 * representing the 802.11 packet (header + payload + FCS) that
2821 * needs to be encrypted/decrypted.
2822 * Encrypted/decrypted response from the driver will also be sent
2823 * to userspace with the same attribute.
2824 */
2825enum qca_wlan_vendor_attr_encryption_test {
2826 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
2827 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
2828 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
2829 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
2830 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
2831 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
2832 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
2833
2834 /* keep last */
2835 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
2836 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
2837 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
2838};
2839
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002840/**
2841 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
2842 * sector for DMG RF sector operations.
2843 *
2844 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
2845 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
2846 */
2847enum qca_wlan_vendor_attr_dmg_rf_sector_type {
2848 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
2849 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
2850 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
2851};
2852
2853/**
Hai Shalom021b0b52019-04-10 11:17:58 -07002854 * enum qca_wlan_vendor_attr_fw_state - State of firmware
2855 *
2856 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
2857 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
2858 */
2859enum qca_wlan_vendor_attr_fw_state {
2860 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
2861 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
2862 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
2863};
2864
2865/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002866 * BRP antenna limit mode
2867 *
2868 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
2869 * antenna limit, BRP will be performed as usual.
2870 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
2871 * antennas limit. the hardware may use less antennas than the
2872 * maximum limit.
2873 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
2874 * use exactly the specified number of antennas for BRP.
2875 */
2876enum qca_wlan_vendor_attr_brp_ant_limit_mode {
2877 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
2878 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
2879 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
2880 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
2881};
2882
2883/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002884 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
2885 * DMG RF sector configuration for a single RF module.
2886 * The values are defined in a compact way which closely matches
2887 * the way it is stored in HW registers.
2888 * The configuration provides values for 32 antennas and 8 distribution
2889 * amplifiers, and together describes the characteristics of the RF
2890 * sector - such as a beam in some direction with some gain.
2891 *
2892 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
2893 * of RF module for this configuration.
2894 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
2895 * amplifier gain index. Unsigned 32 bit number containing
2896 * bits for all 32 antennas.
2897 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
2898 * amplifier gain index. Unsigned 32 bit number containing
2899 * bits for all 32 antennas.
2900 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
2901 * amplifier gain index. Unsigned 32 bit number containing
2902 * bits for all 32 antennas.
2903 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
2904 * for first 16 antennas, 2 bits per antenna.
2905 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
2906 * for last 16 antennas, 2 bits per antenna.
2907 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
2908 * DTYPE values (3 bits) for each distribution amplifier, followed
2909 * by X16 switch bits for each distribution amplifier. There are
2910 * total of 8 distribution amplifiers.
2911 */
2912enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
2913 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
2914 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
2915 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
2916 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
2917 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
2918 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
2919 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
2920 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
2921
2922 /* keep last */
2923 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
2924 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
2925 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
2926};
2927
2928enum qca_wlan_vendor_attr_ll_stats_set {
2929 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2930 /* Unsigned 32-bit value */
2931 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2932 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
2933 /* keep last */
2934 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2935 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2936 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
2937};
2938
2939enum qca_wlan_vendor_attr_ll_stats_clr {
2940 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2941 /* Unsigned 32bit bitmap for clearing statistics
2942 * All radio statistics 0x00000001
2943 * cca_busy_time (within radio statistics) 0x00000002
2944 * All channel stats (within radio statistics) 0x00000004
2945 * All scan statistics (within radio statistics) 0x00000008
2946 * All interface statistics 0x00000010
2947 * All tx rate statistics (within interface statistics) 0x00000020
2948 * All ac statistics (with in interface statistics) 0x00000040
2949 * All contention (min, max, avg) statistics (within ac statisctics)
2950 * 0x00000080.
2951 */
2952 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
2953 /* Unsigned 8 bit value: Request to stop statistics collection */
2954 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
2955
2956 /* Unsigned 32 bit bitmap: Response from the driver
2957 * for the cleared statistics
2958 */
2959 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
2960 /* Unsigned 8 bit value: Response from driver/firmware
2961 * for the stop request
2962 */
2963 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
2964 /* keep last */
2965 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2966 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2967 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
2968};
2969
2970enum qca_wlan_vendor_attr_ll_stats_get {
2971 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2972 /* Unsigned 32 bit value provided by the caller issuing the GET stats
2973 * command. When reporting the stats results, the driver uses the same
2974 * value to indicate which GET request the results correspond to.
2975 */
2976 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
2977 /* Unsigned 32 bit value - bit mask to identify what statistics are
2978 * requested for retrieval.
2979 * Radio Statistics 0x00000001
2980 * Interface Statistics 0x00000020
2981 * All Peer Statistics 0x00000040
2982 * Peer Statistics 0x00000080
2983 */
2984 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
2985 /* keep last */
2986 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2987 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2988 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
2989};
2990
2991enum qca_wlan_vendor_attr_ll_stats_results {
2992 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2993 /* Unsigned 32bit value. Used by the driver; must match the request id
2994 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2995 */
2996 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2997
2998 /* Unsigned 32 bit value */
2999 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
3000 /* Unsigned 32 bit value */
3001 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
3002 /* Unsigned 32 bit value */
3003 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
3004 /* Unsigned 32 bit value */
3005 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
3006 /* Signed 32 bit value */
3007 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
3008 /* Signed 32 bit value */
3009 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
3010 /* Signed 32 bit value */
3011 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
3012
3013 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
3014 * nested within the interface stats.
3015 */
3016
3017 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
3018 * Type = enum wifi_interface_mode.
3019 */
3020 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
3021 /* Interface MAC address. An array of 6 Unsigned int8 */
3022 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
3023 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
3024 * AUTHENTICATING, etc. valid for STA, CLI only.
3025 */
3026 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
3027 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
3028 */
3029 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
3030 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
3031 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
3032 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
3033 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
3034 /* BSSID. An array of 6 unsigned 8 bit values */
3035 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
3036 /* Country string advertised by AP. An array of 3 unsigned 8 bit
3037 * values.
3038 */
3039 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
3040 /* Country string for this association. An array of 3 unsigned 8 bit
3041 * values.
3042 */
3043 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
3044
3045 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
3046 * be nested within the interface stats.
3047 */
3048
3049 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
3050 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
3051 /* Unsigned int 32 value corresponding to respective AC */
3052 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
3053 /* Unsigned int 32 value corresponding to respective AC */
3054 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
3055 /* Unsigned int 32 value corresponding to respective AC */
3056 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
3057 /* Unsigned int 32 value corresponding to respective AC */
3058 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
3059 /* Unsigned int 32 value corresponding to respective AC */
3060 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
3061 /* Unsigned int 32 value corresponding to respective AC */
3062 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
3063 /* Unsigned int 32 value corresponding to respective AC */
3064 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
3065 /* Unsigned int 32 value corresponding to respective AC */
3066 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
3067 /* Unsigned int 32 value corresponding to respective AC */
3068 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
3069 /* Unsigned int 32 values corresponding to respective AC */
3070 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
3071 /* Unsigned int 32 values corresponding to respective AC */
3072 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
3073 /* Unsigned int 32 values corresponding to respective AC */
3074 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
3075 /* Unsigned int 32 values corresponding to respective AC */
3076 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
3077 /* Unsigned int 32 values corresponding to respective AC */
3078 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
3079 /* Unsigned 32 bit value. Number of peers */
3080 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
3081
3082 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
3083 * nested within the interface stats.
3084 */
3085
3086 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
3087 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
3088 /* MAC addr corresponding to respective peer. An array of 6 unsigned
3089 * 8 bit values.
3090 */
3091 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
3092 /* Unsigned int 32 bit value representing capabilities corresponding
3093 * to respective peer.
3094 */
3095 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
3096 /* Unsigned 32 bit value. Number of rates */
3097 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
3098
3099 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3100 * are nested within the rate stat.
3101 */
3102
3103 /* Wi-Fi Rate - separate attributes defined for individual fields */
3104
3105 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
3106 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
3107 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
3108 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
3109 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
3110 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
3111 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07003112 * in the units of 0.5 Mbps HT/VHT it would be MCS index
3113 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003114 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
3115
3116 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
3117 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
3118
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003119 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
3120 * nested within the peer info stats.
3121 */
3122
3123 /* Unsigned int 32 bit value. Number of successfully transmitted data
3124 * packets, i.e., with ACK received corresponding to the respective
3125 * rate.
3126 */
3127 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
3128 /* Unsigned int 32 bit value. Number of received data packets
3129 * corresponding to the respective rate.
3130 */
3131 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
3132 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
3133 * received corresponding to the respective rate.
3134 */
3135 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
3136 /* Unsigned int 32 bit value. Total number of data packet retries for
3137 * the respective rate.
3138 */
3139 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
3140 /* Unsigned int 32 bit value. Total number of short data packet retries
3141 * for the respective rate.
3142 */
3143 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
3144 /* Unsigned int 32 bit value. Total number of long data packet retries
3145 * for the respective rate.
3146 */
3147 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
3148
3149 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
3150 /* Unsigned 32 bit value. Total number of msecs the radio is awake
3151 * accruing over time.
3152 */
3153 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
3154 /* Unsigned 32 bit value. Total number of msecs the radio is
3155 * transmitting accruing over time.
3156 */
3157 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
3158 /* Unsigned 32 bit value. Total number of msecs the radio is in active
3159 * receive accruing over time.
3160 */
3161 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
3162 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3163 * to all scan accruing over time.
3164 */
3165 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
3166 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3167 * to NAN accruing over time.
3168 */
3169 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
3170 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3171 * to GSCAN accruing over time.
3172 */
3173 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
3174 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3175 * to roam scan accruing over time.
3176 */
3177 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
3178 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3179 * to PNO scan accruing over time.
3180 */
3181 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
3182 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
3183 * to Hotspot 2.0 scans and GAS exchange accruing over time.
3184 */
3185 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
3186 /* Unsigned 32 bit value. Number of channels. */
3187 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
3188
3189 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
3190 * be nested within the channel stats.
3191 */
3192
3193 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
3194 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
3195 /* Unsigned 32 bit value. Primary 20 MHz channel. */
3196 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
3197 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
3198 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
3199 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
3200 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
3201
3202 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
3203 * nested within the radio stats.
3204 */
3205
3206 /* Unsigned int 32 bit value representing total number of msecs the
3207 * radio is awake on that channel accruing over time, corresponding to
3208 * the respective channel.
3209 */
3210 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
3211 /* Unsigned int 32 bit value representing total number of msecs the CCA
3212 * register is busy accruing over time corresponding to the respective
3213 * channel.
3214 */
3215 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
3216
3217 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
3218
3219 /* Signifies the nested list of channel attributes
3220 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
3221 */
3222 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
3223
3224 /* Signifies the nested list of peer info attributes
3225 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
3226 */
3227 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
3228
3229 /* Signifies the nested list of rate info attributes
3230 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3231 */
3232 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
3233
3234 /* Signifies the nested list of wmm info attributes
3235 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
3236 */
3237 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
3238
3239 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
3240 * that more stats, e.g., peers or radio, are to follow in the next
3241 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
3242 * Otherwise, it is set to 0.
3243 */
3244 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
3245
3246 /* Unsigned 64 bit value */
3247 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
3248
3249 /* Unsigned 32 bit value */
3250 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
3251
3252 /* Unsigned 32 bit value */
3253 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
3254
3255 /* Unsigned 32 bit value */
3256 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
3257
3258 /* Unsigned 32 bit value */
3259 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
3260
3261 /* Unsigned 32 bit value */
3262 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
3263
3264 /* Number of msecs the radio spent in transmitting for each power level
3265 */
3266 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
3267
3268 /* Unsigned 32 bit value */
3269 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
3270 /* Unsigned 32 bit value */
3271 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
3272 /* Unsigned 32 bit value */
3273 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
3274 /* Unsigned 32 bit value */
3275 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
3276
Roshan Pius3a1667e2018-07-03 15:17:14 -07003277 /* Unsigned int 32 value.
3278 * Pending MSDUs corresponding to respective AC.
3279 */
3280 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
3281
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003282 /* keep last */
3283 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
3284 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
3285 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
3286};
3287
Roshan Pius3a1667e2018-07-03 15:17:14 -07003288enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003289 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
3290 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
3291 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
3292 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
3293
3294 /* keep last */
3295 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
3296 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
3297 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
3298};
3299
3300/**
3301 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
3302 * TDLS configuration to the host driver.
3303 *
3304 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
3305 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
3306 * represents the different TDLS trigger modes.
3307 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
3308 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
3309 * of packets shall meet the criteria for implicit TDLS setup.
3310 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
3311 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
3312 * to initiate a TDLS setup.
3313 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
3314 * a TDLS Discovery to the peer.
3315 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
3316 * discovery attempts to know the TDLS capability of the peer. A peer is
3317 * marked as TDLS not capable if there is no response for all the attempts.
3318 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
3319 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
3320 * number of TX / RX frames meet the criteria for TDLS teardown.
3321 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
3322 * of Tx/Rx packets within a duration
3323 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
3324 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
3325 * corresponding to the RSSI of the peer below which a TDLS setup is
3326 * triggered.
3327 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
3328 * corresponding to the RSSI of the peer above which a TDLS teardown is
3329 * triggered.
3330 */
3331enum qca_wlan_vendor_attr_tdls_configuration {
3332 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
3333 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
3334
3335 /* Attributes configuring the TDLS Implicit Trigger */
3336 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
3337 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
3338 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
3339 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
3340 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
3341 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
3342 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
3343 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
3344
3345 /* keep last */
3346 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
3347 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
3348 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
3349};
3350
3351/**
3352 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
3353 * the driver
3354 *
3355 * The following are the different values for
3356 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
3357 *
3358 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
3359 * the TDLS connection to a respective peer comes from the user space.
3360 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
3361 * TDLS_DISCOVER to do this.
3362 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
3363 * setup/teardown to the eligible peer once the configured criteria
3364 * (such as TX/RX threshold, RSSI) is met. The attributes
3365 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
3366 * the different configuration criteria for the TDLS trigger from the
3367 * host driver.
3368 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
3369 * the TDLS setup / teardown through the implicit mode only to the
3370 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
3371 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
3372 * External mode works on top of the implicit mode. Thus the host driver
3373 * is expected to configure in TDLS Implicit mode too to operate in
3374 * External mode.
3375 * Configuring External mode alone without Implicit mode is invalid.
3376 *
3377 * All the above implementations work as expected only when the host driver
3378 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
3379 * that the TDLS message exchange is not internal to the host driver, but
3380 * depends on wpa_supplicant to do the message exchange.
3381 */
3382enum qca_wlan_vendor_tdls_trigger_mode {
3383 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
3384 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
3385 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
3386};
3387
Dmitry Shmidt29333592017-01-09 12:27:11 -08003388/**
3389 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
3390 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
3391 * that is hard-coded in the Board Data File (BDF).
3392 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
3393 * that is hard-coded in the Board Data File (BDF).
3394 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
3395 * that is hard-coded in the Board Data File (BDF).
3396 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
3397 * that is hard-coded in the Board Data File (BDF).
3398 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
3399 * that is hard-coded in the Board Data File (BDF).
3400 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
3401 * source of SAR power limits, thereby disabling the SAR power
3402 * limit feature.
3403 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
3404 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003405 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
3406 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003407 *
3408 * This enumerates the valid set of values that may be supplied for
3409 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07003410 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
3411 * the response to an instance of the
3412 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003413 */
3414enum qca_vendor_attr_sar_limits_selections {
3415 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
3416 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
3417 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
3418 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
3419 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
3420 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
3421 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07003422 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003423};
3424
3425/**
3426 * enum qca_vendor_attr_sar_limits_spec_modulations -
3427 * SAR limits specification modulation
3428 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
3429 * CCK modulation
3430 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
3431 * OFDM modulation
3432 *
3433 * This enumerates the valid set of values that may be supplied for
3434 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
3435 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
3436 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07003437 * command or in the response to an instance of the
3438 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003439 */
3440enum qca_vendor_attr_sar_limits_spec_modulations {
3441 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
3442 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
3443};
3444
3445/**
3446 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
3447 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003448 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08003449 * select which SAR power limit table should be used. Valid
3450 * values are enumerated in enum
3451 * %qca_vendor_attr_sar_limits_selections. The existing SAR
3452 * power limit selection is unchanged if this attribute is not
3453 * present.
3454 *
3455 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
3456 * which specifies the number of SAR power limit specifications
3457 * which will follow.
3458 *
3459 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
3460 * limit specifications. The number of specifications is
3461 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
3462 * specification contains a set of
3463 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
3464 * specification is uniquely identified by the attributes
3465 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
3466 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
3467 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
3468 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07003469 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
3470 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
3471 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
3472 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
3473 * needed based upon the value of
3474 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003475 *
3476 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
3477 * indicate for which band this specification applies. Valid
3478 * values are enumerated in enum %nl80211_band (although not all
3479 * bands may be supported by a given device). If the attribute is
3480 * not supplied then the specification will be applied to all
3481 * supported bands.
3482 *
3483 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
3484 * to indicate for which antenna chain this specification
3485 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
3486 * attribute is not supplied then the specification will be
3487 * applied to all chains.
3488 *
3489 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
3490 * value to indicate for which modulation scheme this
3491 * specification applies. Valid values are enumerated in enum
3492 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
3493 * is not supplied then the specification will be applied to all
3494 * modulation schemes.
3495 *
3496 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
3497 * value to specify the actual power limit value in units of 0.5
3498 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07003499 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3500 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003501 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07003502 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
3503 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
3504 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3505 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
3506 *
3507 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
3508 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08003509 */
3510enum qca_vendor_attr_sar_limits {
3511 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
3512 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
3513 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
3514 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
3515 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
3516 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
3517 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
3518 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07003519 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003520
3521 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
3522 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
3523 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
3524};
3525
3526/**
3527 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
3528 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07003529 *
3530 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
3531 * should be set to any U8 value to indicate that the driver version
3532 * should be returned. When enabled in this manner, in a response this
3533 * attribute will contain a string representation of the driver version.
3534 *
3535 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
3536 * should be set to any U8 value to indicate that the firmware version
3537 * should be returned. When enabled in this manner, in a response this
3538 * attribute will contain a string representation of the firmware version.
3539 *
3540 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
3541 * should be set to any U32 value to indicate that the current radio
3542 * index should be returned. When enabled in this manner, in a response
3543 * this attribute will contain a U32 radio index value.
3544 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08003545 */
3546enum qca_wlan_vendor_attr_get_wifi_info {
3547 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3548 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
3549 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07003550 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003551
3552 /* keep last */
3553 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3554 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
3555 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3556};
3557
3558/*
3559 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
3560 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
3561 */
3562enum qca_wlan_vendor_attr_wifi_logger_start {
3563 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
3564 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
3565 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
3566 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
3567
3568 /* keep last */
3569 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
3570 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
3571 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
3572};
3573
3574enum qca_wlan_vendor_attr_logger_results {
3575 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3576
3577 /* Unsigned 32-bit value; must match the request Id supplied by
3578 * Wi-Fi HAL in the corresponding subcmd NL msg.
3579 */
3580 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3581
3582 /* Unsigned 32-bit value; used to indicate the size of memory
3583 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003584 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08003585 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3586
3587 /* keep last */
3588 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3589 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3590 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3591};
3592
Hai Shalomc3565922019-10-28 11:58:20 -07003593/**
3594 * enum qca_scan_freq_list_type: Frequency list types
3595 *
3596 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
3597 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3598 * a preferred frequency list for roaming.
3599 *
3600 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
3601 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3602 * a specific frequency list for roaming.
3603 */
3604enum qca_scan_freq_list_type {
3605 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
3606 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
3607};
3608
3609/**
3610 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
3611 *
3612 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
3613 * List of frequencies in MHz to be considered for a roam scan.
3614 *
3615 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
3616 * Type of frequency list scheme being configured/gotten as defined by the
3617 * enum qca_scan_freq_list_type.
3618 */
3619enum qca_vendor_attr_scan_freq_list_scheme {
3620 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
3621 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
3622
3623 /* keep last */
3624 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
3625 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
3626 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
3627};
3628
3629/*
3630 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
3631 *
3632 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
3633 * a bad packet error rates (PER).
3634 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
3635 * based on beacon misses from the connected AP.
3636 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
3637 * due to poor RSSI of the connected AP.
3638 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
3639 * upon finding a BSSID with a better RSSI than the connected BSSID.
3640 * Here the RSSI of the current BSSID need not be poor.
3641 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
3642 * by triggering a periodic scan to find a better AP to roam.
3643 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
3644 * when the connected channel environment is too noisy/congested.
3645 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
3646 * when BTM Request frame is received from the connected AP.
3647 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
3648 * when the channel utilization is goes above the configured threshold.
3649 *
3650 * Set the corresponding roam trigger reason bit to consider it for roam
3651 * trigger.
3652 * Userspace can set multiple bits and send to the driver. The driver shall
3653 * consider all of them to trigger/initiate a roam scan.
3654 */
3655enum qca_vendor_roam_triggers {
3656 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
3657 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
3658 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
3659 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
3660 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
3661 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
3662 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
3663 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
3664};
3665
3666/**
3667 * enum qca_vendor_attr_roam_candidate_selection_criteria:
3668 *
3669 * Each attribute carries a weightage in percentage (%).
3670 *
3671 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3672 * Represents the weightage to be given for the RSSI selection
3673 * criteria among other parameters.
3674 *
3675 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3676 * Represents the weightage to be given for the rate selection
3677 * criteria among other parameters.
3678 *
3679 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3680 * Represents the weightage to be given for the band width selection
3681 * criteria among other parameters.
3682 *
3683 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3684 * Represents the weightage to be given for the band selection
3685 * criteria among other parameters.
3686 *
3687 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3688 * Represents the weightage to be given for the NSS selection
3689 * criteria among other parameters.
3690 *
3691 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3692 * Represents the weightage to be given for the channel congestion
3693 * selection criteria among other parameters.
3694 *
3695 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3696 * Represents the weightage to be given for the beamforming selection
3697 * criteria among other parameters.
3698 *
3699 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3700 * Represents the weightage to be given for the OCE selection
3701 * criteria among other parameters.
3702 */
3703enum qca_vendor_attr_roam_candidate_selection_criteria {
3704 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3705 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3706 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3707 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3708 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3709 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3710 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3711 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3712
3713 /* keep last */
3714 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3715 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3716 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3717};
3718
3719/**
3720 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3721 * The following attributes are used to set/get/clear the respective
3722 * configurations to/from the driver.
3723 * For the get, the attribute for the configuration to be queried shall
3724 * carry any of its acceptable values to the driver. In return, the driver
3725 * shall send the configured values within the same attribute to the user
3726 * space.
3727 *
3728 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3729 * Signifies to enable/disable roam control in driver.
3730 * 1-enable, 0-disable
3731 * Enable: Mandates the driver to do the further roams using the
3732 * configuration parameters set through
3733 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3734 * Disable: Disables the driver/firmware roaming triggered through
3735 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3736 * expected to continue with the default configurations.
3737 *
3738 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3739 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3740 * Roam control status is obtained through this attribute.
3741 *
3742 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3743 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3744 * is to be cleared in the driver.
3745 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3746 * and shall be ignored if used with other sub commands.
3747 * If this attribute is specified along with subcmd
3748 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3749 * all other attributes, if there are any.
3750 * If this attribute is not specified when the subcmd
3751 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3752 * clear the data corresponding to the attributes specified.
3753 *
3754 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3755 * list of frequencies and its type, represented by
3756 * enum qca_vendor_attr_scan_freq_list_scheme.
3757 * Frequency list and its type are mandatory for this attribute to set
3758 * the frequencies.
3759 * Frequency type is mandatory for this attribute to get the frequencies
3760 * and the frequency list is obtained through
3761 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3762 * Frequency list type is mandatory for this attribute to clear the
3763 * frequencies.
3764 *
3765 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3766 * Carries the value of scan period in seconds to set.
3767 * The value of scan period is obtained with the same attribute for get.
3768 * Clears the scan period in the driver when specified with clear command.
3769 * Scan period is the idle time in seconds between each subsequent
3770 * channel scans.
3771 *
3772 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3773 * Carries the value of full scan period in seconds to set.
3774 * The value of full scan period is obtained with the same attribute for
3775 * get.
3776 * Clears the full scan period in the driver when specified with clear
3777 * command. Full scan period is the idle period in seconds between two
3778 * successive full channel roam scans.
3779 *
3780 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3781 * Carries a bitmap of the roam triggers specified in
3782 * enum qca_vendor_roam_triggers.
3783 * The driver shall enable roaming by enabling corresponding roam triggers
3784 * based on the trigger bits sent with this attribute.
3785 * If this attribute is not configured, the driver shall proceed with
3786 * default behavior.
3787 * The bitmap configured is obtained with the same attribute for get.
3788 * Clears the bitmap configured in driver when specified with clear
3789 * command.
3790 *
3791 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3792 * weightage in percentage (%) to be given for each selection criteria.
3793 * Different roam candidate selection criteria are represented by
3794 * enum qca_vendor_attr_roam_candidate_selection_criteria.
3795 * The driver shall select the roam candidate based on corresponding
3796 * candidate selection scores sent.
3797 *
3798 * An empty nested attribute is used to indicate that no specific
3799 * preference score/criteria is configured (i.e., to disable this mechanism
3800 * in the set case and to show that the mechanism is disabled in the get
3801 * case).
3802 *
3803 * Userspace can send multiple attributes out of this enum to the driver.
3804 * Since this attribute represents the weight/percentage of preference for
3805 * the respective selection criteria, it is preferred to configure 100%
3806 * total weightage. The value in each attribute or cumulative weight of the
3807 * values in all the nested attributes should not exceed 100%. The driver
3808 * shall reject such configuration.
3809 *
3810 * If the weights configured through this attribute are less than 100%,
3811 * the driver shall honor the weights (x%) passed for the corresponding
3812 * selection criteria and choose/distribute rest of the weight (100-x)%
3813 * for the other selection criteria, based on its internal logic.
3814 *
3815 * The selection criteria configured is obtained with the same
3816 * attribute for get.
3817 *
3818 * Clears the selection criteria configured in the driver when specified
3819 * with clear command.
3820 */
3821enum qca_vendor_attr_roam_control {
3822 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3823 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3824 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3825 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
3826 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3827 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3828 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3829 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3830
3831 /* keep last */
3832 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3833 QCA_ATTR_ROAM_CONTROL_MAX =
3834 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3835};
3836
3837/*
3838 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3839 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3840 *
3841 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3842 * Represents the different roam sub commands referred by
3843 * enum qca_wlan_vendor_roaming_subcmd.
3844 *
3845 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3846 * Represents the Request ID for the specific set of commands.
3847 * This also helps to map specific set of commands to the respective
3848 * ID / client. e.g., helps to identify the user entity configuring the
3849 * Blacklist BSSID and accordingly clear the respective ones with the
3850 * matching ID.
3851 *
3852 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3853 * 32-bit value.Represents the number of whitelist SSIDs configured.
3854 *
3855 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3856 * to carry the list of Whitelist SSIDs.
3857 *
3858 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3859 * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
3860 * represent the list of SSIDs to which the firmware/driver can consider
3861 * to roam to.
3862 *
3863 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3864 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3865 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3866 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
3867 *
3868 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3869 * value, RSSI threshold above which 5GHz RSSI is favored.
3870 *
3871 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3872 * value, RSSI threshold below which 5GHz RSSI is penalized.
3873 *
3874 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3875 * value, factor by which 5GHz RSSI is boosted.
3876 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3877 *
3878 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3879 * value, factor by which 5GHz RSSI is penalized.
3880 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3881 *
3882 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3883 * value, maximum boost that can be applied to a 5GHz RSSI.
3884 *
3885 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3886 * value, boost applied to current BSSID to ensure the currently
3887 * associated BSSID is favored so as to prevent ping-pong situations.
3888 *
3889 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3890 * value, RSSI below which "Alert" roam is enabled.
3891 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3892 * because the RSSI is low, or because many successive beacons have been
3893 * lost or other bad link conditions.
3894 *
3895 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3896 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3897 * firmware is hunting for a better BSSID or white listed SSID even though
3898 * the RSSI of the link is good. The parameters enabling the roaming are
3899 * configured through the PARAM_A_BAND_XX attrbutes.
3900 *
3901 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3902 * represents the BSSIDs preferred over others while evaluating them
3903 * for the roaming.
3904 *
3905 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3906 * 32-bit value. Represents the number of preferred BSSIDs set.
3907 *
3908 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3909 * address representing the BSSID to be preferred.
3910 *
3911 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3912 * 32-bit value, representing the modifier to be applied to the RSSI of
3913 * the BSSID for the purpose of comparing it with other roam candidate.
3914 *
3915 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3916 * represents the BSSIDs to get blacklisted for roaming.
3917 *
3918 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3919 * 32-bit value, represents the number of blacklisted BSSIDs.
3920 *
3921 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3922 * address representing the Blacklisted BSSID.
3923 *
3924 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3925 * indicates this BSSID blacklist as a hint to the driver. The driver can
3926 * select this BSSID in the worst case (when no other BSSIDs are better).
3927 *
3928 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3929 * set/get/clear the roam control config as
3930 * defined @enum qca_vendor_attr_roam_control.
3931 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08003932enum qca_wlan_vendor_attr_roaming_config_params {
3933 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3934
3935 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3936 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3937
3938 /* Attributes for wifi_set_ssid_white_list */
3939 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3940 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3941 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3942
3943 /* Attributes for set_roam_params */
3944 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3945 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3946 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3947 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3948 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3949 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3950 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3951
3952 /* Attribute for set_lazy_roam */
3953 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3954
3955 /* Attribute for set_lazy_roam with preferences */
3956 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3957 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3958 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3959 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3960
3961 /* Attribute for set_blacklist bssid params */
3962 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3963 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3964 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom021b0b52019-04-10 11:17:58 -07003965 /* Flag attribute indicates this BSSID blacklist as a hint */
3966 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003967
Hai Shalomc3565922019-10-28 11:58:20 -07003968 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3969
Dmitry Shmidt29333592017-01-09 12:27:11 -08003970 /* keep last */
3971 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3972 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3973 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3974};
3975
3976/*
Hai Shalomc3565922019-10-28 11:58:20 -07003977 * enum qca_wlan_vendor_roaming_subcmd: Referred by
3978 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
3979 *
3980 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
3981 * configure the white list SSIDs. These are configured through
3982 * the following attributes.
3983 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3984 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3985 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3986 *
3987 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
3988 * configure the Roam params. These parameters are evaluated on the GScan
3989 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
3990 * params.
3991 *
3992 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
3993 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3994 * to enable/disable Lazy roam.
3995 *
3996 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
3997 * preference. Contains the attribute
3998 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3999 * preference.
4000 *
4001 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
4002 * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
4003 * set the same.
4004 *
4005 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
4006 * roam control config to the driver with the attribute
4007 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4008 *
4009 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
4010 * roam control config from driver with the attribute
4011 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4012 * For the get, the attribute for the configuration to be queried shall
4013 * carry any of its acceptable value to the driver. In return, the driver
4014 * shall send the configured values within the same attribute to the user
4015 * space.
4016 *
4017 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
4018 * roam control config in the driver with the attribute
4019 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4020 * The driver shall continue with its default roaming behavior when data
4021 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08004022 */
Hai Shalomc3565922019-10-28 11:58:20 -07004023enum qca_wlan_vendor_roaming_subcmd {
4024 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
4025 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
4026 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
4027 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
4028 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
4029 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
4030 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
4031 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
4032 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
4033 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004034};
4035
4036enum qca_wlan_vendor_attr_gscan_config_params {
4037 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
4038
4039 /* Unsigned 32-bit value */
4040 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
4041
4042 /* Attributes for data used by
4043 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
4044 */
4045 /* Unsigned 32-bit value */
4046 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
4047 = 2,
4048 /* Unsigned 32-bit value */
4049 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
4050 = 3,
4051
4052 /* Attributes for input params used by
4053 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
4054 */
4055
4056 /* Unsigned 32-bit value; channel frequency */
4057 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
4058 /* Unsigned 32-bit value; dwell time in ms. */
4059 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
4060 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
4061 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
4062 /* Unsigned 8-bit value; channel class */
4063 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
4064
4065 /* Unsigned 8-bit value; bucket index, 0 based */
4066 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
4067 /* Unsigned 8-bit value; band. */
4068 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
4069 /* Unsigned 32-bit value; desired period, in ms. */
4070 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
4071 /* Unsigned 8-bit value; report events semantics. */
4072 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
4073 /* Unsigned 32-bit value. Followed by a nested array of
4074 * GSCAN_CHANNEL_SPEC_* attributes.
4075 */
4076 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
4077
4078 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
4079 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
4080 */
4081 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
4082
4083 /* Unsigned 32-bit value; base timer period in ms. */
4084 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
4085 /* Unsigned 32-bit value; number of APs to store in each scan in the
4086 * BSSID/RSSI history buffer (keep the highest RSSI APs).
4087 */
4088 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
4089 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
4090 * up AP.
4091 */
4092 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
4093 = 16,
4094
4095 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
4096 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
4097 * of the array is determined by NUM_BUCKETS.
4098 */
4099 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
4100
4101 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
4102 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
4103 */
4104 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
4105
4106 /* Unsigned 8-bit value */
4107 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
4108 = 19,
4109 /* Unsigned 32-bit value; maximum number of results to be returned. */
4110 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
4111 = 20,
4112
4113 /* An array of 6 x unsigned 8-bit value */
4114 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
4115 /* Signed 32-bit value */
4116 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
4117 /* Signed 32-bit value */
4118 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
4119 /* Unsigned 32-bit value */
4120 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
4121
4122 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
4123 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
4124 * array is determined by NUM_AP.
4125 */
4126 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
4127
4128 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
4129 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
4130 */
4131 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
4132
4133 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
4134 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
4135 = 27,
4136 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
4137 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
4138 = 28,
4139 /* Unsigned 32-bit value; number of APs breaching threshold. */
4140 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
4141 /* Unsigned 32-bit value; number of APs. Followed by an array of
4142 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
4143 */
4144 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
4145 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
4146 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
4147 = 31,
4148 /* Unsigned 32-bit value. If max_period is non zero or different than
4149 * period, then this bucket is an exponential backoff bucket.
4150 */
4151 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
4152 /* Unsigned 32-bit value. */
4153 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
4154 /* Unsigned 32-bit value. For exponential back off bucket, number of
4155 * scans to perform for a given period.
4156 */
4157 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
4158 /* Unsigned 8-bit value; in number of scans, wake up AP after these
4159 * many scans.
4160 */
4161 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
4162 = 35,
4163
4164 /* Attributes for data used by
4165 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
4166 */
4167 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
4168 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
4169 = 36,
4170 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
4171 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
4172 * size of the array is determined by NUM_SSID.
4173 */
4174 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
4175 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
4176 * attributes.
4177 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
4178 */
4179 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
4180
4181 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
4182 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
4183 /* Unsigned 8-bit value */
4184 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
4185 /* Signed 32-bit value */
4186 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
4187 /* Signed 32-bit value */
4188 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
4189 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
4190 */
4191 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
4192
4193 /* keep last */
4194 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
4195 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
4196 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
4197};
4198
4199enum qca_wlan_vendor_attr_gscan_results {
4200 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
4201
4202 /* Unsigned 32-bit value; must match the request Id supplied by
4203 * Wi-Fi HAL in the corresponding subcmd NL msg.
4204 */
4205 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
4206
4207 /* Unsigned 32-bit value; used to indicate the status response from
4208 * firmware/driver for the vendor sub-command.
4209 */
4210 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
4211
4212 /* GSCAN Valid Channels attributes */
4213 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
4214 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
4215 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
4216 * representing channel numbers.
4217 */
4218 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
4219
4220 /* GSCAN Capabilities attributes */
4221 /* Unsigned 32-bit value */
4222 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
4223 /* Unsigned 32-bit value */
4224 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
4225 /* Unsigned 32-bit value */
4226 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
4227 = 7,
4228 /* Unsigned 32-bit value */
4229 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
4230 = 8,
4231 /* Signed 32-bit value */
4232 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
4233 = 9,
4234 /* Unsigned 32-bit value */
4235 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
4236 /* Unsigned 32-bit value */
4237 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
4238 = 11,
4239 /* Unsigned 32-bit value */
4240 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
4241 = 12,
4242
4243 /* GSCAN Attributes used with
4244 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
4245 */
4246
4247 /* Unsigned 32-bit value */
4248 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
4249
4250 /* GSCAN attributes used with
4251 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
4252 */
4253
4254 /* An array of NUM_RESULTS_AVAILABLE x
4255 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
4256 */
4257 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
4258
4259 /* Unsigned 64-bit value; age of sample at the time of retrieval */
4260 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
4261 /* 33 x unsigned 8-bit value; NULL terminated SSID */
4262 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
4263 /* An array of 6 x unsigned 8-bit value */
4264 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
4265 /* Unsigned 32-bit value; channel frequency in MHz */
4266 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
4267 /* Signed 32-bit value */
4268 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
4269 /* Unsigned 32-bit value */
4270 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
4271 /* Unsigned 32-bit value */
4272 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
4273 /* Unsigned 16-bit value */
4274 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
4275 /* Unsigned 16-bit value */
4276 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
4277 /* Unsigned 32-bit value; size of the IE DATA blob */
4278 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
4279 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
4280 * information elements found in the beacon; this data should be a
4281 * packed list of wifi_information_element objects, one after the
4282 * other.
4283 */
4284 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
4285
4286 /* Unsigned 8-bit value; set by driver to indicate more scan results are
4287 * available.
4288 */
4289 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
4290
4291 /* GSCAN attributes for
4292 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
4293 */
4294 /* Unsigned 8-bit value */
4295 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
4296 /* Unsigned 32-bit value */
4297 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
4298
4299 /* GSCAN attributes for
4300 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
4301 */
4302 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
4303 * to indicate number of results.
4304 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
4305 * list of results.
4306 */
4307
4308 /* GSCAN attributes for
4309 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
4310 */
4311 /* An array of 6 x unsigned 8-bit value */
4312 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
4313 /* Unsigned 32-bit value */
4314 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
4315 = 30,
4316 /* Unsigned 32-bit value. */
4317 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
4318 = 31,
4319 /* A nested array of signed 32-bit RSSI values. Size of the array is
4320 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
4321 */
4322 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
4323 = 32,
4324
4325 /* GSCAN attributes used with
4326 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
4327 */
4328 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
4329 * to indicate number of gscan cached results returned.
4330 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
4331 * the list of gscan cached results.
4332 */
4333
4334 /* An array of NUM_RESULTS_AVAILABLE x
4335 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
4336 */
4337 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
4338 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
4339 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
4340 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
4341 */
4342 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
4343 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
4344 * to indicate number of wifi scan results/bssids retrieved by the scan.
4345 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
4346 * list of wifi scan results returned for each cached result block.
4347 */
4348
4349 /* GSCAN attributes for
4350 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
4351 */
4352 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
4353 * number of results.
4354 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
4355 * list of wifi scan results returned for each
4356 * wifi_passpoint_match_result block.
4357 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
4358 */
4359
4360 /* GSCAN attributes for
4361 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
4362 */
4363 /* Unsigned 32-bit value */
4364 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
4365 = 36,
4366 /* A nested array of
4367 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
4368 * attributes. Array size =
4369 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
4370 */
4371 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
4372
4373 /* Unsigned 32-bit value; network block id for the matched network */
4374 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
4375 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
4376 * list of wifi scan results returned for each
4377 * wifi_passpoint_match_result block.
4378 */
4379 /* Unsigned 32-bit value */
4380 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
4381 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
4382 * ANQP data in the information_element format.
4383 */
4384 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
4385
4386 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
4387 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
4388 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
4389 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
4390 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
4391 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
4392 = 43,
4393 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
4394 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
4395 = 44,
4396
4397 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
4398
Hai Shalomce48b4a2018-09-05 11:41:35 -07004399 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
4400 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07004401 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
4402 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07004403 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
4404 */
4405 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
4406
Dmitry Shmidt29333592017-01-09 12:27:11 -08004407 /* keep last */
4408 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
4409 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
4410 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
4411};
4412
4413enum qca_wlan_vendor_attr_pno_config_params {
4414 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
4415 /* Attributes for data used by
4416 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
4417 */
4418 /* Unsigned 32-bit value */
4419 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
4420 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
4421 * attributes. Array size =
4422 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
4423 */
4424 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
4425
4426 /* Unsigned 32-bit value */
4427 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
4428 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
4429 * realm, 0 if unspecified.
4430 */
4431 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
4432 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
4433 * match, 0 if unspecified.
4434 */
4435 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
4436 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
4437 * unspecified.
4438 */
4439 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
4440
4441 /* Attributes for data used by
4442 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
4443 */
4444 /* Unsigned 32-bit value */
4445 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
4446 /* Array of nested
4447 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
4448 * attributes. Array size =
4449 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
4450 */
4451 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
4452 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
4453 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
4454 /* Signed 8-bit value; threshold for considering this SSID as found,
4455 * required granularity for this threshold is 4 dBm to 8 dBm.
4456 */
4457 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
4458 = 10,
4459 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
4460 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
4461 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
4462 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
4463 /* Unsigned 8-bit to indicate ePNO type;
4464 * It takes values from qca_wlan_epno_type
4465 */
4466 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
4467
4468 /* Nested attribute to send the channel list */
4469 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
4470
4471 /* Unsigned 32-bit value; indicates the interval between PNO scan
4472 * cycles in msec.
4473 */
4474 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
4475 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
4476 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
4477 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
4478 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
4479 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
4480 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
4481 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004482 /* Unsigned 32-bit value, representing the PNO Request ID */
4483 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08004484
4485 /* keep last */
4486 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
4487 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
4488 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
4489};
4490
Paul Stewart092955c2017-02-06 09:13:09 -08004491/**
4492 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
4493 * the ACS has to be triggered. These values are used by
4494 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
4495 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
4496 */
4497enum qca_wlan_vendor_acs_select_reason {
4498 /* Represents the reason that the ACS triggered during the AP start */
4499 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
4500 /* Represents the reason that DFS found with the current channel */
4501 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
4502 /* Represents the reason that LTE co-exist in the current band. */
4503 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07004504 /* Represents the reason that generic, uncategorized interference has
4505 * been found in the current channel.
4506 */
4507 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
4508 /* Represents the reason that excessive 802.11 interference has been
4509 * found in the current channel.
4510 */
4511 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
4512 /* Represents the reason that generic Continuous Wave (CW) interference
4513 * has been found in the current channel.
4514 */
4515 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
4516 /* Represents the reason that Microwave Oven (MWO) interference has been
4517 * found in the current channel.
4518 */
4519 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
4520 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
4521 * (FHSS) interference has been found in the current channel. This may
4522 * include 802.11 waveforms.
4523 */
4524 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
4525 /* Represents the reason that non-802.11 generic Frequency-Hopping
4526 * Spread Spectrum (FHSS) interference has been found in the current
4527 * channel.
4528 */
4529 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
4530 /* Represents the reason that generic Wideband (WB) interference has
4531 * been found in the current channel. This may include 802.11 waveforms.
4532 */
4533 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
4534 /* Represents the reason that non-802.11 generic Wideband (WB)
4535 * interference has been found in the current channel.
4536 */
4537 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
4538 /* Represents the reason that Jammer interference has been found in the
4539 * current channel.
4540 */
4541 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Paul Stewart092955c2017-02-06 09:13:09 -08004542};
4543
4544/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004545 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
4546 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
4547 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
4548 * external ACS policies to select the channels w.r.t. the PCL weights.
4549 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
4550 * their PCL weights.)
4551 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
4552 * select a channel with non-zero PCL weight.
4553 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
4554 * channel with non-zero PCL weight.
4555 *
4556 */
4557enum qca_wlan_vendor_attr_external_acs_policy {
4558 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
4559 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
4560};
4561
4562/**
Paul Stewart092955c2017-02-06 09:13:09 -08004563 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
4564 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
4565 */
4566enum qca_wlan_vendor_channel_prop_flags {
4567 /* Bits 0, 1, 2, and 3 are reserved */
4568
4569 /* Turbo channel */
4570 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
4571 /* CCK channel */
4572 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
4573 /* OFDM channel */
4574 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
4575 /* 2.4 GHz spectrum channel. */
4576 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
4577 /* 5 GHz spectrum channel */
4578 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
4579 /* Only passive scan allowed */
4580 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
4581 /* Dynamic CCK-OFDM channel */
4582 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
4583 /* GFSK channel (FHSS PHY) */
4584 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
4585 /* Radar found on channel */
4586 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
4587 /* 11a static turbo channel only */
4588 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
4589 /* Half rate channel */
4590 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
4591 /* Quarter rate channel */
4592 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
4593 /* HT 20 channel */
4594 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
4595 /* HT 40 with extension channel above */
4596 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
4597 /* HT 40 with extension channel below */
4598 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
4599 /* HT 40 intolerant */
4600 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
4601 /* VHT 20 channel */
4602 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
4603 /* VHT 40 with extension channel above */
4604 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
4605 /* VHT 40 with extension channel below */
4606 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
4607 /* VHT 80 channel */
4608 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
4609 /* HT 40 intolerant mark bit for ACS use */
4610 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
4611 /* Channel temporarily blocked due to noise */
4612 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
4613 /* VHT 160 channel */
4614 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
4615 /* VHT 80+80 channel */
4616 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004617 /* HE 20 channel */
4618 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
4619 /* HE 40 with extension channel above */
4620 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
4621 /* HE 40 with extension channel below */
4622 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
4623 /* HE 40 intolerant */
4624 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
4625};
4626
4627/**
4628 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
4629 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
4630 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
4631 */
4632enum qca_wlan_vendor_channel_prop_flags_2 {
4633 /* HE 40 intolerant mark bit for ACS use */
4634 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
4635 /* HE 80 channel */
4636 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
4637 /* HE 160 channel */
4638 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
4639 /* HE 80+80 channel */
4640 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08004641};
4642
4643/**
4644 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
4645 * each channel. This is used by
4646 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
4647 */
4648enum qca_wlan_vendor_channel_prop_flags_ext {
4649 /* Radar found on channel */
4650 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
4651 /* DFS required on channel */
4652 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
4653 /* DFS required on channel for 2nd band of 80+80 */
4654 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
4655 /* If channel has been checked for DFS */
4656 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
4657 /* Excluded in 802.11d */
4658 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
4659 /* Channel Switch Announcement received on this channel */
4660 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
4661 /* Ad-hoc is not allowed */
4662 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
4663 /* Station only channel */
4664 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
4665 /* DFS radar history for slave device (STA mode) */
4666 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
4667 /* DFS CAC valid for slave device (STA mode) */
4668 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
4669};
4670
4671/**
4672 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
4673 * information. These attributes are sent as part of
4674 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
4675 * attributes correspond to a single channel.
4676 */
4677enum qca_wlan_vendor_external_acs_event_chan_info_attr {
4678 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
4679
4680 /* A bitmask (u32) with flags specified in
4681 * enum qca_wlan_vendor_channel_prop_flags.
4682 */
4683 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
4684 /* A bitmask (u32) with flags specified in
4685 * enum qca_wlan_vendor_channel_prop_flags_ext.
4686 */
4687 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
4688 /* frequency in MHz (u32) */
4689 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
4690 /* maximum regulatory transmission power (u32) */
4691 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
4692 /* maximum transmission power (u32) */
4693 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
4694 /* minimum transmission power (u32) */
4695 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
4696 /* regulatory class id (u8) */
4697 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
4698 /* maximum antenna gain in (u8) */
4699 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
4700 /* VHT segment 0 (u8) */
4701 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
4702 /* VHT segment 1 (u8) */
4703 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004704 /* A bitmask (u32) with flags specified in
4705 * enum qca_wlan_vendor_channel_prop_flags_2.
4706 */
4707 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08004708
Hai Shalomc3565922019-10-28 11:58:20 -07004709 /*
4710 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
4711 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
4712 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4713 * along with
4714 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
4715 *
4716 * If both the driver and user-space application supports the 6 GHz
4717 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
4718 * is deprecated and
4719 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4720 * should be used.
4721 *
4722 * To maintain backward compatibility,
4723 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4724 * is still used if either of the driver or user space application
4725 * doesn't support the 6 GHz band.
4726 */
4727 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
4728
4729 /*
4730 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
4731 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
4732 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4733 * along with
4734 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
4735 *
4736 * If both the driver and user-space application supports the 6 GHz
4737 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
4738 * is deprecated and
4739 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4740 * should be considered.
4741 *
4742 * To maintain backward compatibility,
4743 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4744 * is still used if either of the driver or user space application
4745 * doesn't support the 6 GHz band.
4746 */
4747 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
4748
Paul Stewart092955c2017-02-06 09:13:09 -08004749 /* keep last */
4750 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
4751 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
4752 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
4753};
4754
4755/**
4756 * qca_wlan_vendor_attr_pcl: Represents attributes for
4757 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07004758 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
4759 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08004760 */
4761enum qca_wlan_vendor_attr_pcl {
4762 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
4763
4764 /* Channel number (u8) */
4765 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
4766 /* Channel weightage (u8) */
4767 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004768 /* Channel frequency (u32) in MHz */
4769 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
4770 /* Channel flags (u32)
4771 * bit 0 set: channel to be used for GO role,
4772 * bit 1 set: channel to be used on CLI role,
4773 * bit 2 set: channel must be considered for operating channel
4774 * selection & peer chosen operating channel should be
4775 * one of the channels with this flag set,
4776 * bit 3 set: channel should be excluded in GO negotiation
4777 */
4778 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Paul Stewart092955c2017-02-06 09:13:09 -08004779};
4780
4781/**
4782 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
4783 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
4784 * host driver.
4785 */
4786enum qca_wlan_vendor_attr_external_acs_event {
4787 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
4788
4789 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
4790 * This helps ACS module to understand why ACS needs to be started.
4791 */
4792 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
4793 /* Flag attribute to indicate if driver supports spectral scanning */
4794 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
4795 /* Flag attribute to indicate if 11ac is offloaded to firmware */
4796 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
4797 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07004798 * capability as part of scan operation
4799 */
Paul Stewart092955c2017-02-06 09:13:09 -08004800 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
4801 /* Flag attribute to indicate interface status is UP */
4802 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
4803 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07004804 * values.
4805 */
Paul Stewart092955c2017-02-06 09:13:09 -08004806 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
4807 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
4808 * This is the upper bound of channel width. ACS logic should try to get
4809 * a channel with the specified width and if not found, look for lower
4810 * values.
4811 */
4812 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
4813 /* This (u8) will hold values of one of enum nl80211_bands */
4814 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
4815 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07004816 * values
4817 */
Paul Stewart092955c2017-02-06 09:13:09 -08004818 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
4819 /* Array of (u32) supported frequency list among which ACS should choose
4820 * best frequency.
4821 */
4822 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
4823 /* Preferred channel list by the driver which will have array of nested
4824 * values as per enum qca_wlan_vendor_attr_pcl attribute.
4825 */
4826 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
4827 /* Array of nested attribute for each channel. It takes attr as defined
4828 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
4829 */
4830 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004831 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
4832 * It uses values defined in enum
4833 * qca_wlan_vendor_attr_external_acs_policy.
4834 */
4835 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004836 /* Reference RF Operating Parameter (RROP) availability information
4837 * (u16). It uses values defined in enum
4838 * qca_wlan_vendor_attr_rropavail_info.
4839 */
4840 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Paul Stewart092955c2017-02-06 09:13:09 -08004841
4842 /* keep last */
4843 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
4844 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
4845 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
4846};
4847
4848/**
Hai Shalomc3565922019-10-28 11:58:20 -07004849 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08004850 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
4851 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07004852 *
4853 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
4854 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
4855 *
4856 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
4857 * Array of nested values for each channel with following attributes:
4858 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
4859 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
4860 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
4861 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
4862 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
4863 * Note: If both the driver and user-space application supports the 6 GHz band,
4864 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
4865 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
4866 * To maintain backward compatibility,
4867 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
4868 * is still used if either of the driver or user space application doesn't
4869 * support the 6 GHz band.
4870 *
4871 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
4872 * Primary channel number
4873 * Note: If both the driver and user-space application supports the 6 GHz band,
4874 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
4875 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
4876 * To maintain backward compatibility,
4877 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
4878 * is still used if either of the driver or user space application doesn't
4879 * support the 6 GHz band.
4880 *
4881 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
4882 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
4883 * Note: If both the driver and user-space application supports the 6 GHz band,
4884 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
4885 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
4886 * To maintain backward compatibility,
4887 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
4888 * is still used if either of the driver or user space application
4889 * doesn't support the 6 GHz band.
4890 *
4891 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
4892 * VHT seg0 channel number
4893 * Note: If both the driver and user-space application supports the 6 GHz band,
4894 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
4895 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
4896 * To maintain backward compatibility,
4897 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
4898 * is still used if either of the driver or user space application
4899 * doesn't support the 6 GHz band.
4900 *
4901 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
4902 * VHT seg1 channel number
4903 * Note: If both the driver and user-space application supports the 6 GHz band,
4904 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
4905 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
4906 * To maintain backward compatibility,
4907 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
4908 * is still used if either of the driver or user space application
4909 * doesn't support the 6 GHz band.
4910 *
4911 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
4912 * Takes one of enum nl80211_chan_width values.
4913 *
4914 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
4915 * Array of nested values for each channel with following attributes:
4916 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
4917 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
4918 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
4919 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
4920 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
4921 * Note: If user-space application has no support of the 6 GHz band, this
4922 * attribute is optional.
4923 *
4924 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
4925 * Primary channel frequency in MHz
4926 * Note: If user-space application has no support of the 6 GHz band, this
4927 * attribute is optional.
4928 *
4929 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
4930 * Secondary channel frequency in MHz used for HT 40 MHz channels.
4931 * Note: If user-space application has no support of the 6 GHz band, this
4932 * attribute is optional.
4933 *
4934 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
4935 * VHT seg0 channel frequency in MHz
4936 * Note: If user-space application has no support of the 6GHz band, this
4937 * attribute is optional.
4938 *
4939 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
4940 * VHT seg1 channel frequency in MHz
4941 * Note: If user-space application has no support of the 6 GHz band, this
4942 * attribute is optional.
Paul Stewart092955c2017-02-06 09:13:09 -08004943 */
4944enum qca_wlan_vendor_attr_external_acs_channels {
4945 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
4946
4947 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
4948 */
4949 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
4950
4951 /* Array of nested values for each channel with following attributes:
4952 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
4953 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
4954 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
4955 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
4956 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
4957 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
4958 */
4959 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
4960 /* This (u8) will hold values of one of enum nl80211_bands */
4961 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
4962 /* Primary channel (u8) */
4963 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
4964 /* Secondary channel (u8) used for HT 40 MHz channels */
4965 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
4966 /* VHT seg0 channel (u8) */
4967 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
4968 /* VHT seg1 channel (u8) */
4969 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
4970 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
4971 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
4972
Hai Shalomc3565922019-10-28 11:58:20 -07004973 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
4974 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
4975 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
4976 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
4977 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
4978
Paul Stewart092955c2017-02-06 09:13:09 -08004979 /* keep last */
4980 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
4981 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
4982 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
4983};
4984
4985enum qca_chip_power_save_failure_reason {
4986 /* Indicates if the reason for the failure is due to a protocol
4987 * layer/module.
4988 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07004989 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08004990 /* Indicates if the reason for the failure is due to a hardware issue.
4991 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07004992 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08004993};
4994
4995/**
4996 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
4997 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
4998 * information leading to the power save failure.
4999 */
5000enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07005001 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
5002 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08005003 * These reasons are represented by
5004 * enum qca_chip_power_save_failure_reason.
5005 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07005006 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08005007
Roshan Pius3a1667e2018-07-03 15:17:14 -07005008 /* keep last */
5009 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
5010 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
5011 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
5012};
5013
5014/**
5015 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
5016 * data types for which the stats have to get collected.
5017 */
5018enum qca_wlan_vendor_nud_stats_data_pkt_flags {
5019 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
5020 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
5021 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
5022 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
5023 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
5024 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
5025 * to represent the stats of respective data type.
5026 */
5027 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
5028 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
5029 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
5030};
5031
5032enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
5033 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
5034 /* Represents the data packet type to be monitored (u32).
5035 * Host driver tracks the stats corresponding to each data frame
5036 * represented by these flags.
5037 * These data packets are represented by
5038 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
5039 */
5040 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
5041 /* Name corresponding to the DNS frame for which the respective DNS
5042 * stats have to get monitored (string). Max string length 255.
5043 */
5044 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
5045 /* source port on which the respective proto stats have to get
5046 * collected (u32).
5047 */
5048 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
5049 /* destination port on which the respective proto stats have to get
5050 * collected (u32).
5051 */
5052 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
5053 /* IPv4 address for which the destined data packets have to be
5054 * monitored. (in network byte order), u32.
5055 */
5056 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
5057 /* IPv6 address for which the destined data packets have to be
5058 * monitored. (in network byte order), 16 bytes array.
5059 */
5060 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
5061
5062 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
5063 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
5064 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08005065};
5066
5067/**
5068 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
5069 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
5070 * information to start/stop the NUD statistics collection.
5071 */
5072enum qca_attr_nud_stats_set {
5073 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
5074
5075 /* Flag to start/stop the NUD statistics collection.
5076 * Start - If included, Stop - If not included
5077 */
5078 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005079 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08005080 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005081 /* Represents the list of data packet types to be monitored.
5082 * Host driver tracks the stats corresponding to each data frame
5083 * represented by these flags.
5084 * These data packets are represented by
5085 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
5086 */
5087 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08005088
5089 /* keep last */
5090 QCA_ATTR_NUD_STATS_SET_LAST,
5091 QCA_ATTR_NUD_STATS_SET_MAX =
5092 QCA_ATTR_NUD_STATS_SET_LAST - 1,
5093};
5094
Roshan Pius3a1667e2018-07-03 15:17:14 -07005095enum qca_attr_nud_data_stats {
5096 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
5097 /* Data packet type for which the stats are collected (u32).
5098 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
5099 */
5100 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
5101 /* Name corresponding to the DNS frame for which the respective DNS
5102 * stats are monitored (string). Max string length 255.
5103 */
5104 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
5105 /* source port on which the respective proto stats are collected (u32).
5106 */
5107 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
5108 /* destination port on which the respective proto stats are collected
5109 * (u32).
5110 */
5111 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
5112 /* IPv4 address for which the destined data packets have to be
5113 * monitored. (in network byte order), u32.
5114 */
5115 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
5116 /* IPv6 address for which the destined data packets have to be
5117 * monitored. (in network byte order), 16 bytes array.
5118 */
5119 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
5120 /* Data packet Request count received from netdev (u32). */
5121 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
5122 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
5123 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
5124 /* Data packet Request count received by lower MAC from upper MAC
5125 * (u32)
5126 */
5127 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
5128 /* Data packet Request count successfully transmitted by the device
5129 * (u32)
5130 */
5131 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
5132 /* Data packet Response count received by lower MAC (u32) */
5133 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
5134 /* Data packet Response count received by upper MAC (u32) */
5135 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
5136 /* Data packet Response count delivered to netdev (u32) */
5137 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
5138 /* Data Packet Response count that are dropped out of order (u32) */
5139 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
5140
5141 /* keep last */
5142 QCA_ATTR_NUD_DATA_STATS_LAST,
5143 QCA_ATTR_NUD_DATA_STATS_MAX =
5144 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
5145};
5146
Paul Stewart092955c2017-02-06 09:13:09 -08005147/**
5148 * qca_attr_nud_stats_get: Attributes to vendor subcmd
5149 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
5150 * NUD statistics collected when queried.
5151 */
5152enum qca_attr_nud_stats_get {
5153 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005154 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005155 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005156 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005157 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005158 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005159 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005160 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005161 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005162 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005163 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005164 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005165 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005166 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005167 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005168 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08005169 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
5170 /* Flag indicating if the station's link to the AP is active.
5171 * Active Link - If included, Inactive link - If not included
5172 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005173 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08005174 /* Flag indicating if there is any duplicate address detected (DAD).
5175 * Yes - If detected, No - If not detected.
5176 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005177 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005178 /* List of Data packet types for which the stats are requested.
5179 * This list does not carry ARP stats as they are done by the
5180 * above attributes. Represented by enum qca_attr_nud_data_stats.
5181 */
5182 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08005183
5184 /* keep last */
5185 QCA_ATTR_NUD_STATS_GET_LAST,
5186 QCA_ATTR_NUD_STATS_GET_MAX =
5187 QCA_ATTR_NUD_STATS_GET_LAST - 1,
5188};
5189
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08005190enum qca_wlan_btm_candidate_status {
5191 QCA_STATUS_ACCEPT = 0,
5192 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
5193 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
5194 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
5195 QCA_STATUS_REJECT_LOW_RSSI = 4,
5196 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
5197 QCA_STATUS_REJECT_UNKNOWN = 6,
5198};
5199
5200enum qca_wlan_vendor_attr_btm_candidate_info {
5201 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
5202
5203 /* 6-byte MAC address representing the BSSID of transition candidate */
5204 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
5205 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
5206 * returned by the driver. It says whether the BSSID provided in
5207 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
5208 * the driver, if not it specifies the reason for rejection.
5209 * Note that the user-space can overwrite the transition reject reason
5210 * codes provided by driver based on more information.
5211 */
5212 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
5213
5214 /* keep last */
5215 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
5216 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
5217 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
5218};
5219
5220enum qca_attr_trace_level {
5221 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
5222 /*
5223 * Nested array of the following attributes:
5224 * QCA_ATTR_TRACE_LEVEL_MODULE,
5225 * QCA_ATTR_TRACE_LEVEL_MASK.
5226 */
5227 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
5228 /*
5229 * Specific QCA host driver module. Please refer to the QCA host
5230 * driver implementation to get the specific module ID.
5231 */
5232 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
5233 /* Different trace level masks represented in the QCA host driver. */
5234 QCA_ATTR_TRACE_LEVEL_MASK = 3,
5235
5236 /* keep last */
5237 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
5238 QCA_ATTR_TRACE_LEVEL_MAX =
5239 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
5240};
5241
5242/**
5243 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
5244 */
5245enum qca_wlan_vendor_attr_get_he_capabilities {
5246 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
5247 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07005248 * (u8 attribute: 0 = not supported, 1 = supported)
5249 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08005250 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
5251 /* HE PHY capabilities, array of 3 u32 values */
5252 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
5253 /* HE MAC capabilities (u32 attribute) */
5254 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
5255 /* HE MCS map (u32 attribute) */
5256 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
5257 /* Number of SS (u32 attribute) */
5258 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
5259 /* RU count (u32 attribute) */
5260 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
5261 /* PPE threshold data, array of 8 u32 values */
5262 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
5263
5264 /* keep last */
5265 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
5266 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
5267 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
5268};
5269
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005270/**
5271 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
5272 */
5273enum qca_wlan_vendor_attr_spectral_scan {
5274 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
5275 /* Number of times the chip enters spectral scan mode before
5276 * deactivating spectral scans. When set to 0, chip will enter spectral
5277 * scan mode continuously. u32 attribute.
5278 */
5279 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
5280 /* Spectral scan period. Period increment resolution is 256*Tclk,
5281 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
5282 */
5283 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
5284 /* Spectral scan priority. u32 attribute. */
5285 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
5286 /* Number of FFT data points to compute. u32 attribute. */
5287 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
5288 /* Enable targeted gain change before starting the spectral scan FFT.
5289 * u32 attribute.
5290 */
5291 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
5292 /* Restart a queued spectral scan. u32 attribute. */
5293 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
5294 /* Noise floor reference number for the calculation of bin power.
5295 * u32 attribute.
5296 */
5297 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
5298 /* Disallow spectral scan triggers after TX/RX packets by setting
5299 * this delay value to roughly SIFS time period or greater.
5300 * u32 attribute.
5301 */
5302 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
5303 /* Number of strong bins (inclusive) per sub-channel, below
5304 * which a signal is declared a narrow band tone. u32 attribute.
5305 */
5306 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
5307 /* Specify the threshold over which a bin is declared strong (for
5308 * scan bandwidth analysis). u32 attribute.
5309 */
5310 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
5311 /* Spectral scan report mode. u32 attribute. */
5312 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
5313 /* RSSI report mode, if the ADC RSSI is below
5314 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
5315 * then FFTs will not trigger, but timestamps and summaries get
5316 * reported. u32 attribute.
5317 */
5318 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
5319 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
5320 * to ensure spectral scan reporting with normal error code.
5321 * u32 attribute.
5322 */
5323 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
5324 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
5325 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
5326 * u32 attribute.
5327 */
5328 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
5329 /* Format of FFT report to software for spectral scan triggered FFTs.
5330 * 0: No FFT report (only spectral scan summary report)
5331 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
5332 * report
5333 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
5334 * bins (in-band) per FFT + spectral scan summary report
5335 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
5336 * bins (all) per FFT + spectral scan summary report
5337 * u32 attribute.
5338 */
5339 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
5340 /* Number of LSBs to shift out in order to scale the FFT bins.
5341 * u32 attribute.
5342 */
5343 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
5344 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
5345 * in dBm power. u32 attribute.
5346 */
5347 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
5348 /* Per chain enable mask to select input ADC for search FFT.
5349 * u32 attribute.
5350 */
5351 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
5352 /* An unsigned 64-bit integer provided by host driver to identify the
5353 * spectral scan request. This attribute is included in the scan
5354 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
5355 * and used as an attribute in
5356 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
5357 * specific scan to be stopped.
5358 */
5359 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005360 /* Skip interval for FFT reports. u32 attribute */
5361 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
5362 /* Set to report only one set of FFT results.
5363 * u32 attribute.
5364 */
5365 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
5366 /* Debug level for spectral module in driver.
5367 * 0 : Verbosity level 0
5368 * 1 : Verbosity level 1
5369 * 2 : Verbosity level 2
5370 * 3 : Matched filterID display
5371 * 4 : One time dump of FFT report
5372 * u32 attribute.
5373 */
5374 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
5375 /* Type of spectral scan request. u32 attribute.
5376 * It uses values defined in enum
5377 * qca_wlan_vendor_attr_spectral_scan_request_type.
5378 */
5379 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07005380 /* This specifies the frequency span over which spectral
5381 * scan would be carried out. Its value depends on the
5382 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
5383 * the relation is as follows.
5384 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
5385 * Not applicable. Spectral scan would happen in the
5386 * operating span.
5387 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
5388 * Center frequency (in MHz) of the span of interest or
5389 * for convenience, center frequency (in MHz) of any channel
5390 * in the span of interest. If agile spectral scan is initiated
5391 * without setting a valid frequency it returns the error code
5392 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
5393 * u32 attribute.
5394 */
5395 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
5396 /* Spectral scan mode. u32 attribute.
5397 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
5398 * If this attribute is not present, it is assumed to be
5399 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
5400 */
5401 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
5402 /* Spectral scan error code. u32 attribute.
5403 * It uses values defined in enum
5404 * qca_wlan_vendor_spectral_scan_error_code.
5405 * This attribute is included only in failure scenarios.
5406 */
5407 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
5408 /* 8-bit unsigned value to enable/disable debug of the
5409 * Spectral DMA ring.
5410 * 1-enable, 0-disable
5411 */
5412 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
5413 /* 8-bit unsigned value to enable/disable debug of the
5414 * Spectral DMA buffers.
5415 * 1-enable, 0-disable
5416 */
5417 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005418
5419 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
5420 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
5421 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
5422};
5423
Roshan Pius3a1667e2018-07-03 15:17:14 -07005424/**
5425 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
5426 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
5427 */
5428enum qca_wlan_vendor_attr_spectral_diag_stats {
5429 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
5430 /* Number of spectral TLV signature mismatches.
5431 * u64 attribute.
5432 */
5433 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
5434 /* Number of spectral phyerror events with insufficient length when
5435 * parsing for secondary 80 search FFT report. u64 attribute.
5436 */
5437 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
5438 /* Number of spectral phyerror events without secondary 80
5439 * search FFT report. u64 attribute.
5440 */
5441 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
5442 /* Number of spectral phyerror events with vht operation segment 1 id
5443 * mismatches in search fft report. u64 attribute.
5444 */
5445 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
5446 /* Number of spectral phyerror events with vht operation segment 2 id
5447 * mismatches in search fft report. u64 attribute.
5448 */
5449 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
5450
5451 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
5452 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
5453 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
5454};
5455
5456/**
5457 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
5458 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
5459 */
5460enum qca_wlan_vendor_attr_spectral_cap {
5461 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
5462 /* Flag attribute to indicate phydiag capability */
5463 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
5464 /* Flag attribute to indicate radar detection capability */
5465 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
5466 /* Flag attribute to indicate spectral capability */
5467 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
5468 /* Flag attribute to indicate advanced spectral capability */
5469 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
5470 /* Spectral hardware generation. u32 attribute.
5471 * It uses values defined in enum
5472 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
5473 */
5474 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08005475 /* Spectral bin scaling formula ID. u16 attribute.
5476 * It uses values defined in enum
5477 * qca_wlan_vendor_spectral_scan_cap_formula_id.
5478 */
5479 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
5480 /* Spectral bin scaling param - low level offset.
5481 * s16 attribute.
5482 */
5483 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
5484 /* Spectral bin scaling param - high level offset.
5485 * s16 attribute.
5486 */
5487 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
5488 /* Spectral bin scaling param - RSSI threshold.
5489 * s16 attribute.
5490 */
5491 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
5492 /* Spectral bin scaling param - default AGC max gain.
5493 * u8 attribute.
5494 */
5495 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07005496 /* Flag attribute to indicate agile spectral scan capability
5497 * for 20/40/80 MHz modes.
5498 */
Hai Shalom81f62d82019-07-22 12:10:00 -07005499 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07005500 /* Flag attribute to indicate agile spectral scan capability
5501 * for 160 MHz mode.
5502 */
5503 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
5504 /* Flag attribute to indicate agile spectral scan capability
5505 * for 80+80 MHz mode.
5506 */
5507 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005508
5509 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
5510 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
5511 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
5512};
5513
5514/**
5515 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
5516 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
5517 */
5518enum qca_wlan_vendor_attr_spectral_scan_status {
5519 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
5520 /* Flag attribute to indicate whether spectral scan is enabled */
5521 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
5522 /* Flag attribute to indicate whether spectral scan is in progress*/
5523 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07005524 /* Spectral scan mode. u32 attribute.
5525 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
5526 * If this attribute is not present, normal mode
5527 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
5528 * requested.
5529 */
5530 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005531
5532 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
5533 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
5534 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
5535};
5536
5537/**
5538 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
5539 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
5540 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
5541 * spectral scan request types.
5542 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
5543 * set the spectral parameters and start scan.
5544 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
5545 * only set the spectral parameters.
5546 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
5547 * only start the spectral scan.
5548 */
5549enum qca_wlan_vendor_attr_spectral_scan_request_type {
5550 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
5551 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
5552 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
5553};
5554
5555/**
Hai Shalom81f62d82019-07-22 12:10:00 -07005556 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
5557 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
5558 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
5559 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
5560 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
5561 * spectral scan modes.
5562 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
5563 * spectral scan in the current operating span.
5564 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
5565 * spectral scan in the configured agile span.
5566 */
5567enum qca_wlan_vendor_spectral_scan_mode {
5568 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
5569 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
5570};
5571
5572/**
5573 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
5574 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
5575 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
5576 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
5577 * of a parameter is not supported.
5578 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
5579 * mode is not supported.
5580 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
5581 * has invalid value.
5582 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
5583 * is not initialized.
5584 */
5585enum qca_wlan_vendor_spectral_scan_error_code {
5586 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
5587 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
5588 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
5589 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
5590};
5591
5592/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07005593 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
5594 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
5595 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
5596 * spectral hardware generation.
5597 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
5598 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
5599 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
5600 */
5601enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
5602 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
5603 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
5604 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
5605};
5606
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005607enum qca_wlan_vendor_tos {
5608 QCA_WLAN_VENDOR_TOS_BK = 0,
5609 QCA_WLAN_VENDOR_TOS_BE = 1,
5610 QCA_WLAN_VENDOR_TOS_VI = 2,
5611 QCA_WLAN_VENDOR_TOS_VO = 3,
5612};
5613
5614/**
5615 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
5616 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
5617 */
5618enum qca_wlan_vendor_attr_active_tos {
5619 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
5620 /* Type Of Service - Represented by qca_wlan_vendor_tos */
5621 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
5622 /* Flag attribute representing the start (attribute included) or stop
5623 * (attribute not included) of the respective TOS.
5624 */
5625 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
5626};
5627
5628enum qca_wlan_vendor_hang_reason {
5629 /* Unspecified reason */
5630 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
5631 /* No Map for the MAC entry for the received frame */
5632 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
5633 /* Peer deletion timeout happened */
5634 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
5635 /* Peer unmap timeout */
5636 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
5637 /* Scan request timed out */
5638 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
5639 /* Consecutive Scan attempt failures */
5640 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
5641 /* Unable to get the message buffer */
5642 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
5643 /* Current command processing is timedout */
5644 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
5645 /* Timeout for an ACK from FW for suspend request */
5646 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
5647 /* Timeout for an ACK from FW for resume request */
5648 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
5649 /* Transmission timeout for consecutive data frames */
5650 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
5651 /* Timeout for the TX completion status of data frame */
5652 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
5653 /* DXE failure for TX/RX, DXE resource unavailability */
5654 QCA_WLAN_HANG_DXE_FAILURE = 12,
5655 /* WMI pending commands exceed the maximum count */
5656 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
5657};
5658
5659/**
5660 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
5661 * QCA_NL80211_VENDOR_SUBCMD_HANG.
5662 */
5663enum qca_wlan_vendor_attr_hang {
5664 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
5665 /* Reason for the hang - u32 attribute with a value from enum
5666 * qca_wlan_vendor_hang_reason.
5667 */
5668 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
5669
5670 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
5671 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
5672 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
5673};
5674
Roshan Pius3a1667e2018-07-03 15:17:14 -07005675/**
5676 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
5677 * flushing pending traffic in firmware.
5678 *
5679 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
5680 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
5681 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
5682 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
5683 * flush packets with access category.
5684 */
5685enum qca_wlan_vendor_attr_flush_pending {
5686 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
5687 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
5688 QCA_WLAN_VENDOR_ATTR_AC = 2,
5689
5690 /* keep last */
5691 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
5692 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
5693 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
5694};
5695
5696/**
Hai Shalom74f70d42019-02-11 14:42:39 -08005697 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
5698 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
5699 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
5700 * Spectral bin scaling formula ID.
5701 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
5702 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
5703 * and RSSI threshold based formula.
5704 */
5705enum qca_wlan_vendor_spectral_scan_cap_formula_id {
5706 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
5707 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
5708};
5709
5710/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07005711 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
5712 * RF Operating Parameter (RROP) information is available, and if so, at which
5713 * point in the application-driver interaction sequence it can be retrieved by
5714 * the application from the driver. This point may vary by architecture and
5715 * other factors. This is a u16 value.
5716 */
5717enum qca_wlan_vendor_attr_rropavail_info {
5718 /* RROP information is unavailable. */
5719 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
5720 /* RROP information is available and the application can retrieve the
5721 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
5722 * event from the driver.
5723 */
5724 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
5725 /* RROP information is available only after a vendor specific scan
5726 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
5727 * successfully completed. The application can retrieve the information
5728 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
5729 * the driver.
5730 */
5731 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
5732};
5733
5734/**
5735 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
5736 * Representative RF Operating Parameter (RROP) information. It is sent for the
5737 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
5738 * intended for use by external Auto Channel Selection applications. It provides
5739 * guidance values for some RF parameters that are used by the system during
5740 * operation. These values could vary by channel, band, radio, and so on.
5741 */
5742enum qca_wlan_vendor_attr_rrop_info {
5743 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
5744
5745 /* Representative Tx Power List (RTPL) which has an array of nested
5746 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
5747 */
5748 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
5749
5750 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
5751 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
5752 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
5753};
5754
5755/**
5756 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
5757 * entry instances in the Representative Tx Power List (RTPL). It provides
5758 * simplified power values intended for helping external Auto channel Selection
5759 * applications compare potential Tx power performance between channels, other
5760 * operating conditions remaining identical. These values are not necessarily
5761 * the actual Tx power values that will be used by the system. They are also not
5762 * necessarily the max or average values that will be used. Instead, they are
5763 * relative, summarized keys for algorithmic use computed by the driver or
5764 * underlying firmware considering a number of vendor specific factors.
5765 */
5766enum qca_wlan_vendor_attr_rtplinst {
5767 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
5768
5769 /* Primary channel number (u8) */
5770 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
5771 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
5772 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
5773 /* Representative Tx power in dBm (s32) with emphasis on range. */
5774 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
5775
5776 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
5777 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
5778 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
5779};
5780
5781/**
5782 * enum qca_wlan_vendor_attr_config_latency_level - Level for
5783 * wlan latency module.
5784 *
5785 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
5786 * power saving which would causing data exchange out of service, this
5787 * would be a big impact on latency. For latency sensitive applications over
5788 * Wi-Fi are intolerant to such operations and thus would configure them
5789 * to meet their respective needs. It is well understood by such applications
5790 * that altering the default behavior would degrade the Wi-Fi functionality
5791 * w.r.t the above pointed WLAN operations.
5792 *
5793 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
5794 * Default WLAN operation level which throughput orientated.
5795 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
5796 * Use moderate level to improve latency by limit scan duration.
5797 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
5798 * Use low latency level to benifit application like concurrent
5799 * downloading or video streaming via constraint scan/adaptive PS.
5800 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
5801 * Use ultra low latency level to benefit for gaming/voice
5802 * application via constraint scan/roaming/adaptive PS.
5803 */
5804enum qca_wlan_vendor_attr_config_latency_level {
5805 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
5806 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
5807 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
5808 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
5809 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
5810
5811 /* keep last */
5812 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
5813 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
5814 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
5815};
5816
5817/**
5818 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
5819 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
5820 */
5821enum qca_wlan_vendor_attr_mac {
5822 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
5823
5824 /* MAC mode info list which has an array of nested values as
5825 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
5826 */
5827 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
5828
5829 /* keep last */
5830 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
5831 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
5832 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
5833};
5834
5835/**
5836 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
5837 * Wi-Fi netdev interface on a respective MAC.
5838 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
5839 */
5840enum qca_wlan_vendor_attr_mac_iface_info {
5841 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
5842 /* Wi-Fi netdev's interface index (u32) */
5843 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
5844 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
5845 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
5846
5847 /* keep last */
5848 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
5849 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
5850 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
5851};
5852
5853/**
5854 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
5855 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
5856 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
5857 */
5858enum qca_wlan_vendor_attr_mac_info {
5859 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
5860 /* Hardware MAC ID associated for the MAC (u32) */
5861 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
5862 /* Band supported by the MAC at a given point.
5863 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
5864 * nl80211_band.
5865 */
5866 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
5867 /* Refers to list of WLAN netdev interfaces associated with this MAC.
5868 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
5869 */
5870 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
5871
5872 /* keep last */
5873 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
5874 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
5875 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
5876};
5877
5878/**
5879 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
5880 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
5881 */
5882enum qca_wlan_vendor_attr_get_logger_features {
5883 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
5884 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
5885 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
5886 /* keep last */
5887 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
5888 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
5889 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
5890};
5891
5892/**
5893 * enum wifi_logger_supported_features - Values for supported logger features
5894 */
5895enum wifi_logger_supported_features {
5896 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
5897 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
5898 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
5899 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
5900 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
5901 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
5902 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
5903 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
5904 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
5905};
5906
5907/**
5908 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
5909 * capabilities features
5910 */
5911enum qca_wlan_tdls_caps_features_supported {
5912 WIFI_TDLS_SUPPORT = (1 << (0)),
5913 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
5914 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
5915};
5916
5917/**
5918 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
5919 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
5920 */
5921enum qca_wlan_vendor_attr_tdls_get_capabilities {
5922 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
5923 /* Indicates the max concurrent sessions */
5924 /* Unsigned 32-bit value */
5925 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
5926 /* Indicates the support for features */
5927 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
5928 */
5929 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
5930
5931 /* keep last */
5932 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
5933 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
5934 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
5935};
5936
5937/**
5938 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
5939 * command used as value for the attribute
5940 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
5941 */
5942enum qca_wlan_offloaded_packets_sending_control {
5943 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
5944 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
5945 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
5946};
5947
5948/**
5949 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5950 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5951 */
5952enum qca_wlan_vendor_attr_offloaded_packets {
5953 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5954 /* Takes valid value from the enum
5955 * qca_wlan_offloaded_packets_sending_control
5956 * Unsigned 32-bit value
5957 */
5958 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5959 /* Unsigned 32-bit value */
5960 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5961 /* array of u8 len: Max packet size */
5962 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5963 /* 6-byte MAC address used to represent source MAC address */
5964 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5965 /* 6-byte MAC address used to represent destination MAC address */
5966 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5967 /* Unsigned 32-bit value, in milli seconds */
5968 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07005969 /* This optional unsigned 16-bit attribute is used for specifying
5970 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5971 */
5972 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005973
5974 /* keep last */
5975 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5976 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5977 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5978};
5979
5980/**
5981 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
5982 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
5983 */
5984enum qca_wlan_rssi_monitoring_control {
5985 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5986 QCA_WLAN_RSSI_MONITORING_START,
5987 QCA_WLAN_RSSI_MONITORING_STOP,
5988};
5989
5990/**
5991 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
5992 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
5993 */
5994enum qca_wlan_vendor_attr_rssi_monitoring {
5995 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5996 /* Takes valid value from the enum
5997 * qca_wlan_rssi_monitoring_control
5998 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
5999 */
6000 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
6001 /* Unsigned 32-bit value */
6002 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
6003 /* Signed 8-bit value in dBm */
6004 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
6005 /* Signed 8-bit value in dBm */
6006 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
6007 /* attributes to be used/received in callback */
6008 /* 6-byte MAC address used to represent current BSSID MAC address */
6009 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
6010 /* Signed 8-bit value indicating the current RSSI */
6011 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
6012 /* keep last */
6013 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
6014 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
6015 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
6016};
6017
6018/**
6019 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
6020 * QCA_NL80211_VENDOR_SUBCMD_NDP.
6021 */
6022enum qca_wlan_vendor_attr_ndp_params {
6023 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
6024 /* Unsigned 32-bit value
6025 * enum of sub commands values in qca_wlan_ndp_sub_cmd
6026 */
6027 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
6028 /* Unsigned 16-bit value */
6029 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
6030 /* NL attributes for data used NDP SUB cmds */
6031 /* Unsigned 32-bit value indicating a service info */
6032 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
6033 /* Unsigned 32-bit value; channel frequency in MHz */
6034 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
6035 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
6036 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
6037 /* Interface name on which NDP is being created */
6038 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
6039 /* Unsigned 32-bit value for security */
6040 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
6041 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
6042 /* Unsigned 32-bit value for QoS */
6043 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
6044 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
6045 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
6046 /* Unsigned 32-bit value for NDP instance Id */
6047 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
6048 /* Array of instance Ids */
6049 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
6050 /* Unsigned 32-bit value for initiator/responder NDP response code
6051 * accept/reject
6052 */
6053 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
6054 /* NDI MAC address. An array of 6 Unsigned int8 */
6055 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
6056 /* Unsigned 32-bit value errors types returned by driver
6057 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
6058 * NanStatusType includes these values.
6059 */
6060 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
6061 /* Unsigned 32-bit value error values returned by driver
6062 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
6063 * NanInternalStatusType includes these values.
6064 */
6065 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
6066 /* Unsigned 32-bit value for Channel setup configuration
6067 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
6068 * NanDataPathChannelCfg includes these values.
6069 */
6070 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
6071 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
6072 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
6073 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
6074 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
6075 /* Security Context Identifier that contains the PMKID
6076 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
6077 */
6078 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
6079 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
6080 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
6081 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
6082 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
6083 /* Unsigned 32-bit bitmap indicating schedule update
6084 * BIT_0: NSS Update
6085 * BIT_1: Channel list update
6086 */
6087 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
6088 /* Unsigned 32-bit value for NSS */
6089 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
6090 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
6091 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
6092 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
6093 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
6094 */
6095 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
6096 /* Array of channel/band width */
6097 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
6098 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
6099 * This attribute is used and optional for ndp request, ndp response,
6100 * ndp indication, and ndp confirm.
6101 */
6102 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
6103 /* Unsigned 16-bit value indicating transport port used by NDP.
6104 * This attribute is used and optional for ndp response, ndp indication,
6105 * and ndp confirm.
6106 */
6107 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
6108 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
6109 * the Internet Assigned Numbers Authority (IANA) as per:
6110 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
6111 * This attribute is used and optional for ndp response, ndp indication,
6112 * and ndp confirm.
6113 */
6114 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08006115 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
6116 * 1:support 0:not support
6117 */
6118 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Roshan Pius3a1667e2018-07-03 15:17:14 -07006119
6120 /* keep last */
6121 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
6122 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
6123 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
6124};
6125
6126enum qca_wlan_ndp_sub_cmd {
6127 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
6128 /* Command to create a NAN data path interface */
6129 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
6130 /* Command to delete a NAN data path interface */
6131 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
6132 /* Command to initiate a NAN data path session */
6133 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
6134 /* Command to notify if the NAN data path session was sent */
6135 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
6136 /* Command to respond to NAN data path session */
6137 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
6138 /* Command to notify on the responder about the response */
6139 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
6140 /* Command to initiate a NAN data path end */
6141 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
6142 /* Command to notify the if end request was sent */
6143 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
6144 /* Command to notify the peer about the end request */
6145 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
6146 /* Command to confirm the NAN data path session is complete */
6147 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
6148 /* Command to indicate the peer about the end request being received */
6149 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
6150 /* Command to indicate the peer of schedule update */
6151 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
6152};
6153
6154/**
6155 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
6156 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
6157 */
6158enum qca_wlan_vendor_attr_nd_offload {
6159 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
6160 /* Flag to set Neighbour Discovery offload */
6161 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
6162 /* Keep last */
6163 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
6164 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
6165 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
6166};
6167
6168/**
6169 * enum packet_filter_sub_cmd - Packet filter sub commands
6170 */
6171enum packet_filter_sub_cmd {
6172 /**
6173 * Write packet filter program and/or data. The driver/firmware should
6174 * disable APF before writing into local buffer and re-enable APF after
6175 * writing is done.
6176 */
6177 QCA_WLAN_SET_PACKET_FILTER = 1,
6178 /* Get packet filter feature capabilities from driver */
6179 QCA_WLAN_GET_PACKET_FILTER = 2,
6180 /**
6181 * Write packet filter program and/or data. User space will send the
6182 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
6183 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
6184 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
6185 * enable/disable is given to user space with this command. Also,
6186 * user space sends the length of program portion in the buffer within
6187 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
6188 */
6189 QCA_WLAN_WRITE_PACKET_FILTER = 3,
6190 /* Read packet filter program and/or data */
6191 QCA_WLAN_READ_PACKET_FILTER = 4,
6192 /* Enable APF feature */
6193 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
6194 /* Disable APF feature */
6195 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
6196};
6197
6198/**
6199 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
6200 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
6201 */
6202enum qca_wlan_vendor_attr_packet_filter {
6203 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
6204 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
6205 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
6206 /* Unsigned 32-bit value indicating the packet filter version */
6207 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
6208 /* Unsigned 32-bit value indicating the packet filter id */
6209 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
6210 /**
6211 * Unsigned 32-bit value indicating the packet filter size including
6212 * program + data.
6213 */
6214 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
6215 /* Unsigned 32-bit value indicating the packet filter current offset */
6216 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
6217 /* Program and/or data in bytes */
6218 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
6219 /* Unsigned 32-bit value of the length of the program section in packet
6220 * filter buffer.
6221 */
6222 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
6223
6224 /* keep last */
6225 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
6226 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
6227 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
6228};
6229
6230/**
6231 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
6232 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
6233 */
6234enum qca_wlan_vendor_drv_info {
6235 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
6236 /* Maximum Message size info between firmware & HOST
6237 * Unsigned 32-bit value
6238 */
6239 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
6240 /* keep last */
6241 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
6242 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
6243 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
6244};
6245
6246/**
6247 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
6248 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
6249 */
6250enum qca_wlan_vendor_attr_wake_stats {
6251 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
6252 /* Unsigned 32-bit value indicating the total count of wake event */
6253 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
6254 /* Array of individual wake count, each index representing wake reason
6255 */
6256 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
6257 /* Unsigned 32-bit value representing wake count array */
6258 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
6259 /* Unsigned 32-bit total wake count value of driver/fw */
6260 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
6261 /* Array of wake stats of driver/fw */
6262 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
6263 /* Unsigned 32-bit total wake count value of driver/fw */
6264 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
6265 /* Unsigned 32-bit total wake count value of packets received */
6266 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
6267 /* Unsigned 32-bit wake count value unicast packets received */
6268 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
6269 /* Unsigned 32-bit wake count value multicast packets received */
6270 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
6271 /* Unsigned 32-bit wake count value broadcast packets received */
6272 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
6273 /* Unsigned 32-bit wake count value of ICMP packets */
6274 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
6275 /* Unsigned 32-bit wake count value of ICMP6 packets */
6276 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
6277 /* Unsigned 32-bit value ICMP6 router advertisement */
6278 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
6279 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
6280 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
6281 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
6282 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
6283 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
6284 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
6285 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
6286 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
6287 /* Unsigned 32-bit wake count value of receive side multicast */
6288 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
6289 /* Unsigned 32-bit wake count value of a given RSSI breach */
6290 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
6291 /* Unsigned 32-bit wake count value of low RSSI */
6292 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
6293 /* Unsigned 32-bit value GSCAN count */
6294 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
6295 /* Unsigned 32-bit value PNO complete count */
6296 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
6297 /* Unsigned 32-bit value PNO match count */
6298 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
6299 /* keep last */
6300 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
6301 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
6302 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
6303};
6304
6305/**
6306 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
6307 * cmd value. Used for NL attributes for data used by
6308 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6309 */
6310enum qca_wlan_vendor_attr_thermal_cmd {
6311 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
6312 /* The value of command, driver will implement different operations
6313 * according to this value. It uses values defined in
6314 * enum qca_wlan_vendor_attr_thermal_cmd_type.
6315 * u32 attribute.
6316 */
6317 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
6318
6319 /* keep last */
6320 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
6321 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
6322 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
6323};
6324
6325/**
6326 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
6327 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
6328 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
6329 * thermal command types sent to driver.
6330 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
6331 * get thermal shutdown configuration parameters for display. Parameters
6332 * responded from driver are defined in
6333 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
6334 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
6335 * get temperature. Host should respond with a temperature data. It is defined
6336 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
6337 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
6338 * suspend action.
6339 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
6340 * resume action.
6341 */
6342enum qca_wlan_vendor_attr_thermal_cmd_type {
6343 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
6344 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
6345 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
6346 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
6347};
6348
6349/**
6350 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
6351 * to get chip temperature by user.
6352 * enum values are used for NL attributes for data used by
6353 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
6354 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6355 */
6356enum qca_wlan_vendor_attr_thermal_get_temperature {
6357 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
6358 /* Temperature value (degree Celsius) from driver.
6359 * u32 attribute.
6360 */
6361 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
6362
6363 /* keep last */
6364 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
6365 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
6366 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
6367};
6368
6369/**
6370 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
6371 * to get configuration parameters of thermal shutdown feature. Enum values are
6372 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
6373 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6374 */
6375enum qca_wlan_vendor_attr_get_thermal_params_rsp {
6376 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
6377 /* Indicate if the thermal shutdown feature is enabled.
6378 * NLA_FLAG attribute.
6379 */
6380 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
6381 /* Indicate if the auto mode is enabled.
6382 * Enable: Driver triggers the suspend/resume action.
6383 * Disable: User space triggers the suspend/resume action.
6384 * NLA_FLAG attribute.
6385 */
6386 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
6387 /* Thermal resume threshold (degree Celsius). Issue the resume command
6388 * if the temperature value is lower than this threshold.
6389 * u16 attribute.
6390 */
6391 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
6392 /* Thermal warning threshold (degree Celsius). FW reports temperature
6393 * to driver if it's higher than this threshold.
6394 * u16 attribute.
6395 */
6396 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
6397 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
6398 * if the temperature value is higher than this threshold.
6399 * u16 attribute.
6400 */
6401 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
6402 /* FW reports temperature data periodically at this interval (ms).
6403 * u16 attribute.
6404 */
6405 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
6406
6407 /* keep last */
6408 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
6409 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
6410 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
6411};
6412
6413/**
6414 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
6415 * report thermal events from driver to user space.
6416 * enum values are used for NL attributes for data used by
6417 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
6418 */
6419enum qca_wlan_vendor_attr_thermal_event {
6420 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
6421 /* Temperature value (degree Celsius) from driver.
6422 * u32 attribute.
6423 */
6424 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
6425 /* Indication of resume completion from power save mode.
6426 * NLA_FLAG attribute.
6427 */
6428 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
6429
6430 /* keep last */
6431 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
6432 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
6433 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
6434};
6435
6436/**
6437 * enum he_fragmentation_val - HE fragmentation support values
6438 * Indicates level of dynamic fragmentation that is supported by
6439 * a STA as a recipient.
6440 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
6441 * (HE MAC Capabilities Information field) and are used in HE Capabilities
6442 * element to advertise the support. These values are validated in the driver
6443 * to check the device capability and advertised in the HE Capabilities
6444 * element. These values are used to configure testbed device to allow the
6445 * advertised hardware capabilities to be downgraded for testing purposes.
6446 *
6447 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
6448 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
6449 * contained within an MPDU or S-MPDU, no support for dynamic fragments
6450 * within an A-MPDU that is not an S-MPDU.
6451 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
6452 * contained within an MPDU or S-MPDU and support for up to one dynamic
6453 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
6454 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
6455 * MPDU or S-MPDU.
6456 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
6457 * contained within an MPDU or S-MPDU and support for multiple dynamic
6458 * fragments for each MSDU and for each A-MSDU if supported by the
6459 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
6460 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
6461 */
6462enum he_fragmentation_val {
6463 HE_FRAG_DISABLE,
6464 HE_FRAG_LEVEL1,
6465 HE_FRAG_LEVEL2,
6466 HE_FRAG_LEVEL3,
6467};
6468
6469/**
6470 * enum he_mcs_config - HE MCS support configuration
6471 *
6472 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
6473 * These values are used in driver to configure the HE MCS map to advertise
6474 * Tx/Rx MCS map in HE capability and these values are applied for all the
6475 * streams supported by the device. To configure MCS for different bandwidths,
6476 * vendor command needs to be sent using this attribute with appropriate value.
6477 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
6478 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
6479 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
6480 * These values are used to configure testbed device to allow the advertised
6481 * hardware capabilities to be downgraded for testing purposes. The enum values
6482 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
6483 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
6484 * These values are validated in the driver before setting the MCS map and
6485 * driver returns error if the input is other than these enum values.
6486 *
6487 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
6488 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
6489 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
6490 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
6491 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
6492 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
6493 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
6494 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
6495 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
6496 */
6497enum he_mcs_config {
6498 HE_80_MCS0_7 = 0,
6499 HE_80_MCS0_9 = 1,
6500 HE_80_MCS0_11 = 2,
6501 HE_160_MCS0_7 = 4,
6502 HE_160_MCS0_9 = 5,
6503 HE_160_MCS0_11 = 6,
6504 HE_80P80_MCS0_7 = 8,
6505 HE_80P80_MCS0_9 = 9,
6506 HE_80P80_MCS0_11 = 10,
6507};
6508
6509/**
6510 * enum qca_wlan_ba_session_config - BA session configuration
6511 *
6512 * Indicates the configuration values for BA session configuration attribute.
6513 *
6514 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
6515 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
6516 */
6517enum qca_wlan_ba_session_config {
6518 QCA_WLAN_ADD_BA = 1,
6519 QCA_WLAN_DELETE_BA = 2,
6520};
6521
6522/**
6523 * enum qca_wlan_ac_type - Access category type
6524 *
6525 * Indicates the access category type value.
6526 *
6527 * @QCA_WLAN_AC_BE: BE access category
6528 * @QCA_WLAN_AC_BK: BK access category
6529 * @QCA_WLAN_AC_VI: VI access category
6530 * @QCA_WLAN_AC_VO: VO access category
6531 * @QCA_WLAN_AC_ALL: All ACs
6532 */
6533enum qca_wlan_ac_type {
6534 QCA_WLAN_AC_BE = 0,
6535 QCA_WLAN_AC_BK = 1,
6536 QCA_WLAN_AC_VI = 2,
6537 QCA_WLAN_AC_VO = 3,
6538 QCA_WLAN_AC_ALL = 4,
6539};
6540
6541/**
6542 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
6543 *
6544 * Indicates the HE LTF configuration value.
6545 *
6546 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
6547 * based on the GI setting
6548 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
6549 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
6550 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
6551 */
6552enum qca_wlan_he_ltf_cfg {
6553 QCA_WLAN_HE_LTF_AUTO = 0,
6554 QCA_WLAN_HE_LTF_1X = 1,
6555 QCA_WLAN_HE_LTF_2X = 2,
6556 QCA_WLAN_HE_LTF_4X = 3,
6557};
6558
Hai Shalomc9e41a12018-07-31 14:41:42 -07006559/**
6560 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
6561 *
6562 * Indicates the HE trigger frame MAC padding duration value.
6563 *
6564 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
6565 * process the trigger frame.
6566 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
6567 * trigger frame.
6568 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
6569 * trigger frame.
6570 */
6571enum qca_wlan_he_mac_padding_dur {
6572 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
6573 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
6574 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
6575};
6576
Hai Shalom74f70d42019-02-11 14:42:39 -08006577/**
6578 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
6579 *
6580 * Indicates the HE Operating mode control channel width setting value.
6581 *
6582 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
6583 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
6584 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
6585 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
6586 */
6587enum qca_wlan_he_om_ctrl_ch_bw {
6588 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
6589 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
6590 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
6591 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
6592};
6593
6594/**
6595 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
6596 * HE operating mode control transmit request. These attributes are
6597 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
6598 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
6599 *
6600 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
6601 * indicates the maximum number of spatial streams, NSS, that the STA
6602 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
6603 * and is set to NSS - 1.
6604 *
6605 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
6606 * indicates the operating channel width supported by the STA for both
6607 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
6608 *
6609 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
6610 * indicates the all trigger based UL MU operations by the STA.
6611 * 0 - UL MU operations are enabled by the STA.
6612 * 1 - All triggered UL MU transmissions are suspended by the STA.
6613 *
6614 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
6615 * indicates the maximum number of space-time streams, NSTS, that
6616 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07006617 *
6618 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
6619 * combined with the UL MU Disable subfield and the recipient's setting
6620 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
6621 * capabilities to determine which HE TB PPDUs are possible by the
6622 * STA to transmit.
6623 * 0 - UL MU data operations are enabled by the STA.
6624 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
6625 * bit is not set, else UL MU Tx is suspended.
6626 *
Hai Shalom74f70d42019-02-11 14:42:39 -08006627 */
6628enum qca_wlan_vendor_attr_he_omi_tx {
6629 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
6630 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
6631 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
6632 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
6633 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07006634 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08006635
6636 /* keep last */
6637 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
6638 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
6639 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
6640};
6641
Roshan Pius3a1667e2018-07-03 15:17:14 -07006642/* Attributes for data used by
6643 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
6644 */
6645enum qca_wlan_vendor_attr_wifi_test_config {
6646 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
6647 /* 8-bit unsigned value to configure the driver to enable/disable
6648 * WMM feature. This attribute is used to configure testbed device.
6649 * 1-enable, 0-disable
6650 */
6651 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
6652
6653 /* 8-bit unsigned value to configure the driver to accept/reject
6654 * the addba request from peer. This attribute is used to configure
6655 * the testbed device.
6656 * 1-accept addba, 0-reject addba
6657 */
6658 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
6659
6660 /* 8-bit unsigned value to configure the driver to send or not to
6661 * send the addba request to peer.
6662 * This attribute is used to configure the testbed device.
6663 * 1-send addba, 0-do not send addba
6664 */
6665 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
6666
6667 /* 8-bit unsigned value to indicate the HE fragmentation support.
6668 * Uses enum he_fragmentation_val values.
6669 * This attribute is used to configure the testbed device to
6670 * allow the advertised hardware capabilities to be downgraded
6671 * for testing purposes.
6672 */
6673 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
6674
6675 /* 8-bit unsigned value to indicate the HE MCS support.
6676 * Uses enum he_mcs_config values.
6677 * This attribute is used to configure the testbed device to
6678 * allow the advertised hardware capabilities to be downgraded
6679 * for testing purposes.
6680 */
6681 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
6682
6683 /* 8-bit unsigned value to configure the driver to allow or not to
6684 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
6685 * This attribute is used to configure the testbed device.
6686 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
6687 */
6688 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
6689
6690 /* 8-bit unsigned value to configure the driver to add a
6691 * new BA session or delete the existing BA session for
6692 * given TID. ADDBA command uses the buffer size and TID
6693 * configuration if user specifies the values else default
6694 * value for buffer size is used for all TIDs if the TID
6695 * also not specified. For DEL_BA command TID value is
6696 * required to process the command.
6697 * Uses enum qca_wlan_ba_session_config values.
6698 * This attribute is used to configure the testbed device.
6699 */
6700 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
6701
Hai Shalomce48b4a2018-09-05 11:41:35 -07006702 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07006703 * request and response frames.
6704 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07006705 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07006706 */
6707 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
6708
6709 /* 8-bit unsigned value to configure the buffer size in addba
6710 * request and response frames.
6711 * This attribute is used to configure the testbed device.
6712 */
6713 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
6714
6715 /* 8-bit unsigned value to configure the no ack policy.
6716 * To configure no ack policy, access category value is
6717 * required to process the command.
6718 * This attribute is used to configure the testbed device.
6719 * 1 - enable no ack, 0 - disable no ack.
6720 */
6721 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
6722
6723 /* 8-bit unsigned value to configure the AC for no ack policy
6724 * This attribute is used to configure the testbed device.
6725 * Uses the enum qca_wlan_ac_type values.
6726 */
6727 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
6728
6729 /* 8-bit unsigned value to configure the HE LTF
6730 * This attribute is used to configure the testbed device.
6731 * Uses the enum qca_wlan_he_ltf_cfg values.
6732 */
6733 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
6734
6735 /* 8-bit unsigned value to configure the tx beamformee.
6736 * This attribute is used to configure the testbed device.
6737 * 1-enable, 0-disable.
6738 */
6739 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
6740
6741 /* 8-bit unsigned value to configure the tx beamformee number
6742 * of space-time streams.
6743 * This attribute is used to configure the testbed device.
6744 * The range of the value is 0 to 8.
6745 */
6746 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
6747
6748 /* 8-bit unsigned value to configure the MU EDCA params for given AC
6749 * This attribute is used to configure the testbed device.
6750 * Uses the enum qca_wlan_ac_type values.
6751 */
6752 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
6753
6754 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
6755 * To configure MU EDCA AIFSN value, MU EDCA access category value
6756 * is required to process the command.
6757 * This attribute is used to configure the testbed device.
6758 */
6759 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
6760
6761 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
6762 * given AC.
6763 * To configure MU EDCA ECW min value, MU EDCA access category value
6764 * is required to process the command.
6765 * This attribute is used to configure the testbed device.
6766 */
6767 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
6768
6769 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
6770 * given AC.
6771 * To configure MU EDCA ECW max value, MU EDCA access category value
6772 * is required to process the command.
6773 * This attribute is used to configure the testbed device.
6774 */
6775 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
6776
6777 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
6778 * To configure MU EDCA timer value, MU EDCA access category value
6779 * is required to process the command.
6780 * This attribute is used to configure the testbed device.
6781 */
6782 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
6783
Hai Shalomc9e41a12018-07-31 14:41:42 -07006784 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
6785 * duration.
6786 * This attribute is used to configure the testbed device.
6787 * Uses the enum qca_wlan_he_mac_padding_dur values.
6788 */
6789 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
6790
Hai Shalomce48b4a2018-09-05 11:41:35 -07006791 /* 8-bit unsigned value to override the MU EDCA params to defaults
6792 * regardless of the AP beacon MU EDCA params. If it is enabled use
6793 * the default values else use the MU EDCA params from AP beacon.
6794 * This attribute is used to configure the testbed device.
6795 * 1-enable, 0-disable.
6796 */
6797 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
6798
Hai Shalom39ba6fc2019-01-22 12:40:38 -08006799 /* 8-bit unsigned value to configure the support for receiving
6800 * an MPDU that contains an operating mode control subfield.
6801 * This attribute is used to configure the testbed device.
6802 * 1-enable, 0-disable.
6803 */
6804 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
6805
6806 /* Nested attribute values required to setup the TWT session.
6807 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
6808 * information to set up the session. It contains broadcast flags,
6809 * set_up flags, trigger value, flow type, flow ID, wake interval
6810 * exponent, protection, target wake time, wake duration, wake interval
6811 * mantissa. These nested attributes are used to setup a host triggered
6812 * TWT session.
6813 */
6814 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
6815
6816 /* This nested attribute is used to terminate the current TWT session.
6817 * It does not currently carry any attributes.
6818 */
6819 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
6820
6821 /* This nested attribute is used to suspend the current TWT session.
6822 * It does not currently carry any attributes.
6823 */
6824 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
6825
6826 /* Nested attribute values to indicate the request for resume.
6827 * This attribute is used to resume the TWT session.
6828 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
6829 * parameters required to resume the TWT session.
6830 */
6831 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
6832
Hai Shalom74f70d42019-02-11 14:42:39 -08006833 /* 8-bit unsigned value to set the HE operating mode control
6834 * (OM CTRL) Channel Width subfield.
6835 * The Channel Width subfield indicates the operating channel width
6836 * supported by the STA for both reception and transmission.
6837 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
6838 * This setting is cleared with the
6839 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
6840 * flag attribute to reset defaults.
6841 * This attribute is used to configure the testbed device.
6842 */
6843 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
6844
6845 /* 8-bit unsigned value to configure the number of spatial
6846 * streams in HE operating mode control field.
6847 * This setting is cleared with the
6848 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
6849 * flag attribute to reset defaults.
6850 * This attribute is used to configure the testbed device.
6851 */
6852 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
6853
6854 /* Flag attribute to configure the UL MU disable bit in
6855 * HE operating mode control field.
6856 * This setting is cleared with the
6857 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
6858 * flag attribute to reset defaults.
6859 * This attribute is used to configure the testbed device.
6860 */
6861 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
6862
6863 /* Flag attribute to clear the previously set HE operating mode
6864 * control field configuration.
6865 * This attribute is used to configure the testbed device to reset
6866 * defaults to clear any previously set HE operating mode control
6867 * field configuration.
6868 */
6869 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
6870
6871 /* 8-bit unsigned value to configure HE single user PPDU
6872 * transmission. By default this setting is disabled and it
6873 * is disabled in the reset defaults of the device configuration.
6874 * This attribute is used to configure the testbed device.
6875 * 1-enable, 0-disable
6876 */
6877 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
6878
6879 /* 8-bit unsigned value to configure action frame transmission
6880 * in HE trigger based PPDU transmission.
6881 * By default this setting is disabled and it is disabled in
6882 * the reset defaults of the device configuration.
6883 * This attribute is used to configure the testbed device.
6884 * 1-enable, 0-disable
6885 */
6886 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
6887
6888 /* Nested attribute to indicate HE operating mode control field
6889 * transmission. It contains operating mode control field Nss,
6890 * channel bandwidth, Tx Nsts and UL MU disable attributes.
6891 * These nested attributes are used to send HE operating mode control
6892 * with configured values.
6893 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
6894 * This attribute is used to configure the testbed device.
6895 */
6896 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
6897
6898 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
6899 * support for the reception of a frame that carries an HE variant
6900 * HT Control field.
6901 * This attribute is used to configure the testbed device.
6902 * 1-enable, 0-disable
6903 */
6904 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
6905
Hai Shalom021b0b52019-04-10 11:17:58 -07006906 /* 8-bit unsigned value to configure VHT support in 2.4G band.
6907 * This attribute is used to configure the testbed device.
6908 * 1-enable, 0-disable
6909 */
6910 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
6911
6912 /* 8-bit unsigned value to configure HE testbed defaults.
6913 * This attribute is used to configure the testbed device.
6914 * 1-set the device HE capabilities to testbed defaults.
6915 * 0-reset the device HE capabilities to supported config.
6916 */
6917 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
6918
6919 /* 8-bit unsigned value to configure TWT request support.
6920 * This attribute is used to configure the testbed device.
6921 * 1-enable, 0-disable.
6922 */
6923 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
6924
Roshan Pius3a1667e2018-07-03 15:17:14 -07006925 /* keep last */
6926 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
6927 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
6928 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
6929};
6930
6931/**
6932 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
6933 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
6934 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
6935 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
6936 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
6937 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
6938 * statistics of an unassociated station by specifying the MAC address in
6939 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
6940 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
6941 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
6942 * the statistics of all unassociated stations by specifying the Broadcast MAC
6943 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
6944 * above procedure. In the response, driver shall specify statistics
6945 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
6946 */
6947enum qca_wlan_vendor_attr_bss_filter {
6948 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
6949 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
6950 /* Other BSS filter type, unsigned 8 bit value. One of the values
6951 * in enum qca_wlan_vendor_bss_filter_type.
6952 */
6953 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
6954 /* Other BSS filter action, unsigned 8 bit value. One of the values
6955 * in enum qca_wlan_vendor_bss_filter_action.
6956 */
6957 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
6958 /* Array of nested attributes where each entry is the statistics
6959 * information of the specified station that belong to another BSS.
6960 * Attributes for each entry are taken from enum
6961 * qca_wlan_vendor_bss_filter_sta_stats.
6962 * Other BSS station configured in
6963 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
6964 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
6965 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
6966 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
6967 */
6968 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
6969
6970 /* keep last */
6971 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
6972 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
6973 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
6974};
6975
6976/**
6977 * enum qca_wlan_vendor_bss_filter_type - Type of
6978 * filter used in other BSS filter operations. Used by the vendor command
6979 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
6980 *
6981 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
6982 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
6983 */
6984enum qca_wlan_vendor_bss_filter_type {
6985 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
6986 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
6987};
6988
6989/**
6990 * enum qca_wlan_vendor_bss_filter_action - Type of
6991 * action in other BSS filter operations. Used by the vendor command
6992 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
6993 *
6994 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
6995 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
6996 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
6997 */
6998enum qca_wlan_vendor_bss_filter_action {
6999 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
7000 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
7001 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
7002};
7003
7004/**
7005 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
7006 * the statistics of a specific unassociated station belonging to another BSS.
7007 * The statistics provides information of the unassociated station
7008 * filtered by other BSS operation - such as MAC, signal value.
7009 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
7010 *
7011 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
7012 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
7013 * of the station. Unsigned 8 bit number containing RSSI.
7014 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
7015 * driver for the last received RSSI. Unsigned 64 bit number containing
7016 * nanoseconds from the boottime.
7017 */
7018enum qca_wlan_vendor_bss_filter_sta_stats {
7019 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
7020 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
7021 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
7022 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
7023
7024 /* keep last */
7025 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
7026 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
7027 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
7028};
7029
Hai Shalomce48b4a2018-09-05 11:41:35 -07007030/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
7031 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
7032 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
7033 */
7034enum qca_wlan_nan_ext_subcmd_type {
7035 /* Subcmd of type NAN Enable Request */
7036 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
7037 /* Subcmd of type NAN Disable Request */
7038 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
7039};
7040
7041/**
7042 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
7043 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
7044 */
7045enum qca_wlan_vendor_attr_nan_params {
7046 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
7047 /* Carries NAN command for firmware component. Every vendor command
7048 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
7049 * payload containing the NAN command. NLA_BINARY attribute.
7050 */
7051 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
7052 /* Indicates the type of NAN command sent with
7053 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
7054 * describes the possible range of values. This attribute is mandatory
7055 * if the command being issued is either
7056 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
7057 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
7058 */
7059 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
7060 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
7061 * band. This attribute is mandatory when command type is
7062 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
7063 */
7064 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
7065 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
7066 * band. This attribute is optional and should be included when command
7067 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
7068 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
7069 */
7070 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
7071
7072 /* keep last */
7073 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
7074 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
7075 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
7076};
7077
Hai Shalom39ba6fc2019-01-22 12:40:38 -08007078/**
7079 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
7080 * TWT (Target Wake Time) setup request. These attributes are sent as part of
7081 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
7082 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7083 *
7084 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
7085 * Disable (flag attribute not present) - Individual TWT
7086 * Enable (flag attribute present) - Broadcast TWT.
7087 * Individual means the session is between the STA and the AP.
7088 * This session is established using a separate negotiation between
7089 * STA and AP.
7090 * Broadcast means the session is across multiple STAs and an AP. The
7091 * configuration parameters are announced in Beacon frames by the AP.
7092 *
7093 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
7094 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
7095 * specify the TWT request type
7096 *
7097 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
7098 * Enable (flag attribute present) - TWT with trigger support.
7099 * Disable (flag attribute not present) - TWT without trigger support.
7100 * Trigger means the AP will send the trigger frame to allow STA to send data.
7101 * Without trigger, the STA will wait for the MU EDCA timer before
7102 * transmitting the data.
7103 *
7104 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
7105 * 0 - Announced TWT - In this mode, STA may skip few service periods to
7106 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
7107 * NULL frame to AP.
7108 * 1 - Unannounced TWT - The STA will wakeup during every SP.
7109 *
7110 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
7111 * Flow ID is the unique identifier for each TWT session.
7112 * Currently this is not required and dialog ID will be set to zero.
7113 *
7114 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
7115 * This attribute (exp) is used along with the mantissa to derive the
7116 * wake interval using the following formula:
7117 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
7118 * Wake interval is the interval between 2 successive SP.
7119 *
7120 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
7121 * Enable (flag attribute present) - Protection required.
7122 * Disable (flag attribute not present) - Protection not required.
7123 * If protection is enabled, then the AP will use protection
7124 * mechanism using RTS/CTS to self to reserve the airtime.
7125 *
7126 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
7127 * This attribute is used as the SP offset which is the offset from
7128 * TSF after which the wake happens. The units are in microseconds. If
7129 * this attribute is not provided, then the value will be set to zero.
7130 *
7131 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
7132 * This is the duration of the service period. The units are in TU.
7133 *
7134 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
7135 * This attribute is used to configure wake interval mantissa.
7136 * The units are in TU.
7137 */
7138enum qca_wlan_vendor_attr_twt_setup {
7139 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
7140 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
7141 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
7142 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
7143 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
7144 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
7145 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
7146 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
7147 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
7148 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
7149 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
7150
7151 /* keep last */
7152 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
7153 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
7154 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
7155};
7156
7157/**
7158 * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for
7159 * TWT (Target Wake Time) resume request. These attributes are sent as part of
7160 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
7161 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7162 *
7163 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
7164 * This attribute is used as the SP offset which is the offset from
7165 * TSF after which the wake happens. The units are in microseconds.
7166 * If this attribute is not provided, then the value will be set to
7167 * zero.
7168 *
7169 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
7170 * This attribute represents the next TWT subfield size.
7171 */
7172enum qca_wlan_vendor_attr_twt_resume {
7173 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
7174 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
7175 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
7176
7177 /* keep last */
7178 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
7179 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
7180 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
7181};
7182
7183/**
7184 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
7185 * Represents the setup type being requested for TWT.
7186 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
7187 * parameters but relying on AP to fill the parameters during the negotiation.
7188 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
7189 * values which the AP may accept or AP may provide alternative parameters
7190 * which the STA may accept.
7191 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
7192 * alternate parameters than the requested ones.
7193 */
7194enum qca_wlan_vendor_twt_setup_req_type {
7195 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
7196 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
7197 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
7198};
7199
7200/**
7201 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
7202 *
7203 * Indicates the type of roam scan event sent by firmware/driver.
7204 *
7205 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
7206 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
7207 */
7208enum qca_wlan_roam_scan_event_type {
7209 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
7210 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
7211};
7212
7213/**
7214 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
7215 *
7216 * Indicates the reason for triggering roam scan by firmware/driver.
7217 *
7218 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
7219 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
7220 */
7221enum qca_wlan_roam_scan_trigger_reason {
7222 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
7223 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
7224};
7225
7226/**
7227 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
7228 * roam scan related details from driver/firmware to user space. enum values
7229 * are used for NL attributes sent with
7230 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
7231 */
7232enum qca_wlan_vendor_attr_roam_scan {
7233 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
7234 /* Encapsulates type of roam scan event being reported. enum
7235 * qca_wlan_roam_scan_event_type describes the possible range of
7236 * values. u32 attribute.
7237 */
7238 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
7239 /* Encapsulates reason for triggering roam scan. enum
7240 * qca_wlan_roam_scan_trigger_reason describes the possible range of
7241 * values. u32 attribute.
7242 */
7243 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
7244
7245 /* keep last */
7246 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
7247 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
7248 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
7249};
7250
7251/**
7252 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
7253 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
7254 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
7255 */
7256enum qca_wlan_vendor_cfr_method {
7257 /* CFR method using QOS Null frame */
7258 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
7259};
7260
7261/**
7262 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
7263 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
7264 * Channel Frequency Response capture parameters and enable periodic CFR
7265 * capture.
7266 */
7267enum qca_wlan_vendor_peer_cfr_capture_attr {
7268 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
7269 /* 6-byte MAC address of the peer.
7270 * This attribute is mandatory.
7271 */
7272 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
7273 /* Enable peer CFR Capture, flag attribute.
7274 * This attribute is mandatory to enable peer CFR capture.
7275 * If this attribute is not present, peer CFR capture is disabled.
7276 */
7277 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
7278 /* BW of measurement, attribute uses the values in enum nl80211_chan_width
7279 * Supported values: 20, 40, 80, 80+80, 160.
7280 * Note that all targets may not support all bandwidths.
7281 * u8 attribute. This attribute is mandatory if attribute
7282 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
7283 */
7284 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
7285 /* Periodicity of CFR measurement in msec.
7286 * Periodicity should be a multiple of Base timer.
7287 * Current Base timer value supported is 10 msecs (default).
7288 * 0 for one shot capture. u32 attribute.
7289 * This attribute is mandatory if attribute
7290 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
7291 */
7292 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
7293 /* Method used to capture Channel Frequency Response.
7294 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
7295 * u8 attribute. This attribute is mandatory if attribute
7296 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
7297 */
7298 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
7299 /* Enable periodic CFR capture, flag attribute.
7300 * This attribute is mandatory to enable Periodic CFR capture.
7301 * If this attribute is not present, periodic CFR capture is disabled.
7302 */
7303 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
7304
7305 /* Keep last */
7306 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
7307 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
7308 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
7309};
7310
Hai Shalom74f70d42019-02-11 14:42:39 -08007311/**
7312 * enum qca_wlan_throughput_level - Current throughput level
7313 *
7314 * Indicates the current level of throughput calculated by the driver. The
7315 * driver may choose different thresholds to decide whether the throughput level
7316 * is low or medium or high based on variety of parameters like physical link
7317 * capacity of the current connection, the number of packets being dispatched
7318 * per second, etc. The throughput level events might not be consistent with the
7319 * actual current throughput value being observed.
7320 *
7321 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
7322 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
7323 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
7324 */
7325enum qca_wlan_throughput_level {
7326 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
7327 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
7328 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
7329};
7330
7331/**
7332 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
7333 * report throughput changes from the driver to user space. enum values are used
7334 * for netlink attributes sent with
7335 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
7336 */
7337enum qca_wlan_vendor_attr_throughput_change {
7338 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
7339 /* Indicates the direction of throughput in which the change is being
7340 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
7341 */
7342 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
7343 /* Indicates the newly observed throughput level. enum
7344 * qca_wlan_throughput_level describes the possible range of values.
7345 * u8 attribute.
7346 */
7347 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
7348 /* Indicates the driver's guidance on the new value to be set to
7349 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
7350 * driver may optionally include this attribute.
7351 */
7352 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
7353 /* Indicates the driver's guidance on the new value to be set to
7354 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
7355 * values are from -31 to 31. The driver may optionally include this
7356 * attribute.
7357 */
7358 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
7359 /* Indicates the driver's guidance on the new value to be set to
7360 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
7361 * optionally include this attribute.
7362 */
7363 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
7364
7365 /* keep last */
7366 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
7367 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
7368 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
7369};
7370
7371/**
7372 * enum qca_coex_config_profiles - This enum defines different types of
7373 * traffic streams that can be prioritized one over the other during coex
7374 * scenarios.
7375 * The types defined in this enum are categorized in the below manner.
7376 * 0 - 31 values corresponds to WLAN
7377 * 32 - 63 values corresponds to BT
7378 * 64 - 95 values corresponds to Zigbee
7379 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
7380 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
7381 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
7382 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
7383 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
7384 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
7385 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
7386 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
7387 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
7388 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
7389 * @QCA_BT_A2DP: Prioritize BT A2DP
7390 * @QCA_BT_BLE: Prioritize BT BLE
7391 * @QCA_BT_SCO: Prioritize BT SCO
7392 * @QCA_ZB_LOW: Prioritize Zigbee Low
7393 * @QCA_ZB_HIGH: Prioritize Zigbee High
7394 */
7395enum qca_coex_config_profiles {
7396 /* 0 - 31 corresponds to WLAN */
7397 QCA_WIFI_STA_DISCOVERY = 0,
7398 QCA_WIFI_STA_CONNECTION = 1,
7399 QCA_WIFI_STA_CLASS_3_MGMT = 2,
7400 QCA_WIFI_STA_DATA = 3,
7401 QCA_WIFI_STA_ALL = 4,
7402 QCA_WIFI_SAP_DISCOVERY = 5,
7403 QCA_WIFI_SAP_CONNECTION = 6,
7404 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
7405 QCA_WIFI_SAP_DATA = 8,
7406 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -07007407 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -08007408 /* 32 - 63 corresponds to BT */
7409 QCA_BT_A2DP = 32,
7410 QCA_BT_BLE = 33,
7411 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -07007412 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -08007413 /* 64 - 95 corresponds to Zigbee */
7414 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -07007415 QCA_ZB_HIGH = 65,
7416 QCA_ZB_CASE_MAX = 95,
7417 /* 0xff is default value if the u8 profile value is not set. */
7418 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
7419};
7420
7421/**
7422 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
7423 * This enum defines the valid set of values of coex configuration types. These
7424 * values may used by attribute
7425 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
7426 *
7427 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
7428 * weights to default values.
7429 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
7430 * weights with configurability value.
7431 */
7432enum qca_vendor_attr_coex_config_types {
7433 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
7434 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
7435 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -08007436};
7437
7438/**
7439 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
7440 *
7441 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
7442 * length array of 8-bit values from enum qca_coex_config_profiles.
7443 * FW will prioritize the profiles in the order given in the array encapsulated
7444 * in this attribute.
7445 * For example:
7446 * -----------------------------------------------------------------------
7447 * | 1 | 34 | 32 | 65 |
7448 * -----------------------------------------------------------------------
7449 * If the attribute contains the values defined in above array then it means
7450 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
7451 * 2) BT_SCO has priority over BT_A2DP.
7452 * 3) BT_A2DP has priority over ZIGBEE HIGH.
7453 * Profiles which are not listed in this array shall not be preferred over the
7454 * profiles which are listed in the array as a part of this attribute.
7455 */
7456enum qca_vendor_attr_coex_config {
7457 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
7458 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
7459
7460 /* Keep last */
7461 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
7462 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
7463 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
7464};
7465
7466/**
Hai Shalom021b0b52019-04-10 11:17:58 -07007467 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
7468 * attributes
7469 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
7470 *
7471 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
7472 * Indicate config type.
7473 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
7474 *
7475 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
7476 * Indicate the Priority 1 profiles.
7477 * The profiles are 8-bit values from enum qca_coex_config_profiles.
7478 * In same priority level, maximum to 4 profiles can be set here.
7479 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
7480 * Indicate the Priority 2 profiles.
7481 * The profiles are 8-bit values from enum qca_coex_config_profiles.
7482 * In same priority level, maximum to 4 profiles can be set here.
7483 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
7484 * Indicate the Priority 3 profiles.
7485 * The profiles are 8-bit values from enum qca_coex_config_profiles.
7486 * In same priority level, maximum to 4 profiles can be set here.
7487 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
7488 * Indicate the Priority 4 profiles.
7489 * The profiles are 8-bit values from enum qca_coex_config_profiles.
7490 * In same priority level, maximum to 4 profiles can be set here.
7491 * NOTE:
7492 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
7493 * arrangement:
7494 * 1: In the same u32 attribute (priority x), the profiles enum values own
7495 * same priority level.
7496 * 2: 0xff is default value if the u8 profile value is not set.
7497 * 3: max to 4 rules/profiles in same priority level.
7498 * 4: max to 4 priority level (priority 1 - priority 4)
7499 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
7500 * hybrid rules not support.
7501 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
7502 * remain blank to reset all parameters.
7503 * For example:
7504 *
7505 * If the attributes as follow:
7506 * priority 1:
7507 * ------------------------------------
7508 * | 0xff | 0 | 1 | 2 |
7509 * ------------------------------------
7510 * priority 2:
7511 * -------------------------------------
7512 * | 0xff | 0xff | 0xff | 32 |
7513 * -------------------------------------
7514 * priority 3:
7515 * -------------------------------------
7516 * | 0xff | 0xff | 0xff | 65 |
7517 * -------------------------------------
7518 * then it means:
7519 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
7520 * owns same priority level.
7521 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
7522 * has priority over BT_A2DP and ZB_HIGH.
7523 * 3: BT_A2DP has priority over ZB_HIGH.
7524 */
7525
7526enum qca_vendor_attr_coex_config_three_way {
7527 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
7528 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
7529 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
7530 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
7531 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
7532 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
7533
7534 /* Keep last */
7535 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
7536 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
7537 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
7538};
7539
7540/**
Hai Shalom74f70d42019-02-11 14:42:39 -08007541 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
7542 *
7543 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
7544 * (STA/AP) for the connected link.
7545 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
7546 * &struct nl80211_sta_flag_update for the respective connected link. MAC
7547 * address of the peer represented by
7548 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
7549 */
7550enum qca_wlan_vendor_attr_link_properties {
7551 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
7552 /* 1 - 3 are reserved */
7553 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
7554 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
7555
7556 /* Keep last */
7557 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
7558 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
7559 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
7560};
7561
Hai Shalom021b0b52019-04-10 11:17:58 -07007562/**
7563 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
7564 * This enum defines the valid set of values of peer stats cache types. These
7565 * values are used by attribute
7566 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
7567 *
7568 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
7569 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
7570 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
7571 * statistics
7572 */
7573enum qca_vendor_attr_peer_stats_cache_type {
7574 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
7575
7576 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
7577 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
7578 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
7579};
7580
7581/**
7582 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
7583 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
7584 * Information in these attributes is used to flush peer rate statistics from
7585 * the driver to user application.
7586 *
7587 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
7588 * Indicate peer statistics cache type.
7589 * The statistics types are 32-bit values from
7590 * enum qca_vendor_attr_peer_stats_cache_type.
7591 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
7592 * of size 6 octets, representing the peer MAC address.
7593 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
7594 * containing buffer of statistics to send to application layer entity.
7595 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
7596 * representing a cookie for peer unique session.
7597 */
7598enum qca_wlan_vendor_attr_peer_stats_cache_params {
7599 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
7600
7601 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
7602 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
7603 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
7604 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
7605
7606 /* Keep last */
7607 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
7608 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
7609 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
7610};
7611
7612/**
7613 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
7614 * This enum defines all the possible states of Zigbee, which can be
7615 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
7616 *
7617 * @ZIGBEE_IDLE: Zigbee in idle state
7618 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
7619 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
7620 * @ZIGBEE_JOIN: Zigbee joining network
7621 * @ZIGBEE_NETWORK_UP: Zigbee network is up
7622 * @ZIGBEE_HMI: Zigbee in HMI mode
7623 */
7624enum qca_mpta_helper_attr_zigbee_state {
7625 ZIGBEE_IDLE = 0,
7626 ZIGBEE_FORM_NETWORK = 1,
7627 ZIGBEE_WAIT_JOIN = 2,
7628 ZIGBEE_JOIN = 3,
7629 ZIGBEE_NETWORK_UP = 4,
7630 ZIGBEE_HMI = 5,
7631};
7632
7633/*
7634 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
7635 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
7636 */
7637enum qca_mpta_helper_vendor_attr {
7638 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
7639 /* Optional attribute used to update Zigbee state.
7640 * enum qca_mpta_helper_attr_zigbee_state.
7641 * NLA_U32 attribute.
7642 */
7643 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
7644 /* Optional attribute used to configure WLAN duration for Shape-OCS
7645 * during interrupt.
7646 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
7647 * Value range 0 ~ 300 (ms).
7648 * NLA_U32 attribute.
7649 */
7650 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
7651 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
7652 * during interrupt.
7653 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
7654 * Value range 0 ~ 300 (ms).
7655 * NLA_U32 attribute.
7656 */
7657 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
7658 /* Optional attribute used to configure WLAN duration for Shape-OCS
7659 * monitor period.
7660 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
7661 * Value range 0 ~ 300 (ms)
7662 * NLA_U32 attribute
7663 */
7664 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
7665 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
7666 * monitor period.
7667 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
7668 * Value range 0 ~ 300 (ms)
7669 * NLA_U32 attribute
7670 */
7671 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
7672 /* Optional attribute used to configure OCS interrupt duration.
7673 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
7674 * Value range 1000 ~ 20000 (ms)
7675 * NLA_U32 attribute
7676 */
7677 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
7678 /* Optional attribute used to configure OCS monitor duration.
7679 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
7680 * Value range 1000 ~ 20000 (ms)
7681 * NLA_U32 attribute
7682 */
7683 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
7684 /* Optional attribute used to notify WLAN firmware the current Zigbee
7685 * channel.
7686 * Value range 11 ~ 26
7687 * NLA_U32 attribute
7688 */
7689 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
7690 /* Optional attribute used to configure WLAN mute duration.
7691 * Value range 0 ~ 400 (ms)
7692 * NLA_U32 attribute
7693 */
7694 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
7695
7696 /* keep last */
7697 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
7698 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
7699 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
7700};
7701
Hai Shalom81f62d82019-07-22 12:10:00 -07007702/**
7703 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
7704 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
7705 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
7706 *
7707 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
7708 * to request the driver to start reporting Beacon frames.
7709 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
7710 * request the driver to stop reporting Beacon frames.
7711 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
7712 * userspace to report received Beacon frames.
7713 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
7714 * to indicate that the driver is going to pause reporting Beacon frames.
7715 */
7716enum qca_wlan_vendor_beacon_reporting_op_types {
7717 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
7718 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
7719 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
7720 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
7721};
7722
7723/**
7724 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
7725 * of reasons for which the driver is pausing reporting Beacon frames. Will be
7726 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
7727 *
7728 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
7729 * reasons.
7730 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
7731 * driver/firmware is starting a scan.
7732 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
7733 * driver/firmware disconnects from the ESS and indicates the disconnection to
7734 * userspace (non-seamless roaming case). This reason code will be used by the
7735 * driver/firmware to indicate stopping of beacon report events. Userspace will
7736 * need to start beacon reporting again (if desired) by sending vendor command
7737 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
7738 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
7739 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
7740 * completed.
7741 */
7742enum qca_wlan_vendor_beacon_reporting_pause_reasons {
7743 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
7744 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
7745 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
7746};
7747
7748/*
7749 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
7750 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
7751 */
7752enum qca_wlan_vendor_attr_beacon_reporting_params {
7753 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
7754 /* Specifies the type of operation that the vendor command/event is
7755 * intended for. Possible values for this attribute are defined in
7756 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
7757 */
7758 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
7759 /* Optionally set by userspace to request the driver to report Beacon
7760 * frames using asynchronous vendor events when the
7761 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7762 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
7763 * If this flag is not set, the driver will only update Beacon frames in
7764 * cfg80211 scan cache but not send any vendor events.
7765 */
7766 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
7767 /* Optionally used by userspace to request the driver/firmware to report
7768 * Beacon frames periodically when the
7769 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7770 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
7771 * u32 attribute, indicates the period of Beacon frames to be reported
7772 * and in the units of beacon interval.
7773 * If this attribute is missing in the command, then the default value
7774 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
7775 * Zero is an invalid value.
7776 * If a valid value is received for this attribute, the driver will
7777 * update the cfg80211 scan cache periodically as per the value received
7778 * in this attribute in addition to updating the cfg80211 scan cache
7779 * when there is significant change in Beacon frame IEs.
7780 */
7781 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
7782 /* Used by the driver to encapsulate the SSID when the
7783 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7784 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7785 * u8 array with a maximum size of 32.
7786 *
7787 * When generating beacon report from non-MBSSID Beacon frame, the SSID
7788 * will be taken from the SSID element of the received Beacon frame.
7789 *
7790 * When generating beacon report from Multiple BSSID Beacon frame and if
7791 * the BSSID of the current connected BSS matches the BSSID of the
7792 * transmitting BSS, the SSID will be taken from the SSID element of the
7793 * received Beacon frame.
7794 *
7795 * When generating beacon report from Multiple BSSID Beacon frame and if
7796 * the BSSID of the current connected BSS matches the BSSID of one of
7797 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
7798 * included in the nontransmitted BSS profile whose derived BSSID is
7799 * same as the BSSID of the current connected BSS. When there is no
7800 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
7801 * of current connected* BSS, this attribute will not be present.
7802 */
7803 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
7804 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
7805 * currently connected to when the
7806 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7807 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
7808 * fixed size of 6 bytes.
7809 *
7810 * When generating beacon report from a Multiple BSSID beacon and the
7811 * current connected BSSID matches one of the nontransmitted BSSIDs in a
7812 * Multiple BSSID set, this BSSID will be that particular nontransmitted
7813 * BSSID and not the transmitted BSSID (i.e., the transmitting address
7814 * of the Beacon frame).
7815 */
7816 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
7817 /* Used by the driver to encapsulate the frequency in MHz on which
7818 * the Beacon frame was received when the
7819 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
7820 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7821 * u32 attribute.
7822 */
7823 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
7824 /* Used by the driver to encapsulate the Beacon interval
7825 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7826 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7827 * u16 attribute. The value will be copied from the Beacon frame and the
7828 * units are TUs.
7829 */
7830 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
7831 /* Used by the driver to encapsulate the Timestamp field from the Beacon
7832 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
7833 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7834 * u64 attribute.
7835 */
7836 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
7837 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
7838 * Beacon frame is received in the driver when the
7839 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7840 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
7841 * the units of nanoseconds. This value is expected to have accuracy of
7842 * about 10 ms.
7843 */
7844 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
7845 /* Used by the driver to encapsulate the IEs of the Beacon frame from
7846 * which this event is generated when the
7847 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7848 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
7849 */
7850 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
7851 /* Used by the driver to specify the reason for the driver/firmware to
7852 * pause sending beacons to userspace when the
7853 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7854 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
7855 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
7856 * attribute.
7857 */
7858 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
7859 /* Used by the driver to specify whether the driver will automatically
7860 * resume reporting beacon events to userspace later (for example after
7861 * the ongoing off-channel activity is completed etc.) when the
7862 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7863 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
7864 */
7865 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
7866 /* Optionally set by userspace to request the driver not to resume
7867 * beacon reporting after a pause is completed, when the
7868 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7869 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
7870 * If this flag is set, the driver will not resume beacon reporting
7871 * after any pause in beacon reporting is completed. Userspace has to
7872 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
7873 * to initiate beacon reporting again. If this flag is set in the recent
7874 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
7875 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
7876 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
7877 * set by the driver. Setting this flag until and unless there is a
7878 * specific need is not recommended as there is a chance of some beacons
7879 * received after pause command and next start command being not
7880 * reported.
7881 */
7882 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
7883
7884 /* Keep last */
7885 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
7886 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
7887 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
7888};
7889
7890/**
7891 * enum qca_vendor_interop_issues_ap_type - Interop issue types
7892 * This enum defines the valid set of values of interop issue types. These
7893 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
7894 *
7895 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
7896 * when the STA's Qpower feature is enabled.
7897 */
7898enum qca_vendor_interop_issues_ap_type {
7899 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
7900 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
7901};
7902
7903/**
7904 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
7905 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
7906 *
7907 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
7908 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
7909 * 32-bit unsigned value. The values defined in enum
7910 * qca_vendor_interop_issues_ap_type are used.
7911 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
7912 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
7913 * It is present and mandatory for the command but is not used for the event
7914 * since only a single BSSID is reported in an event.
7915 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
7916 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
7917 * attribute in command case and without such encapsulation in the event case.
7918 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
7919 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
7920 */
7921enum qca_vendor_attr_interop_issues_ap {
7922 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
7923 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
7924 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
7925 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
7926 /* keep last */
7927 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
7928 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
7929 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
7930};
7931
Hai Shalomc3565922019-10-28 11:58:20 -07007932/**
7933 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
7934 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
7935 *
7936 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
7937 * a virtual device.
7938 *
7939 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
7940 * a physical device.
7941 */
7942enum qca_vendor_oem_device_type {
7943 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
7944 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
7945};
7946
7947/**
7948 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
7949 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
7950 *
7951 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: The binary blob for the vendor
7952 * command/event QCA_NL80211_VENDOR_SUBCMD_OEM_DATA are carried through this
7953 * attribute.
7954 * NLA_BINARY attribute, the max size is 1024 bytes.
7955 *
7956 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
7957 * based on this field. This optional attribute is included to specify whether
7958 * the device type is a virtual device or a physical device for the
7959 * command/event. This attribute can be omitted for a virtual device (default)
7960 * command/event.
7961 * This u8 attribute is used to carry information for the device type using
7962 * values defined by enum qca_vendor_oem_device_type.
7963 */
7964enum qca_wlan_vendor_attr_oem_data_params {
7965 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
7966 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
7967 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
7968
7969 /* keep last */
7970 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
7971 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
7972 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
7973};
7974
7975/**
7976 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
7977 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
7978 *
7979 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
7980 * Nested attribute containing multiple ranges with following attributes:
7981 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
7982 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
7983 *
7984 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
7985 * Starting center frequency in MHz.
7986 *
7987 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
7988 * Ending center frequency in MHz.
7989 */
7990enum qca_wlan_vendor_attr_avoid_frequency_ext {
7991 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
7992 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
7993 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
7994 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
7995
7996 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
7997 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
7998 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
7999};
8000
8001/*
8002 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
8003 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
8004 */
8005enum qca_wlan_vendor_attr_add_sta_node_params {
8006 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
8007 /* 6 byte MAC address of STA */
8008 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
8009 /* Authentication algorithm used by the station of size u16;
8010 * defined in enum nl80211_auth_type.
8011 */
8012 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
8013
8014 /* keep last */
8015 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
8016 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
8017 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
8018};
8019
8020/**
8021 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
8022 * This enum defines the valid set of values of BT coex chain mode.
8023 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
8024 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
8025 *
8026 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
8027 * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
8028 */
8029enum qca_btc_chain_mode {
8030 QCA_BTC_CHAIN_SHARED = 0,
8031 QCA_BTC_CHAIN_SEPARATED = 1,
8032};
8033
8034/**
8035 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
8036 * chain mode.
8037 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
8038 *
8039 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
8040 * Indicates the BT coex chain mode, are 32-bit values from
8041 * enum qca_btc_chain_mode. This attribute is mandatory.
8042 *
8043 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
8044 * If set, vdev should be restarted when BT coex chain mode is updated.
8045 * This attribute is optional.
8046 */
8047enum qca_vendor_attr_btc_chain_mode {
8048 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
8049 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
8050 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
8051
8052 /* Keep last */
8053 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
8054 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
8055 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
8056};
8057
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08008058/**
8059 * enum qca_vendor_wlan_sta_flags - Station feature flags
8060 * Bits will be set to 1 if the corresponding features are enabled.
8061 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
8062 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
8063 for the station
8064 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
8065 for the station
8066 */
8067enum qca_vendor_wlan_sta_flags {
8068 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
8069 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
8070 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
8071};
8072
8073/**
8074 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
8075 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
8076 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
8077 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
8078 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
8079 */
8080enum qca_vendor_wlan_sta_guard_interval {
8081 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
8082 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
8083 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
8084 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
8085};
8086
8087/**
8088 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
8089 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
8090 *
8091 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
8092 * Required attribute in request, 6-byte MAC address,
8093 * used in both STA and AP modes.
8094 * MAC address of the station for which information is requested (BSSID of the
8095 * AP in STA mode).
8096 *
8097 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
8098 * Optionally used in response, u32 attribute, contains a bitmap of different
8099 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
8100 *
8101 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
8102 * Optionally used in response, u32 attribute, possible values are defined in
8103 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
8104 * Guard interval used by the station.
8105 *
8106 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
8107 * Optionally used in response, u32 attribute, used in AP mode only.
8108 * Value indicates the number of data frames received from station with retry
8109 * bit set to 1 in FC.
8110 *
8111 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
8112 * Optionally used in response, u32 attribute, used in AP mode only.
8113 * Counter for number of data frames with broadcast or multicast address in
8114 * the destination address received from the station.
8115 *
8116 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
8117 * Optionally used in response, u32 attribute, used in both STA and AP modes.
8118 * Value indicates the number of data frames successfully transmitted only
8119 * after retrying the packets and for which the TX status has been updated
8120 * back to host from target.
8121 *
8122 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
8123 * Optionally used in response, u32 attribute, used in AP mode only.
8124 * Value indicates the number of data frames not transmitted successfully even
8125 * after retrying the packets for the number of times equal to the total number
8126 * of retries allowed for that packet and for which the TX status has been
8127 * updated back to host from target.
8128 *
8129 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
8130 * Optionally used in response, u32 attribute, used in AP mode only.
8131 * Counter in the target for the number of data frames successfully transmitted
8132 * to the station.
8133 *
8134 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
8135 * Optionally used in response, u32 attribute, used in AP mode only.
8136 * Value indicates the number of data frames successfully transmitted only
8137 * after retrying the packets.
8138 *
8139 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
8140 * Optionally used in response, u32 attribute, used in AP mode only.
8141 * Value indicates the number of data frames not transmitted successfully even
8142 * after retrying the packets for the number of times equal to the total number
8143 * of retries allowed for that packet.
8144 */
8145enum qca_wlan_vendor_attr_get_sta_info {
8146 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
8147 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
8148 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
8149 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
8150 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
8151 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
8152 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
8153 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
8154 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
8155 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
8156 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
8157
8158 /* keep last */
8159 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
8160 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
8161 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
8162};
8163
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08008164#endif /* QCA_VENDOR_H */