]> git.ipfire.org Git - thirdparty/hostap.git/blob - src/common/qca-vendor.h
Fix couple of QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS comments
[thirdparty/hostap.git] / src / common / qca-vendor.h
1 /*
2 * Qualcomm Atheros OUI and vendor specific assignments
3 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9 #ifndef QCA_VENDOR_H
10 #define QCA_VENDOR_H
11
12 /*
13 * This file is a registry of identifier assignments from the Qualcomm Atheros
14 * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
15 * can be assigned through normal review process for changes to the upstream
16 * hostap.git repository.
17 */
18
19 #define OUI_QCA 0x001374
20
21 /**
22 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
23 */
24 enum qca_radiotap_vendor_ids {
25 QCA_RADIOTAP_VID_WLANTEST = 0,
26 };
27
28 /**
29 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
30 *
31 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
32 *
33 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
34 *
35 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
36 * internal BSS-selection. This command uses
37 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
38 * for the current connection (i.e., changes policy set by the nl80211
39 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
40 * included to indicate which BSS to use in case roaming is disabled.
41 *
42 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
43 * ranges to avoid to reduce issues due to interference or internal
44 * co-existence information in the driver. The event data structure is
45 * defined in struct qca_avoid_freq_list.
46 *
47 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
48 * for DFS offloading.
49 *
50 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
51 * NAN Request/Response and NAN Indication messages. These messages are
52 * interpreted between the framework and the firmware component.
53 *
54 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
55 * used to configure PMK to the driver even when not connected. This can
56 * be used to request offloading of key management operations. Only used
57 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
58 *
59 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
60 * NL80211_CMD_ROAM event with optional attributes including information
61 * from offloaded key management operation. Uses
62 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
63 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
64 *
65 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
66 * invoke the ACS function in device and pass selected channels to
67 * hostapd.
68 *
69 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
70 * supported by the driver. enum qca_wlan_vendor_features defines
71 * the possible features.
72 *
73 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
74 * which supports DFS offloading, to indicate a channel availability check
75 * start.
76 *
77 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
78 * which supports DFS offloading, to indicate a channel availability check
79 * completion.
80 *
81 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
82 * which supports DFS offloading, to indicate that the channel availability
83 * check aborted, no change to the channel status.
84 *
85 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
86 * driver, which supports DFS offloading, to indicate that the
87 * Non-Occupancy Period for this channel is over, channel becomes usable.
88 *
89 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
90 * which supports DFS offloading, to indicate a radar pattern has been
91 * detected. The channel is now unusable.
92 *
93 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
94 * for IEEE 802.11 communicating outside the context of a basic service
95 * set, called OCB command. Uses the attributes defines in
96 * enum qca_wlan_vendor_attr_ocb_set_config.
97 *
98 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
99 * UTC time. Use the attributes defines in
100 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
101 *
102 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
103 * sending OCB timing advert frames. Uses the attributes defines in
104 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
105 *
106 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
107 * OCB timing advert. Uses the attributes defines in
108 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
109 *
110 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
111 * timer value. Uses the attributes defines in
112 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
113 *
114 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
115 * start the P2P Listen offload function in device and pass the listen
116 * channel, period, interval, count, device types, and vendor specific
117 * information elements to the device driver and firmware.
118 * Uses the attributes defines in
119 * enum qca_wlan_vendor_attr_p2p_listen_offload.
120 *
121 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
122 * indicate stop request/response of the P2P Listen offload function in
123 * device. As an event, it indicates either the feature stopped after it
124 * was already running or feature has actually failed to start. Uses the
125 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
126 *
127 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
128 * beaconing, this sub command provides the driver, the frequencies on the
129 * 5 GHz band to check for any radar activity. Driver selects one channel
130 * from this priority list provided through
131 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
132 * to check for radar activity on it. If no radar activity is detected
133 * during the channel availability check period, driver internally switches
134 * to the selected frequency of operation. If the frequency is zero, driver
135 * internally selects a channel. The status of this conditional switch is
136 * indicated through an event using the same sub command through
137 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
138 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
139 *
140 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
141 * attributes defined in enum qca_wlan_gpio_attr.
142 *
143 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
144 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
145 * capabilities are to be fetched and other
146 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
147 * requested capabilities.
148 *
149 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
150 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
151 * command and event.
152 *
153 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
154 * indoor location features. Capabilities are reported in
155 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
156 *
157 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
158 * (fine timing measurement) session with one or more peers.
159 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
160 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
161 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
162 * events will be reported, followed by
163 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
164 * end of session.
165 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
166 *
167 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
168 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
169 * status code indicating session was aborted.
170 *
171 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
172 * results for one peer. Results are reported in
173 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
174 *
175 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
176 * FTM session is finished, either successfully or aborted by
177 * request.
178 *
179 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
180 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
181 * to enable or disable the responder. LCI/LCR reports can be
182 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
183 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
184 * times to update the LCI/LCR reports.
185 *
186 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
187 * arrival) measurement with a single peer. Specify peer MAC address in
188 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
189 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
190 * scan results cache and use the frequency from there).
191 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
192 * Measurement result is reported in
193 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
194 *
195 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
196 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
197 *
198 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
199 * the AOA measurement result.
200 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
201 * success/failure status is reported in
202 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
203 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
204 * The antenna array(s) used in the measurement are reported in
205 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
206 *
207 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
208 * data as per the given parameters.
209 *
210 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
211 * specific chain.
212 *
213 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
214 * configuration for a DMG RF sector. Specify sector index in
215 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
216 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
217 * to return sector information for in
218 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
219 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
220 * exact time where information was captured in
221 * QCA_WLAN_VENDOR_ATTR_TSF.
222 *
223 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
224 * configuration for a DMG RF sector. Specify sector index in
225 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
226 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
227 * for one or more DMG RF modules in
228 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
229 *
230 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
231 * DMG RF sector for a station. This is the sector that the HW
232 * will use to communicate with the station. Specify the MAC address
233 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
234 * needed for unassociated station). Specify sector type to return in
235 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
236 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
237 * Also return the exact time where the information was captured
238 * in QCA_WLAN_VENDOR_ATTR_TSF.
239 *
240 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
241 * selected DMG RF sector for a station. This is the sector that
242 * the HW will use to communicate with the station.
243 * Specify the MAC address of associated station/AP/PCP in
244 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
245 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
246 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
247 * The selected sector will be locked such that it will not be
248 * modified like it normally does (for example when station
249 * moves around). To unlock the selected sector for a station
250 * pass the special value 0xFFFF in the sector index. To unlock
251 * all connected stations also pass a broadcast MAC address.
252 *
253 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
254 * in the host driver. The different TDLS configurations are defined
255 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
256 *
257 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
258 * capabilities. The response uses the attributes defined in
259 * enum qca_wlan_vendor_attr_get_he_capabilities.
260 *
261 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
262 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
263 * carries the scan cookie of the corresponding scan request. The scan
264 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
265 *
266 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
267 * Absorption Rate (SAR) power limits. A critical regulation for
268 * FCC compliance, OEMs require methods to set SAR limits on TX
269 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
270 * attributes are used with this command.
271 *
272 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
273 * host driver for offloading the implementation of Auto Channel Selection
274 * (ACS) to an external user space entity. This interface is used as the
275 * event from the host driver to the user space entity and also as the
276 * request from the user space entity to the host driver. The event from
277 * the host driver is used by the user space entity as an indication to
278 * start the ACS functionality. The attributes used by this event are
279 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
280 * User space entity uses the same interface to inform the host driver with
281 * selected channels after the ACS operation using the attributes defined
282 * by enum qca_wlan_vendor_attr_external_acs_channels.
283 *
284 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
285 * requisite information leading to a power save failure. The information
286 * carried as part of this event is represented by the
287 * enum qca_attr_chip_power_save_failure attributes.
288 *
289 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
290 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
291 *
292 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
293 * statistics are represented by the enum qca_attr_nud_stats_get
294 * attributes.
295 *
296 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
297 * the BSS transition status, whether accept or reject, for a list of
298 * candidate BSSIDs provided by the userspace. This uses the vendor
299 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
300 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
301 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
302 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
303 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
304 * the driver shall specify array of
305 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
306 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
307 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
308 *
309 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
310 * specific QCA module. The trace levels are represented by
311 * enum qca_attr_trace_level attributes.
312 *
313 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
314 * Protocol antenna limit in different modes. See enum
315 * qca_wlan_vendor_attr_brp_ant_limit_mode.
316 *
317 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
318 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
319 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
320 * identifying the operation in success case.
321 *
322 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
323 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
324 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
325 * be stopped.
326 *
327 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
328 * specific interface. This can be used to modify some of the low level
329 * scan parameters (off channel dwell time, home channel time) in the
330 * driver/firmware. These parameters are maintained within the host driver.
331 * This command is valid only when the interface is in the connected state.
332 * These scan parameters shall be reset by the driver/firmware once
333 * disconnected. The attributes used with this command are defined in
334 * enum qca_wlan_vendor_attr_active_tos.
335 *
336 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
337 * driver has detected an internal failure. This event carries the
338 * information indicating the reason that triggered this detection. The
339 * attributes for this command are defined in
340 * enum qca_wlan_vendor_attr_hang.
341 *
342 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
343 * of spectral parameters used. The spectral scan parameters are specified
344 * by enum qca_wlan_vendor_attr_spectral_scan.
345 *
346 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
347 * for spectral scan functionality. The debug stats are specified by
348 * enum qca_wlan_vendor_attr_spectral_diag_stats.
349 *
350 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
351 * scan system capabilities. The capabilities are specified
352 * by enum qca_wlan_vendor_attr_spectral_cap.
353 *
354 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
355 * status of spectral scan. The status values are specified
356 * by enum qca_wlan_vendor_attr_spectral_scan_status.
357 *
358 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
359 * peer pending packets. Specify the peer MAC address in
360 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
361 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
362 * in enum qca_wlan_vendor_attr_flush_pending.
363 *
364 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
365 * RF Operating Parameter (RROP) information. The attributes for this
366 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
367 * intended for use by external Auto Channel Selection applications.
368 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
369 * (SAR) power limits. This is a companion to the command
370 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
371 * settings currently in use. The attributes returned by this command are
372 * defined by enum qca_vendor_attr_sar_limits.
373 *
374 */
375 enum qca_nl80211_vendor_subcmds {
376 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
377 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
378 /* subcmds 2..8 not yet allocated */
379 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
380 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
381 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
382 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
383 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
384 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
385 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
386 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
387 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
388 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
389 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
390 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
391 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
392 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
393 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
394 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
395 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
396 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
397 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
398 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
399 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
400 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
401 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
402 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
403 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
404 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
405 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
406 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
407 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
408 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
409 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
410 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
411 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
412 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
413 /* 43..49 - reserved for QCA */
414 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
415 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
416 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
417 /* 53 - reserved - was used by QCA, but not in use anymore */
418 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
419 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
420 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
421 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
422 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
423 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
424 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
425 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
426 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
427 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
428 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
429 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
430 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
431 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
432 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
433 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
434 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
435 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
436 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
437 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
438 /* Wi-Fi configuration subcommands */
439 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
440 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
441 /* 76-90 - reserved for QCA */
442 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
443 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
444 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
445 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
446 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
447 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
448 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
449 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
450 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
451 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
452 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
453 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
454 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
455 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
456 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
457 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
458 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
459 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
460 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
461 /* 110..114 - reserved for QCA */
462 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
463 /* 116..117 - reserved for QCA */
464 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
465 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
466 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
467 /* 121 - reserved for QCA */
468 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
469 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
470 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
471 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
472 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
473 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
474 /* FTM/indoor location subcommands */
475 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
476 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
477 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
478 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
479 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
480 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
481 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
482 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
483 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
484 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
485 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
486 /* DMG low level RF sector operations */
487 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
488 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
489 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
490 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
491 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
492 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
493 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
494 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
495 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
496 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
497 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
498 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
499 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
500 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
501 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
502 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
503 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
504 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
505 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
506 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
507 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
508 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
509 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
510 /* Flush peer pending data */
511 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
512 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
513 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
514 };
515
516
517 enum qca_wlan_vendor_attr {
518 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
519 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
520 QCA_WLAN_VENDOR_ATTR_DFS = 1,
521 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
522 QCA_WLAN_VENDOR_ATTR_NAN = 2,
523 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
524 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
525 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
526 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
527 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
528 * by enum qca_roaming_policy. */
529 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
530 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
531 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
532 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
533 QCA_WLAN_VENDOR_ATTR_TEST = 8,
534 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
535 /* Unsigned 32-bit value. */
536 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
537 /* Unsigned 32-bit value */
538 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
539 /* Unsigned 32-bit value */
540 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
541 /* Unsigned 32-bit value from enum qca_set_band. */
542 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
543 /* Dummy (NOP) attribute for 64 bit padding */
544 QCA_WLAN_VENDOR_ATTR_PAD = 13,
545 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
546 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
547 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
548 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
549 */
550 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
551 /* Indoor location capabilities, returned by
552 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
553 * see enum qca_wlan_vendor_attr_loc_capa.
554 */
555 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
556 /* Array of nested attributes containing information about each peer
557 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
558 * for supported attributes for each peer.
559 */
560 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
561 /* Array of nested attributes containing measurement results for
562 * one or more peers, reported by the
563 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
564 * See enum qca_wlan_vendor_attr_peer_result for list of supported
565 * attributes.
566 */
567 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
568 /* Flag attribute for enabling or disabling responder functionality. */
569 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
570 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
571 * command to specify the LCI report that will be sent by
572 * the responder during a measurement exchange. The format is
573 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
574 */
575 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
576 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
577 * command to specify the location civic report that will
578 * be sent by the responder during a measurement exchange.
579 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
580 */
581 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
582 /* Session/measurement completion status code,
583 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
584 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
585 * see enum qca_vendor_attr_loc_session_status.
586 */
587 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
588 /* Initial dialog token used by responder (0 if not specified),
589 * unsigned 8 bit value.
590 */
591 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
592 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
593 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
594 * AOA measurements are needed as part of an FTM session.
595 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
596 * enum qca_wlan_vendor_attr_aoa_type.
597 */
598 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
599 /* A bit mask (unsigned 32 bit value) of antenna arrays used
600 * by indoor location measurements. Refers to the antenna
601 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
602 */
603 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
604 /* AOA measurement data. Its contents depends on the AOA measurement
605 * type and antenna array mask:
606 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
607 * phase of the strongest CIR path for each antenna in the measured
608 * array(s).
609 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
610 * values, phase and amplitude of the strongest CIR path for each
611 * antenna in the measured array(s).
612 */
613 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
614 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
615 * to specify the chain number (unsigned 32 bit value) to inquire
616 * the corresponding antenna RSSI value */
617 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
618 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
619 * to report the specific antenna RSSI value (unsigned 32 bit value) */
620 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
621 /* Frequency in MHz, various uses. Unsigned 32 bit value */
622 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
623 /* TSF timer value, unsigned 64 bit value.
624 * May be returned by various commands.
625 */
626 QCA_WLAN_VENDOR_ATTR_TSF = 29,
627 /* DMG RF sector index, unsigned 16 bit number. Valid values are
628 * 0..127 for sector indices or 65535 as special value used to
629 * unlock sector selection in
630 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
631 */
632 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
633 /* DMG RF sector type, unsigned 8 bit value. One of the values
634 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
635 */
636 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
637 /* Bitmask of DMG RF modules for which information is requested. Each
638 * bit corresponds to an RF module with the same index as the bit
639 * number. Unsigned 32 bit number but only low 8 bits can be set since
640 * all DMG chips currently have up to 8 RF modules.
641 */
642 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
643 /* Array of nested attributes where each entry is DMG RF sector
644 * configuration for a single RF module.
645 * Attributes for each entry are taken from enum
646 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
647 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
648 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
649 */
650 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
651 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
652 * to report frame aggregation statistics to userspace.
653 */
654 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
655 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
656 /* Unsigned 8-bit value representing MBO transition reason code as
657 * provided by the AP used by subcommand
658 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
659 * specified by the userspace in the request to the driver.
660 */
661 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
662 /* Array of nested attributes, BSSID and status code, used by subcommand
663 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
664 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
665 * The userspace space specifies the list/array of candidate BSSIDs in
666 * the order of preference in the request. The driver specifies the
667 * status code, for each BSSID in the list, in the response. The
668 * acceptable candidates are listed in the order preferred by the
669 * driver.
670 */
671 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
672 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
673 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
674 */
675 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
676 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
677 * to define the number of antennas to use for BRP.
678 * different purpose in each ANT_LIMIT_MODE:
679 * DISABLE - ignored
680 * EFFECTIVE - upper limit to number of antennas to be used
681 * FORCE - exact number of antennas to be used
682 * unsigned 8 bit value
683 */
684 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
685 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
686 * to report the corresponding antenna index to the chain RSSI value */
687 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
688
689 /* keep last */
690 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
691 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
692 };
693
694
695 enum qca_roaming_policy {
696 QCA_ROAMING_NOT_ALLOWED,
697 QCA_ROAMING_ALLOWED_WITHIN_ESS,
698 };
699
700 enum qca_wlan_vendor_attr_roam_auth {
701 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
702 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
703 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
704 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
705 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
706 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
707 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
708 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
709 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
710 /* Indicates the status of re-association requested by user space for
711 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
712 * Type u16.
713 * Represents the status code from AP. Use
714 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
715 * real status code for failures.
716 */
717 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
718 /* This attribute indicates that the old association was maintained when
719 * a re-association is requested by user space and that re-association
720 * attempt fails (i.e., cannot connect to the requested BSS, but can
721 * remain associated with the BSS with which the association was in
722 * place when being requested to roam). Used along with
723 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
724 * re-association status. Type flag.
725 * This attribute is applicable only for re-association failure cases.
726 */
727 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
728 /* This attribute specifies the PMK if one was newly generated during
729 * FILS roaming. This is added to the PMKSA cache and is used in
730 * subsequent connections with PMKSA caching.
731 */
732 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
733 /* This attribute specifies the PMKID used/generated for the current
734 * FILS roam. This is used in subsequent connections with PMKSA caching.
735 */
736 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
737 /* A 16-bit unsigned value specifying the next sequence number to use
738 * in ERP message in the currently associated realm. This is used in
739 * doing subsequent ERP based connections in the same realm.
740 */
741 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
742 /* keep last */
743 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
744 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
745 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
746 };
747
748 enum qca_wlan_vendor_attr_p2p_listen_offload {
749 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
750 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
751 * of the social channels.
752 */
753 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
754 /* A 32-bit unsigned value; the P2P listen offload period (ms).
755 */
756 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
757 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
758 */
759 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
760 /* A 32-bit unsigned value; number of interval times the firmware needs
761 * to run the offloaded P2P listen operation before it stops.
762 */
763 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
764 /* An array of arbitrary binary data with one or more 8-byte values.
765 * The device types include both primary and secondary device types.
766 */
767 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
768 /* An array of unsigned 8-bit characters; vendor information elements.
769 */
770 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
771 /* A 32-bit unsigned value; a control flag to indicate whether listen
772 * results need to be flushed to wpa_supplicant.
773 */
774 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
775 /* A 8-bit unsigned value; reason code for P2P listen offload stop
776 * event.
777 */
778 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
779 /* keep last */
780 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
781 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
782 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
783 };
784
785 enum qca_wlan_vendor_attr_acs_offload {
786 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
787 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
788 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
789 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
790 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
791 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
792 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
793 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
794 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
795 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
796 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
797 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
798 /* keep last */
799 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
800 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
801 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
802 };
803
804 enum qca_wlan_vendor_acs_hw_mode {
805 QCA_ACS_MODE_IEEE80211B,
806 QCA_ACS_MODE_IEEE80211G,
807 QCA_ACS_MODE_IEEE80211A,
808 QCA_ACS_MODE_IEEE80211AD,
809 QCA_ACS_MODE_IEEE80211ANY,
810 };
811
812 /**
813 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
814 *
815 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
816 * management offload, a mechanism where the station's firmware
817 * does the exchange with the AP to establish the temporal keys
818 * after roaming, rather than having the user space wpa_supplicant do it.
819 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
820 * band selection based on channel selection results.
821 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
822 * simultaneous off-channel operations.
823 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
824 * Listen offload; a mechanism where the station's firmware takes care of
825 * responding to incoming Probe Request frames received from other P2P
826 * Devices whilst in Listen state, rather than having the user space
827 * wpa_supplicant do it. Information from received P2P requests are
828 * forwarded from firmware to host whenever the host processor wakes up.
829 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
830 * specific features.
831 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
832 * features.
833 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
834 * specific features only. If a Device sets this bit but not the
835 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
836 * this Device may not support all OCE AP functionalities but can support
837 * only OCE STA-CFON functionalities.
838 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
839 */
840 enum qca_wlan_vendor_features {
841 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
842 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
843 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
844 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
845 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
846 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
847 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
848 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
849 };
850
851 /**
852 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
853 *
854 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
855 * the offloaded data.
856 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
857 * data.
858 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
859 * indication.
860 */
861 enum qca_wlan_vendor_attr_data_offload_ind {
862 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
863 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
864 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
865 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
866
867 /* keep last */
868 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
869 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
870 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
871 };
872
873 /**
874 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
875 * OCB config
876 *
877 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
878 * configuration
879 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
880 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
881 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
882 * scheduled
883 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
884 * information
885 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
886 * active state configuration
887 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
888 * OCB_CONFIG_FLAG_80211_FRAME_MODE
889 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
890 * use in the case that a packet is sent without a TX control header
891 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
892 * last TA received that the local time set by TA is synchronous to other
893 * communicating OCB STAs.
894 */
895 enum qca_wlan_vendor_attr_ocb_set_config {
896 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
897 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
898 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
899 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
900 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
901 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
902 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
903 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
904 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
905 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
906 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
907 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
908 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
909 };
910
911 /**
912 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
913 * UTC time
914 *
915 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
916 * 10 bytes
917 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
918 * 5 bytes
919 */
920 enum qca_wlan_vendor_attr_ocb_set_utc_time {
921 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
922 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
923 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
924 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
925 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
926 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
927 };
928
929 /**
930 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
931 * to start sending timing advert frames
932 *
933 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
934 * on which to send the frames
935 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
936 * the frame is sent in 5 seconds
937 */
938 enum qca_wlan_vendor_attr_ocb_start_timing_advert {
939 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
940 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
941 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
942 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
943 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
944 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
945 };
946
947 /**
948 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
949 * to stop timing advert
950 *
951 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
952 * frequency on which to stop the timing advert
953 */
954 enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
955 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
956 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
957 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
958 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
959 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
960 };
961
962 /**
963 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
964 * get TSF timer value
965 *
966 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
967 * timer
968 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
969 */
970 enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
971 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
972 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
973 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
974 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
975 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
976 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
977 };
978
979 enum qca_vendor_attr_get_preferred_freq_list {
980 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
981 /* A 32-unsigned value; the interface type/mode for which the preferred
982 * frequency list is requested (see enum qca_iface_type for possible
983 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
984 * kernel and in the kernel response back to user-space.
985 */
986 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
987 /* An array of 32-unsigned values; values are frequency (MHz); sent
988 * from kernel space to user space.
989 */
990 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
991 /* keep last */
992 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
993 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
994 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
995 };
996
997 enum qca_vendor_attr_probable_oper_channel {
998 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
999 /* 32-bit unsigned value; indicates the connection/iface type likely to
1000 * come on this channel (see enum qca_iface_type).
1001 */
1002 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1003 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1004 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1005 /* keep last */
1006 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1007 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1008 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1009 };
1010
1011 enum qca_iface_type {
1012 QCA_IFACE_TYPE_STA,
1013 QCA_IFACE_TYPE_AP,
1014 QCA_IFACE_TYPE_P2P_CLIENT,
1015 QCA_IFACE_TYPE_P2P_GO,
1016 QCA_IFACE_TYPE_IBSS,
1017 QCA_IFACE_TYPE_TDLS,
1018 };
1019
1020 enum qca_set_band {
1021 QCA_SETBAND_AUTO,
1022 QCA_SETBAND_5G,
1023 QCA_SETBAND_2G,
1024 };
1025
1026 /**
1027 * enum qca_access_policy - Access control policy
1028 *
1029 * Access control policy is applied on the configured IE
1030 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1031 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1032 *
1033 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1034 * the specific configuration (IE) set, i.e., allow all the
1035 * connections which do not match the configuration.
1036 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1037 * the specific configuration (IE) set, i.e., deny all the
1038 * connections which do not match the configuration.
1039 */
1040 enum qca_access_policy {
1041 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1042 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1043 };
1044
1045 /**
1046 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
1047 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
1048 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
1049 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
1050 * SOC timer value at TSF capture
1051 */
1052 enum qca_vendor_attr_tsf_cmd {
1053 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1054 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1055 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1056 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
1057 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1058 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1059 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1060 };
1061
1062 /**
1063 * enum qca_tsf_operation: TSF driver commands
1064 * @QCA_TSF_CAPTURE: Initiate TSF Capture
1065 * @QCA_TSF_GET: Get TSF capture value
1066 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
1067 */
1068 enum qca_tsf_cmd {
1069 QCA_TSF_CAPTURE,
1070 QCA_TSF_GET,
1071 QCA_TSF_SYNC_GET,
1072 };
1073
1074 /**
1075 * enum qca_vendor_attr_wisa_cmd
1076 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1077 * WISA setup vendor commands
1078 */
1079 enum qca_vendor_attr_wisa_cmd {
1080 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
1081 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
1082 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
1083 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
1084 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
1085 };
1086
1087 /* IEEE 802.11 Vendor Specific elements */
1088
1089 /**
1090 * enum qca_vendor_element_id - QCA Vendor Specific element types
1091 *
1092 * These values are used to identify QCA Vendor Specific elements. The
1093 * payload of the element starts with the three octet OUI (OUI_QCA) and
1094 * is followed by a single octet type which is defined by this enum.
1095 *
1096 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1097 * This element can be used to specify preference order for supported
1098 * channels. The channels in this list are in preference order (the first
1099 * one has the highest preference) and are described as a pair of
1100 * (global) Operating Class and Channel Number (each one octet) fields.
1101 *
1102 * This extends the standard P2P functionality by providing option to have
1103 * more than one preferred operating channel. When this element is present,
1104 * it replaces the preference indicated in the Operating Channel attribute.
1105 * For supporting other implementations, the Operating Channel attribute is
1106 * expected to be used with the highest preference channel. Similarly, all
1107 * the channels included in this Preferred channel list element are
1108 * expected to be included in the Channel List attribute.
1109 *
1110 * This vendor element may be included in GO Negotiation Request, P2P
1111 * Invitation Request, and Provision Discovery Request frames.
1112 *
1113 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1114 * This element can be used for pre-standard publication testing of HE
1115 * before P802.11ax draft assigns the element ID. The payload of this
1116 * vendor specific element is defined by the latest P802.11ax draft.
1117 * Please note that the draft is still work in progress and this element
1118 * payload is subject to change.
1119 *
1120 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1121 * This element can be used for pre-standard publication testing of HE
1122 * before P802.11ax draft assigns the element ID. The payload of this
1123 * vendor specific element is defined by the latest P802.11ax draft.
1124 * Please note that the draft is still work in progress and this element
1125 * payload is subject to change.
1126 *
1127 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1128 * element).
1129 * This element can be used for pre-standard publication testing of HE
1130 * before P802.11ax draft assigns the element ID extension. The payload of
1131 * this vendor specific element is defined by the latest P802.11ax draft
1132 * (not including the Element ID Extension field). Please note that the
1133 * draft is still work in progress and this element payload is subject to
1134 * change.
1135 *
1136 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1137 * This element can be used for pre-standard publication testing of HE
1138 * before P802.11ax draft assigns the element ID extension. The payload of
1139 * this vendor specific element is defined by the latest P802.11ax draft
1140 * (not including the Element ID Extension field). Please note that the
1141 * draft is still work in progress and this element payload is subject to
1142 * change.
1143 *
1144 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1145 * This element can be used for pre-standard publication testing of HE
1146 * before P802.11ax draft assigns the element ID extension. The payload of
1147 * this vendor specific element is defined by the latest P802.11ax draft
1148 * (not including the Element ID Extension field). Please note that the
1149 * draft is still work in progress and this element payload is subject to
1150 * change.
1151 */
1152 enum qca_vendor_element_id {
1153 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
1154 QCA_VENDOR_ELEM_HE_CAPAB = 1,
1155 QCA_VENDOR_ELEM_HE_OPER = 2,
1156 QCA_VENDOR_ELEM_RAPS = 3,
1157 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
1158 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
1159 };
1160
1161 /**
1162 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1163 *
1164 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1165 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1166 * with frequencies to be scanned (in MHz)
1167 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1168 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1169 * rates to be included
1170 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
1171 * at non CCK rate in 2GHz band
1172 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1173 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
1174 * driver for the specific scan request
1175 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
1176 * request decoded as in enum scan_status
1177 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
1178 * scan flag is set
1179 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
1180 * randomisation
1181 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1182 * specific BSSID to scan for.
1183 */
1184 enum qca_wlan_vendor_attr_scan {
1185 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
1186 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
1187 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
1188 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
1189 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
1190 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
1191 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
1192 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
1193 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
1194 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
1195 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
1196 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
1197 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
1198 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
1199 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
1200 };
1201
1202 /**
1203 * enum scan_status - Specifies the valid values the vendor scan attribute
1204 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
1205 *
1206 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
1207 * new scan results
1208 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1209 */
1210 enum scan_status {
1211 VENDOR_SCAN_STATUS_NEW_RESULTS,
1212 VENDOR_SCAN_STATUS_ABORTED,
1213 VENDOR_SCAN_STATUS_MAX,
1214 };
1215
1216 /**
1217 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1218 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1219 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1220 */
1221 enum qca_vendor_attr_ota_test {
1222 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
1223 /* 8-bit unsigned value to indicate if OTA test is enabled */
1224 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
1225 /* keep last */
1226 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
1227 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
1228 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
1229 };
1230
1231 /**
1232 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1233 *
1234 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1235 */
1236 enum qca_vendor_attr_txpower_scale {
1237 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
1238 /* 8-bit unsigned value to indicate the scaling of tx power */
1239 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
1240 /* keep last */
1241 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
1242 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
1243 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
1244 };
1245
1246 /**
1247 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1248 *
1249 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1250 */
1251 enum qca_vendor_attr_txpower_decr_db {
1252 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
1253 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
1254 * a virtual interface. */
1255 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
1256 /* keep last */
1257 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
1258 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
1259 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
1260 };
1261
1262 /* Attributes for data used by
1263 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1264 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
1265 */
1266 enum qca_wlan_vendor_attr_config {
1267 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
1268 /* Unsigned 32-bit value to set the DTIM period.
1269 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1270 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1271 * DTIM beacons.
1272 */
1273 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
1274 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1275 * used to calculate statistics like average the TSF offset or average
1276 * number of frame leaked.
1277 * For instance, upon Beacon frame reception:
1278 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1279 * For instance, when evaluating leaky APs:
1280 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1281 */
1282 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
1283 /* Unsigned 32-bit value to configure guard time, i.e., when
1284 * implementing IEEE power management based on frame control PM bit, how
1285 * long the driver waits before shutting down the radio and after
1286 * receiving an ACK frame for a Data frame with PM bit set.
1287 */
1288 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
1289 /* Unsigned 32-bit value to change the FTM capability dynamically */
1290 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
1291 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
1292 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
1293 /* Unsigned 32-bit value to configure the number of continuous
1294 * Beacon Miss which shall be used by the firmware to penalize
1295 * the RSSI.
1296 */
1297 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
1298 /* Unsigned 8-bit value to configure the channel avoidance indication
1299 * behavior. Firmware to send only one indication and ignore duplicate
1300 * indications when set to avoid multiple Apps wakeups.
1301 */
1302 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
1303 /* 8-bit unsigned value to configure the maximum TX MPDU for
1304 * aggregation. */
1305 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
1306 /* 8-bit unsigned value to configure the maximum RX MPDU for
1307 * aggregation. */
1308 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
1309 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
1310 * retry threshold (0 disable, 31 max). */
1311 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
1312 /* 8-bit unsigned value to configure the aggregrate sw
1313 * retry threshold (0 disable, 31 max). */
1314 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
1315 /* 8-bit unsigned value to configure the MGMT frame
1316 * retry threshold (0 disable, 31 max). */
1317 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
1318 /* 8-bit unsigned value to configure the CTRL frame
1319 * retry threshold (0 disable, 31 max). */
1320 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
1321 /* 8-bit unsigned value to configure the propagation delay for
1322 * 2G/5G band (0~63, units in us) */
1323 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
1324 /* Unsigned 32-bit value to configure the number of unicast TX fail
1325 * packet count. The peer is disconnected once this threshold is
1326 * reached. */
1327 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
1328 /* Attribute used to set scan default IEs to the driver.
1329 *
1330 * These IEs can be used by scan operations that will be initiated by
1331 * the driver/firmware.
1332 *
1333 * For further scan requests coming to the driver, these IEs should be
1334 * merged with the IEs received along with scan request coming to the
1335 * driver. If a particular IE is present in the scan default IEs but not
1336 * present in the scan request, then that IE should be added to the IEs
1337 * sent in the Probe Request frames for that scan request. */
1338 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
1339 /* Unsigned 32-bit attribute for generic commands */
1340 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
1341 /* Unsigned 32-bit value attribute for generic commands */
1342 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
1343 /* Unsigned 32-bit data attribute for generic command response */
1344 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
1345 /* Unsigned 32-bit length attribute for
1346 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
1347 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
1348 /* Unsigned 32-bit flags attribute for
1349 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
1350 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
1351 /* Unsigned 32-bit, defining the access policy.
1352 * See enum qca_access_policy. Used with
1353 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */
1354 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
1355 /* Sets the list of full set of IEs for which a specific access policy
1356 * has to be applied. Used along with
1357 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
1358 * Zero length payload can be used to clear this access constraint. */
1359 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
1360 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
1361 * corresponding configurations are applied. If the interface index is
1362 * not specified, the configurations are attributed to the respective
1363 * wiphy. */
1364 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
1365 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
1366 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
1367 /* 8-bit unsigned value to configure the driver and below layers to
1368 * ignore the assoc disallowed set by APs while connecting
1369 * 1-Ignore, 0-Don't ignore */
1370 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
1371 /* 32-bit unsigned value to trigger antenna diversity features:
1372 * 1-Enable, 0-Disable */
1373 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
1374 /* 32-bit unsigned value to configure specific chain antenna */
1375 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
1376 /* 32-bit unsigned value to trigger cycle selftest
1377 * 1-Enable, 0-Disable */
1378 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
1379 /* 32-bit unsigned to configure the cycle time of selftest
1380 * the unit is micro-second */
1381 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
1382 /* 32-bit unsigned value to set reorder timeout for AC_VO */
1383 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
1384 /* 32-bit unsigned value to set reorder timeout for AC_VI */
1385 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
1386 /* 32-bit unsigned value to set reorder timeout for AC_BE */
1387 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
1388 /* 32-bit unsigned value to set reorder timeout for AC_BK */
1389 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
1390 /* 6-byte MAC address to point out the specific peer */
1391 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
1392 /* 32-bit unsigned value to set window size for specific peer */
1393 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
1394 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
1395 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
1396 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
1397 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
1398 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
1399 * station device while in disconnect state. The attribute use the
1400 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
1401 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
1402 * 10 MHz channel width, the station will not connect to a BSS using 20
1403 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
1404 * clear this constraint. */
1405 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
1406 /* 32-bit unsigned value to configure the propagation absolute delay
1407 * for 2G/5G band (units in us) */
1408 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
1409 /* 32-bit unsigned value to set probe period */
1410 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
1411 /* 32-bit unsigned value to set stay period */
1412 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
1413 /* 32-bit unsigned value to set snr diff */
1414 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
1415 /* 32-bit unsigned value to set probe dwell time */
1416 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
1417 /* 32-bit unsigned value to set mgmt snr weight */
1418 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
1419 /* 32-bit unsigned value to set data snr weight */
1420 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
1421 /* 32-bit unsigned value to set ack snr weight */
1422 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
1423 /* 32-bit unsigned value to configure the listen interval.
1424 * This is in units of beacon intervals. This configuration alters
1425 * the negotiated listen interval with the AP during the connection.
1426 * It is highly recommended to configure a value less than or equal to
1427 * the one negotiated during the association. Configuring any greater
1428 * value can have adverse effects (frame loss, AP disassociating STA,
1429 * etc.).
1430 */
1431 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
1432 /*
1433 * 8 bit unsigned value that is set on an AP/GO virtual interface to
1434 * disable operations that would cause the AP/GO to leave its operating
1435 * channel.
1436 *
1437 * This will restrict the scans to the AP/GO operating channel and the
1438 * channels of the other band, if DBS is supported.A STA/CLI interface
1439 * brought up after this setting is enabled, will be restricted to
1440 * connecting to devices only on the AP/GO interface's operating channel
1441 * or on the other band in DBS case. P2P supported channel list is
1442 * modified, to only include AP interface's operating-channel and the
1443 * channels of the other band if DBS is supported.
1444 *
1445 * These restrictions are only applicable as long as the AP/GO interface
1446 * is alive. If the AP/GO interface is brought down then this
1447 * setting/restriction is forgotten.
1448 *
1449 * If this variable is set on an AP/GO interface while a multi-channel
1450 * concurrent session is active, it has no effect on the operation of
1451 * the current interfaces, other than restricting the scan to the AP/GO
1452 * operating channel and the other band channels if DBS is supported.
1453 * However, if the STA is brought down and restarted then the new STA
1454 * connection will either be formed on the AP/GO channel or on the
1455 * other band in a DBS case. This is because of the scan being
1456 * restricted on these channels as mentioned above.
1457 *
1458 * 1-Restrict / 0-Don't restrict offchannel operations.
1459 */
1460 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
1461 /*
1462 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
1463 * on an interface.
1464 * 1 - Enable, 0 - Disable.
1465 */
1466 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
1467
1468 /*
1469 * 8 bit unsigned value to globally enable/disable scan
1470 * 1 - Enable, 0 - Disable.
1471 */
1472 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
1473
1474 /* 8-bit unsigned value to set the total beacon miss count
1475 * This paramater will set the total beacon miss count.
1476 */
1477 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
1478
1479 /* Unsigned 32-bit value to configure the number of continuous
1480 * Beacon Miss which shall be used by the firmware to penalize
1481 * the RSSI for BTC.
1482 */
1483 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
1484
1485 /* 8-bit unsigned value to configure the driver and below layers to
1486 * enable/disable all FILS features.
1487 * 0-enable, 1-disable */
1488 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
1489
1490 /* 16-bit unsigned value to configure the level of WLAN latency
1491 * module. See enum qca_wlan_vendor_attr_config_latency_level.
1492 */
1493 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
1494
1495 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
1496 * the connect interface. Exclusively used for the scenarios where the
1497 * device is used as a test bed device with special functionality and
1498 * not recommended for production. This helps driver to not validate the
1499 * RSNE passed from user space and thus allow arbitrary IE data to be
1500 * used for testing purposes.
1501 * 1-enable, 0-disable.
1502 * Applications set/reset this configuration. If not reset, this
1503 * parameter remains in use until the driver is unloaded.
1504 */
1505 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
1506
1507 /* keep last */
1508 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
1509 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
1510 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
1511 };
1512
1513 /**
1514 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
1515 */
1516 enum qca_wlan_vendor_attr_sap_config {
1517 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
1518 /* 1 - reserved for QCA */
1519 /* List of frequencies on which AP is expected to operate.
1520 * This is irrespective of ACS configuration. This list is a priority
1521 * based one and is looked for before the AP is created to ensure the
1522 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
1523 * the system.
1524 */
1525 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
1526
1527 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
1528 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
1529 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
1530 };
1531
1532 /**
1533 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
1534 * conditional channel switch
1535 */
1536 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
1537 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
1538 /* Priority based frequency list (an array of u32 values in host byte
1539 * order) */
1540 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
1541 /* Status of the conditional switch (u32).
1542 * 0: Success, Non-zero: Failure
1543 */
1544 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
1545
1546 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
1547 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
1548 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
1549 };
1550
1551 /**
1552 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
1553 */
1554 enum qca_wlan_gpio_attr {
1555 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
1556 /* Unsigned 32-bit attribute for GPIO command */
1557 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
1558 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
1559 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
1560 /* Unsigned 32-bit attribute for GPIO value to configure */
1561 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
1562 /* Unsigned 32-bit attribute for GPIO pull type */
1563 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
1564 /* Unsigned 32-bit attribute for GPIO interrupt mode */
1565 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
1566
1567 /* keep last */
1568 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
1569 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
1570 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
1571 };
1572
1573 /**
1574 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
1575 */
1576 enum qca_wlan_vendor_attr_get_hw_capability {
1577 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
1578 /* Antenna isolation
1579 * An attribute used in the response.
1580 * The content of this attribute is encoded in a byte array. Each byte
1581 * value is an antenna isolation value. The array length is the number
1582 * of antennas.
1583 */
1584 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
1585 /* Request HW capability
1586 * An attribute used in the request.
1587 * The content of this attribute is a u32 array for one or more of
1588 * hardware capabilities (attribute IDs) that are being requested. Each
1589 * u32 value has a value from this
1590 * enum qca_wlan_vendor_attr_get_hw_capability
1591 * identifying which capabilities are requested.
1592 */
1593 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
1594
1595 /* keep last */
1596 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
1597 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
1598 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
1599 };
1600
1601 /**
1602 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
1603 * offload which is an extension for LL_STATS.
1604 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
1605 * If MAC counters do not exceed the threshold, FW will report monitored
1606 * link layer counters periodically as this setting. The first report is
1607 * always triggered by this timer.
1608 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
1609 * For each MAC layer counter, FW holds two copies. One is the current value.
1610 * The other is the last report. Once a current counter's increment is larger
1611 * than the threshold, FW will indicate that counter to host even if the
1612 * monitoring timer does not expire.
1613 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
1614 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
1615 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
1616 * failure code.
1617 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
1618 * 1: TX packet discarded
1619 * 2: No ACK
1620 * 3: Postpone
1621 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
1622 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
1623 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
1624 * Threshold for all monitored parameters. If per counter dedicated threshold
1625 * is not enabled, this threshold will take effect.
1626 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
1627 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
1628 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
1629 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
1630 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
1631 * Bit0: TX counter unit in MSDU
1632 * Bit1: TX counter unit in MPDU
1633 * Bit2: TX counter unit in PPDU
1634 * Bit3: TX counter unit in byte
1635 * Bit4: Dropped MSDUs
1636 * Bit5: Dropped Bytes
1637 * Bit6: MPDU retry counter
1638 * Bit7: MPDU failure counter
1639 * Bit8: PPDU failure counter
1640 * Bit9: MPDU aggregation counter
1641 * Bit10: MCS counter for ACKed MPDUs
1642 * Bit11: MCS counter for Failed MPDUs
1643 * Bit12: TX Delay counter
1644 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
1645 * Bit0: MAC RX counter unit in MPDU
1646 * Bit1: MAC RX counter unit in byte
1647 * Bit2: PHY RX counter unit in PPDU
1648 * Bit3: PHY RX counter unit in byte
1649 * Bit4: Disorder counter
1650 * Bit5: Retry counter
1651 * Bit6: Duplication counter
1652 * Bit7: Discard counter
1653 * Bit8: MPDU aggregation size counter
1654 * Bit9: MCS counter
1655 * Bit10: Peer STA power state change (wake to sleep) counter
1656 * Bit11: Peer STA power save counter, total time in PS mode
1657 * Bit12: Probe request counter
1658 * Bit13: Other management frames counter
1659 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
1660 * Bit0: Idle time
1661 * Bit1: TX time
1662 * Bit2: time RX in current bss
1663 * Bit3: Out of current bss time
1664 * Bit4: Wireless medium busy time
1665 * Bit5: RX in bad condition time
1666 * Bit6: TX in bad condition time
1667 * Bit7: time wlan card not available
1668 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
1669 * Bit0: Per channel SNR counter
1670 * Bit1: Per channel noise floor counter
1671 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
1672 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
1673 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
1674 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
1675 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
1676 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
1677 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
1678 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
1679 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
1680 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
1681 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
1682 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
1683 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
1684 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
1685 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
1686 * aggregation stats buffer length
1687 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
1688 * buffer for ACKed MPDUs.
1689 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
1690 * buffer for failed MPDUs.
1691 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
1692 * length of delay stats array.
1693 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
1694 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
1695 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
1696 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
1697 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
1698 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
1699 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
1700 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
1701 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
1702 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
1703 * flagged as retransmissions
1704 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
1705 * flagged as duplicated
1706 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
1707 * packets discarded
1708 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
1709 * stats buffer.
1710 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
1711 * stats buffer.
1712 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
1713 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
1714 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
1715 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
1716 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
1717 * requests received
1718 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
1719 * frames received
1720 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
1721 * there is no TX, nor RX, nor interference.
1722 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
1723 * transmitting packets.
1724 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
1725 * for receiving.
1726 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
1727 * interference detected.
1728 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
1729 * receiving packets with errors.
1730 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
1731 * TX no-ACK.
1732 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
1733 * the chip is unable to work in normal conditions.
1734 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
1735 * receiving packets in current BSS.
1736 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
1737 * receiving packets not in current BSS.
1738 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
1739 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
1740 * This is a container for per antenna signal stats.
1741 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
1742 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
1743 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
1744 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
1745 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
1746 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
1747 * message, user layer APP could call gettimeofday to get another
1748 * timestamp and calculate transfer delay for the message.
1749 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
1750 * Real period for this measurement, unit in us.
1751 */
1752 enum qca_wlan_vendor_attr_ll_stats_ext {
1753 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
1754
1755 /* Attributes for configurations */
1756 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
1757 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
1758
1759 /* Peer STA power state change */
1760 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
1761
1762 /* TX failure event */
1763 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
1764 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
1765 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
1766
1767 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
1768 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
1769
1770 /* MAC counters */
1771 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
1772 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
1773 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
1774 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
1775 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
1776 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
1777 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
1778 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
1779 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
1780 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
1781 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
1782 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
1783
1784 /* Sub-attributes for PEER_AC_TX */
1785 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
1786 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
1787 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
1788 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
1789 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
1790 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
1791 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
1792 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
1793 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
1794 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
1795 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
1796 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
1797 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
1798 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
1799 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
1800 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
1801 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
1802
1803 /* Sub-attributes for PEER_AC_RX */
1804 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
1805 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
1806 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
1807 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
1808 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
1809 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
1810 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
1811 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
1812 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
1813 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
1814 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
1815 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
1816 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
1817 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
1818 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
1819 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
1820
1821 /* Sub-attributes for CCA_BSS */
1822 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
1823 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
1824 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
1825 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
1826 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
1827 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
1828 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
1829
1830 /* sub-attribute for BSS_RX_TIME */
1831 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
1832 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
1833
1834 /* Sub-attributes for PEER_SIGNAL */
1835 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
1836 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
1837 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
1838 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
1839
1840 /* Sub-attributes for IFACE_BSS */
1841 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
1842 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
1843
1844 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
1845 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
1846
1847 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
1848 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
1849 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
1850 };
1851
1852 /* Attributes for FTM commands and events */
1853
1854 /**
1855 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
1856 *
1857 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
1858 * enum qca_wlan_vendor_attr_loc_capa_flags.
1859 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
1860 * of measurement sessions that can run concurrently.
1861 * Default is one session (no session concurrency).
1862 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
1863 * peers that are supported in running sessions. For example,
1864 * if the value is 8 and maximum number of sessions is 2, you can
1865 * have one session with 8 unique peers, or 2 sessions with 4 unique
1866 * peers each, and so on.
1867 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
1868 * of bursts per peer, as an exponent (2^value). Default is 0,
1869 * meaning no multi-burst support.
1870 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
1871 * of measurement exchanges allowed in a single burst.
1872 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
1873 * types. A bit mask (unsigned 32 bit value), each bit corresponds
1874 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
1875 */
1876 enum qca_wlan_vendor_attr_loc_capa {
1877 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
1878 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
1879 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
1880 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
1881 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
1882 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
1883 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
1884 /* keep last */
1885 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
1886 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
1887 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
1888 };
1889
1890 /**
1891 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
1892 *
1893 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
1894 * can be configured as an FTM responder (for example, an AP that
1895 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1896 * will be supported if set.
1897 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
1898 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
1899 * will be supported if set.
1900 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
1901 * supports immediate (ASAP) response.
1902 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
1903 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
1904 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
1905 * requesting AOA measurements as part of an FTM session.
1906 */
1907 enum qca_wlan_vendor_attr_loc_capa_flags {
1908 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
1909 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
1910 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
1911 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
1912 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
1913 };
1914
1915 /**
1916 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
1917 * a single peer in a measurement session.
1918 *
1919 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
1920 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
1921 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
1922 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
1923 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
1924 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
1925 * list of supported attributes.
1926 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
1927 * secure measurement.
1928 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
1929 * measurement every <value> bursts. If 0 or not specified,
1930 * AOA measurements will be disabled for this peer.
1931 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
1932 * the measurement frames are exchanged. Optional; if not
1933 * specified, try to locate the peer in the kernel scan
1934 * results cache and use frequency from there.
1935 */
1936 enum qca_wlan_vendor_attr_ftm_peer_info {
1937 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
1938 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
1939 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
1940 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
1941 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
1942 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
1943 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
1944 /* keep last */
1945 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
1946 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
1947 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
1948 };
1949
1950 /**
1951 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
1952 * per-peer
1953 *
1954 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
1955 * immediate (ASAP) response from peer.
1956 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
1957 * LCI report from peer. The LCI report includes the absolute
1958 * location of the peer in "official" coordinates (similar to GPS).
1959 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
1960 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
1961 * Location civic report from peer. The LCR includes the location
1962 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
1963 * 11.24.6.7 for more information.
1964 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
1965 * request a secure measurement.
1966 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
1967 */
1968 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
1969 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
1970 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
1971 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
1972 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
1973 };
1974
1975 /**
1976 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
1977 *
1978 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
1979 * to perform in a single burst.
1980 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
1981 * perform, specified as an exponent (2^value).
1982 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
1983 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
1984 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
1985 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
1986 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
1987 */
1988 enum qca_wlan_vendor_attr_ftm_meas_param {
1989 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
1990 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
1991 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
1992 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
1993 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
1994 /* keep last */
1995 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
1996 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
1997 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
1998 };
1999
2000 /**
2001 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
2002 *
2003 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
2004 * peer.
2005 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
2006 * request for this peer.
2007 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
2008 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
2009 * to measurement results for this peer.
2010 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
2011 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
2012 * request failed and peer requested not to send an additional request
2013 * for this number of seconds.
2014 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
2015 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2016 * 9.4.2.22.10.
2017 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
2018 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2019 * 9.4.2.22.13.
2020 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
2021 * overridden some measurement request parameters. See
2022 * enum qca_wlan_vendor_attr_ftm_meas_param.
2023 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
2024 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
2025 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
2026 * results. Each entry is a nested attribute defined
2027 * by enum qca_wlan_vendor_attr_ftm_meas.
2028 */
2029 enum qca_wlan_vendor_attr_ftm_peer_result {
2030 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
2031 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
2032 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
2033 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
2034 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
2035 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
2036 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
2037 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
2038 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
2039 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
2040 /* keep last */
2041 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
2042 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
2043 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
2044 };
2045
2046 /**
2047 * enum qca_wlan_vendor_attr_ftm_peer_result_status
2048 *
2049 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
2050 * will be provided. Peer may have overridden some measurement parameters,
2051 * in which case overridden parameters will be report by
2052 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
2053 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
2054 * of performing the measurement request. No more results will be sent
2055 * for this peer in this session.
2056 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
2057 * failed, and requested not to send an additional request for number
2058 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
2059 * attribute.
2060 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
2061 * failed. Request was not sent over the air.
2062 */
2063 enum qca_wlan_vendor_attr_ftm_peer_result_status {
2064 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
2065 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
2066 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
2067 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
2068 };
2069
2070 /**
2071 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
2072 * for measurement result, per-peer
2073 *
2074 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
2075 * measurement completed for this peer. No more results will be reported
2076 * for this peer in this session.
2077 */
2078 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
2079 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
2080 };
2081
2082 /**
2083 * enum qca_vendor_attr_loc_session_status: Session completion status code
2084 *
2085 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
2086 * successfully.
2087 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
2088 * by request.
2089 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
2090 * was invalid and was not started.
2091 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
2092 * and did not complete normally (for example out of resources).
2093 */
2094 enum qca_vendor_attr_loc_session_status {
2095 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
2096 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
2097 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
2098 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
2099 };
2100
2101 /**
2102 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
2103 *
2104 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
2105 * recorded by responder, in picoseconds.
2106 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2107 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
2108 * initiator, in picoseconds.
2109 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2110 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
2111 * initiator, in picoseconds.
2112 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2113 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
2114 * responder, in picoseconds.
2115 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2116 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
2117 * during this measurement exchange. Optional and will be provided if
2118 * the hardware can measure it.
2119 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
2120 * responder. Not always provided.
2121 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2122 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
2123 * responder. Not always provided.
2124 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2125 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
2126 * initiator. Not always provided.
2127 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2128 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
2129 * initiator. Not always provided.
2130 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2131 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
2132 */
2133 enum qca_wlan_vendor_attr_ftm_meas {
2134 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
2135 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
2136 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
2137 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
2138 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
2139 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
2140 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
2141 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
2142 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
2143 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
2144 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
2145 /* keep last */
2146 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
2147 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
2148 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
2149 };
2150
2151 /**
2152 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
2153 *
2154 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
2155 * CIR (channel impulse response) path for each antenna.
2156 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
2157 * of the strongest CIR path for each antenna.
2158 */
2159 enum qca_wlan_vendor_attr_aoa_type {
2160 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
2161 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
2162 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
2163 };
2164
2165 /**
2166 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
2167 * validate encryption engine
2168 *
2169 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
2170 * This will be included if the request is for decryption; if not included,
2171 * the request is treated as a request for encryption by default.
2172 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
2173 * indicating the key cipher suite. Takes same values as
2174 * NL80211_ATTR_KEY_CIPHER.
2175 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
2176 * Key Id to be used for encryption
2177 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
2178 * Key (TK) to be used for encryption/decryption
2179 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
2180 * Packet number to be specified for encryption/decryption
2181 * 6 bytes for TKIP/CCMP/GCMP.
2182 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
2183 * representing the 802.11 packet (header + payload + FCS) that
2184 * needs to be encrypted/decrypted.
2185 * Encrypted/decrypted response from the driver will also be sent
2186 * to userspace with the same attribute.
2187 */
2188 enum qca_wlan_vendor_attr_encryption_test {
2189 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
2190 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
2191 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
2192 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
2193 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
2194 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
2195 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
2196
2197 /* keep last */
2198 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
2199 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
2200 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
2201 };
2202
2203 /**
2204 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
2205 * sector for DMG RF sector operations.
2206 *
2207 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
2208 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
2209 */
2210 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
2211 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
2212 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
2213 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
2214 };
2215
2216 /**
2217 * BRP antenna limit mode
2218 *
2219 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
2220 * antenna limit, BRP will be performed as usual.
2221 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
2222 * antennas limit. the hardware may use less antennas than the
2223 * maximum limit.
2224 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
2225 * use exactly the specified number of antennas for BRP.
2226 */
2227 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
2228 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
2229 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
2230 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
2231 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
2232 };
2233
2234 /**
2235 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
2236 * DMG RF sector configuration for a single RF module.
2237 * The values are defined in a compact way which closely matches
2238 * the way it is stored in HW registers.
2239 * The configuration provides values for 32 antennas and 8 distribution
2240 * amplifiers, and together describes the characteristics of the RF
2241 * sector - such as a beam in some direction with some gain.
2242 *
2243 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
2244 * of RF module for this configuration.
2245 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
2246 * amplifier gain index. Unsigned 32 bit number containing
2247 * bits for all 32 antennas.
2248 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
2249 * amplifier gain index. Unsigned 32 bit number containing
2250 * bits for all 32 antennas.
2251 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
2252 * amplifier gain index. Unsigned 32 bit number containing
2253 * bits for all 32 antennas.
2254 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
2255 * for first 16 antennas, 2 bits per antenna.
2256 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
2257 * for last 16 antennas, 2 bits per antenna.
2258 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
2259 * DTYPE values (3 bits) for each distribution amplifier, followed
2260 * by X16 switch bits for each distribution amplifier. There are
2261 * total of 8 distribution amplifiers.
2262 */
2263 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
2264 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
2265 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
2266 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
2267 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
2268 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
2269 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
2270 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
2271 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
2272
2273 /* keep last */
2274 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
2275 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
2276 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
2277 };
2278
2279 enum qca_wlan_vendor_attr_ll_stats_set {
2280 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2281 /* Unsigned 32-bit value */
2282 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2283 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
2284 /* keep last */
2285 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2286 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2287 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
2288 };
2289
2290 enum qca_wlan_vendor_attr_ll_stats_clr {
2291 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2292 /* Unsigned 32bit bitmap for clearing statistics
2293 * All radio statistics 0x00000001
2294 * cca_busy_time (within radio statistics) 0x00000002
2295 * All channel stats (within radio statistics) 0x00000004
2296 * All scan statistics (within radio statistics) 0x00000008
2297 * All interface statistics 0x00000010
2298 * All tx rate statistics (within interface statistics) 0x00000020
2299 * All ac statistics (with in interface statistics) 0x00000040
2300 * All contention (min, max, avg) statistics (within ac statisctics)
2301 * 0x00000080.
2302 */
2303 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
2304 /* Unsigned 8 bit value: Request to stop statistics collection */
2305 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
2306
2307 /* Unsigned 32 bit bitmap: Response from the driver
2308 * for the cleared statistics
2309 */
2310 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
2311 /* Unsigned 8 bit value: Response from driver/firmware
2312 * for the stop request
2313 */
2314 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
2315 /* keep last */
2316 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2317 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2318 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
2319 };
2320
2321 enum qca_wlan_vendor_attr_ll_stats_get {
2322 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2323 /* Unsigned 32 bit value provided by the caller issuing the GET stats
2324 * command. When reporting the stats results, the driver uses the same
2325 * value to indicate which GET request the results correspond to.
2326 */
2327 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
2328 /* Unsigned 32 bit value - bit mask to identify what statistics are
2329 * requested for retrieval.
2330 * Radio Statistics 0x00000001
2331 * Interface Statistics 0x00000020
2332 * All Peer Statistics 0x00000040
2333 * Peer Statistics 0x00000080
2334 */
2335 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
2336 /* keep last */
2337 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2338 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2339 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
2340 };
2341
2342 enum qca_wlan_vendor_attr_ll_stats_results {
2343 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2344 /* Unsigned 32bit value. Used by the driver; must match the request id
2345 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2346 */
2347 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2348
2349 /* Unsigned 32 bit value */
2350 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2351 /* Unsigned 32 bit value */
2352 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2353 /* Unsigned 32 bit value */
2354 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2355 /* Unsigned 32 bit value */
2356 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2357 /* Signed 32 bit value */
2358 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2359 /* Signed 32 bit value */
2360 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2361 /* Signed 32 bit value */
2362 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2363
2364 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2365 * nested within the interface stats.
2366 */
2367
2368 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2369 * Type = enum wifi_interface_mode.
2370 */
2371 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2372 /* Interface MAC address. An array of 6 Unsigned int8 */
2373 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2374 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2375 * AUTHENTICATING, etc. valid for STA, CLI only.
2376 */
2377 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2378 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2379 */
2380 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2381 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2382 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2383 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2384 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2385 /* BSSID. An array of 6 unsigned 8 bit values */
2386 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2387 /* Country string advertised by AP. An array of 3 unsigned 8 bit
2388 * values.
2389 */
2390 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2391 /* Country string for this association. An array of 3 unsigned 8 bit
2392 * values.
2393 */
2394 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2395
2396 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2397 * be nested within the interface stats.
2398 */
2399
2400 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2401 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2402 /* Unsigned int 32 value corresponding to respective AC */
2403 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2404 /* Unsigned int 32 value corresponding to respective AC */
2405 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2406 /* Unsigned int 32 value corresponding to respective AC */
2407 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2408 /* Unsigned int 32 value corresponding to respective AC */
2409 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2410 /* Unsigned int 32 value corresponding to respective AC */
2411 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2412 /* Unsigned int 32 value corresponding to respective AC */
2413 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2414 /* Unsigned int 32 value corresponding to respective AC */
2415 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2416 /* Unsigned int 32 value corresponding to respective AC */
2417 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2418 /* Unsigned int 32 value corresponding to respective AC */
2419 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2420 /* Unsigned int 32 values corresponding to respective AC */
2421 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2422 /* Unsigned int 32 values corresponding to respective AC */
2423 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2424 /* Unsigned int 32 values corresponding to respective AC */
2425 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2426 /* Unsigned int 32 values corresponding to respective AC */
2427 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2428 /* Unsigned int 32 values corresponding to respective AC */
2429 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2430 /* Unsigned 32 bit value. Number of peers */
2431 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2432
2433 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2434 * nested within the interface stats.
2435 */
2436
2437 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2438 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2439 /* MAC addr corresponding to respective peer. An array of 6 unsigned
2440 * 8 bit values.
2441 */
2442 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2443 /* Unsigned int 32 bit value representing capabilities corresponding
2444 * to respective peer.
2445 */
2446 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2447 /* Unsigned 32 bit value. Number of rates */
2448 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2449
2450 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2451 * are nested within the rate stat.
2452 */
2453
2454 /* Wi-Fi Rate - separate attributes defined for individual fields */
2455
2456 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2457 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2458 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2459 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2460 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2461 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2462 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2463 * in the units of 0.5 Mbps HT/VHT it would be MCS index */
2464 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2465
2466 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2467 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2468
2469
2470 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2471 * nested within the peer info stats.
2472 */
2473
2474 /* Unsigned int 32 bit value. Number of successfully transmitted data
2475 * packets, i.e., with ACK received corresponding to the respective
2476 * rate.
2477 */
2478 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2479 /* Unsigned int 32 bit value. Number of received data packets
2480 * corresponding to the respective rate.
2481 */
2482 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2483 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2484 * received corresponding to the respective rate.
2485 */
2486 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2487 /* Unsigned int 32 bit value. Total number of data packet retries for
2488 * the respective rate.
2489 */
2490 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2491 /* Unsigned int 32 bit value. Total number of short data packet retries
2492 * for the respective rate.
2493 */
2494 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2495 /* Unsigned int 32 bit value. Total number of long data packet retries
2496 * for the respective rate.
2497 */
2498 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2499
2500 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2501 /* Unsigned 32 bit value. Total number of msecs the radio is awake
2502 * accruing over time.
2503 */
2504 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2505 /* Unsigned 32 bit value. Total number of msecs the radio is
2506 * transmitting accruing over time.
2507 */
2508 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2509 /* Unsigned 32 bit value. Total number of msecs the radio is in active
2510 * receive accruing over time.
2511 */
2512 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2513 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2514 * to all scan accruing over time.
2515 */
2516 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2517 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2518 * to NAN accruing over time.
2519 */
2520 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2521 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2522 * to GSCAN accruing over time.
2523 */
2524 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2525 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2526 * to roam scan accruing over time.
2527 */
2528 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2529 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2530 * to PNO scan accruing over time.
2531 */
2532 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2533 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2534 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2535 */
2536 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2537 /* Unsigned 32 bit value. Number of channels. */
2538 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2539
2540 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2541 * be nested within the channel stats.
2542 */
2543
2544 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2545 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2546 /* Unsigned 32 bit value. Primary 20 MHz channel. */
2547 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2548 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2549 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2550 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2551 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2552
2553 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2554 * nested within the radio stats.
2555 */
2556
2557 /* Unsigned int 32 bit value representing total number of msecs the
2558 * radio is awake on that channel accruing over time, corresponding to
2559 * the respective channel.
2560 */
2561 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2562 /* Unsigned int 32 bit value representing total number of msecs the CCA
2563 * register is busy accruing over time corresponding to the respective
2564 * channel.
2565 */
2566 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2567
2568 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2569
2570 /* Signifies the nested list of channel attributes
2571 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
2572 */
2573 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2574
2575 /* Signifies the nested list of peer info attributes
2576 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2577 */
2578 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2579
2580 /* Signifies the nested list of rate info attributes
2581 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2582 */
2583 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2584
2585 /* Signifies the nested list of wmm info attributes
2586 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2587 */
2588 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2589
2590 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2591 * that more stats, e.g., peers or radio, are to follow in the next
2592 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2593 * Otherwise, it is set to 0.
2594 */
2595 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2596
2597 /* Unsigned 64 bit value */
2598 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2599
2600 /* Unsigned 32 bit value */
2601 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2602
2603 /* Unsigned 32 bit value */
2604 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2605
2606 /* Unsigned 32 bit value */
2607 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2608
2609 /* Unsigned 32 bit value */
2610 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2611
2612 /* Unsigned 32 bit value */
2613 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2614
2615 /* Number of msecs the radio spent in transmitting for each power level
2616 */
2617 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2618
2619 /* Unsigned 32 bit value */
2620 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2621 /* Unsigned 32 bit value */
2622 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2623 /* Unsigned 32 bit value */
2624 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2625 /* Unsigned 32 bit value */
2626 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2627
2628 /* Unsigned int 32 value.
2629 * Pending MSDUs corresponding to respective AC.
2630 */
2631 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2632
2633 /* keep last */
2634 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2635 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2636 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2637 };
2638
2639 enum qca_wlan_vendor_attr_ll_stats_type
2640 {
2641 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2642 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2643 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2644 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2645
2646 /* keep last */
2647 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2648 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2649 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2650 };
2651
2652 /**
2653 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
2654 * TDLS configuration to the host driver.
2655 *
2656 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
2657 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
2658 * represents the different TDLS trigger modes.
2659 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
2660 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
2661 * of packets shall meet the criteria for implicit TDLS setup.
2662 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
2663 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
2664 * to initiate a TDLS setup.
2665 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
2666 * a TDLS Discovery to the peer.
2667 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
2668 * discovery attempts to know the TDLS capability of the peer. A peer is
2669 * marked as TDLS not capable if there is no response for all the attempts.
2670 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
2671 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
2672 * number of TX / RX frames meet the criteria for TDLS teardown.
2673 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
2674 * of Tx/Rx packets within a duration
2675 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
2676 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
2677 * corresponding to the RSSI of the peer below which a TDLS setup is
2678 * triggered.
2679 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
2680 * corresponding to the RSSI of the peer above which a TDLS teardown is
2681 * triggered.
2682 */
2683 enum qca_wlan_vendor_attr_tdls_configuration {
2684 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
2685 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
2686
2687 /* Attributes configuring the TDLS Implicit Trigger */
2688 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
2689 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
2690 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
2691 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
2692 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
2693 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
2694 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
2695 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
2696
2697 /* keep last */
2698 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
2699 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
2700 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
2701 };
2702
2703 /**
2704 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
2705 * the driver
2706 *
2707 * The following are the different values for
2708 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
2709 *
2710 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
2711 * the TDLS connection to a respective peer comes from the user space.
2712 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
2713 * TDLS_DISCOVER to do this.
2714 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
2715 * setup/teardown to the eligible peer once the configured criteria
2716 * (such as TX/RX threshold, RSSI) is met. The attributes
2717 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
2718 * the different configuration criteria for the TDLS trigger from the
2719 * host driver.
2720 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
2721 * the TDLS setup / teardown through the implicit mode only to the
2722 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
2723 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
2724 * External mode works on top of the implicit mode. Thus the host driver
2725 * is expected to configure in TDLS Implicit mode too to operate in
2726 * External mode.
2727 * Configuring External mode alone without Implicit mode is invalid.
2728 *
2729 * All the above implementations work as expected only when the host driver
2730 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
2731 * that the TDLS message exchange is not internal to the host driver, but
2732 * depends on wpa_supplicant to do the message exchange.
2733 */
2734 enum qca_wlan_vendor_tdls_trigger_mode {
2735 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
2736 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
2737 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
2738 };
2739
2740 /**
2741 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
2742 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
2743 * that is hard-coded in the Board Data File (BDF).
2744 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
2745 * that is hard-coded in the Board Data File (BDF).
2746 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
2747 * that is hard-coded in the Board Data File (BDF).
2748 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
2749 * that is hard-coded in the Board Data File (BDF).
2750 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
2751 * that is hard-coded in the Board Data File (BDF).
2752 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
2753 * source of SAR power limits, thereby disabling the SAR power
2754 * limit feature.
2755 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
2756 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
2757 *
2758 * This enumerates the valid set of values that may be supplied for
2759 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
2760 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
2761 * the response to an instance of the
2762 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
2763 */
2764 enum qca_vendor_attr_sar_limits_selections {
2765 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
2766 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
2767 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
2768 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
2769 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
2770 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
2771 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
2772 };
2773
2774 /**
2775 * enum qca_vendor_attr_sar_limits_spec_modulations -
2776 * SAR limits specification modulation
2777 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
2778 * CCK modulation
2779 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
2780 * OFDM modulation
2781 *
2782 * This enumerates the valid set of values that may be supplied for
2783 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
2784 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
2785 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
2786 * command or in the response to an instance of the
2787 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
2788 */
2789 enum qca_vendor_attr_sar_limits_spec_modulations {
2790 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
2791 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
2792 };
2793
2794 /**
2795 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
2796 *
2797 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
2798 * select which SAR power limit table should be used. Valid
2799 * values are enumerated in enum
2800 * %qca_vendor_attr_sar_limits_selections. The existing SAR
2801 * power limit selection is unchanged if this attribute is not
2802 * present.
2803 *
2804 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
2805 * which specifies the number of SAR power limit specifications
2806 * which will follow.
2807 *
2808 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
2809 * limit specifications. The number of specifications is
2810 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
2811 * specification contains a set of
2812 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
2813 * specification is uniquely identified by the attributes
2814 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
2815 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
2816 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
2817 * contains as a payload the attribute
2818 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
2819 *
2820 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
2821 * indicate for which band this specification applies. Valid
2822 * values are enumerated in enum %nl80211_band (although not all
2823 * bands may be supported by a given device). If the attribute is
2824 * not supplied then the specification will be applied to all
2825 * supported bands.
2826 *
2827 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
2828 * to indicate for which antenna chain this specification
2829 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
2830 * attribute is not supplied then the specification will be
2831 * applied to all chains.
2832 *
2833 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
2834 * value to indicate for which modulation scheme this
2835 * specification applies. Valid values are enumerated in enum
2836 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
2837 * is not supplied then the specification will be applied to all
2838 * modulation schemes.
2839 *
2840 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
2841 * value to specify the actual power limit value in units of 0.5
2842 * dBm (i.e., a value of 11 represents 5.5 dBm).
2843 *
2844 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
2845 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
2846 */
2847 enum qca_vendor_attr_sar_limits {
2848 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
2849 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
2850 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
2851 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
2852 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
2853 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
2854 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
2855 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
2856
2857 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
2858 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
2859 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
2860 };
2861
2862 /**
2863 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
2864 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
2865 */
2866 enum qca_wlan_vendor_attr_get_wifi_info {
2867 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
2868 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
2869 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
2870
2871 /* keep last */
2872 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
2873 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
2874 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
2875 };
2876
2877 /*
2878 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
2879 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
2880 */
2881 enum qca_wlan_vendor_attr_wifi_logger_start {
2882 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
2883 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
2884 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
2885 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
2886
2887 /* keep last */
2888 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
2889 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
2890 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
2891 };
2892
2893 enum qca_wlan_vendor_attr_logger_results {
2894 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
2895
2896 /* Unsigned 32-bit value; must match the request Id supplied by
2897 * Wi-Fi HAL in the corresponding subcmd NL msg.
2898 */
2899 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
2900
2901 /* Unsigned 32-bit value; used to indicate the size of memory
2902 * dump to be allocated.
2903 */
2904 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
2905
2906 /* keep last */
2907 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
2908 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
2909 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
2910 };
2911
2912 enum qca_wlan_vendor_attr_roaming_config_params {
2913 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
2914
2915 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
2916 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
2917
2918 /* Attributes for wifi_set_ssid_white_list */
2919 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
2920 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
2921 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
2922
2923 /* Attributes for set_roam_params */
2924 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
2925 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
2926 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
2927 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
2928 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
2929 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
2930 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
2931
2932 /* Attribute for set_lazy_roam */
2933 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
2934
2935 /* Attribute for set_lazy_roam with preferences */
2936 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
2937 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
2938 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
2939 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
2940
2941 /* Attribute for set_blacklist bssid params */
2942 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
2943 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
2944 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
2945
2946 /* keep last */
2947 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
2948 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
2949 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
2950 };
2951
2952 /*
2953 * enum qca_wlan_vendor_attr_roam_subcmd: Attributes for data used by
2954 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
2955 */
2956 enum qca_wlan_vendor_attr_roam_subcmd {
2957 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID = 0,
2958 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST = 1,
2959 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
2960 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM = 3,
2961 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS = 4,
2962 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS = 5,
2963 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID = 6,
2964
2965 /* keep last */
2966 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST,
2967 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX =
2968 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST - 1,
2969 };
2970
2971 enum qca_wlan_vendor_attr_gscan_config_params {
2972 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
2973
2974 /* Unsigned 32-bit value */
2975 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
2976
2977 /* Attributes for data used by
2978 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
2979 */
2980 /* Unsigned 32-bit value */
2981 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
2982 = 2,
2983 /* Unsigned 32-bit value */
2984 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
2985 = 3,
2986
2987 /* Attributes for input params used by
2988 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
2989 */
2990
2991 /* Unsigned 32-bit value; channel frequency */
2992 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
2993 /* Unsigned 32-bit value; dwell time in ms. */
2994 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
2995 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
2996 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
2997 /* Unsigned 8-bit value; channel class */
2998 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
2999
3000 /* Unsigned 8-bit value; bucket index, 0 based */
3001 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
3002 /* Unsigned 8-bit value; band. */
3003 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
3004 /* Unsigned 32-bit value; desired period, in ms. */
3005 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
3006 /* Unsigned 8-bit value; report events semantics. */
3007 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
3008 /* Unsigned 32-bit value. Followed by a nested array of
3009 * GSCAN_CHANNEL_SPEC_* attributes.
3010 */
3011 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
3012
3013 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
3014 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
3015 */
3016 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
3017
3018 /* Unsigned 32-bit value; base timer period in ms. */
3019 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
3020 /* Unsigned 32-bit value; number of APs to store in each scan in the
3021 * BSSID/RSSI history buffer (keep the highest RSSI APs).
3022 */
3023 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
3024 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
3025 * up AP.
3026 */
3027 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
3028 = 16,
3029
3030 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
3031 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
3032 * of the array is determined by NUM_BUCKETS.
3033 */
3034 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
3035
3036 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
3037 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
3038 */
3039 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
3040
3041 /* Unsigned 8-bit value */
3042 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
3043 = 19,
3044 /* Unsigned 32-bit value; maximum number of results to be returned. */
3045 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
3046 = 20,
3047
3048 /* An array of 6 x unsigned 8-bit value */
3049 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
3050 /* Signed 32-bit value */
3051 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
3052 /* Signed 32-bit value */
3053 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
3054 /* Unsigned 32-bit value */
3055 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
3056
3057 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
3058 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
3059 * array is determined by NUM_AP.
3060 */
3061 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
3062
3063 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
3064 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
3065 */
3066 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
3067
3068 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
3069 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
3070 = 27,
3071 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
3072 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
3073 = 28,
3074 /* Unsigned 32-bit value; number of APs breaching threshold. */
3075 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
3076 /* Unsigned 32-bit value; number of APs. Followed by an array of
3077 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
3078 */
3079 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
3080 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
3081 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
3082 = 31,
3083 /* Unsigned 32-bit value. If max_period is non zero or different than
3084 * period, then this bucket is an exponential backoff bucket.
3085 */
3086 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
3087 /* Unsigned 32-bit value. */
3088 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
3089 /* Unsigned 32-bit value. For exponential back off bucket, number of
3090 * scans to perform for a given period.
3091 */
3092 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
3093 /* Unsigned 8-bit value; in number of scans, wake up AP after these
3094 * many scans.
3095 */
3096 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
3097 = 35,
3098
3099 /* Attributes for data used by
3100 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
3101 */
3102 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
3103 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
3104 = 36,
3105 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
3106 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
3107 * size of the array is determined by NUM_SSID.
3108 */
3109 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
3110 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
3111 * attributes.
3112 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
3113 */
3114 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
3115
3116 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3117 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
3118 /* Unsigned 8-bit value */
3119 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
3120 /* Signed 32-bit value */
3121 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
3122 /* Signed 32-bit value */
3123 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
3124 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
3125 */
3126 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
3127
3128 /* keep last */
3129 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
3130 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
3131 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
3132 };
3133
3134 enum qca_wlan_vendor_attr_gscan_results {
3135 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
3136
3137 /* Unsigned 32-bit value; must match the request Id supplied by
3138 * Wi-Fi HAL in the corresponding subcmd NL msg.
3139 */
3140 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
3141
3142 /* Unsigned 32-bit value; used to indicate the status response from
3143 * firmware/driver for the vendor sub-command.
3144 */
3145 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
3146
3147 /* GSCAN Valid Channels attributes */
3148 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
3149 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
3150 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
3151 * representing channel numbers.
3152 */
3153 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
3154
3155 /* GSCAN Capabilities attributes */
3156 /* Unsigned 32-bit value */
3157 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
3158 /* Unsigned 32-bit value */
3159 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
3160 /* Unsigned 32-bit value */
3161 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
3162 = 7,
3163 /* Unsigned 32-bit value */
3164 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
3165 = 8,
3166 /* Signed 32-bit value */
3167 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
3168 = 9,
3169 /* Unsigned 32-bit value */
3170 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
3171 /* Unsigned 32-bit value */
3172 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
3173 = 11,
3174 /* Unsigned 32-bit value */
3175 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
3176 = 12,
3177
3178 /* GSCAN Attributes used with
3179 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
3180 */
3181
3182 /* Unsigned 32-bit value */
3183 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
3184
3185 /* GSCAN attributes used with
3186 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
3187 */
3188
3189 /* An array of NUM_RESULTS_AVAILABLE x
3190 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
3191 */
3192 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
3193
3194 /* Unsigned 64-bit value; age of sample at the time of retrieval */
3195 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
3196 /* 33 x unsigned 8-bit value; NULL terminated SSID */
3197 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
3198 /* An array of 6 x unsigned 8-bit value */
3199 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
3200 /* Unsigned 32-bit value; channel frequency in MHz */
3201 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
3202 /* Signed 32-bit value */
3203 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
3204 /* Unsigned 32-bit value */
3205 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
3206 /* Unsigned 32-bit value */
3207 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
3208 /* Unsigned 16-bit value */
3209 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
3210 /* Unsigned 16-bit value */
3211 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
3212 /* Unsigned 32-bit value; size of the IE DATA blob */
3213 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
3214 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
3215 * information elements found in the beacon; this data should be a
3216 * packed list of wifi_information_element objects, one after the
3217 * other.
3218 */
3219 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
3220
3221 /* Unsigned 8-bit value; set by driver to indicate more scan results are
3222 * available.
3223 */
3224 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
3225
3226 /* GSCAN attributes for
3227 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
3228 */
3229 /* Unsigned 8-bit value */
3230 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
3231 /* Unsigned 32-bit value */
3232 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
3233
3234 /* GSCAN attributes for
3235 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
3236 */
3237 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3238 * to indicate number of results.
3239 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3240 * list of results.
3241 */
3242
3243 /* GSCAN attributes for
3244 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
3245 */
3246 /* An array of 6 x unsigned 8-bit value */
3247 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
3248 /* Unsigned 32-bit value */
3249 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
3250 = 30,
3251 /* Unsigned 32-bit value. */
3252 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
3253 = 31,
3254 /* A nested array of signed 32-bit RSSI values. Size of the array is
3255 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
3256 */
3257 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
3258 = 32,
3259
3260 /* GSCAN attributes used with
3261 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
3262 */
3263 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3264 * to indicate number of gscan cached results returned.
3265 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
3266 * the list of gscan cached results.
3267 */
3268
3269 /* An array of NUM_RESULTS_AVAILABLE x
3270 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
3271 */
3272 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
3273 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
3274 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
3275 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
3276 */
3277 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
3278 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3279 * to indicate number of wifi scan results/bssids retrieved by the scan.
3280 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3281 * list of wifi scan results returned for each cached result block.
3282 */
3283
3284 /* GSCAN attributes for
3285 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
3286 */
3287 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
3288 * number of results.
3289 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3290 * list of wifi scan results returned for each
3291 * wifi_passpoint_match_result block.
3292 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
3293 */
3294
3295 /* GSCAN attributes for
3296 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
3297 */
3298 /* Unsigned 32-bit value */
3299 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
3300 = 36,
3301 /* A nested array of
3302 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
3303 * attributes. Array size =
3304 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
3305 */
3306 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
3307
3308 /* Unsigned 32-bit value; network block id for the matched network */
3309 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
3310 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3311 * list of wifi scan results returned for each
3312 * wifi_passpoint_match_result block.
3313 */
3314 /* Unsigned 32-bit value */
3315 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
3316 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
3317 * ANQP data in the information_element format.
3318 */
3319 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
3320
3321 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3322 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
3323 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3324 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
3325 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3326 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
3327 = 43,
3328 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3329 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
3330 = 44,
3331
3332 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
3333
3334 /* keep last */
3335 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
3336 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
3337 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
3338 };
3339
3340 enum qca_wlan_vendor_attr_pno_config_params {
3341 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3342 /* Attributes for data used by
3343 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3344 */
3345 /* Unsigned 32-bit value */
3346 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3347 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3348 * attributes. Array size =
3349 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3350 */
3351 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3352
3353 /* Unsigned 32-bit value */
3354 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3355 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
3356 * realm, 0 if unspecified.
3357 */
3358 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3359 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
3360 * match, 0 if unspecified.
3361 */
3362 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3363 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
3364 * unspecified.
3365 */
3366 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3367
3368 /* Attributes for data used by
3369 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3370 */
3371 /* Unsigned 32-bit value */
3372 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3373 /* Array of nested
3374 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3375 * attributes. Array size =
3376 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
3377 */
3378 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3379 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3380 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3381 /* Signed 8-bit value; threshold for considering this SSID as found,
3382 * required granularity for this threshold is 4 dBm to 8 dBm.
3383 */
3384 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
3385 = 10,
3386 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
3387 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3388 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
3389 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3390 /* Unsigned 8-bit to indicate ePNO type;
3391 * It takes values from qca_wlan_epno_type
3392 */
3393 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3394
3395 /* Nested attribute to send the channel list */
3396 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3397
3398 /* Unsigned 32-bit value; indicates the interval between PNO scan
3399 * cycles in msec.
3400 */
3401 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3402 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3403 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3404 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3405 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3406 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3407 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3408 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
3409 /* Unsigned 32-bit value, representing the PNO Request ID */
3410 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
3411
3412 /* keep last */
3413 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3414 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3415 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3416 };
3417
3418 /**
3419 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
3420 * the ACS has to be triggered. These values are used by
3421 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
3422 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
3423 */
3424 enum qca_wlan_vendor_acs_select_reason {
3425 /* Represents the reason that the ACS triggered during the AP start */
3426 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
3427 /* Represents the reason that DFS found with the current channel */
3428 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
3429 /* Represents the reason that LTE co-exist in the current band. */
3430 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
3431 };
3432
3433 /**
3434 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
3435 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
3436 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
3437 * external ACS policies to select the channels w.r.t. the PCL weights.
3438 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
3439 * their PCL weights.)
3440 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
3441 * select a channel with non-zero PCL weight.
3442 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
3443 * channel with non-zero PCL weight.
3444 *
3445 */
3446 enum qca_wlan_vendor_attr_external_acs_policy {
3447 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
3448 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
3449 };
3450
3451 /**
3452 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3453 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3454 */
3455 enum qca_wlan_vendor_channel_prop_flags {
3456 /* Bits 0, 1, 2, and 3 are reserved */
3457
3458 /* Turbo channel */
3459 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
3460 /* CCK channel */
3461 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
3462 /* OFDM channel */
3463 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
3464 /* 2.4 GHz spectrum channel. */
3465 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
3466 /* 5 GHz spectrum channel */
3467 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
3468 /* Only passive scan allowed */
3469 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
3470 /* Dynamic CCK-OFDM channel */
3471 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
3472 /* GFSK channel (FHSS PHY) */
3473 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
3474 /* Radar found on channel */
3475 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
3476 /* 11a static turbo channel only */
3477 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
3478 /* Half rate channel */
3479 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
3480 /* Quarter rate channel */
3481 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
3482 /* HT 20 channel */
3483 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
3484 /* HT 40 with extension channel above */
3485 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
3486 /* HT 40 with extension channel below */
3487 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
3488 /* HT 40 intolerant */
3489 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
3490 /* VHT 20 channel */
3491 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
3492 /* VHT 40 with extension channel above */
3493 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
3494 /* VHT 40 with extension channel below */
3495 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
3496 /* VHT 80 channel */
3497 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
3498 /* HT 40 intolerant mark bit for ACS use */
3499 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3500 /* Channel temporarily blocked due to noise */
3501 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
3502 /* VHT 160 channel */
3503 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
3504 /* VHT 80+80 channel */
3505 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
3506 /* HE 20 channel */
3507 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
3508 /* HE 40 with extension channel above */
3509 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
3510 /* HE 40 with extension channel below */
3511 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
3512 /* HE 40 intolerant */
3513 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
3514 };
3515
3516 /**
3517 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3518 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3519 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3520 */
3521 enum qca_wlan_vendor_channel_prop_flags_2 {
3522 /* HE 40 intolerant mark bit for ACS use */
3523 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3524 /* HE 80 channel */
3525 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
3526 /* HE 160 channel */
3527 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
3528 /* HE 80+80 channel */
3529 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
3530 };
3531
3532 /**
3533 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3534 * each channel. This is used by
3535 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3536 */
3537 enum qca_wlan_vendor_channel_prop_flags_ext {
3538 /* Radar found on channel */
3539 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
3540 /* DFS required on channel */
3541 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
3542 /* DFS required on channel for 2nd band of 80+80 */
3543 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
3544 /* If channel has been checked for DFS */
3545 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
3546 /* Excluded in 802.11d */
3547 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
3548 /* Channel Switch Announcement received on this channel */
3549 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
3550 /* Ad-hoc is not allowed */
3551 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
3552 /* Station only channel */
3553 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3554 /* DFS radar history for slave device (STA mode) */
3555 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
3556 /* DFS CAC valid for slave device (STA mode) */
3557 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
3558 };
3559
3560 /**
3561 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
3562 * information. These attributes are sent as part of
3563 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
3564 * attributes correspond to a single channel.
3565 */
3566 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
3567 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
3568
3569 /* A bitmask (u32) with flags specified in
3570 * enum qca_wlan_vendor_channel_prop_flags.
3571 */
3572 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
3573 /* A bitmask (u32) with flags specified in
3574 * enum qca_wlan_vendor_channel_prop_flags_ext.
3575 */
3576 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
3577 /* frequency in MHz (u32) */
3578 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
3579 /* maximum regulatory transmission power (u32) */
3580 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
3581 /* maximum transmission power (u32) */
3582 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
3583 /* minimum transmission power (u32) */
3584 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
3585 /* regulatory class id (u8) */
3586 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
3587 /* maximum antenna gain in (u8) */
3588 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
3589 /* VHT segment 0 (u8) */
3590 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
3591 /* VHT segment 1 (u8) */
3592 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
3593 /* A bitmask (u32) with flags specified in
3594 * enum qca_wlan_vendor_channel_prop_flags_2.
3595 */
3596 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
3597
3598 /* keep last */
3599 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
3600 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
3601 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
3602 };
3603
3604 /**
3605 * qca_wlan_vendor_attr_pcl: Represents attributes for
3606 * preferred channel list (PCL). These attributes are sent as part of
3607 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL.
3608 */
3609 enum qca_wlan_vendor_attr_pcl {
3610 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
3611
3612 /* Channel number (u8) */
3613 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
3614 /* Channel weightage (u8) */
3615 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
3616 };
3617
3618 /**
3619 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
3620 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
3621 * host driver.
3622 */
3623 enum qca_wlan_vendor_attr_external_acs_event {
3624 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
3625
3626 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
3627 * This helps ACS module to understand why ACS needs to be started.
3628 */
3629 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
3630 /* Flag attribute to indicate if driver supports spectral scanning */
3631 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
3632 /* Flag attribute to indicate if 11ac is offloaded to firmware */
3633 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
3634 /* Flag attribute to indicate if driver provides additional channel
3635 * capability as part of scan operation */
3636 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
3637 /* Flag attribute to indicate interface status is UP */
3638 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
3639 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
3640 * values. */
3641 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
3642 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
3643 * This is the upper bound of channel width. ACS logic should try to get
3644 * a channel with the specified width and if not found, look for lower
3645 * values.
3646 */
3647 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
3648 /* This (u8) will hold values of one of enum nl80211_bands */
3649 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
3650 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
3651 * values */
3652 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
3653 /* Array of (u32) supported frequency list among which ACS should choose
3654 * best frequency.
3655 */
3656 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
3657 /* Preferred channel list by the driver which will have array of nested
3658 * values as per enum qca_wlan_vendor_attr_pcl attribute.
3659 */
3660 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
3661 /* Array of nested attribute for each channel. It takes attr as defined
3662 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
3663 */
3664 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
3665 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
3666 * It uses values defined in enum
3667 * qca_wlan_vendor_attr_external_acs_policy.
3668 */
3669 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
3670 /* Reference RF Operating Parameter (RROP) availability information
3671 * (u16). It uses values defined in enum
3672 * qca_wlan_vendor_attr_rropavail_info.
3673 */
3674 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
3675
3676 /* keep last */
3677 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
3678 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
3679 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
3680 };
3681
3682 /**
3683 * qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
3684 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
3685 * in priority order as decided after ACS operation in userspace.
3686 */
3687 enum qca_wlan_vendor_attr_external_acs_channels {
3688 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
3689
3690 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
3691 */
3692 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
3693
3694 /* Array of nested values for each channel with following attributes:
3695 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
3696 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
3697 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
3698 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
3699 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
3700 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
3701 */
3702 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
3703 /* This (u8) will hold values of one of enum nl80211_bands */
3704 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
3705 /* Primary channel (u8) */
3706 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
3707 /* Secondary channel (u8) used for HT 40 MHz channels */
3708 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
3709 /* VHT seg0 channel (u8) */
3710 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
3711 /* VHT seg1 channel (u8) */
3712 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
3713 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
3714 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
3715
3716 /* keep last */
3717 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
3718 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
3719 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
3720 };
3721
3722 enum qca_chip_power_save_failure_reason {
3723 /* Indicates if the reason for the failure is due to a protocol
3724 * layer/module.
3725 */
3726 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
3727 /* Indicates if the reason for the failure is due to a hardware issue.
3728 */
3729 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
3730 };
3731
3732 /**
3733 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
3734 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
3735 * information leading to the power save failure.
3736 */
3737 enum qca_attr_chip_power_save_failure {
3738 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
3739 /* Reason to cause the power save failure.
3740 * These reasons are represented by
3741 * enum qca_chip_power_save_failure_reason.
3742 */
3743 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
3744
3745 /* keep last */
3746 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
3747 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
3748 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
3749 };
3750
3751 /**
3752 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3753 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3754 * information to start/stop the NUD statistics collection.
3755 */
3756 enum qca_attr_nud_stats_set {
3757 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
3758
3759 /* Flag to start/stop the NUD statistics collection.
3760 * Start - If included, Stop - If not included
3761 */
3762 QCA_ATTR_NUD_STATS_SET_START = 1,
3763 /* IPv4 address of the default gateway (in network byte order) */
3764 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
3765
3766 /* keep last */
3767 QCA_ATTR_NUD_STATS_SET_LAST,
3768 QCA_ATTR_NUD_STATS_SET_MAX =
3769 QCA_ATTR_NUD_STATS_SET_LAST - 1,
3770 };
3771
3772 /**
3773 * qca_attr_nud_stats_get: Attributes to vendor subcmd
3774 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
3775 * NUD statistics collected when queried.
3776 */
3777 enum qca_attr_nud_stats_get {
3778 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
3779 /* ARP Request count from netdev */
3780 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
3781 /* ARP Request count sent to lower MAC from upper MAC */
3782 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
3783 /* ARP Request count received by lower MAC from upper MAC */
3784 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
3785 /* ARP Request count successfully transmitted by the device */
3786 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
3787 /* ARP Response count received by lower MAC */
3788 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
3789 /* ARP Response count received by upper MAC */
3790 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
3791 /* ARP Response count delivered to netdev */
3792 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
3793 /* ARP Response count delivered to netdev */
3794 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
3795 /* Flag indicating if the station's link to the AP is active.
3796 * Active Link - If included, Inactive link - If not included
3797 */
3798 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
3799 /* Flag indicating if there is any duplicate address detected (DAD).
3800 * Yes - If detected, No - If not detected.
3801 */
3802 QCA_ATTR_NUD_STATS_IS_DAD = 10,
3803
3804 /* keep last */
3805 QCA_ATTR_NUD_STATS_GET_LAST,
3806 QCA_ATTR_NUD_STATS_GET_MAX =
3807 QCA_ATTR_NUD_STATS_GET_LAST - 1,
3808 };
3809
3810 enum qca_wlan_btm_candidate_status {
3811 QCA_STATUS_ACCEPT = 0,
3812 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
3813 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
3814 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
3815 QCA_STATUS_REJECT_LOW_RSSI = 4,
3816 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
3817 QCA_STATUS_REJECT_UNKNOWN = 6,
3818 };
3819
3820 enum qca_wlan_vendor_attr_btm_candidate_info {
3821 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
3822
3823 /* 6-byte MAC address representing the BSSID of transition candidate */
3824 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
3825 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
3826 * returned by the driver. It says whether the BSSID provided in
3827 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
3828 * the driver, if not it specifies the reason for rejection.
3829 * Note that the user-space can overwrite the transition reject reason
3830 * codes provided by driver based on more information.
3831 */
3832 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
3833
3834 /* keep last */
3835 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
3836 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
3837 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
3838 };
3839
3840 enum qca_attr_trace_level {
3841 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
3842 /*
3843 * Nested array of the following attributes:
3844 * QCA_ATTR_TRACE_LEVEL_MODULE,
3845 * QCA_ATTR_TRACE_LEVEL_MASK.
3846 */
3847 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
3848 /*
3849 * Specific QCA host driver module. Please refer to the QCA host
3850 * driver implementation to get the specific module ID.
3851 */
3852 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
3853 /* Different trace level masks represented in the QCA host driver. */
3854 QCA_ATTR_TRACE_LEVEL_MASK = 3,
3855
3856 /* keep last */
3857 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
3858 QCA_ATTR_TRACE_LEVEL_MAX =
3859 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
3860 };
3861
3862 /**
3863 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
3864 */
3865 enum qca_wlan_vendor_attr_get_he_capabilities {
3866 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
3867 /* Whether HE capabilities is supported
3868 * (u8 attribute: 0 = not supported, 1 = supported) */
3869 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
3870 /* HE PHY capabilities, array of 3 u32 values */
3871 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
3872 /* HE MAC capabilities (u32 attribute) */
3873 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
3874 /* HE MCS map (u32 attribute) */
3875 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
3876 /* Number of SS (u32 attribute) */
3877 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
3878 /* RU count (u32 attribute) */
3879 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
3880 /* PPE threshold data, array of 8 u32 values */
3881 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
3882
3883 /* keep last */
3884 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
3885 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
3886 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
3887 };
3888
3889 /**
3890 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
3891 */
3892 enum qca_wlan_vendor_attr_spectral_scan {
3893 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
3894 /* Number of times the chip enters spectral scan mode before
3895 * deactivating spectral scans. When set to 0, chip will enter spectral
3896 * scan mode continuously. u32 attribute.
3897 */
3898 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
3899 /* Spectral scan period. Period increment resolution is 256*Tclk,
3900 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
3901 */
3902 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
3903 /* Spectral scan priority. u32 attribute. */
3904 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
3905 /* Number of FFT data points to compute. u32 attribute. */
3906 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
3907 /* Enable targeted gain change before starting the spectral scan FFT.
3908 * u32 attribute.
3909 */
3910 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
3911 /* Restart a queued spectral scan. u32 attribute. */
3912 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
3913 /* Noise floor reference number for the calculation of bin power.
3914 * u32 attribute.
3915 */
3916 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
3917 /* Disallow spectral scan triggers after TX/RX packets by setting
3918 * this delay value to roughly SIFS time period or greater.
3919 * u32 attribute.
3920 */
3921 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
3922 /* Number of strong bins (inclusive) per sub-channel, below
3923 * which a signal is declared a narrow band tone. u32 attribute.
3924 */
3925 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
3926 /* Specify the threshold over which a bin is declared strong (for
3927 * scan bandwidth analysis). u32 attribute.
3928 */
3929 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
3930 /* Spectral scan report mode. u32 attribute. */
3931 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
3932 /* RSSI report mode, if the ADC RSSI is below
3933 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
3934 * then FFTs will not trigger, but timestamps and summaries get
3935 * reported. u32 attribute.
3936 */
3937 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
3938 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
3939 * to ensure spectral scan reporting with normal error code.
3940 * u32 attribute.
3941 */
3942 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
3943 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
3944 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
3945 * u32 attribute.
3946 */
3947 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
3948 /* Format of FFT report to software for spectral scan triggered FFTs.
3949 * 0: No FFT report (only spectral scan summary report)
3950 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
3951 * report
3952 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
3953 * bins (in-band) per FFT + spectral scan summary report
3954 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
3955 * bins (all) per FFT + spectral scan summary report
3956 * u32 attribute.
3957 */
3958 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
3959 /* Number of LSBs to shift out in order to scale the FFT bins.
3960 * u32 attribute.
3961 */
3962 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
3963 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
3964 * in dBm power. u32 attribute.
3965 */
3966 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
3967 /* Per chain enable mask to select input ADC for search FFT.
3968 * u32 attribute.
3969 */
3970 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
3971 /* An unsigned 64-bit integer provided by host driver to identify the
3972 * spectral scan request. This attribute is included in the scan
3973 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
3974 * and used as an attribute in
3975 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
3976 * specific scan to be stopped.
3977 */
3978 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
3979 /* Skip interval for FFT reports. u32 attribute */
3980 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
3981 /* Set to report only one set of FFT results.
3982 * u32 attribute.
3983 */
3984 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
3985 /* Debug level for spectral module in driver.
3986 * 0 : Verbosity level 0
3987 * 1 : Verbosity level 1
3988 * 2 : Verbosity level 2
3989 * 3 : Matched filterID display
3990 * 4 : One time dump of FFT report
3991 * u32 attribute.
3992 */
3993 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
3994 /* Type of spectral scan request. u32 attribute.
3995 * It uses values defined in enum
3996 * qca_wlan_vendor_attr_spectral_scan_request_type.
3997 */
3998 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
3999
4000 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
4001 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
4002 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
4003 };
4004
4005 /**
4006 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
4007 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
4008 */
4009 enum qca_wlan_vendor_attr_spectral_diag_stats {
4010 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
4011 /* Number of spectral TLV signature mismatches.
4012 * u64 attribute.
4013 */
4014 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
4015 /* Number of spectral phyerror events with insufficient length when
4016 * parsing for secondary 80 search FFT report. u64 attribute.
4017 */
4018 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
4019 /* Number of spectral phyerror events without secondary 80
4020 * search FFT report. u64 attribute.
4021 */
4022 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
4023 /* Number of spectral phyerror events with vht operation segment 1 id
4024 * mismatches in search fft report. u64 attribute.
4025 */
4026 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
4027 /* Number of spectral phyerror events with vht operation segment 2 id
4028 * mismatches in search fft report. u64 attribute.
4029 */
4030 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
4031
4032 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
4033 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
4034 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
4035 };
4036
4037 /**
4038 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
4039 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
4040 */
4041 enum qca_wlan_vendor_attr_spectral_cap {
4042 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
4043 /* Flag attribute to indicate phydiag capability */
4044 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
4045 /* Flag attribute to indicate radar detection capability */
4046 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
4047 /* Flag attribute to indicate spectral capability */
4048 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
4049 /* Flag attribute to indicate advanced spectral capability */
4050 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
4051
4052 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
4053 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
4054 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
4055 };
4056
4057 /**
4058 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
4059 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
4060 */
4061 enum qca_wlan_vendor_attr_spectral_scan_status {
4062 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
4063 /* Flag attribute to indicate whether spectral scan is enabled */
4064 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
4065 /* Flag attribute to indicate whether spectral scan is in progress*/
4066 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
4067
4068 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
4069 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
4070 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
4071 };
4072
4073 /**
4074 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
4075 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
4076 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
4077 * spectral scan request types.
4078 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
4079 * set the spectral parameters and start scan.
4080 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
4081 * only set the spectral parameters.
4082 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
4083 * only start the spectral scan.
4084 */
4085 enum qca_wlan_vendor_attr_spectral_scan_request_type {
4086 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
4087 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
4088 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
4089 };
4090
4091 enum qca_wlan_vendor_tos {
4092 QCA_WLAN_VENDOR_TOS_BK = 0,
4093 QCA_WLAN_VENDOR_TOS_BE = 1,
4094 QCA_WLAN_VENDOR_TOS_VI = 2,
4095 QCA_WLAN_VENDOR_TOS_VO = 3,
4096 };
4097
4098 /**
4099 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
4100 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
4101 */
4102 enum qca_wlan_vendor_attr_active_tos {
4103 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
4104 /* Type Of Service - Represented by qca_wlan_vendor_tos */
4105 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
4106 /* Flag attribute representing the start (attribute included) or stop
4107 * (attribute not included) of the respective TOS.
4108 */
4109 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
4110 };
4111
4112 enum qca_wlan_vendor_hang_reason {
4113 /* Unspecified reason */
4114 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
4115 /* No Map for the MAC entry for the received frame */
4116 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
4117 /* Peer deletion timeout happened */
4118 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
4119 /* Peer unmap timeout */
4120 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
4121 /* Scan request timed out */
4122 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
4123 /* Consecutive Scan attempt failures */
4124 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
4125 /* Unable to get the message buffer */
4126 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
4127 /* Current command processing is timedout */
4128 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
4129 /* Timeout for an ACK from FW for suspend request */
4130 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
4131 /* Timeout for an ACK from FW for resume request */
4132 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
4133 /* Transmission timeout for consecutive data frames */
4134 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
4135 /* Timeout for the TX completion status of data frame */
4136 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
4137 /* DXE failure for TX/RX, DXE resource unavailability */
4138 QCA_WLAN_HANG_DXE_FAILURE = 12,
4139 /* WMI pending commands exceed the maximum count */
4140 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
4141 };
4142
4143 /**
4144 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
4145 * QCA_NL80211_VENDOR_SUBCMD_HANG.
4146 */
4147 enum qca_wlan_vendor_attr_hang {
4148 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
4149 /* Reason for the hang - u32 attribute with a value from enum
4150 * qca_wlan_vendor_hang_reason.
4151 */
4152 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
4153
4154 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
4155 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
4156 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
4157 };
4158
4159 /**
4160 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
4161 * flushing pending traffic in firmware.
4162 *
4163 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
4164 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
4165 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
4166 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
4167 * flush packets with access category.
4168 */
4169 enum qca_wlan_vendor_attr_flush_pending {
4170 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
4171 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
4172 QCA_WLAN_VENDOR_ATTR_AC = 2,
4173
4174 /* keep last */
4175 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
4176 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
4177 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
4178 };
4179
4180 /**
4181 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
4182 * RF Operating Parameter (RROP) information is available, and if so, at which
4183 * point in the application-driver interaction sequence it can be retrieved by
4184 * the application from the driver. This point may vary by architecture and
4185 * other factors. This is a u16 value.
4186 */
4187 enum qca_wlan_vendor_attr_rropavail_info {
4188 /* RROP information is unavailable. */
4189 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
4190 /* RROP information is available and the application can retrieve the
4191 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
4192 * event from the driver.
4193 */
4194 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
4195 /* RROP information is available only after a vendor specific scan
4196 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
4197 * successfully completed. The application can retrieve the information
4198 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
4199 * the driver.
4200 */
4201 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
4202 };
4203
4204 /**
4205 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
4206 * Representative RF Operating Parameter (RROP) information. It is sent for the
4207 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
4208 * intended for use by external Auto Channel Selection applications. It provides
4209 * guidance values for some RF parameters that are used by the system during
4210 * operation. These values could vary by channel, band, radio, and so on.
4211 */
4212 enum qca_wlan_vendor_attr_rrop_info {
4213 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
4214
4215 /* Representative Tx Power List (RTPL) which has an array of nested
4216 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
4217 */
4218 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
4219
4220 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
4221 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
4222 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
4223 };
4224
4225 /**
4226 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
4227 * entry instances in the Representative Tx Power List (RTPL). It provides
4228 * simplified power values intended for helping external Auto channel Selection
4229 * applications compare potential Tx power performance between channels, other
4230 * operating conditions remaining identical. These values are not necessarily
4231 * the actual Tx power values that will be used by the system. They are also not
4232 * necessarily the max or average values that will be used. Instead, they are
4233 * relative, summarized keys for algorithmic use computed by the driver or
4234 * underlying firmware considering a number of vendor specific factors.
4235 */
4236 enum qca_wlan_vendor_attr_rtplinst {
4237 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
4238
4239 /* Primary channel number (u8) */
4240 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
4241 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
4242 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
4243 /* Representative Tx power in dBm (s32) with emphasis on range. */
4244 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
4245
4246 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
4247 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
4248 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
4249 };
4250
4251 /**
4252 * enum qca_wlan_vendor_attr_config_latency_level - Level for
4253 * wlan latency module.
4254 *
4255 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
4256 * power saving which would causing data exchange out of service, this
4257 * would be a big impact on latency. For latency sensitive applications over
4258 * Wi-Fi are intolerant to such operations and thus would configure them
4259 * to meet their respective needs. It is well understood by such applications
4260 * that altering the default behavior would degrade the Wi-Fi functionality
4261 * w.r.t the above pointed WLAN operations.
4262 *
4263 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
4264 * Default WLAN operation level which throughput orientated.
4265 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
4266 * Use moderate level to improve latency by limit scan duration.
4267 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
4268 * Use low latency level to benifit application like concurrent
4269 * downloading or video streaming via constraint scan/adaptive PS.
4270 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
4271 * Use ultra low latency level to benefit for gaming/voice
4272 * application via constraint scan/roaming/adaptive PS.
4273 */
4274 enum qca_wlan_vendor_attr_config_latency_level {
4275 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
4276 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
4277 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
4278 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
4279 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
4280
4281 /* keep last */
4282 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
4283 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
4284 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
4285 };
4286
4287 #endif /* QCA_VENDOR_H */