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