]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/common/qca-vendor.h
FILS: Add FTE into FILS Authentication frame from AP when using FILS+FT
[thirdparty/hostap.git] / src / common / qca-vendor.h
CommitLineData
1682c623
JM
1/*
2 * Qualcomm Atheros OUI and vendor specific assignments
09a97eb2 3 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
1682c623
JM
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
30476e4f
JB
21/**
22 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
23 */
24enum qca_radiotap_vendor_ids {
25 QCA_RADIOTAP_VID_WLANTEST = 0,
26};
27
1682c623
JM
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
253f2e37 34 *
0800f9ee
JM
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 *
253f2e37
AH
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.
65d645ce
AS
46 *
47 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
48 * for DFS offloading.
4a16a0bd
AHS
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.
b41f2684
CL
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
15badebd
CL
56 * be used to request offloading of key management operations. Only used
57 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
58 *
b41f2684
CL
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
15badebd
CL
62 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
63 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
16689c7c
PX
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.
15badebd
CL
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.
e0761c5b 72 *
480994da
AK
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.
35d66557 92 *
2a9ec7c6
ZL
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 *
35d66557
PX
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.
1c8fe68f
CM
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.
4ac75cd0
VK
139 *
140 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
141 * attributes defined in enum qca_wlan_gpio_attr.
6fe3b9d4
YT
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.
22950d05
ZQ
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.
fcd85d9a
LD
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
32d08d5b
LD
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
fcd85d9a
LD
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.
0d7eba54
SD
206 *
207 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
208 * data as per the given parameters.
8b7c5b89 209 *
210 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
211 * specific chain.
6eb1a569
LD
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.
14cd203f
SD
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.
1a793f5c 256 *
7785c70b
PX
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 *
1a793f5c
SD
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.
c79238b6
JJ
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.
4c407000
PK
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.
d7d0f909
SD
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.
a9491695
SD
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.
70407ee5
KV
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.
841e9a8c
SD
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.
160dca07
AAL
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.
1682c623
JM
316 */
317enum qca_nl80211_vendor_subcmds {
318 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
319 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
0800f9ee
JM
320 /* subcmds 2..8 not yet allocated */
321 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
253f2e37 322 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
65d645ce 323 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
4a16a0bd 324 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
87416eaf 325 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
37df6a87
JM
326 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
327 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
328 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
329 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
330 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
331 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
e48635cf
JM
332 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
333 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
334 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
335 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
336 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
337 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
338 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
339 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
340 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
341 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
342 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
343 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
344 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
345 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
37df6a87
JM
346 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
347 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
348 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
349 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
350 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
351 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
352 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
994d6f46 353 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
37df6a87
JM
354 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
355 /* 43..49 - reserved for QCA */
b41f2684
CL
356 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
357 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
41a23357 358 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
90758f09 359 /* 53 - reserved - was used by QCA, but not in use anymore */
16689c7c 360 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
15badebd 361 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
480994da
AK
362 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
363 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
364 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
365 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
366 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
cea76147
SD
367 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
368 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
369 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
370 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
371 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
372 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
373 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
374 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
375 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
376 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
377 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
378 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
379 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
ac7aea86
SD
380 /* Wi-Fi configuration subcommands */
381 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
382 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
383 /* 76-90 - reserved for QCA */
b2329e4a 384 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
7f90a234
JM
385 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
386 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
387 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
388 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
389 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
390 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
391 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
392 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
393 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
279724d8 394 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
d71bdfbd 395 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
6b0ceee9
AK
396 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
397 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
844dfeb8 398 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
b4856719
KV
399 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
400 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
5d4c5089
PX
401 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
402 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
95784134 403 /* 110..114 - reserved for QCA */
9a8d9f7c 404 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
52a6c9c9
SD
405 /* 116..117 - reserved for QCA */
406 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
85c0f01d
MM
407 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
408 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
d1296da6 409 /* 121 - reserved for QCA */
35d66557
PX
410 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
411 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1c8fe68f 412 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
4ac75cd0 413 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
6fe3b9d4 414 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
22950d05 415 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
fcd85d9a
LD
416 /* FTM/indoor location subcommands */
417 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
418 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
419 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
420 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
421 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
422 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
423 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
424 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
425 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
0d7eba54 426 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
8b7c5b89 427 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
6eb1a569
LD
428 /* DMG low level RF sector operations */
429 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
430 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
431 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
432 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
14cd203f 433 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
7785c70b 434 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
1a793f5c 435 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
c79238b6 436 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
4c407000 437 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
d7d0f909 438 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
a9491695
SD
439 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
440 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
70407ee5 441 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
841e9a8c 442 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
160dca07 443 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1682c623
JM
444};
445
253f2e37 446
65d645ce
AS
447enum qca_wlan_vendor_attr {
448 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
449 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
450 QCA_WLAN_VENDOR_ATTR_DFS = 1,
4a16a0bd
AHS
451 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
452 QCA_WLAN_VENDOR_ATTR_NAN = 2,
4a64d5a9
AS
453 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
454 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
84df1675
AS
455 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
456 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
0800f9ee
JM
457 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
458 * by enum qca_roaming_policy. */
459 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
460 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
15badebd
CL
461 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
462 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1db718b3 463 QCA_WLAN_VENDOR_ATTR_TEST = 8,
6b0ceee9
AK
464 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
465 /* Unsigned 32-bit value. */
466 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
467 /* Unsigned 32-bit value */
468 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
469 /* Unsigned 32-bit value */
470 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
844dfeb8
SD
471 /* Unsigned 32-bit value from enum qca_set_band. */
472 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
fcd85d9a
LD
473 /* Dummy (NOP) attribute for 64 bit padding */
474 QCA_WLAN_VENDOR_ATTR_PAD = 13,
475 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
476 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
477 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
478 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
479 */
480 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
481 /* Indoor location capabilities, returned by
482 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
483 * see enum qca_wlan_vendor_attr_loc_capa.
484 */
485 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
486 /* Array of nested attributes containing information about each peer
487 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
488 * for supported attributes for each peer.
489 */
490 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
491 /* Array of nested attributes containing measurement results for
492 * one or more peers, reported by the
493 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
494 * See enum qca_wlan_vendor_attr_peer_result for list of supported
495 * attributes.
496 */
497 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
498 /* Flag attribute for enabling or disabling responder functionality. */
499 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
500 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
501 * command to specify the LCI report that will be sent by
502 * the responder during a measurement exchange. The format is
503 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
504 */
505 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
506 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
507 * command to specify the location civic report that will
508 * be sent by the responder during a measurement exchange.
509 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
510 */
511 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
512 /* Session/measurement completion status code,
513 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
514 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
515 * see enum qca_vendor_attr_loc_session_status.
516 */
517 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
518 /* Initial dialog token used by responder (0 if not specified),
519 * unsigned 8 bit value.
520 */
521 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
522 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
523 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
524 * AOA measurements are needed as part of an FTM session.
525 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
526 * enum qca_wlan_vendor_attr_aoa_type.
527 */
528 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
529 /* A bit mask (unsigned 32 bit value) of antenna arrays used
530 * by indoor location measurements. Refers to the antenna
531 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
532 */
533 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
534 /* AOA measurement data. Its contents depends on the AOA measurement
535 * type and antenna array mask:
536 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
537 * phase of the strongest CIR path for each antenna in the measured
538 * array(s).
539 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
540 * values, phase and amplitude of the strongest CIR path for each
541 * antenna in the measured array(s).
542 */
543 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
8b7c5b89 544 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
545 * to specify the chain number (unsigned 32 bit value) to inquire
546 * the corresponding antenna RSSI value */
547 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
548 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
549 * to report the specific antenna RSSI value (unsigned 32 bit value) */
550 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
32d08d5b
LD
551 /* Frequency in MHz, various uses. Unsigned 32 bit value */
552 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
6eb1a569
LD
553 /* TSF timer value, unsigned 64 bit value.
554 * May be returned by various commands.
555 */
556 QCA_WLAN_VENDOR_ATTR_TSF = 29,
557 /* DMG RF sector index, unsigned 16 bit number. Valid values are
558 * 0..127 for sector indices or 65535 as special value used to
559 * unlock sector selection in
560 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
561 */
562 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
563 /* DMG RF sector type, unsigned 8 bit value. One of the values
564 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
565 */
566 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
567 /* Bitmask of DMG RF modules for which information is requested. Each
568 * bit corresponds to an RF module with the same index as the bit
569 * number. Unsigned 32 bit number but only low 8 bits can be set since
570 * all DMG chips currently have up to 8 RF modules.
571 */
572 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
573 /* Array of nested attributes where each entry is DMG RF sector
574 * configuration for a single RF module.
575 * Attributes for each entry are taken from enum
576 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
577 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
578 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
579 */
580 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
87416eaf 581 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
582 * to report frame aggregation statistics to userspace.
583 */
584 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
585 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
70407ee5
KV
586 /* Unsigned 8-bit value representing MBO transition reason code as
587 * provided by the AP used by subcommand
588 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
589 * specified by the userspace in the request to the driver.
590 */
591 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
592 /* Array of nested attributes, BSSID and status code, used by subcommand
593 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
594 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
595 * The userspace space specifies the list/array of candidate BSSIDs in
596 * the order of preference in the request. The driver specifies the
597 * status code, for each BSSID in the list, in the response. The
598 * acceptable candidates are listed in the order preferred by the
599 * driver.
600 */
601 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
160dca07
AAL
602 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
603 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
604 */
605 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
606 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
607 * to define the number of antennas to use for BRP.
608 * different purpose in each ANT_LIMIT_MODE:
609 * DISABLE - ignored
610 * EFFECTIVE - upper limit to number of antennas to be used
611 * FORCE - exact number of antennas to be used
612 * unsigned 8 bit value
613 */
614 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
6c2056ab 615 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
616 * to report the corresponding antenna index to the chain RSSI value */
617 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
87416eaf 618
65d645ce
AS
619 /* keep last */
620 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
621 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
622};
623
0800f9ee
JM
624
625enum qca_roaming_policy {
626 QCA_ROAMING_NOT_ALLOWED,
627 QCA_ROAMING_ALLOWED_WITHIN_ESS,
628};
629
b41f2684
CL
630enum qca_wlan_vendor_attr_roam_auth {
631 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
632 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
633 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
634 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
635 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
636 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
637 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
638 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
d3819633 639 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
b41f2684
CL
640 /* keep last */
641 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
642 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
643 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
644};
645
35d66557
PX
646enum qca_wlan_vendor_attr_p2p_listen_offload {
647 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
648 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
649 * of the social channels.
650 */
651 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
652 /* A 32-bit unsigned value; the P2P listen offload period (ms).
653 */
654 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
655 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
656 */
657 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
658 /* A 32-bit unsigned value; number of interval times the firmware needs
659 * to run the offloaded P2P listen operation before it stops.
660 */
661 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
662 /* An array of arbitrary binary data with one or more 8-byte values.
663 * The device types include both primary and secondary device types.
664 */
665 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
666 /* An array of unsigned 8-bit characters; vendor information elements.
667 */
668 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
669 /* A 32-bit unsigned value; a control flag to indicate whether listen
670 * results need to be flushed to wpa_supplicant.
671 */
672 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
673 /* A 8-bit unsigned value; reason code for P2P listen offload stop
674 * event.
675 */
676 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
677 /* keep last */
678 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
679 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
680 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
681};
682
16689c7c
PX
683enum qca_wlan_vendor_attr_acs_offload {
684 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
685 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
686 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
687 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
688 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
689 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
857d9422
MM
690 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
691 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
692 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
693 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
694 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
d0cdccd3 695 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
16689c7c
PX
696 /* keep last */
697 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
698 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
699 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
700};
701
702enum qca_wlan_vendor_acs_hw_mode {
703 QCA_ACS_MODE_IEEE80211B,
704 QCA_ACS_MODE_IEEE80211G,
705 QCA_ACS_MODE_IEEE80211A,
706 QCA_ACS_MODE_IEEE80211AD,
3784c058 707 QCA_ACS_MODE_IEEE80211ANY,
16689c7c
PX
708};
709
15badebd
CL
710/**
711 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
712 *
713 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
714 * management offload, a mechanism where the station's firmware
715 * does the exchange with the AP to establish the temporal keys
716 * after roaming, rather than having the user space wpa_supplicant do it.
3784c058
PX
717 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
718 * band selection based on channel selection results.
94fb165c
KV
719 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
720 * simultaneous off-channel operations.
35d66557
PX
721 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
722 * Listen offload; a mechanism where the station's firmware takes care of
723 * responding to incoming Probe Request frames received from other P2P
724 * Devices whilst in Listen state, rather than having the user space
725 * wpa_supplicant do it. Information from received P2P requests are
726 * forwarded from firmware to host whenever the host processor wakes up.
15badebd
CL
727 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
728 */
729enum qca_wlan_vendor_features {
730 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
3784c058 731 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
94fb165c 732 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
35d66557 733 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
15badebd
CL
734 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
735};
736
b2329e4a
SD
737/**
738 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
739 *
740 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
741 * the offloaded data.
742 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
743 * data.
744 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
745 * indication.
746 */
747enum qca_wlan_vendor_attr_data_offload_ind {
748 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
749 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
750 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
751 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
752
753 /* keep last */
754 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
755 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
756 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
757};
6b0ceee9 758
2a9ec7c6
ZL
759/**
760 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
761 * OCB config
762 *
763 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
764 * configuration
765 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
766 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
767 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
768 * scheduled
769 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
770 * information
771 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
772 * active state configuration
773 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
774 * OCB_CONFIG_FLAG_80211_FRAME_MODE
775 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
776 * use in the case that a packet is sent without a TX control header
12759588
ZL
777 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
778 * last TA received that the local time set by TA is synchronous to other
779 * communicating OCB STAs.
2a9ec7c6
ZL
780 */
781enum qca_wlan_vendor_attr_ocb_set_config {
782 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
783 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
784 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
785 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
786 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
787 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
788 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
789 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
790 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
12759588 791 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
2a9ec7c6
ZL
792 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
793 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
794 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
795};
796
797/**
798 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
799 * UTC time
800 *
801 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
802 * 10 bytes
803 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
804 * 5 bytes
805 */
806enum qca_wlan_vendor_attr_ocb_set_utc_time {
807 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
808 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
809 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
810 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
811 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
812 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
813};
814
815/**
816 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
817 * to start sending timing advert frames
818 *
819 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
820 * on which to send the frames
821 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
822 * the frame is sent in 5 seconds
823 */
824enum qca_wlan_vendor_attr_ocb_start_timing_advert {
825 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
826 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
827 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
828 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
829 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
830 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
831};
832
833/**
834 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
835 * to stop timing advert
836 *
837 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
838 * frequency on which to stop the timing advert
839 */
840enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
841 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
842 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
843 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
844 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
845 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
846};
847
848/**
849 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
850 * get TSF timer value
851 *
852 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
853 * timer
854 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
855 */
856enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
857 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
858 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
859 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
860 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
861 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
862 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
863};
864
6b0ceee9
AK
865enum qca_vendor_attr_get_preferred_freq_list {
866 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
867 /* A 32-unsigned value; the interface type/mode for which the preferred
868 * frequency list is requested (see enum qca_iface_type for possible
869 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
870 * kernel and in the kernel response back to user-space.
871 */
872 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
873 /* An array of 32-unsigned values; values are frequency (MHz); sent
874 * from kernel space to user space.
875 */
876 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
877 /* keep last */
878 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
879 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
880 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
881};
882
883enum qca_vendor_attr_probable_oper_channel {
884 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
885 /* 32-bit unsigned value; indicates the connection/iface type likely to
886 * come on this channel (see enum qca_iface_type).
887 */
888 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
889 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
890 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
891 /* keep last */
892 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
893 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
894 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
895};
896
897enum qca_iface_type {
898 QCA_IFACE_TYPE_STA,
899 QCA_IFACE_TYPE_AP,
900 QCA_IFACE_TYPE_P2P_CLIENT,
901 QCA_IFACE_TYPE_P2P_GO,
902 QCA_IFACE_TYPE_IBSS,
903 QCA_IFACE_TYPE_TDLS,
904};
905
844dfeb8
SD
906enum qca_set_band {
907 QCA_SETBAND_AUTO,
908 QCA_SETBAND_5G,
909 QCA_SETBAND_2G,
910};
911
14b76124
SD
912/**
913 * enum qca_access_policy - Access control policy
914 *
915 * Access control policy is applied on the configured IE
916 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
917 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
918 *
919 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
920 * the specific configuration (IE) set, i.e., allow all the
921 * connections which do not match the configuration.
922 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
923 * the specific configuration (IE) set, i.e., deny all the
924 * connections which do not match the configuration.
925 */
926enum qca_access_policy {
927 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
928 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
929};
930
85c0f01d
MM
931/**
932 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
933 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
934 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
935 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
936 * SOC timer value at TSF capture
937 */
938enum qca_vendor_attr_tsf_cmd {
939 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
940 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
941 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
942 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
943 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
944 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
945 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
946};
947
948/**
949 * enum qca_tsf_operation: TSF driver commands
950 * @QCA_TSF_CAPTURE: Initiate TSF Capture
951 * @QCA_TSF_GET: Get TSF capture value
952 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
953 */
954enum qca_tsf_cmd {
955 QCA_TSF_CAPTURE,
956 QCA_TSF_GET,
957 QCA_TSF_SYNC_GET,
958};
959
960/**
961 * enum qca_vendor_attr_wisa_cmd
962 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
963 * WISA setup vendor commands
964 */
965enum qca_vendor_attr_wisa_cmd {
966 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
967 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
968 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
969 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
970 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
971};
972
b43b2b52
JM
973/* IEEE 802.11 Vendor Specific elements */
974
975/**
976 * enum qca_vendor_element_id - QCA Vendor Specific element types
977 *
978 * These values are used to identify QCA Vendor Specific elements. The
979 * payload of the element starts with the three octet OUI (OUI_QCA) and
980 * is followed by a single octet type which is defined by this enum.
981 *
982 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
983 * This element can be used to specify preference order for supported
984 * channels. The channels in this list are in preference order (the first
985 * one has the highest preference) and are described as a pair of
986 * (global) Operating Class and Channel Number (each one octet) fields.
987 *
988 * This extends the standard P2P functionality by providing option to have
989 * more than one preferred operating channel. When this element is present,
990 * it replaces the preference indicated in the Operating Channel attribute.
991 * For supporting other implementations, the Operating Channel attribute is
992 * expected to be used with the highest preference channel. Similarly, all
993 * the channels included in this Preferred channel list element are
994 * expected to be included in the Channel List attribute.
995 *
996 * This vendor element may be included in GO Negotiation Request, P2P
997 * Invitation Request, and Provision Discovery Request frames.
617593c3
JM
998 *
999 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1000 * This element can be used for pre-standard publication testing of HE
1001 * before P802.11ax draft assigns the element ID. The payload of this
1002 * vendor specific element is defined by the latest P802.11ax draft.
1003 * Please note that the draft is still work in progress and this element
1004 * payload is subject to change.
1005 *
1006 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1007 * This element can be used for pre-standard publication testing of HE
1008 * before P802.11ax draft assigns the element ID. The payload of this
1009 * vendor specific element is defined by the latest P802.11ax draft.
1010 * Please note that the draft is still work in progress and this element
1011 * payload is subject to change.
a2aa21a3
JM
1012 *
1013 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1014 * element).
1015 * This element can be used for pre-standard publication testing of HE
1016 * before P802.11ax draft assigns the element ID extension. The payload of
1017 * this vendor specific element is defined by the latest P802.11ax draft
1018 * (not including the Element ID Extension field). Please note that the
1019 * draft is still work in progress and this element payload is subject to
1020 * change.
1021 *
1022 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1023 * This element can be used for pre-standard publication testing of HE
1024 * before P802.11ax draft assigns the element ID extension. The payload of
1025 * this vendor specific element is defined by the latest P802.11ax draft
1026 * (not including the Element ID Extension field). Please note that the
1027 * draft is still work in progress and this element payload is subject to
1028 * change.
1029 *
1030 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1031 * This element can be used for pre-standard publication testing of HE
1032 * before P802.11ax draft assigns the element ID extension. The payload of
1033 * this vendor specific element is defined by the latest P802.11ax draft
1034 * (not including the Element ID Extension field). Please note that the
1035 * draft is still work in progress and this element payload is subject to
1036 * change.
b43b2b52
JM
1037 */
1038enum qca_vendor_element_id {
1039 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
617593c3
JM
1040 QCA_VENDOR_ELEM_HE_CAPAB = 1,
1041 QCA_VENDOR_ELEM_HE_OPER = 2,
a2aa21a3
JM
1042 QCA_VENDOR_ELEM_RAPS = 3,
1043 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
1044 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
b43b2b52
JM
1045};
1046
b4856719
KV
1047/**
1048 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1049 *
1050 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1051 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1052 * with frequencies to be scanned (in MHz)
1053 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1054 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1055 * rates to be included
1056 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
1057 * at non CCK rate in 2GHz band
1058 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1059 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
1060 * driver for the specific scan request
1061 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
1062 * request decoded as in enum scan_status
1063 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
1064 * scan flag is set
1065 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
1066 * randomisation
444930e5
SD
1067 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1068 * specific BSSID to scan for.
b4856719
KV
1069 */
1070enum qca_wlan_vendor_attr_scan {
1071 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
444930e5
SD
1072 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
1073 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
1074 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
1075 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
1076 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
1077 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
1078 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
1079 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
1080 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
1081 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
1082 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
b4856719
KV
1083 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
1084 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
1085 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
1086};
1087
1088/**
1089 * enum scan_status - Specifies the valid values the vendor scan attribute
1090 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
1091 *
1092 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
1093 * new scan results
1094 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1095 */
1096enum scan_status {
1097 VENDOR_SCAN_STATUS_NEW_RESULTS,
1098 VENDOR_SCAN_STATUS_ABORTED,
1099 VENDOR_SCAN_STATUS_MAX,
1100};
1101
5d4c5089
PX
1102/**
1103 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1104 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1105 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1106 */
1107enum qca_vendor_attr_ota_test {
1108 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
1109 /* 8-bit unsigned value to indicate if OTA test is enabled */
1110 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
1111 /* keep last */
1112 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
1113 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
1114 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
1115};
1116
1117/**
1118 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1119 *
1120 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1121 */
1122enum qca_vendor_attr_txpower_scale {
1123 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
1124 /* 8-bit unsigned value to indicate the scaling of tx power */
1125 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
1126 /* keep last */
1127 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
1128 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
1129 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
1130};
1131
9a8d9f7c
PX
1132/**
1133 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1134 *
1135 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1136 */
1137enum qca_vendor_attr_txpower_decr_db {
1138 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
1139 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
1140 * a virtual interface. */
1141 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
1142 /* keep last */
1143 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
1144 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
1145 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
1146};
1147
ac7aea86 1148/* Attributes for data used by
4f910f38
JM
1149 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1150 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
ac7aea86
SD
1151 */
1152enum qca_wlan_vendor_attr_config {
8b668884 1153 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
ac7aea86
SD
1154 /* Unsigned 32-bit value to set the DTIM period.
1155 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1156 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1157 * DTIM beacons.
1158 */
8b668884 1159 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
ac7aea86
SD
1160 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1161 * used to calculate statistics like average the TSF offset or average
1162 * number of frame leaked.
1163 * For instance, upon Beacon frame reception:
1164 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1165 * For instance, when evaluating leaky APs:
1166 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1167 */
8b668884 1168 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
ac7aea86
SD
1169 /* Unsigned 32-bit value to configure guard time, i.e., when
1170 * implementing IEEE power management based on frame control PM bit, how
1171 * long the driver waits before shutting down the radio and after
1172 * receiving an ACK frame for a Data frame with PM bit set.
1173 */
8b668884 1174 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
ac7aea86 1175 /* Unsigned 32-bit value to change the FTM capability dynamically */
8b668884 1176 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
ac7aea86 1177 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
8b668884 1178 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
ac7aea86
SD
1179 /* Unsigned 32-bit value to configure the number of continuous
1180 * Beacon Miss which shall be used by the firmware to penalize
1181 * the RSSI.
1182 */
8b668884 1183 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
ac7aea86
SD
1184 /* Unsigned 8-bit value to configure the channel avoidance indication
1185 * behavior. Firmware to send only one indication and ignore duplicate
1186 * indications when set to avoid multiple Apps wakeups.
1187 */
8b668884 1188 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
ac7aea86
SD
1189 /* 8-bit unsigned value to configure the maximum TX MPDU for
1190 * aggregation. */
8b668884 1191 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
ac7aea86
SD
1192 /* 8-bit unsigned value to configure the maximum RX MPDU for
1193 * aggregation. */
8b668884 1194 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
52fec366 1195 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
1196 * retry threshold (0 disable, 31 max). */
8b668884 1197 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
52fec366 1198 /* 8-bit unsigned value to configure the aggregrate sw
1199 * retry threshold (0 disable, 31 max). */
8b668884 1200 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
52fec366 1201 /* 8-bit unsigned value to configure the MGMT frame
1202 * retry threshold (0 disable, 31 max). */
8b668884 1203 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
52fec366 1204 /* 8-bit unsigned value to configure the CTRL frame
1205 * retry threshold (0 disable, 31 max). */
8b668884 1206 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
52fec366 1207 /* 8-bit unsigned value to configure the propagation delay for
1208 * 2G/5G band (0~63, units in us) */
8b668884 1209 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
6c34b9c2
SD
1210 /* Unsigned 32-bit value to configure the number of unicast TX fail
1211 * packet count. The peer is disconnected once this threshold is
1212 * reached. */
8b668884 1213 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
ab218631 1214 /* Attribute used to set scan default IEs to the driver.
1215 *
1216 * These IEs can be used by scan operations that will be initiated by
1217 * the driver/firmware.
1218 *
1219 * For further scan requests coming to the driver, these IEs should be
1220 * merged with the IEs received along with scan request coming to the
1221 * driver. If a particular IE is present in the scan default IEs but not
1222 * present in the scan request, then that IE should be added to the IEs
1223 * sent in the Probe Request frames for that scan request. */
8b668884 1224 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
babf0ce0 1225 /* Unsigned 32-bit attribute for generic commands */
8b668884 1226 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
babf0ce0 1227 /* Unsigned 32-bit value attribute for generic commands */
8b668884 1228 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
babf0ce0 1229 /* Unsigned 32-bit data attribute for generic command response */
8b668884 1230 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
babf0ce0
VK
1231 /* Unsigned 32-bit length attribute for
1232 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
8b668884 1233 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
babf0ce0
VK
1234 /* Unsigned 32-bit flags attribute for
1235 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
8b668884 1236 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
14b76124
SD
1237 /* Unsigned 32-bit, defining the access policy.
1238 * See enum qca_access_policy. Used with
1239 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */
8b668884 1240 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
14b76124
SD
1241 /* Sets the list of full set of IEs for which a specific access policy
1242 * has to be applied. Used along with
1243 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
1244 * Zero length payload can be used to clear this access constraint. */
8b668884 1245 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
fed802c2
SD
1246 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
1247 * corresponding configurations are applied. If the interface index is
1248 * not specified, the configurations are attributed to the respective
1249 * wiphy. */
8b668884 1250 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
dc24a361 1251 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
8b668884 1252 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
2800ec85 1253 /* 8-bit unsigned value to configure the driver and below layers to
1254 * ignore the assoc disallowed set by APs while connecting
1255 * 1-Ignore, 0-Don't ignore */
8b668884 1256 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
8b7c5b89 1257 /* 32-bit unsigned value to trigger antenna diversity features:
1258 * 1-Enable, 0-Disable */
8b668884 1259 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
8b7c5b89 1260 /* 32-bit unsigned value to configure specific chain antenna */
8b668884 1261 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
8b7c5b89 1262 /* 32-bit unsigned value to trigger cycle selftest
1263 * 1-Enable, 0-Disable */
8b668884 1264 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
8b7c5b89 1265 /* 32-bit unsigned to configure the cycle time of selftest
1266 * the unit is micro-second */
8b668884 1267 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
87416eaf 1268 /* 32-bit unsigned value to set reorder timeout for AC_VO */
1269 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
1270 /* 32-bit unsigned value to set reorder timeout for AC_VI */
1271 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
1272 /* 32-bit unsigned value to set reorder timeout for AC_BE */
1273 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
1274 /* 32-bit unsigned value to set reorder timeout for AC_BK */
1275 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
1276 /* 6-byte MAC address to point out the specific peer */
1277 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
1278 /* 32-bit unsigned value to set window size for specific peer */
1279 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
cb0cc6ef
SD
1280 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
1281 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
1282 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
1283 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
21ac7827
GZ
1284 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
1285 * station device while in disconnect state. The attribute use the
1286 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
1287 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
1288 * 10 MHz channel width, the station will not connect to a BSS using 20
1289 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
1290 * clear this constraint. */
1291 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
b4ae5f04
ZQ
1292 /* 32-bit unsigned value to configure the propagation absolute delay
1293 * for 2G/5G band (units in us) */
1294 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
6c2056ab 1295 /* 32-bit unsigned value to set probe period */
1296 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
1297 /* 32-bit unsigned value to set stay period */
1298 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
1299 /* 32-bit unsigned value to set snr diff */
1300 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
1301 /* 32-bit unsigned value to set probe dwell time */
1302 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
1303 /* 32-bit unsigned value to set mgmt snr weight */
1304 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
1305 /* 32-bit unsigned value to set data snr weight */
1306 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
1307 /* 32-bit unsigned value to set ack snr weight */
1308 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
ac7aea86
SD
1309
1310 /* keep last */
1311 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
1312 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
1313 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
1314};
1315
52a6c9c9
SD
1316/**
1317 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
1318 */
1319enum qca_wlan_vendor_attr_sap_config {
1320 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
1321 /* 1 - reserved for QCA */
1322 /* List of frequencies on which AP is expected to operate.
1323 * This is irrespective of ACS configuration. This list is a priority
1324 * based one and is looked for before the AP is created to ensure the
1325 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
1326 * the system.
1327 */
1328 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
1329
1330 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
1331 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
1332 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
1333};
1334
1c8fe68f
CM
1335/**
1336 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
1337 * conditional channel switch
1338 */
1339enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
1340 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
1341 /* Priority based frequency list (an array of u32 values in host byte
1342 * order) */
1343 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
1344 /* Status of the conditional switch (u32).
1345 * 0: Success, Non-zero: Failure
1346 */
1347 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
1348
1349 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
1350 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
1351 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
1352};
1353
4ac75cd0
VK
1354/**
1355 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
1356 */
1357enum qca_wlan_gpio_attr {
1358 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
1359 /* Unsigned 32-bit attribute for GPIO command */
1360 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
1361 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
1362 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
1363 /* Unsigned 32-bit attribute for GPIO value to configure */
1364 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
1365 /* Unsigned 32-bit attribute for GPIO pull type */
1366 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
1367 /* Unsigned 32-bit attribute for GPIO interrupt mode */
1368 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
1369
1370 /* keep last */
1371 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
1372 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
1373 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
1374};
1375
6fe3b9d4
YT
1376/**
1377 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
1378 */
1379enum qca_wlan_vendor_attr_get_hw_capability {
1380 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
1381 /* Antenna isolation
1382 * An attribute used in the response.
1383 * The content of this attribute is encoded in a byte array. Each byte
1384 * value is an antenna isolation value. The array length is the number
1385 * of antennas.
1386 */
1387 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
1388 /* Request HW capability
1389 * An attribute used in the request.
1390 * The content of this attribute is a u32 array for one or more of
1391 * hardware capabilities (attribute IDs) that are being requested. Each
1392 * u32 value has a value from this
1393 * enum qca_wlan_vendor_attr_get_hw_capability
1394 * identifying which capabilities are requested.
1395 */
1396 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
1397
1398 /* keep last */
1399 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
1400 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
1401 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
1402};
1403
22950d05
ZQ
1404/**
1405 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
1406 * offload which is an extension for LL_STATS.
1407 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
1408 * If MAC counters do not exceed the threshold, FW will report monitored
1409 * link layer counters periodically as this setting. The first report is
1410 * always triggered by this timer.
1411 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
1412 * For each MAC layer counter, FW holds two copies. One is the current value.
1413 * The other is the last report. Once a current counter's increment is larger
1414 * than the threshold, FW will indicate that counter to host even if the
1415 * monitoring timer does not expire.
1416 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
1417 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
1418 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
1419 * failure code.
1420 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
1421 * 1: TX packet discarded
1422 * 2: No ACK
1423 * 3: Postpone
320caeab
ZQ
1424 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
1425 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
1426 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
1427 * Threshold for all monitored parameters. If per counter dedicated threshold
1428 * is not enabled, this threshold will take effect.
1429 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
1430 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
1431 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
1432 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
1433 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
1434 * Bit0: TX counter unit in MSDU
1435 * Bit1: TX counter unit in MPDU
1436 * Bit2: TX counter unit in PPDU
1437 * Bit3: TX counter unit in byte
1438 * Bit4: Dropped MSDUs
1439 * Bit5: Dropped Bytes
1440 * Bit6: MPDU retry counter
1441 * Bit7: MPDU failure counter
1442 * Bit8: PPDU failure counter
1443 * Bit9: MPDU aggregation counter
1444 * Bit10: MCS counter for ACKed MPDUs
1445 * Bit11: MCS counter for Failed MPDUs
1446 * Bit12: TX Delay counter
1447 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
1448 * Bit0: MAC RX counter unit in MPDU
1449 * Bit1: MAC RX counter unit in byte
1450 * Bit2: PHY RX counter unit in PPDU
1451 * Bit3: PHY RX counter unit in byte
1452 * Bit4: Disorder counter
1453 * Bit5: Retry counter
1454 * Bit6: Duplication counter
1455 * Bit7: Discard counter
1456 * Bit8: MPDU aggregation size counter
1457 * Bit9: MCS counter
1458 * Bit10: Peer STA power state change (wake to sleep) counter
1459 * Bit11: Peer STA power save counter, total time in PS mode
1460 * Bit12: Probe request counter
1461 * Bit13: Other management frames counter
1462 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
1463 * Bit0: Idle time
1464 * Bit1: TX time
1465 * Bit2: time RX in current bss
1466 * Bit3: Out of current bss time
1467 * Bit4: Wireless medium busy time
1468 * Bit5: RX in bad condition time
1469 * Bit6: TX in bad condition time
1470 * Bit7: time wlan card not available
1471 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
1472 * Bit0: Per channel SNR counter
1473 * Bit1: Per channel noise floor counter
1474 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
1475 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
1476 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
1477 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
1478 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
1479 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
1480 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
1481 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
1482 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
1483 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
1484 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
1485 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
1486 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
1487 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
1488 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
1489 * aggregation stats buffer length
1490 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
1491 * buffer for ACKed MPDUs.
1492 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
1493 * buffer for failed MPDUs.
1494 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
1495 * length of delay stats array.
1496 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
1497 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
1498 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
1499 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
1500 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
1501 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
1502 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
1503 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
1504 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
1505 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
1506 * flagged as retransmissions
1507 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
1508 * flagged as duplicated
1509 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
1510 * packets discarded
1511 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
1512 * stats buffer.
1513 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
1514 * stats buffer.
1515 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
1516 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
1517 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
1518 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
1519 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
1520 * requests received
1521 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
1522 * frames received
1523 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
1524 * there is no TX, nor RX, nor interference.
1525 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
1526 * transmitting packets.
1527 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
1528 * for receiving.
1529 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
1530 * interference detected.
1531 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
1532 * receiving packets with errors.
1533 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
1534 * TX no-ACK.
1535 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
1536 * the chip is unable to work in normal conditions.
1537 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
1538 * receiving packets in current BSS.
1539 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
1540 * receiving packets not in current BSS.
1541 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
1542 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
1543 * This is a container for per antenna signal stats.
1544 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
1545 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
1546 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
1547 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
22950d05
ZQ
1548 */
1549enum qca_wlan_vendor_attr_ll_stats_ext {
1550 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
1551
1552 /* Attributes for configurations */
1553 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
1554 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
1555
320caeab 1556 /* Peer STA power state change */
22950d05
ZQ
1557 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
1558
1559 /* TX failure event */
1560 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
1561 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
1562 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
1563
320caeab
ZQ
1564 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
1565 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
1566
1567 /* MAC counters */
1568 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
1569 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
1570 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
1571 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
1572 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
1573 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
1574 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
1575 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
1576 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
1577 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
1578 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
1579 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
1580
1581 /* Sub-attributes for PEER_AC_TX */
1582 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
1583 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
1584 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
1585 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
1586 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
1587 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
1588 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
1589 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
1590 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
1591 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
1592 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
1593 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
1594 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
1595 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
1596 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
1597 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
1598 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
1599
1600 /* Sub-attributes for PEER_AC_RX */
1601 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
1602 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
1603 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
1604 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
1605 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
1606 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
1607 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
1608 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
1609 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
1610 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
1611 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
1612 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
1613 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
1614 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
1615 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
1616 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
1617
1618 /* Sub-attributes for CCA_BSS */
1619 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
1620 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
1621 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
1622 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
1623 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
1624 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
1625 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
1626
1627 /* sub-attribute for BSS_RX_TIME */
1628 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
1629 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
1630
1631 /* Sub-attributes for PEER_SIGNAL */
1632 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
1633 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
1634 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
1635 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
1636
1637 /* Sub-attributes for IFACE_BSS */
1638 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
1639 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
1640
22950d05
ZQ
1641 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
1642 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
1643 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
1644};
1645
fcd85d9a
LD
1646/* Attributes for FTM commands and events */
1647
1648/**
1649 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
1650 *
1651 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
1652 * enum qca_wlan_vendor_attr_loc_capa_flags.
1653 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
1654 * of measurement sessions that can run concurrently.
1655 * Default is one session (no session concurrency).
1656 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
1657 * peers that are supported in running sessions. For example,
1658 * if the value is 8 and maximum number of sessions is 2, you can
1659 * have one session with 8 unique peers, or 2 sessions with 4 unique
1660 * peers each, and so on.
1661 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
1662 * of bursts per peer, as an exponent (2^value). Default is 0,
1663 * meaning no multi-burst support.
1664 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
1665 * of measurement exchanges allowed in a single burst.
1666 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
1667 * types. A bit mask (unsigned 32 bit value), each bit corresponds
1668 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
1669 */
1670enum qca_wlan_vendor_attr_loc_capa {
1671 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
1672 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
1673 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
1674 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
1675 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
1676 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
1677 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
1678 /* keep last */
1679 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
1680 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
1681 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
1682};
1683
1684/**
1685 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
1686 *
1687 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
1688 * can be configured as an FTM responder (for example, an AP that
1689 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1690 * will be supported if set.
1691 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
1692 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
1693 * will be supported if set.
1694* @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
1695 * supports immediate (ASAP) response.
1696 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
1697 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
1698 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
1699 * requesting AOA measurements as part of an FTM session.
1700 */
1701enum qca_wlan_vendor_attr_loc_capa_flags {
1702 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
1703 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
1704 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
1705 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
1706 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
1707};
1708
1709/**
1710 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
1711 * a single peer in a measurement session.
1712 *
1713 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
1714 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
1715 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
a62dea41 1716 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
fcd85d9a
LD
1717 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
1718 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
1719 * list of supported attributes.
1720 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
1721 * secure measurement.
1722 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
1723 * measurement every <value> bursts. If 0 or not specified,
1724 * AOA measurements will be disabled for this peer.
32d08d5b
LD
1725 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
1726 * the measurement frames are exchanged. Optional; if not
1727 * specified, try to locate the peer in the kernel scan
1728 * results cache and use frequency from there.
fcd85d9a
LD
1729 */
1730enum qca_wlan_vendor_attr_ftm_peer_info {
1731 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
1732 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
1733 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
a62dea41 1734 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
fcd85d9a
LD
1735 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
1736 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
32d08d5b 1737 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
fcd85d9a
LD
1738 /* keep last */
1739 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
1740 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
1741 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
1742};
1743
1744/**
1745 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
1746 * per-peer
1747 *
1748 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
1749 * immediate (ASAP) response from peer.
1750 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
1751 * LCI report from peer. The LCI report includes the absolute
1752 * location of the peer in "official" coordinates (similar to GPS).
1753 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
1754 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
1755 * Location civic report from peer. The LCR includes the location
1756 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
1757 * 11.24.6.7 for more information.
1758 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
1759 * request a secure measurement.
1760 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
1761 */
1762enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
1763 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
1764 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
1765 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
1766 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
1767};
1768
1769/**
1770 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
1771 *
1772 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
1773 * to perform in a single burst.
1774 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
1775 * perform, specified as an exponent (2^value).
1776 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
1777 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
1778 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
1779 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
1780 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
1781 */
1782enum qca_wlan_vendor_attr_ftm_meas_param {
1783 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
1784 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
1785 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
1786 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
1787 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
1788 /* keep last */
1789 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
1790 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
1791 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
1792};
1793
1794/**
1795 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
1796 *
1797 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
1798 * peer.
1799 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
1800 * request for this peer.
1801 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
1802 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
1803 * to measurement results for this peer.
1804 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
1805 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
1806 * request failed and peer requested not to send an additional request
1807 * for this number of seconds.
1808 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
1809 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
1810 * 9.4.2.22.10.
1811 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
1812 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
1813 * 9.4.2.22.13.
1814 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
1815 * overridden some measurement request parameters. See
1816 * enum qca_wlan_vendor_attr_ftm_meas_param.
1817 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
1818 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
1819 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
1820 * results. Each entry is a nested attribute defined
1821 * by enum qca_wlan_vendor_attr_ftm_meas.
1822 */
1823enum qca_wlan_vendor_attr_ftm_peer_result {
1824 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
1825 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
1826 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
1827 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
1828 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
1829 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
1830 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
1831 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
1832 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
1833 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
1834 /* keep last */
1835 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
1836 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
1837 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
1838};
1839
1840/**
1841 * enum qca_wlan_vendor_attr_ftm_peer_result_status
1842 *
1843 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
1844 * will be provided. Peer may have overridden some measurement parameters,
1845 * in which case overridden parameters will be report by
1846 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
1847 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
1848 * of performing the measurement request. No more results will be sent
1849 * for this peer in this session.
1850 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
1851 * failed, and requested not to send an additional request for number
1852 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
1853 * attribute.
1854 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
1855 * failed. Request was not sent over the air.
1856 */
1857enum qca_wlan_vendor_attr_ftm_peer_result_status {
1858 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
1859 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
1860 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
1861 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
1862};
1863
1864/**
1865 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
1866 * for measurement result, per-peer
1867 *
1868 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
1869 * measurement completed for this peer. No more results will be reported
1870 * for this peer in this session.
1871 */
1872enum qca_wlan_vendor_attr_ftm_peer_result_flags {
1873 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
1874};
1875
1876/**
1877 * enum qca_vendor_attr_loc_session_status: Session completion status code
1878 *
1879 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
1880 * successfully.
1881 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
1882 * by request.
1883 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
1884 * was invalid and was not started.
1885 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
1886 * and did not complete normally (for example out of resources).
1887 */
1888enum qca_vendor_attr_loc_session_status {
1889 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
1890 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
1891 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
1892 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
1893};
1894
1895/**
1896 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
1897 *
1898 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
1899 * recorded by responder, in picoseconds.
1900 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1901 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
1902 * initiator, in picoseconds.
1903 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1904 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
1905 * initiator, in picoseconds.
1906 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1907 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
1908 * responder, in picoseconds.
1909 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1910 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
1911 * during this measurement exchange. Optional and will be provided if
1912 * the hardware can measure it.
1913 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
1914 * responder. Not always provided.
1915 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1916 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
1917 * responder. Not always provided.
1918 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1919 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
1920 * initiator. Not always provided.
1921 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1922 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
1923 * initiator. Not always provided.
1924 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1925 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
1926 */
1927enum qca_wlan_vendor_attr_ftm_meas {
a62dea41 1928 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
fcd85d9a
LD
1929 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
1930 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
1931 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
1932 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
1933 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
1934 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
1935 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
1936 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
1937 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
1938 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
1939 /* keep last */
1940 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
1941 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
1942 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
1943};
1944
1945/**
1946 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
1947 *
1948 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
1949 * CIR (channel impulse response) path for each antenna.
1950 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
1951 * of the strongest CIR path for each antenna.
1952 */
1953enum qca_wlan_vendor_attr_aoa_type {
1954 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
1955 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
1956 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
1957};
1958
0d7eba54
SD
1959/**
1960 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
1961 * validate encryption engine
1962 *
1963 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
1964 * This will be included if the request is for decryption; if not included,
1965 * the request is treated as a request for encryption by default.
1966 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
1967 * indicating the key cipher suite. Takes same values as
1968 * NL80211_ATTR_KEY_CIPHER.
1969 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
1970 * Key Id to be used for encryption
1971 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
1972 * Key (TK) to be used for encryption/decryption
1973 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
1974 * Packet number to be specified for encryption/decryption
1975 * 6 bytes for TKIP/CCMP/GCMP.
1976 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
1977 * representing the 802.11 packet (header + payload + FCS) that
1978 * needs to be encrypted/decrypted.
1979 * Encrypted/decrypted response from the driver will also be sent
1980 * to userspace with the same attribute.
1981 */
1982enum qca_wlan_vendor_attr_encryption_test {
1983 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
1984 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
1985 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
1986 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
1987 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
1988 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
1989 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
1990
1991 /* keep last */
1992 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
1993 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
1994 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
1995};
1996
6eb1a569
LD
1997/**
1998 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
1999 * sector for DMG RF sector operations.
2000 *
2001 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
2002 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
2003 */
2004enum qca_wlan_vendor_attr_dmg_rf_sector_type {
2005 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
2006 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
2007 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
2008};
2009
160dca07
AAL
2010/**
2011 * BRP antenna limit mode
2012 *
2013 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
2014 * antenna limit, BRP will be performed as usual.
2015 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
2016 * antennas limit. the hardware may use less antennas than the
2017 * maximum limit.
2018 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
2019 * use exactly the specified number of antennas for BRP.
2020 */
2021enum qca_wlan_vendor_attr_brp_ant_limit_mode {
2022 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
2023 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
2024 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
2025 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
2026};
2027
6eb1a569
LD
2028/**
2029 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
2030 * DMG RF sector configuration for a single RF module.
2031 * The values are defined in a compact way which closely matches
2032 * the way it is stored in HW registers.
2033 * The configuration provides values for 32 antennas and 8 distribution
2034 * amplifiers, and together describes the characteristics of the RF
2035 * sector - such as a beam in some direction with some gain.
2036 *
2037 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
2038 * of RF module for this configuration.
2039 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
2040 * amplifier gain index. Unsigned 32 bit number containing
2041 * bits for all 32 antennas.
2042 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
2043 * amplifier gain index. Unsigned 32 bit number containing
2044 * bits for all 32 antennas.
2045 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
2046 * amplifier gain index. Unsigned 32 bit number containing
2047 * bits for all 32 antennas.
2048 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
2049 * for first 16 antennas, 2 bits per antenna.
2050 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
2051 * for last 16 antennas, 2 bits per antenna.
2052 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
2053 * DTYPE values (3 bits) for each distribution amplifier, followed
2054 * by X16 switch bits for each distribution amplifier. There are
2055 * total of 8 distribution amplifiers.
2056 */
2057enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
2058 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
2059 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
2060 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
2061 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
2062 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
2063 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
2064 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
2065 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
2066
2067 /* keep last */
2068 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
2069 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
2070 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
2071};
2072
95f3703a 2073enum qca_wlan_vendor_attr_ll_stats_set {
2074 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2075 /* Unsigned 32-bit value */
2076 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2077 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
2078 /* keep last */
2079 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2080 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2081 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
2082};
2083
2084enum qca_wlan_vendor_attr_ll_stats_clr {
2085 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2086 /* Unsigned 32bit bitmap for clearing statistics
2087 * All radio statistics 0x00000001
2088 * cca_busy_time (within radio statistics) 0x00000002
2089 * All channel stats (within radio statistics) 0x00000004
2090 * All scan statistics (within radio statistics) 0x00000008
2091 * All interface statistics 0x00000010
2092 * All tx rate statistics (within interface statistics) 0x00000020
2093 * All ac statistics (with in interface statistics) 0x00000040
2094 * All contention (min, max, avg) statistics (within ac statisctics)
2095 * 0x00000080.
2096 */
2097 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
2098 /* Unsigned 8 bit value: Request to stop statistics collection */
2099 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
2100
2101 /* Unsigned 32 bit bitmap: Response from the driver
2102 * for the cleared statistics
2103 */
2104 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
2105 /* Unsigned 8 bit value: Response from driver/firmware
2106 * for the stop request
2107 */
2108 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
2109 /* keep last */
2110 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2111 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2112 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
2113};
2114
2115enum qca_wlan_vendor_attr_ll_stats_get {
2116 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2117 /* Unsigned 32 bit value provided by the caller issuing the GET stats
2118 * command. When reporting the stats results, the driver uses the same
2119 * value to indicate which GET request the results correspond to.
2120 */
2121 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
2122 /* Unsigned 32 bit value - bit mask to identify what statistics are
2123 * requested for retrieval.
2124 * Radio Statistics 0x00000001
2125 * Interface Statistics 0x00000020
2126 * All Peer Statistics 0x00000040
2127 * Peer Statistics 0x00000080
2128 */
2129 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
2130 /* keep last */
2131 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2132 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2133 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
2134};
2135
2136enum qca_wlan_vendor_attr_ll_stats_results {
2137 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2138 /* Unsigned 32bit value. Used by the driver; must match the request id
2139 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2140 */
2141 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2142
2143 /* Unsigned 32 bit value */
2144 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2145 /* Unsigned 32 bit value */
2146 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2147 /* Unsigned 32 bit value */
2148 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2149 /* Unsigned 32 bit value */
2150 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2151 /* Signed 32 bit value */
2152 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2153 /* Signed 32 bit value */
2154 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2155 /* Signed 32 bit value */
2156 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2157
2158 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2159 * nested within the interface stats.
2160 */
2161
2162 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2163 * Type = enum wifi_interface_mode.
2164 */
2165 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2166 /* Interface MAC address. An array of 6 Unsigned int8 */
2167 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2168 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2169 * AUTHENTICATING, etc. valid for STA, CLI only.
2170 */
2171 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2172 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2173 */
2174 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2175 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2176 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2177 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2178 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2179 /* BSSID. An array of 6 unsigned 8 bit values */
2180 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2181 /* Country string advertised by AP. An array of 3 unsigned 8 bit
2182 * values.
2183 */
2184 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2185 /* Country string for this association. An array of 3 unsigned 8 bit
2186 * values.
2187 */
2188 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2189
2190 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2191 * be nested within the interface stats.
2192 */
2193
2194 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2195 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2196 /* Unsigned int 32 value corresponding to respective AC */
2197 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2198 /* Unsigned int 32 value corresponding to respective AC */
2199 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2200 /* Unsigned int 32 value corresponding to respective AC */
2201 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2202 /* Unsigned int 32 value corresponding to respective AC */
2203 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2204 /* Unsigned int 32 value corresponding to respective AC */
2205 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2206 /* Unsigned int 32 value corresponding to respective AC */
2207 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2208 /* Unsigned int 32 value corresponding to respective AC */
2209 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2210 /* Unsigned int 32 value corresponding to respective AC */
2211 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2212 /* Unsigned int 32 value corresponding to respective AC */
2213 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2214 /* Unsigned int 32 values corresponding to respective AC */
2215 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2216 /* Unsigned int 32 values corresponding to respective AC */
2217 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2218 /* Unsigned int 32 values corresponding to respective AC */
2219 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2220 /* Unsigned int 32 values corresponding to respective AC */
2221 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2222 /* Unsigned int 32 values corresponding to respective AC */
2223 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2224 /* Unsigned 32 bit value. Number of peers */
2225 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2226
2227 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2228 * nested within the interface stats.
2229 */
2230
2231 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2232 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2233 /* MAC addr corresponding to respective peer. An array of 6 unsigned
2234 * 8 bit values.
2235 */
2236 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2237 /* Unsigned int 32 bit value representing capabilities corresponding
2238 * to respective peer.
2239 */
2240 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2241 /* Unsigned 32 bit value. Number of rates */
2242 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2243
2244 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2245 * are nested within the rate stat.
2246 */
2247
2248 /* Wi-Fi Rate - separate attributes defined for individual fields */
2249
2250 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2251 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2252 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2253 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2254 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2255 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2256 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2257 * in the units of 0.5 Mbps HT/VHT it would be MCS index */
2258 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2259
2260 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2261 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2262
2263
2264 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2265 * nested within the peer info stats.
2266 */
2267
2268 /* Unsigned int 32 bit value. Number of successfully transmitted data
2269 * packets, i.e., with ACK received corresponding to the respective
2270 * rate.
2271 */
2272 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2273 /* Unsigned int 32 bit value. Number of received data packets
2274 * corresponding to the respective rate.
2275 */
2276 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2277 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2278 * received corresponding to the respective rate.
2279 */
2280 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2281 /* Unsigned int 32 bit value. Total number of data packet retries for
2282 * the respective rate.
2283 */
2284 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2285 /* Unsigned int 32 bit value. Total number of short data packet retries
2286 * for the respective rate.
2287 */
2288 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2289 /* Unsigned int 32 bit value. Total number of long data packet retries
2290 * for the respective rate.
2291 */
2292 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2293
2294 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2295 /* Unsigned 32 bit value. Total number of msecs the radio is awake
2296 * accruing over time.
2297 */
2298 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2299 /* Unsigned 32 bit value. Total number of msecs the radio is
2300 * transmitting accruing over time.
2301 */
2302 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2303 /* Unsigned 32 bit value. Total number of msecs the radio is in active
2304 * receive accruing over time.
2305 */
2306 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2307 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2308 * to all scan accruing over time.
2309 */
2310 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2311 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2312 * to NAN accruing over time.
2313 */
2314 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2315 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2316 * to GSCAN accruing over time.
2317 */
2318 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2319 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2320 * to roam scan accruing over time.
2321 */
2322 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2323 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2324 * to PNO scan accruing over time.
2325 */
2326 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2327 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2328 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2329 */
2330 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2331 /* Unsigned 32 bit value. Number of channels. */
2332 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2333
2334 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2335 * be nested within the channel stats.
2336 */
2337
2338 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2339 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2340 /* Unsigned 32 bit value. Primary 20 MHz channel. */
2341 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2342 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2343 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2344 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2345 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2346
2347 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2348 * nested within the radio stats.
2349 */
2350
2351 /* Unsigned int 32 bit value representing total number of msecs the
2352 * radio is awake on that channel accruing over time, corresponding to
2353 * the respective channel.
2354 */
2355 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2356 /* Unsigned int 32 bit value representing total number of msecs the CCA
2357 * register is busy accruing over time corresponding to the respective
2358 * channel.
2359 */
2360 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2361
2362 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2363
2364 /* Signifies the nested list of channel attributes
2365 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
2366 */
2367 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2368
2369 /* Signifies the nested list of peer info attributes
2370 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2371 */
2372 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2373
2374 /* Signifies the nested list of rate info attributes
2375 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2376 */
2377 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2378
2379 /* Signifies the nested list of wmm info attributes
2380 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2381 */
2382 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2383
2384 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2385 * that more stats, e.g., peers or radio, are to follow in the next
2386 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2387 * Otherwise, it is set to 0.
2388 */
2389 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2390
2391 /* Unsigned 64 bit value */
2392 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2393
2394 /* Unsigned 32 bit value */
2395 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2396
2397 /* Unsigned 32 bit value */
2398 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2399
2400 /* Unsigned 32 bit value */
2401 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2402
2403 /* Unsigned 32 bit value */
2404 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2405
2406 /* Unsigned 32 bit value */
2407 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2408
2409 /* Number of msecs the radio spent in transmitting for each power level
2410 */
2411 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2412
a18563d4 2413 /* Unsigned 32 bit value */
2414 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2415 /* Unsigned 32 bit value */
2416 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2417 /* Unsigned 32 bit value */
2418 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2419 /* Unsigned 32 bit value */
2420 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2421
95f3703a 2422 /* keep last */
2423 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2424 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2425 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2426};
2427
2428enum qca_wlan_vendor_attr_ll_stats_type
2429{
2430 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2431 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2432 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2433 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2434
2435 /* keep last */
2436 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2437 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2438 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2439};
2440
14cd203f
SD
2441/**
2442 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
2443 * TDLS configuration to the host driver.
2444 *
2445 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
2446 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
2447 * represents the different TDLS trigger modes.
2448 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
2449 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
2450 * of packets shall meet the criteria for implicit TDLS setup.
2451 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
2452 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
2453 * to initiate a TDLS setup.
2454 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
2455 * a TDLS Discovery to the peer.
2456 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
2457 * discovery attempts to know the TDLS capability of the peer. A peer is
2458 * marked as TDLS not capable if there is no response for all the attempts.
2459 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
2460 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
2461 * number of TX / RX frames meet the criteria for TDLS teardown.
2462 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
2463 * of Tx/Rx packets within a duration
2464 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
2465 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
2466 * corresponding to the RSSI of the peer below which a TDLS setup is
2467 * triggered.
2468 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
2469 * corresponding to the RSSI of the peer above which a TDLS teardown is
2470 * triggered.
2471 */
2472enum qca_wlan_vendor_attr_tdls_configuration {
2473 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
2474 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
2475
2476 /* Attributes configuring the TDLS Implicit Trigger */
2477 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
2478 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
2479 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
2480 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
2481 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
2482 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
2483 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
2484 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
2485
2486 /* keep last */
2487 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
2488 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
2489 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
2490};
2491
2492/**
2493 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
2494 * the driver
2495 *
2496 * The following are the different values for
2497 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
2498 *
2499 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
2500 * the TDLS connection to a respective peer comes from the user space.
2501 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
2502 * TDLS_DISCOVER to do this.
2503 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
2504 * setup/teardown to the eligible peer once the configured criteria
2505 * (such as TX/RX threshold, RSSI) is met. The attributes
2506 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
2507 * the different configuration criteria for the TDLS trigger from the
2508 * host driver.
2509 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
2510 * the TDLS setup / teardown through the implicit mode only to the
2511 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
2512 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
2513 * External mode works on top of the implicit mode. Thus the host driver
2514 * is expected to configure in TDLS Implicit mode too to operate in
2515 * External mode.
2516 * Configuring External mode alone without Implicit mode is invalid.
2517 *
2518 * All the above implementations work as expected only when the host driver
2519 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
2520 * that the TDLS message exchange is not internal to the host driver, but
2521 * depends on wpa_supplicant to do the message exchange.
2522 */
2523enum qca_wlan_vendor_tdls_trigger_mode {
2524 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
2525 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
2526 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
2527};
2528
c79238b6
JJ
2529/**
2530 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
c79238b6
JJ
2531 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
2532 * that is hard-coded in the Board Data File (BDF).
2533 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
2534 * that is hard-coded in the Board Data File (BDF).
2535 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
2536 * that is hard-coded in the Board Data File (BDF).
2537 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
2538 * that is hard-coded in the Board Data File (BDF).
2539 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
2540 * that is hard-coded in the Board Data File (BDF).
c313c8a5
JM
2541 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
2542 * source of SAR power limits, thereby disabling the SAR power
2543 * limit feature.
c79238b6
JJ
2544 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
2545 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
2546 *
2547 * This enumerates the valid set of values that may be supplied for
2548 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
2549 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command.
2550 */
2551enum qca_vendor_attr_sar_limits_selections {
c313c8a5 2552 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
c79238b6
JJ
2553 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
2554 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
2555 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
2556 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
c313c8a5 2557 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
c79238b6
JJ
2558 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
2559};
2560
2561/**
2562 * enum qca_vendor_attr_sar_limits_spec_modulations -
2563 * SAR limits specification modulation
2564 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
2565 * CCK modulation
2566 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
2567 * OFDM modulation
2568 *
2569 * This enumerates the valid set of values that may be supplied for
2570 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
2571 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
2572 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
2573 * command.
2574 */
2575enum qca_vendor_attr_sar_limits_spec_modulations {
2576 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
2577 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
2578};
2579
2580/**
2581 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
2582 *
2583 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT: Optional (u32) value to
2584 * select which SAR power limit table should be used. Valid
2585 * values are enumerated in enum
2586 * %qca_vendor_attr_sar_limits_selections. The existing SAR
2587 * power limit selection is unchanged if this attribute is not
2588 * present.
2589 *
2590 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
2591 * which specifies the number of SAR power limit specifications
2592 * which will follow.
2593 *
2594 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
2595 * limit specifications. The number of specifications is
2596 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
2597 * specification contains a set of
2598 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
2599 * specification is uniquely identified by the attributes
2600 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
2601 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
2602 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
2603 * contains as a payload the attribute
2604 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
2605 *
2606 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
2607 * indicate for which band this specification applies. Valid
2608 * values are enumerated in enum %nl80211_band (although not all
2609 * bands may be supported by a given device). If the attribute is
2610 * not supplied then the specification will be applied to all
2611 * supported bands.
2612 *
2613 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
2614 * to indicate for which antenna chain this specification
2615 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
2616 * attribute is not supplied then the specification will be
2617 * applied to all chains.
2618 *
2619 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
2620 * value to indicate for which modulation scheme this
2621 * specification applies. Valid values are enumerated in enum
2622 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
2623 * is not supplied then the specification will be applied to all
2624 * modulation schemes.
2625 *
2626 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
2627 * value to specify the actual power limit value in units of 0.5
2628 * dBm (i.e., a value of 11 represents 5.5 dBm).
2629 *
2630 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS.
2631 */
2632enum qca_vendor_attr_sar_limits {
2633 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
2634 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
2635 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
2636 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
2637 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
2638 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
2639 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
2640 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
2641
2642 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
2643 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
2644 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
2645};
2646
cea76147
SD
2647/**
2648 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
2649 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
2650 */
2651enum qca_wlan_vendor_attr_get_wifi_info {
2652 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
2653 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
2654 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
2655
2656 /* keep last */
2657 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
2658 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
2659 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
2660};
2661
2662/*
2663 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
2664 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
2665 */
2666enum qca_wlan_vendor_attr_wifi_logger_start {
2667 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
2668 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
2669 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
2670 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
2671
2672 /* keep last */
2673 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
2674 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
2675 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
2676};
2677
2678enum qca_wlan_vendor_attr_logger_results {
2679 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
2680
2681 /* Unsigned 32-bit value; must match the request Id supplied by
2682 * Wi-Fi HAL in the corresponding subcmd NL msg.
2683 */
2684 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
2685
2686 /* Unsigned 32-bit value; used to indicate the size of memory
2687 * dump to be allocated.
2688 */
2689 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
2690
2691 /* keep last */
2692 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
2693 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
2694 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
2695};
2696
2697enum qca_wlan_vendor_attr_roaming_config_params {
2698 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
2699
2700 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
2701 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
2702
2703 /* Attributes for wifi_set_ssid_white_list */
2704 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
2705 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
2706 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
2707
2708 /* Attributes for set_roam_params */
2709 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
2710 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
2711 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
2712 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
2713 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
2714 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
2715 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
2716
2717 /* Attribute for set_lazy_roam */
2718 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
2719
2720 /* Attribute for set_lazy_roam with preferences */
2721 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
2722 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
2723 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
2724 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
2725
2726 /* Attribute for set_blacklist bssid params */
2727 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
2728 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
2729 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
2730
2731 /* keep last */
2732 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
2733 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
2734 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
2735};
2736
2737/*
2738 * enum qca_wlan_vendor_attr_roam_subcmd: Attributes for data used by
2739 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
2740 */
2741enum qca_wlan_vendor_attr_roam_subcmd {
2742 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID = 0,
2743 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST = 1,
2744 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
2745 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM = 3,
2746 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS = 4,
2747 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS = 5,
2748 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID = 6,
2749
2750 /* keep last */
2751 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST,
2752 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX =
2753 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST - 1,
2754};
2755
2756enum qca_wlan_vendor_attr_gscan_config_params {
2757 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
2758
2759 /* Unsigned 32-bit value */
2760 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
2761
2762 /* Attributes for data used by
2763 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
2764 */
2765 /* Unsigned 32-bit value */
2766 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
2767 = 2,
2768 /* Unsigned 32-bit value */
2769 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
2770 = 3,
2771
2772 /* Attributes for input params used by
2773 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
2774 */
2775
2776 /* Unsigned 32-bit value; channel frequency */
2777 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
2778 /* Unsigned 32-bit value; dwell time in ms. */
2779 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
2780 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
2781 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
2782 /* Unsigned 8-bit value; channel class */
2783 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
2784
2785 /* Unsigned 8-bit value; bucket index, 0 based */
2786 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
2787 /* Unsigned 8-bit value; band. */
2788 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
2789 /* Unsigned 32-bit value; desired period, in ms. */
2790 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
2791 /* Unsigned 8-bit value; report events semantics. */
2792 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
2793 /* Unsigned 32-bit value. Followed by a nested array of
2794 * GSCAN_CHANNEL_SPEC_* attributes.
2795 */
2796 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
2797
2798 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
2799 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
2800 */
2801 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
2802
2803 /* Unsigned 32-bit value; base timer period in ms. */
2804 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
2805 /* Unsigned 32-bit value; number of APs to store in each scan in the
2806 * BSSID/RSSI history buffer (keep the highest RSSI APs).
2807 */
2808 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
2809 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
2810 * up AP.
2811 */
2812 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
2813 = 16,
2814
2815 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
2816 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
2817 * of the array is determined by NUM_BUCKETS.
2818 */
2819 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
2820
2821 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
2822 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
2823 */
2824 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
2825
2826 /* Unsigned 8-bit value */
2827 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
2828 = 19,
2829 /* Unsigned 32-bit value; maximum number of results to be returned. */
2830 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
2831 = 20,
2832
2833 /* An array of 6 x unsigned 8-bit value */
2834 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
2835 /* Signed 32-bit value */
2836 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
2837 /* Signed 32-bit value */
2838 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
2839 /* Unsigned 32-bit value */
2840 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
2841
2842 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
2843 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
2844 * array is determined by NUM_AP.
2845 */
2846 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
2847
2848 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
2849 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
2850 */
2851 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
2852
2853 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
2854 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
2855 = 27,
2856 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
2857 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
2858 = 28,
2859 /* Unsigned 32-bit value; number of APs breaching threshold. */
2860 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
2861 /* Unsigned 32-bit value; number of APs. Followed by an array of
2862 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
2863 */
2864 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
2865 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
2866 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
2867 = 31,
2868 /* Unsigned 32-bit value. If max_period is non zero or different than
2869 * period, then this bucket is an exponential backoff bucket.
2870 */
2871 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
2872 /* Unsigned 32-bit value. */
2873 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
2874 /* Unsigned 32-bit value. For exponential back off bucket, number of
2875 * scans to perform for a given period.
2876 */
2877 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
2878 /* Unsigned 8-bit value; in number of scans, wake up AP after these
2879 * many scans.
2880 */
2881 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
2882 = 35,
2883
2884 /* Attributes for data used by
2885 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
2886 */
2887 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
2888 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
2889 = 36,
2890 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
2891 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
2892 * size of the array is determined by NUM_SSID.
2893 */
2894 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
2895 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
2896 * attributes.
2897 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
2898 */
2899 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
2900
2901 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
2902 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
2903 /* Unsigned 8-bit value */
2904 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
2905 /* Signed 32-bit value */
2906 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
2907 /* Signed 32-bit value */
2908 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
2909 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
2910 */
2911 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
2912
2913 /* keep last */
2914 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
2915 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
2916 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
2917};
2918
2919enum qca_wlan_vendor_attr_gscan_results {
2920 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
2921
2922 /* Unsigned 32-bit value; must match the request Id supplied by
2923 * Wi-Fi HAL in the corresponding subcmd NL msg.
2924 */
2925 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
2926
2927 /* Unsigned 32-bit value; used to indicate the status response from
2928 * firmware/driver for the vendor sub-command.
2929 */
2930 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
2931
2932 /* GSCAN Valid Channels attributes */
2933 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
2934 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
2935 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
2936 * representing channel numbers.
2937 */
2938 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
2939
2940 /* GSCAN Capabilities attributes */
2941 /* Unsigned 32-bit value */
2942 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
2943 /* Unsigned 32-bit value */
2944 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
2945 /* Unsigned 32-bit value */
2946 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
2947 = 7,
2948 /* Unsigned 32-bit value */
2949 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
2950 = 8,
2951 /* Signed 32-bit value */
2952 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
2953 = 9,
2954 /* Unsigned 32-bit value */
2955 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
2956 /* Unsigned 32-bit value */
2957 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
2958 = 11,
2959 /* Unsigned 32-bit value */
2960 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
2961 = 12,
2962
2963 /* GSCAN Attributes used with
2964 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
2965 */
2966
2967 /* Unsigned 32-bit value */
2968 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
2969
2970 /* GSCAN attributes used with
2971 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
2972 */
2973
2974 /* An array of NUM_RESULTS_AVAILABLE x
2975 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
2976 */
2977 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
2978
2979 /* Unsigned 64-bit value; age of sample at the time of retrieval */
2980 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
2981 /* 33 x unsigned 8-bit value; NULL terminated SSID */
2982 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
2983 /* An array of 6 x unsigned 8-bit value */
2984 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
2985 /* Unsigned 32-bit value; channel frequency in MHz */
2986 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
2987 /* Signed 32-bit value */
2988 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
2989 /* Unsigned 32-bit value */
2990 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
2991 /* Unsigned 32-bit value */
2992 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
2993 /* Unsigned 16-bit value */
2994 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
2995 /* Unsigned 16-bit value */
2996 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
2997 /* Unsigned 32-bit value; size of the IE DATA blob */
2998 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
2999 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
3000 * information elements found in the beacon; this data should be a
3001 * packed list of wifi_information_element objects, one after the
3002 * other.
3003 */
3004 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
3005
3006 /* Unsigned 8-bit value; set by driver to indicate more scan results are
3007 * available.
3008 */
3009 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
3010
3011 /* GSCAN attributes for
3012 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
3013 */
3014 /* Unsigned 8-bit value */
3015 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
3016 /* Unsigned 32-bit value */
3017 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
3018
3019 /* GSCAN attributes for
3020 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
3021 */
3022 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3023 * to indicate number of results.
3024 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3025 * list of results.
3026 */
3027
3028 /* GSCAN attributes for
3029 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
3030 */
3031 /* An array of 6 x unsigned 8-bit value */
3032 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
3033 /* Unsigned 32-bit value */
3034 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
3035 = 30,
3036 /* Unsigned 32-bit value. */
3037 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
3038 = 31,
3039 /* A nested array of signed 32-bit RSSI values. Size of the array is
3040 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
3041 */
3042 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
3043 = 32,
3044
3045 /* GSCAN attributes used with
3046 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
3047 */
3048 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3049 * to indicate number of gscan cached results returned.
3050 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
3051 * the list of gscan cached results.
3052 */
3053
3054 /* An array of NUM_RESULTS_AVAILABLE x
3055 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
3056 */
3057 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
3058 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
3059 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
3060 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
3061 */
3062 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
3063 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3064 * to indicate number of wifi scan results/bssids retrieved by the scan.
3065 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3066 * list of wifi scan results returned for each cached result block.
3067 */
3068
3069 /* GSCAN attributes for
3070 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
3071 */
3072 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
3073 * number of results.
3074 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3075 * list of wifi scan results returned for each
3076 * wifi_passpoint_match_result block.
3077 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
3078 */
3079
3080 /* GSCAN attributes for
3081 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
3082 */
3083 /* Unsigned 32-bit value */
3084 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
3085 = 36,
3086 /* A nested array of
3087 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
3088 * attributes. Array size =
3089 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
3090 */
3091 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
3092
3093 /* Unsigned 32-bit value; network block id for the matched network */
3094 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
3095 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3096 * list of wifi scan results returned for each
3097 * wifi_passpoint_match_result block.
3098 */
3099 /* Unsigned 32-bit value */
3100 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
3101 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
3102 * ANQP data in the information_element format.
3103 */
3104 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
3105
3106 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3107 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
3108 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3109 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
3110 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3111 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
3112 = 43,
3113 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3114 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
3115 = 44,
3116
3117 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
3118
3119 /* keep last */
3120 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
3121 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
3122 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
3123};
3124
3125enum qca_wlan_vendor_attr_pno_config_params {
3126 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3127 /* Attributes for data used by
3128 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3129 */
3130 /* Unsigned 32-bit value */
3131 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3132 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3133 * attributes. Array size =
3134 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3135 */
3136 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3137
3138 /* Unsigned 32-bit value */
3139 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3140 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
3141 * realm, 0 if unspecified.
3142 */
3143 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3144 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
3145 * match, 0 if unspecified.
3146 */
3147 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3148 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
3149 * unspecified.
3150 */
3151 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3152
3153 /* Attributes for data used by
3154 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3155 */
3156 /* Unsigned 32-bit value */
3157 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3158 /* Array of nested
3159 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3160 * attributes. Array size =
3161 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
3162 */
3163 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3164 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3165 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3166 /* Signed 8-bit value; threshold for considering this SSID as found,
3167 * required granularity for this threshold is 4 dBm to 8 dBm.
3168 */
3169 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
3170 = 10,
3171 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
3172 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3173 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
3174 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3175 /* Unsigned 8-bit to indicate ePNO type;
3176 * It takes values from qca_wlan_epno_type
3177 */
3178 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3179
3180 /* Nested attribute to send the channel list */
3181 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3182
3183 /* Unsigned 32-bit value; indicates the interval between PNO scan
3184 * cycles in msec.
3185 */
3186 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3187 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3188 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3189 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3190 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3191 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3192 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3193 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
3194
3195 /* keep last */
3196 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3197 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3198 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3199};
3200
4c407000
PK
3201/**
3202 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
3203 * the ACS has to be triggered. These values are used by
3204 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
3205 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
3206 */
3207enum qca_wlan_vendor_acs_select_reason {
3208 /* Represents the reason that the ACS triggered during the AP start */
3209 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
3210 /* Represents the reason that DFS found with the current channel */
3211 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
3212 /* Represents the reason that LTE co-exist in the current band. */
3213 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
3214};
3215
3216/**
3217 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3218 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3219 */
3220enum qca_wlan_vendor_channel_prop_flags {
3221 /* Bits 0, 1, 2, and 3 are reserved */
3222
3223 /* Turbo channel */
3224 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
3225 /* CCK channel */
3226 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
3227 /* OFDM channel */
3228 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
3229 /* 2.4 GHz spectrum channel. */
3230 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
3231 /* 5 GHz spectrum channel */
3232 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
3233 /* Only passive scan allowed */
3234 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
3235 /* Dynamic CCK-OFDM channel */
3236 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
3237 /* GFSK channel (FHSS PHY) */
3238 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
3239 /* Radar found on channel */
3240 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
3241 /* 11a static turbo channel only */
3242 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
3243 /* Half rate channel */
3244 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
3245 /* Quarter rate channel */
3246 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
3247 /* HT 20 channel */
3248 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
3249 /* HT 40 with extension channel above */
3250 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
3251 /* HT 40 with extension channel below */
3252 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
3253 /* HT 40 intolerant */
3254 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
3255 /* VHT 20 channel */
3256 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
3257 /* VHT 40 with extension channel above */
3258 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
3259 /* VHT 40 with extension channel below */
3260 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
3261 /* VHT 80 channel */
3262 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
3263 /* HT 40 intolerant mark bit for ACS use */
3264 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3265 /* Channel temporarily blocked due to noise */
3266 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
3267 /* VHT 160 channel */
3268 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
3269 /* VHT 80+80 channel */
3270 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
3271};
3272
3273/**
3274 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3275 * each channel. This is used by
3276 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3277 */
3278enum qca_wlan_vendor_channel_prop_flags_ext {
3279 /* Radar found on channel */
3280 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
3281 /* DFS required on channel */
3282 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
3283 /* DFS required on channel for 2nd band of 80+80 */
3284 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
3285 /* If channel has been checked for DFS */
3286 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
3287 /* Excluded in 802.11d */
3288 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
3289 /* Channel Switch Announcement received on this channel */
3290 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
3291 /* Ad-hoc is not allowed */
3292 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
3293 /* Station only channel */
3294 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3295 /* DFS radar history for slave device (STA mode) */
3296 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
3297 /* DFS CAC valid for slave device (STA mode) */
3298 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
3299};
3300
3301/**
3302 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
3303 * information. These attributes are sent as part of
3304 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
3305 * attributes correspond to a single channel.
3306 */
3307enum qca_wlan_vendor_external_acs_event_chan_info_attr {
3308 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
3309
3310 /* A bitmask (u32) with flags specified in
3311 * enum qca_wlan_vendor_channel_prop_flags.
3312 */
3313 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
3314 /* A bitmask (u32) with flags specified in
3315 * enum qca_wlan_vendor_channel_prop_flags_ext.
3316 */
3317 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
3318 /* frequency in MHz (u32) */
3319 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
3320 /* maximum regulatory transmission power (u32) */
3321 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
3322 /* maximum transmission power (u32) */
3323 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
3324 /* minimum transmission power (u32) */
3325 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
3326 /* regulatory class id (u8) */
3327 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
3328 /* maximum antenna gain in (u8) */
3329 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
3330 /* VHT segment 0 (u8) */
3331 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
3332 /* VHT segment 1 (u8) */
3333 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
3334
3335 /* keep last */
3336 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
3337 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
3338 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
3339};
3340
3341/**
3342 * qca_wlan_vendor_attr_pcl: Represents attributes for
3343 * preferred channel list (PCL). These attributes are sent as part of
3344 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL.
3345 */
3346enum qca_wlan_vendor_attr_pcl {
3347 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
3348
3349 /* Channel number (u8) */
3350 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
3351 /* Channel weightage (u8) */
3352 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
3353};
3354
3355/**
3356 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
3357 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
3358 * host driver.
3359 */
3360enum qca_wlan_vendor_attr_external_acs_event {
3361 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
3362
3363 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
3364 * This helps ACS module to understand why ACS needs to be started.
3365 */
3366 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
3367 /* Flag attribute to indicate if driver supports spectral scanning */
3368 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
3369 /* Flag attribute to indicate if 11ac is offloaded to firmware */
3370 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
3371 /* Flag attribute to indicate if driver provides additional channel
3372 * capability as part of scan operation */
3373 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
3374 /* Flag attribute to indicate interface status is UP */
3375 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
3376 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
3377 * values. */
3378 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
3379 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
3380 * This is the upper bound of channel width. ACS logic should try to get
3381 * a channel with the specified width and if not found, look for lower
3382 * values.
3383 */
3384 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
3385 /* This (u8) will hold values of one of enum nl80211_bands */
3386 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
3387 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
3388 * values */
3389 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
3390 /* Array of (u32) supported frequency list among which ACS should choose
3391 * best frequency.
3392 */
3393 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
3394 /* Preferred channel list by the driver which will have array of nested
3395 * values as per enum qca_wlan_vendor_attr_pcl attribute.
3396 */
3397 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
3398 /* Array of nested attribute for each channel. It takes attr as defined
3399 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
3400 */
3401 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
3402
3403 /* keep last */
3404 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
3405 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
3406 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
3407};
3408
3409/**
3410 * qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
3411 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
3412 * in priority order as decided after ACS operation in userspace.
3413 */
3414enum qca_wlan_vendor_attr_external_acs_channels {
3415 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
3416
3417 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
3418 */
3419 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
3420
3421 /* Array of nested values for each channel with following attributes:
3422 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
3423 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
3424 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
3425 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
3426 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
3427 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
3428 */
3429 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
3430 /* This (u8) will hold values of one of enum nl80211_bands */
3431 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
3432 /* Primary channel (u8) */
3433 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
3434 /* Secondary channel (u8) used for HT 40 MHz channels */
3435 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
3436 /* VHT seg0 channel (u8) */
3437 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
3438 /* VHT seg1 channel (u8) */
3439 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
3440 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
3441 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
3442
3443 /* keep last */
3444 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
3445 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
3446 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
3447};
3448
d7d0f909
SD
3449enum qca_chip_power_save_failure_reason {
3450 /* Indicates if the reason for the failure is due to a protocol
3451 * layer/module.
3452 */
3453 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
3454 /* Indicates if the reason for the failure is due to a hardware issue.
3455 */
3456 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
3457};
3458
3459/**
3460 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
3461 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
3462 * information leading to the power save failure.
3463 */
3464enum qca_attr_chip_power_save_failure {
3465 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
3466 /* Reason to cause the power save failure.
3467 * These reasons are represented by
3468 * enum qca_chip_power_save_failure_reason.
3469 */
3470 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
3471
3472 /* keep last */
3473 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
3474 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
3475 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
3476};
3477
a9491695
SD
3478/**
3479 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3480 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3481 * information to start/stop the NUD statistics collection.
3482 */
3483enum qca_attr_nud_stats_set {
3484 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
3485
3486 /* Flag to start/stop the NUD statistics collection.
3487 * Start - If included, Stop - If not included
3488 */
3489 QCA_ATTR_NUD_STATS_SET_START = 1,
3490 /* IPv4 address of the default gateway (in network byte order) */
3491 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
3492
3493 /* keep last */
3494 QCA_ATTR_NUD_STATS_SET_LAST,
3495 QCA_ATTR_NUD_STATS_SET_MAX =
3496 QCA_ATTR_NUD_STATS_SET_LAST - 1,
3497};
3498
3499/**
3500 * qca_attr_nud_stats_get: Attributes to vendor subcmd
3501 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
3502 * NUD statistics collected when queried.
3503 */
3504enum qca_attr_nud_stats_get {
3505 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
3506 /* ARP Request count from netdev */
3507 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
3508 /* ARP Request count sent to lower MAC from upper MAC */
3509 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
3510 /* ARP Request count received by lower MAC from upper MAC */
3511 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
3512 /* ARP Request count successfully transmitted by the device */
3513 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
3514 /* ARP Response count received by lower MAC */
3515 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
3516 /* ARP Response count received by upper MAC */
3517 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
3518 /* ARP Response count delivered to netdev */
3519 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
3520 /* ARP Response count delivered to netdev */
3521 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
3522 /* Flag indicating if the station's link to the AP is active.
3523 * Active Link - If included, Inactive link - If not included
3524 */
7f5f4e46 3525 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
a9491695
SD
3526 /* Flag indicating if there is any duplicate address detected (DAD).
3527 * Yes - If detected, No - If not detected.
3528 */
7f5f4e46 3529 QCA_ATTR_NUD_STATS_IS_DAD = 10,
a9491695
SD
3530
3531 /* keep last */
3532 QCA_ATTR_NUD_STATS_GET_LAST,
3533 QCA_ATTR_NUD_STATS_GET_MAX =
3534 QCA_ATTR_NUD_STATS_GET_LAST - 1,
3535};
3536
70407ee5
KV
3537enum qca_wlan_btm_candidate_status {
3538 QCA_STATUS_ACCEPT = 0,
3539 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
3540 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
3541 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
3542 QCA_STATUS_REJECT_LOW_RSSI = 4,
3543 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
3544 QCA_STATUS_REJECT_UNKNOWN = 6,
3545};
3546
3547enum qca_wlan_vendor_attr_btm_candidate_info {
3548 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
3549
3550 /* 6-byte MAC address representing the BSSID of transition candidate */
3551 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
3552 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
3553 * returned by the driver. It says whether the BSSID provided in
3554 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
3555 * the driver, if not it specifies the reason for rejection.
3556 * Note that the user-space can overwrite the transition reject reason
3557 * codes provided by driver based on more information.
3558 */
3559 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
3560
3561 /* keep last */
3562 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
3563 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
3564 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
3565};
3566
841e9a8c
SD
3567enum qca_attr_trace_level {
3568 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
3569 /*
3570 * Nested array of the following attributes:
3571 * QCA_ATTR_TRACE_LEVEL_MODULE,
3572 * QCA_ATTR_TRACE_LEVEL_MASK.
3573 */
3574 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
3575 /*
3576 * Specific QCA host driver module. Please refer to the QCA host
3577 * driver implementation to get the specific module ID.
3578 */
3579 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
3580 /* Different trace level masks represented in the QCA host driver. */
3581 QCA_ATTR_TRACE_LEVEL_MASK = 3,
3582
3583 /* keep last */
3584 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
3585 QCA_ATTR_TRACE_LEVEL_MAX =
3586 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
3587};
3588
7785c70b
PX
3589/**
3590 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
3591 */
3592enum qca_wlan_vendor_attr_get_he_capabilities {
3593 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
3594 /* Whether HE capabilities is supported
3595 * (u8 attribute: 0 = not supported, 1 = supported) */
3596 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
3597 /* HE PHY capabilities, array of 3 u32 values */
3598 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
3599 /* HE MAC capabilities (u32 attribute) */
3600 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
3601 /* HE MCS map (u32 attribute) */
3602 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
3603 /* Number of SS (u32 attribute) */
3604 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
3605 /* RU count (u32 attribute) */
3606 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
3607 /* PPE threshold data, array of 8 u32 values */
3608 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
3609
3610 /* keep last */
3611 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
3612 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
3613 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
3614};
3615
1682c623 3616#endif /* QCA_VENDOR_H */