]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/common/qca-vendor.h
Use eloop timeout for post-EAP-Failure wait before disconnection
[thirdparty/hostap.git] / src / common / qca-vendor.h
CommitLineData
1682c623
JM
1/*
2 * Qualcomm Atheros OUI and vendor specific assignments
e0761c5b 3 * Copyright (c) 2014-2015, 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
PX
92 *
93 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
94 * start the P2P Listen offload function in device and pass the listen
95 * channel, period, interval, count, device types, and vendor specific
96 * information elements to the device driver and firmware.
97 * Uses the attributes defines in
98 * enum qca_wlan_vendor_attr_p2p_listen_offload.
99 *
100 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
101 * indicate stop request/response of the P2P Listen offload function in
102 * device. As an event, it indicates either the feature stopped after it
103 * was already running or feature has actually failed to start. Uses the
104 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
1c8fe68f
CM
105 *
106 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
107 * beaconing, this sub command provides the driver, the frequencies on the
108 * 5 GHz band to check for any radar activity. Driver selects one channel
109 * from this priority list provided through
110 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
111 * to check for radar activity on it. If no radar activity is detected
112 * during the channel availability check period, driver internally switches
113 * to the selected frequency of operation. If the frequency is zero, driver
114 * internally selects a channel. The status of this conditional switch is
115 * indicated through an event using the same sub command through
116 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
117 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
4ac75cd0
VK
118 *
119 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
120 * attributes defined in enum qca_wlan_gpio_attr.
6fe3b9d4
YT
121 *
122 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
123 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
124 * capabilities are to be fetched and other
125 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
126 * requested capabilities.
22950d05
ZQ
127 *
128 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
129 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
130 * command and event.
fcd85d9a
LD
131 *
132 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
133 * indoor location features. Capabilities are reported in
134 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
135 *
136 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
137 * (fine timing measurement) session with one or more peers.
138 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
139 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
140 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
141 * events will be reported, followed by
142 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
143 * end of session.
144 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
145 *
146 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
147 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
148 * status code indicating session was aborted.
149 *
150 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
151 * results for one peer. Results are reported in
152 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
153 *
154 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
155 * FTM session is finished, either successfully or aborted by
156 * request.
157 *
158 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
159 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
160 * to enable or disable the responder. LCI/LCR reports can be
161 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
162 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
163 * times to update the LCI/LCR reports.
164 *
165 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
166 * arrival) measurement with a single peer. Specify peer MAC address in
32d08d5b
LD
167 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
168 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
169 * scan results cache and use the frequency from there).
170 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
171 * Measurement result is reported in
fcd85d9a
LD
172 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
173 *
174 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
175 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
176 *
177 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
178 * the AOA measurement result.
179 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
180 * success/failure status is reported in
181 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
182 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
183 * The antenna array(s) used in the measurement are reported in
184 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
0d7eba54
SD
185 *
186 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
187 * data as per the given parameters.
8b7c5b89 188 *
189 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
190 * specific chain.
6eb1a569
LD
191 *
192 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
193 * configuration for a DMG RF sector. Specify sector index in
194 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
195 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
196 * to return sector information for in
197 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
198 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
199 * exact time where information was captured in
200 * QCA_WLAN_VENDOR_ATTR_TSF.
201 *
202 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
203 * configuration for a DMG RF sector. Specify sector index in
204 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
205 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
206 * for one or more DMG RF modules in
207 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
208 *
209 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
210 * DMG RF sector for a station. This is the sector that the HW
211 * will use to communicate with the station. Specify the MAC address
212 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
213 * needed for unassociated station). Specify sector type to return in
214 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
215 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
216 * Also return the exact time where the information was captured
217 * in QCA_WLAN_VENDOR_ATTR_TSF.
218 *
219 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
220 * selected DMG RF sector for a station. This is the sector that
221 * the HW will use to communicate with the station.
222 * Specify the MAC address of associated station/AP/PCP in
223 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
224 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
225 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
226 * The selected sector will be locked such that it will not be
227 * modified like it normally does (for example when station
228 * moves around). To unlock the selected sector for a station
229 * pass the special value 0xFFFF in the sector index. To unlock
230 * all connected stations also pass a broadcast MAC address.
14cd203f
SD
231 *
232 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
233 * in the host driver. The different TDLS configurations are defined
234 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
1a793f5c
SD
235 *
236 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
237 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
238 * carries the scan cookie of the corresponding scan request. The scan
239 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
1682c623
JM
240 */
241enum qca_nl80211_vendor_subcmds {
242 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
243 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
0800f9ee
JM
244 /* subcmds 2..8 not yet allocated */
245 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
253f2e37 246 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
65d645ce 247 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
4a16a0bd 248 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
87416eaf 249 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
37df6a87
JM
250 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
251 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
252 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
253 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
254 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
255 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
e48635cf
JM
256 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
257 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
258 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
259 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
260 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
261 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
262 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
263 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
264 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
265 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
266 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
267 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
268 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
269 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
37df6a87
JM
270 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
271 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
272 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
273 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
274 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
275 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
276 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
994d6f46 277 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
37df6a87
JM
278 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
279 /* 43..49 - reserved for QCA */
b41f2684
CL
280 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
281 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
41a23357 282 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
90758f09 283 /* 53 - reserved - was used by QCA, but not in use anymore */
16689c7c 284 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
15badebd 285 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
480994da
AK
286 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
287 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
288 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
289 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
290 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
ac7aea86
SD
291 /* 61-73 - reserved for QCA */
292 /* Wi-Fi configuration subcommands */
293 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
294 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
295 /* 76-90 - reserved for QCA */
b2329e4a 296 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
7f90a234
JM
297 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
298 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
299 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
300 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
301 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
302 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
303 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
304 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
305 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
279724d8 306 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
d71bdfbd 307 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
6b0ceee9
AK
308 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
309 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
844dfeb8 310 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
b4856719
KV
311 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
312 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
5d4c5089
PX
313 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
314 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
95784134 315 /* 110..114 - reserved for QCA */
9a8d9f7c 316 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
52a6c9c9
SD
317 /* 116..117 - reserved for QCA */
318 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
85c0f01d
MM
319 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
320 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
d1296da6 321 /* 121 - reserved for QCA */
35d66557
PX
322 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
323 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1c8fe68f 324 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
4ac75cd0 325 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
6fe3b9d4 326 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
22950d05 327 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
fcd85d9a
LD
328 /* FTM/indoor location subcommands */
329 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
330 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
331 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
332 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
333 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
334 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
335 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
336 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
337 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
0d7eba54 338 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
8b7c5b89 339 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
6eb1a569
LD
340 /* DMG low level RF sector operations */
341 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
342 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
343 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
344 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
14cd203f 345 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
5e785a67 346 /* 144 - reserved for QCA */
1a793f5c 347 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
1682c623
JM
348};
349
253f2e37 350
65d645ce
AS
351enum qca_wlan_vendor_attr {
352 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
353 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
354 QCA_WLAN_VENDOR_ATTR_DFS = 1,
4a16a0bd
AHS
355 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
356 QCA_WLAN_VENDOR_ATTR_NAN = 2,
4a64d5a9
AS
357 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
358 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
84df1675
AS
359 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
360 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
0800f9ee
JM
361 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
362 * by enum qca_roaming_policy. */
363 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
364 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
15badebd
CL
365 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
366 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1db718b3 367 QCA_WLAN_VENDOR_ATTR_TEST = 8,
6b0ceee9
AK
368 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
369 /* Unsigned 32-bit value. */
370 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
371 /* Unsigned 32-bit value */
372 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
373 /* Unsigned 32-bit value */
374 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
844dfeb8
SD
375 /* Unsigned 32-bit value from enum qca_set_band. */
376 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
fcd85d9a
LD
377 /* Dummy (NOP) attribute for 64 bit padding */
378 QCA_WLAN_VENDOR_ATTR_PAD = 13,
379 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
380 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
381 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
382 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
383 */
384 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
385 /* Indoor location capabilities, returned by
386 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
387 * see enum qca_wlan_vendor_attr_loc_capa.
388 */
389 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
390 /* Array of nested attributes containing information about each peer
391 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
392 * for supported attributes for each peer.
393 */
394 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
395 /* Array of nested attributes containing measurement results for
396 * one or more peers, reported by the
397 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
398 * See enum qca_wlan_vendor_attr_peer_result for list of supported
399 * attributes.
400 */
401 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
402 /* Flag attribute for enabling or disabling responder functionality. */
403 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
404 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
405 * command to specify the LCI report that will be sent by
406 * the responder during a measurement exchange. The format is
407 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
408 */
409 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
410 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
411 * command to specify the location civic report that will
412 * be sent by the responder during a measurement exchange.
413 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
414 */
415 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
416 /* Session/measurement completion status code,
417 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
418 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
419 * see enum qca_vendor_attr_loc_session_status.
420 */
421 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
422 /* Initial dialog token used by responder (0 if not specified),
423 * unsigned 8 bit value.
424 */
425 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
426 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
427 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
428 * AOA measurements are needed as part of an FTM session.
429 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
430 * enum qca_wlan_vendor_attr_aoa_type.
431 */
432 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
433 /* A bit mask (unsigned 32 bit value) of antenna arrays used
434 * by indoor location measurements. Refers to the antenna
435 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
436 */
437 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
438 /* AOA measurement data. Its contents depends on the AOA measurement
439 * type and antenna array mask:
440 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
441 * phase of the strongest CIR path for each antenna in the measured
442 * array(s).
443 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
444 * values, phase and amplitude of the strongest CIR path for each
445 * antenna in the measured array(s).
446 */
447 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
8b7c5b89 448 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
449 * to specify the chain number (unsigned 32 bit value) to inquire
450 * the corresponding antenna RSSI value */
451 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
452 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
453 * to report the specific antenna RSSI value (unsigned 32 bit value) */
454 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
32d08d5b
LD
455 /* Frequency in MHz, various uses. Unsigned 32 bit value */
456 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
6eb1a569
LD
457 /* TSF timer value, unsigned 64 bit value.
458 * May be returned by various commands.
459 */
460 QCA_WLAN_VENDOR_ATTR_TSF = 29,
461 /* DMG RF sector index, unsigned 16 bit number. Valid values are
462 * 0..127 for sector indices or 65535 as special value used to
463 * unlock sector selection in
464 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
465 */
466 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
467 /* DMG RF sector type, unsigned 8 bit value. One of the values
468 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
469 */
470 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
471 /* Bitmask of DMG RF modules for which information is requested. Each
472 * bit corresponds to an RF module with the same index as the bit
473 * number. Unsigned 32 bit number but only low 8 bits can be set since
474 * all DMG chips currently have up to 8 RF modules.
475 */
476 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
477 /* Array of nested attributes where each entry is DMG RF sector
478 * configuration for a single RF module.
479 * Attributes for each entry are taken from enum
480 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
481 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
482 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
483 */
484 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
87416eaf 485 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
486 * to report frame aggregation statistics to userspace.
487 */
488 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
489 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
490
65d645ce
AS
491 /* keep last */
492 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
493 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
494};
495
0800f9ee
JM
496
497enum qca_roaming_policy {
498 QCA_ROAMING_NOT_ALLOWED,
499 QCA_ROAMING_ALLOWED_WITHIN_ESS,
500};
501
b41f2684
CL
502enum qca_wlan_vendor_attr_roam_auth {
503 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
504 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
505 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
506 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
507 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
508 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
509 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
510 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
d3819633 511 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
b41f2684
CL
512 /* keep last */
513 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
514 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
515 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
516};
517
35d66557
PX
518enum qca_wlan_vendor_attr_p2p_listen_offload {
519 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
520 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
521 * of the social channels.
522 */
523 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
524 /* A 32-bit unsigned value; the P2P listen offload period (ms).
525 */
526 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
527 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
528 */
529 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
530 /* A 32-bit unsigned value; number of interval times the firmware needs
531 * to run the offloaded P2P listen operation before it stops.
532 */
533 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
534 /* An array of arbitrary binary data with one or more 8-byte values.
535 * The device types include both primary and secondary device types.
536 */
537 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
538 /* An array of unsigned 8-bit characters; vendor information elements.
539 */
540 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
541 /* A 32-bit unsigned value; a control flag to indicate whether listen
542 * results need to be flushed to wpa_supplicant.
543 */
544 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
545 /* A 8-bit unsigned value; reason code for P2P listen offload stop
546 * event.
547 */
548 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
549 /* keep last */
550 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
551 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
552 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
553};
554
16689c7c
PX
555enum qca_wlan_vendor_attr_acs_offload {
556 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
557 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
558 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
559 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
560 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
561 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
857d9422
MM
562 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
563 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
564 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
565 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
566 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
d0cdccd3 567 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
16689c7c
PX
568 /* keep last */
569 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
570 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
571 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
572};
573
574enum qca_wlan_vendor_acs_hw_mode {
575 QCA_ACS_MODE_IEEE80211B,
576 QCA_ACS_MODE_IEEE80211G,
577 QCA_ACS_MODE_IEEE80211A,
578 QCA_ACS_MODE_IEEE80211AD,
3784c058 579 QCA_ACS_MODE_IEEE80211ANY,
16689c7c
PX
580};
581
15badebd
CL
582/**
583 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
584 *
585 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
586 * management offload, a mechanism where the station's firmware
587 * does the exchange with the AP to establish the temporal keys
588 * after roaming, rather than having the user space wpa_supplicant do it.
3784c058
PX
589 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
590 * band selection based on channel selection results.
94fb165c
KV
591 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
592 * simultaneous off-channel operations.
35d66557
PX
593 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
594 * Listen offload; a mechanism where the station's firmware takes care of
595 * responding to incoming Probe Request frames received from other P2P
596 * Devices whilst in Listen state, rather than having the user space
597 * wpa_supplicant do it. Information from received P2P requests are
598 * forwarded from firmware to host whenever the host processor wakes up.
15badebd
CL
599 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
600 */
601enum qca_wlan_vendor_features {
602 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
3784c058 603 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
94fb165c 604 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
35d66557 605 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
15badebd
CL
606 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
607};
608
b2329e4a
SD
609/**
610 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
611 *
612 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
613 * the offloaded data.
614 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
615 * data.
616 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
617 * indication.
618 */
619enum qca_wlan_vendor_attr_data_offload_ind {
620 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
621 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
622 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
623 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
624
625 /* keep last */
626 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
627 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
628 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
629};
6b0ceee9
AK
630
631enum qca_vendor_attr_get_preferred_freq_list {
632 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
633 /* A 32-unsigned value; the interface type/mode for which the preferred
634 * frequency list is requested (see enum qca_iface_type for possible
635 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
636 * kernel and in the kernel response back to user-space.
637 */
638 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
639 /* An array of 32-unsigned values; values are frequency (MHz); sent
640 * from kernel space to user space.
641 */
642 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
643 /* keep last */
644 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
645 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
646 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
647};
648
649enum qca_vendor_attr_probable_oper_channel {
650 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
651 /* 32-bit unsigned value; indicates the connection/iface type likely to
652 * come on this channel (see enum qca_iface_type).
653 */
654 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
655 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
656 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
657 /* keep last */
658 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
659 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
660 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
661};
662
663enum qca_iface_type {
664 QCA_IFACE_TYPE_STA,
665 QCA_IFACE_TYPE_AP,
666 QCA_IFACE_TYPE_P2P_CLIENT,
667 QCA_IFACE_TYPE_P2P_GO,
668 QCA_IFACE_TYPE_IBSS,
669 QCA_IFACE_TYPE_TDLS,
670};
671
844dfeb8
SD
672enum qca_set_band {
673 QCA_SETBAND_AUTO,
674 QCA_SETBAND_5G,
675 QCA_SETBAND_2G,
676};
677
14b76124
SD
678/**
679 * enum qca_access_policy - Access control policy
680 *
681 * Access control policy is applied on the configured IE
682 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
683 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
684 *
685 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
686 * the specific configuration (IE) set, i.e., allow all the
687 * connections which do not match the configuration.
688 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
689 * the specific configuration (IE) set, i.e., deny all the
690 * connections which do not match the configuration.
691 */
692enum qca_access_policy {
693 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
694 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
695};
696
85c0f01d
MM
697/**
698 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
699 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
700 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
701 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
702 * SOC timer value at TSF capture
703 */
704enum qca_vendor_attr_tsf_cmd {
705 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
706 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
707 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
708 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
709 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
710 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
711 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
712};
713
714/**
715 * enum qca_tsf_operation: TSF driver commands
716 * @QCA_TSF_CAPTURE: Initiate TSF Capture
717 * @QCA_TSF_GET: Get TSF capture value
718 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
719 */
720enum qca_tsf_cmd {
721 QCA_TSF_CAPTURE,
722 QCA_TSF_GET,
723 QCA_TSF_SYNC_GET,
724};
725
726/**
727 * enum qca_vendor_attr_wisa_cmd
728 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
729 * WISA setup vendor commands
730 */
731enum qca_vendor_attr_wisa_cmd {
732 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
733 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
734 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
735 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
736 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
737};
738
b43b2b52
JM
739/* IEEE 802.11 Vendor Specific elements */
740
741/**
742 * enum qca_vendor_element_id - QCA Vendor Specific element types
743 *
744 * These values are used to identify QCA Vendor Specific elements. The
745 * payload of the element starts with the three octet OUI (OUI_QCA) and
746 * is followed by a single octet type which is defined by this enum.
747 *
748 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
749 * This element can be used to specify preference order for supported
750 * channels. The channels in this list are in preference order (the first
751 * one has the highest preference) and are described as a pair of
752 * (global) Operating Class and Channel Number (each one octet) fields.
753 *
754 * This extends the standard P2P functionality by providing option to have
755 * more than one preferred operating channel. When this element is present,
756 * it replaces the preference indicated in the Operating Channel attribute.
757 * For supporting other implementations, the Operating Channel attribute is
758 * expected to be used with the highest preference channel. Similarly, all
759 * the channels included in this Preferred channel list element are
760 * expected to be included in the Channel List attribute.
761 *
762 * This vendor element may be included in GO Negotiation Request, P2P
763 * Invitation Request, and Provision Discovery Request frames.
617593c3
JM
764 *
765 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
766 * This element can be used for pre-standard publication testing of HE
767 * before P802.11ax draft assigns the element ID. The payload of this
768 * vendor specific element is defined by the latest P802.11ax draft.
769 * Please note that the draft is still work in progress and this element
770 * payload is subject to change.
771 *
772 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
773 * This element can be used for pre-standard publication testing of HE
774 * before P802.11ax draft assigns the element ID. The payload of this
775 * vendor specific element is defined by the latest P802.11ax draft.
776 * Please note that the draft is still work in progress and this element
777 * payload is subject to change.
b43b2b52
JM
778 */
779enum qca_vendor_element_id {
780 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
617593c3
JM
781 QCA_VENDOR_ELEM_HE_CAPAB = 1,
782 QCA_VENDOR_ELEM_HE_OPER = 2,
b43b2b52
JM
783};
784
b4856719
KV
785/**
786 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
787 *
788 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
789 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
790 * with frequencies to be scanned (in MHz)
791 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
792 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
793 * rates to be included
794 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
795 * at non CCK rate in 2GHz band
796 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
797 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
798 * driver for the specific scan request
799 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
800 * request decoded as in enum scan_status
801 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
802 * scan flag is set
803 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
804 * randomisation
805 */
806enum qca_wlan_vendor_attr_scan {
807 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
808 QCA_WLAN_VENDOR_ATTR_SCAN_IE,
809 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
810 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
811 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
812 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
813 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
814 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
815 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
816 QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
817 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
818 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
819 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
820 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
821};
822
823/**
824 * enum scan_status - Specifies the valid values the vendor scan attribute
825 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
826 *
827 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
828 * new scan results
829 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
830 */
831enum scan_status {
832 VENDOR_SCAN_STATUS_NEW_RESULTS,
833 VENDOR_SCAN_STATUS_ABORTED,
834 VENDOR_SCAN_STATUS_MAX,
835};
836
5d4c5089
PX
837/**
838 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
839 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
840 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
841 */
842enum qca_vendor_attr_ota_test {
843 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
844 /* 8-bit unsigned value to indicate if OTA test is enabled */
845 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
846 /* keep last */
847 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
848 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
849 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
850};
851
852/**
853 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
854 *
855 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
856 */
857enum qca_vendor_attr_txpower_scale {
858 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
859 /* 8-bit unsigned value to indicate the scaling of tx power */
860 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
861 /* keep last */
862 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
863 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
864 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
865};
866
9a8d9f7c
PX
867/**
868 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
869 *
870 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
871 */
872enum qca_vendor_attr_txpower_decr_db {
873 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
874 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
875 * a virtual interface. */
876 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
877 /* keep last */
878 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
879 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
880 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
881};
882
ac7aea86 883/* Attributes for data used by
4f910f38
JM
884 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
885 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
ac7aea86
SD
886 */
887enum qca_wlan_vendor_attr_config {
8b668884 888 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
ac7aea86
SD
889 /* Unsigned 32-bit value to set the DTIM period.
890 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
891 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
892 * DTIM beacons.
893 */
8b668884 894 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
ac7aea86
SD
895 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
896 * used to calculate statistics like average the TSF offset or average
897 * number of frame leaked.
898 * For instance, upon Beacon frame reception:
899 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
900 * For instance, when evaluating leaky APs:
901 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
902 */
8b668884 903 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
ac7aea86
SD
904 /* Unsigned 32-bit value to configure guard time, i.e., when
905 * implementing IEEE power management based on frame control PM bit, how
906 * long the driver waits before shutting down the radio and after
907 * receiving an ACK frame for a Data frame with PM bit set.
908 */
8b668884 909 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
ac7aea86 910 /* Unsigned 32-bit value to change the FTM capability dynamically */
8b668884 911 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
ac7aea86 912 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
8b668884 913 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
ac7aea86
SD
914 /* Unsigned 32-bit value to configure the number of continuous
915 * Beacon Miss which shall be used by the firmware to penalize
916 * the RSSI.
917 */
8b668884 918 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
ac7aea86
SD
919 /* Unsigned 8-bit value to configure the channel avoidance indication
920 * behavior. Firmware to send only one indication and ignore duplicate
921 * indications when set to avoid multiple Apps wakeups.
922 */
8b668884 923 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
ac7aea86
SD
924 /* 8-bit unsigned value to configure the maximum TX MPDU for
925 * aggregation. */
8b668884 926 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
ac7aea86
SD
927 /* 8-bit unsigned value to configure the maximum RX MPDU for
928 * aggregation. */
8b668884 929 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
52fec366 930 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
931 * retry threshold (0 disable, 31 max). */
8b668884 932 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
52fec366 933 /* 8-bit unsigned value to configure the aggregrate sw
934 * retry threshold (0 disable, 31 max). */
8b668884 935 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
52fec366 936 /* 8-bit unsigned value to configure the MGMT frame
937 * retry threshold (0 disable, 31 max). */
8b668884 938 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
52fec366 939 /* 8-bit unsigned value to configure the CTRL frame
940 * retry threshold (0 disable, 31 max). */
8b668884 941 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
52fec366 942 /* 8-bit unsigned value to configure the propagation delay for
943 * 2G/5G band (0~63, units in us) */
8b668884 944 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
6c34b9c2
SD
945 /* Unsigned 32-bit value to configure the number of unicast TX fail
946 * packet count. The peer is disconnected once this threshold is
947 * reached. */
8b668884 948 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
ab218631 949 /* Attribute used to set scan default IEs to the driver.
950 *
951 * These IEs can be used by scan operations that will be initiated by
952 * the driver/firmware.
953 *
954 * For further scan requests coming to the driver, these IEs should be
955 * merged with the IEs received along with scan request coming to the
956 * driver. If a particular IE is present in the scan default IEs but not
957 * present in the scan request, then that IE should be added to the IEs
958 * sent in the Probe Request frames for that scan request. */
8b668884 959 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
babf0ce0 960 /* Unsigned 32-bit attribute for generic commands */
8b668884 961 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
babf0ce0 962 /* Unsigned 32-bit value attribute for generic commands */
8b668884 963 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
babf0ce0 964 /* Unsigned 32-bit data attribute for generic command response */
8b668884 965 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
babf0ce0
VK
966 /* Unsigned 32-bit length attribute for
967 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
8b668884 968 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
babf0ce0
VK
969 /* Unsigned 32-bit flags attribute for
970 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
8b668884 971 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
14b76124
SD
972 /* Unsigned 32-bit, defining the access policy.
973 * See enum qca_access_policy. Used with
974 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */
8b668884 975 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
14b76124
SD
976 /* Sets the list of full set of IEs for which a specific access policy
977 * has to be applied. Used along with
978 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
979 * Zero length payload can be used to clear this access constraint. */
8b668884 980 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
fed802c2
SD
981 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
982 * corresponding configurations are applied. If the interface index is
983 * not specified, the configurations are attributed to the respective
984 * wiphy. */
8b668884 985 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
dc24a361 986 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
8b668884 987 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
2800ec85 988 /* 8-bit unsigned value to configure the driver and below layers to
989 * ignore the assoc disallowed set by APs while connecting
990 * 1-Ignore, 0-Don't ignore */
8b668884 991 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
8b7c5b89 992 /* 32-bit unsigned value to trigger antenna diversity features:
993 * 1-Enable, 0-Disable */
8b668884 994 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
8b7c5b89 995 /* 32-bit unsigned value to configure specific chain antenna */
8b668884 996 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
8b7c5b89 997 /* 32-bit unsigned value to trigger cycle selftest
998 * 1-Enable, 0-Disable */
8b668884 999 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
8b7c5b89 1000 /* 32-bit unsigned to configure the cycle time of selftest
1001 * the unit is micro-second */
8b668884 1002 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
87416eaf 1003 /* 32-bit unsigned value to set reorder timeout for AC_VO */
1004 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
1005 /* 32-bit unsigned value to set reorder timeout for AC_VI */
1006 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
1007 /* 32-bit unsigned value to set reorder timeout for AC_BE */
1008 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
1009 /* 32-bit unsigned value to set reorder timeout for AC_BK */
1010 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
1011 /* 6-byte MAC address to point out the specific peer */
1012 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
1013 /* 32-bit unsigned value to set window size for specific peer */
1014 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
ac7aea86
SD
1015
1016 /* keep last */
1017 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
1018 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
1019 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
1020};
1021
52a6c9c9
SD
1022/**
1023 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
1024 */
1025enum qca_wlan_vendor_attr_sap_config {
1026 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
1027 /* 1 - reserved for QCA */
1028 /* List of frequencies on which AP is expected to operate.
1029 * This is irrespective of ACS configuration. This list is a priority
1030 * based one and is looked for before the AP is created to ensure the
1031 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
1032 * the system.
1033 */
1034 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
1035
1036 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
1037 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
1038 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
1039};
1040
1c8fe68f
CM
1041/**
1042 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
1043 * conditional channel switch
1044 */
1045enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
1046 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
1047 /* Priority based frequency list (an array of u32 values in host byte
1048 * order) */
1049 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
1050 /* Status of the conditional switch (u32).
1051 * 0: Success, Non-zero: Failure
1052 */
1053 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
1054
1055 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
1056 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
1057 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
1058};
1059
4ac75cd0
VK
1060/**
1061 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
1062 */
1063enum qca_wlan_gpio_attr {
1064 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
1065 /* Unsigned 32-bit attribute for GPIO command */
1066 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
1067 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
1068 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
1069 /* Unsigned 32-bit attribute for GPIO value to configure */
1070 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
1071 /* Unsigned 32-bit attribute for GPIO pull type */
1072 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
1073 /* Unsigned 32-bit attribute for GPIO interrupt mode */
1074 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
1075
1076 /* keep last */
1077 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
1078 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
1079 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
1080};
1081
6fe3b9d4
YT
1082/**
1083 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
1084 */
1085enum qca_wlan_vendor_attr_get_hw_capability {
1086 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
1087 /* Antenna isolation
1088 * An attribute used in the response.
1089 * The content of this attribute is encoded in a byte array. Each byte
1090 * value is an antenna isolation value. The array length is the number
1091 * of antennas.
1092 */
1093 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
1094 /* Request HW capability
1095 * An attribute used in the request.
1096 * The content of this attribute is a u32 array for one or more of
1097 * hardware capabilities (attribute IDs) that are being requested. Each
1098 * u32 value has a value from this
1099 * enum qca_wlan_vendor_attr_get_hw_capability
1100 * identifying which capabilities are requested.
1101 */
1102 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
1103
1104 /* keep last */
1105 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
1106 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
1107 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
1108};
1109
22950d05
ZQ
1110/**
1111 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
1112 * offload which is an extension for LL_STATS.
1113 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
1114 * If MAC counters do not exceed the threshold, FW will report monitored
1115 * link layer counters periodically as this setting. The first report is
1116 * always triggered by this timer.
1117 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
1118 * For each MAC layer counter, FW holds two copies. One is the current value.
1119 * The other is the last report. Once a current counter's increment is larger
1120 * than the threshold, FW will indicate that counter to host even if the
1121 * monitoring timer does not expire.
1122 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
1123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
1124 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
1125 * failure code.
1126 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
1127 * 1: TX packet discarded
1128 * 2: No ACK
1129 * 3: Postpone
320caeab
ZQ
1130 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
1131 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
1132 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
1133 * Threshold for all monitored parameters. If per counter dedicated threshold
1134 * is not enabled, this threshold will take effect.
1135 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
1136 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
1137 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
1138 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
1139 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
1140 * Bit0: TX counter unit in MSDU
1141 * Bit1: TX counter unit in MPDU
1142 * Bit2: TX counter unit in PPDU
1143 * Bit3: TX counter unit in byte
1144 * Bit4: Dropped MSDUs
1145 * Bit5: Dropped Bytes
1146 * Bit6: MPDU retry counter
1147 * Bit7: MPDU failure counter
1148 * Bit8: PPDU failure counter
1149 * Bit9: MPDU aggregation counter
1150 * Bit10: MCS counter for ACKed MPDUs
1151 * Bit11: MCS counter for Failed MPDUs
1152 * Bit12: TX Delay counter
1153 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
1154 * Bit0: MAC RX counter unit in MPDU
1155 * Bit1: MAC RX counter unit in byte
1156 * Bit2: PHY RX counter unit in PPDU
1157 * Bit3: PHY RX counter unit in byte
1158 * Bit4: Disorder counter
1159 * Bit5: Retry counter
1160 * Bit6: Duplication counter
1161 * Bit7: Discard counter
1162 * Bit8: MPDU aggregation size counter
1163 * Bit9: MCS counter
1164 * Bit10: Peer STA power state change (wake to sleep) counter
1165 * Bit11: Peer STA power save counter, total time in PS mode
1166 * Bit12: Probe request counter
1167 * Bit13: Other management frames counter
1168 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
1169 * Bit0: Idle time
1170 * Bit1: TX time
1171 * Bit2: time RX in current bss
1172 * Bit3: Out of current bss time
1173 * Bit4: Wireless medium busy time
1174 * Bit5: RX in bad condition time
1175 * Bit6: TX in bad condition time
1176 * Bit7: time wlan card not available
1177 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
1178 * Bit0: Per channel SNR counter
1179 * Bit1: Per channel noise floor counter
1180 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
1181 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
1182 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
1183 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
1184 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
1185 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
1186 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
1187 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
1188 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
1189 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
1190 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
1191 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
1192 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
1193 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
1194 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
1195 * aggregation stats buffer length
1196 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
1197 * buffer for ACKed MPDUs.
1198 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
1199 * buffer for failed MPDUs.
1200 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
1201 * length of delay stats array.
1202 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
1203 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
1204 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
1205 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
1206 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
1207 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
1208 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
1209 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
1210 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
1211 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
1212 * flagged as retransmissions
1213 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
1214 * flagged as duplicated
1215 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
1216 * packets discarded
1217 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
1218 * stats buffer.
1219 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
1220 * stats buffer.
1221 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
1222 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
1223 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
1224 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
1225 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
1226 * requests received
1227 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
1228 * frames received
1229 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
1230 * there is no TX, nor RX, nor interference.
1231 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
1232 * transmitting packets.
1233 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
1234 * for receiving.
1235 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
1236 * interference detected.
1237 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
1238 * receiving packets with errors.
1239 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
1240 * TX no-ACK.
1241 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
1242 * the chip is unable to work in normal conditions.
1243 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
1244 * receiving packets in current BSS.
1245 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
1246 * receiving packets not in current BSS.
1247 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
1248 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
1249 * This is a container for per antenna signal stats.
1250 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
1251 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
1252 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
1253 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
22950d05
ZQ
1254 */
1255enum qca_wlan_vendor_attr_ll_stats_ext {
1256 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
1257
1258 /* Attributes for configurations */
1259 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
1260 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
1261
320caeab 1262 /* Peer STA power state change */
22950d05
ZQ
1263 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
1264
1265 /* TX failure event */
1266 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
1267 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
1268 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
1269
320caeab
ZQ
1270 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
1271 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
1272
1273 /* MAC counters */
1274 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
1275 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
1276 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
1277 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
1278 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
1279 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
1280 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
1281 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
1282 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
1283 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
1284 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
1285 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
1286
1287 /* Sub-attributes for PEER_AC_TX */
1288 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
1289 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
1290 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
1291 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
1292 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
1293 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
1294 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
1295 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
1296 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
1297 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
1298 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
1299 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
1300 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
1301 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
1302 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
1303 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
1304 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
1305
1306 /* Sub-attributes for PEER_AC_RX */
1307 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
1308 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
1309 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
1310 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
1311 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
1312 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
1313 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
1314 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
1315 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
1316 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
1317 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
1318 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
1319 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
1320 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
1321 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
1322 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
1323
1324 /* Sub-attributes for CCA_BSS */
1325 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
1326 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
1327 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
1328 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
1329 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
1330 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
1331 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
1332
1333 /* sub-attribute for BSS_RX_TIME */
1334 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
1335 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
1336
1337 /* Sub-attributes for PEER_SIGNAL */
1338 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
1339 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
1340 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
1341 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
1342
1343 /* Sub-attributes for IFACE_BSS */
1344 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
1345 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
1346
22950d05
ZQ
1347 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
1348 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
1349 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
1350};
1351
fcd85d9a
LD
1352/* Attributes for FTM commands and events */
1353
1354/**
1355 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
1356 *
1357 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
1358 * enum qca_wlan_vendor_attr_loc_capa_flags.
1359 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
1360 * of measurement sessions that can run concurrently.
1361 * Default is one session (no session concurrency).
1362 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
1363 * peers that are supported in running sessions. For example,
1364 * if the value is 8 and maximum number of sessions is 2, you can
1365 * have one session with 8 unique peers, or 2 sessions with 4 unique
1366 * peers each, and so on.
1367 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
1368 * of bursts per peer, as an exponent (2^value). Default is 0,
1369 * meaning no multi-burst support.
1370 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
1371 * of measurement exchanges allowed in a single burst.
1372 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
1373 * types. A bit mask (unsigned 32 bit value), each bit corresponds
1374 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
1375 */
1376enum qca_wlan_vendor_attr_loc_capa {
1377 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
1378 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
1379 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
1380 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
1381 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
1382 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
1383 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
1384 /* keep last */
1385 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
1386 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
1387 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
1388};
1389
1390/**
1391 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
1392 *
1393 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
1394 * can be configured as an FTM responder (for example, an AP that
1395 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1396 * will be supported if set.
1397 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
1398 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
1399 * will be supported if set.
1400* @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
1401 * supports immediate (ASAP) response.
1402 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
1403 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
1404 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
1405 * requesting AOA measurements as part of an FTM session.
1406 */
1407enum qca_wlan_vendor_attr_loc_capa_flags {
1408 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
1409 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
1410 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
1411 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
1412 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
1413};
1414
1415/**
1416 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
1417 * a single peer in a measurement session.
1418 *
1419 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
1420 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
1421 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
a62dea41 1422 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
fcd85d9a
LD
1423 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
1424 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
1425 * list of supported attributes.
1426 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
1427 * secure measurement.
1428 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
1429 * measurement every <value> bursts. If 0 or not specified,
1430 * AOA measurements will be disabled for this peer.
32d08d5b
LD
1431 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
1432 * the measurement frames are exchanged. Optional; if not
1433 * specified, try to locate the peer in the kernel scan
1434 * results cache and use frequency from there.
fcd85d9a
LD
1435 */
1436enum qca_wlan_vendor_attr_ftm_peer_info {
1437 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
1438 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
1439 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
a62dea41 1440 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
fcd85d9a
LD
1441 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
1442 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
32d08d5b 1443 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
fcd85d9a
LD
1444 /* keep last */
1445 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
1446 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
1447 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
1448};
1449
1450/**
1451 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
1452 * per-peer
1453 *
1454 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
1455 * immediate (ASAP) response from peer.
1456 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
1457 * LCI report from peer. The LCI report includes the absolute
1458 * location of the peer in "official" coordinates (similar to GPS).
1459 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
1460 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
1461 * Location civic report from peer. The LCR includes the location
1462 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
1463 * 11.24.6.7 for more information.
1464 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
1465 * request a secure measurement.
1466 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
1467 */
1468enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
1469 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
1470 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
1471 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
1472 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
1473};
1474
1475/**
1476 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
1477 *
1478 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
1479 * to perform in a single burst.
1480 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
1481 * perform, specified as an exponent (2^value).
1482 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
1483 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
1484 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
1485 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
1486 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
1487 */
1488enum qca_wlan_vendor_attr_ftm_meas_param {
1489 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
1490 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
1491 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
1492 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
1493 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
1494 /* keep last */
1495 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
1496 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
1497 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
1498};
1499
1500/**
1501 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
1502 *
1503 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
1504 * peer.
1505 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
1506 * request for this peer.
1507 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
1508 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
1509 * to measurement results for this peer.
1510 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
1511 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
1512 * request failed and peer requested not to send an additional request
1513 * for this number of seconds.
1514 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
1515 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
1516 * 9.4.2.22.10.
1517 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
1518 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
1519 * 9.4.2.22.13.
1520 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
1521 * overridden some measurement request parameters. See
1522 * enum qca_wlan_vendor_attr_ftm_meas_param.
1523 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
1524 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
1525 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
1526 * results. Each entry is a nested attribute defined
1527 * by enum qca_wlan_vendor_attr_ftm_meas.
1528 */
1529enum qca_wlan_vendor_attr_ftm_peer_result {
1530 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
1531 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
1532 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
1533 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
1534 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
1535 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
1536 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
1537 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
1538 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
1539 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
1540 /* keep last */
1541 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
1542 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
1543 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
1544};
1545
1546/**
1547 * enum qca_wlan_vendor_attr_ftm_peer_result_status
1548 *
1549 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
1550 * will be provided. Peer may have overridden some measurement parameters,
1551 * in which case overridden parameters will be report by
1552 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
1553 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
1554 * of performing the measurement request. No more results will be sent
1555 * for this peer in this session.
1556 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
1557 * failed, and requested not to send an additional request for number
1558 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
1559 * attribute.
1560 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
1561 * failed. Request was not sent over the air.
1562 */
1563enum qca_wlan_vendor_attr_ftm_peer_result_status {
1564 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
1565 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
1566 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
1567 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
1568};
1569
1570/**
1571 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
1572 * for measurement result, per-peer
1573 *
1574 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
1575 * measurement completed for this peer. No more results will be reported
1576 * for this peer in this session.
1577 */
1578enum qca_wlan_vendor_attr_ftm_peer_result_flags {
1579 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
1580};
1581
1582/**
1583 * enum qca_vendor_attr_loc_session_status: Session completion status code
1584 *
1585 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
1586 * successfully.
1587 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
1588 * by request.
1589 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
1590 * was invalid and was not started.
1591 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
1592 * and did not complete normally (for example out of resources).
1593 */
1594enum qca_vendor_attr_loc_session_status {
1595 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
1596 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
1597 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
1598 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
1599};
1600
1601/**
1602 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
1603 *
1604 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
1605 * recorded by responder, in picoseconds.
1606 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1607 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
1608 * initiator, in picoseconds.
1609 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1610 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
1611 * initiator, in picoseconds.
1612 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1613 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
1614 * responder, in picoseconds.
1615 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1616 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
1617 * during this measurement exchange. Optional and will be provided if
1618 * the hardware can measure it.
1619 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
1620 * responder. Not always provided.
1621 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1622 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
1623 * responder. Not always provided.
1624 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1625 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
1626 * initiator. Not always provided.
1627 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1628 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
1629 * initiator. Not always provided.
1630 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1631 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
1632 */
1633enum qca_wlan_vendor_attr_ftm_meas {
a62dea41 1634 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
fcd85d9a
LD
1635 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
1636 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
1637 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
1638 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
1639 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
1640 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
1641 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
1642 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
1643 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
1644 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
1645 /* keep last */
1646 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
1647 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
1648 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
1649};
1650
1651/**
1652 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
1653 *
1654 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
1655 * CIR (channel impulse response) path for each antenna.
1656 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
1657 * of the strongest CIR path for each antenna.
1658 */
1659enum qca_wlan_vendor_attr_aoa_type {
1660 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
1661 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
1662 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
1663};
1664
0d7eba54
SD
1665/**
1666 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
1667 * validate encryption engine
1668 *
1669 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
1670 * This will be included if the request is for decryption; if not included,
1671 * the request is treated as a request for encryption by default.
1672 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
1673 * indicating the key cipher suite. Takes same values as
1674 * NL80211_ATTR_KEY_CIPHER.
1675 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
1676 * Key Id to be used for encryption
1677 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
1678 * Key (TK) to be used for encryption/decryption
1679 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
1680 * Packet number to be specified for encryption/decryption
1681 * 6 bytes for TKIP/CCMP/GCMP.
1682 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
1683 * representing the 802.11 packet (header + payload + FCS) that
1684 * needs to be encrypted/decrypted.
1685 * Encrypted/decrypted response from the driver will also be sent
1686 * to userspace with the same attribute.
1687 */
1688enum qca_wlan_vendor_attr_encryption_test {
1689 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
1690 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
1691 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
1692 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
1693 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
1694 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
1695 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
1696
1697 /* keep last */
1698 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
1699 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
1700 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
1701};
1702
6eb1a569
LD
1703/**
1704 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
1705 * sector for DMG RF sector operations.
1706 *
1707 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
1708 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
1709 */
1710enum qca_wlan_vendor_attr_dmg_rf_sector_type {
1711 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
1712 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
1713 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
1714};
1715
1716/**
1717 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
1718 * DMG RF sector configuration for a single RF module.
1719 * The values are defined in a compact way which closely matches
1720 * the way it is stored in HW registers.
1721 * The configuration provides values for 32 antennas and 8 distribution
1722 * amplifiers, and together describes the characteristics of the RF
1723 * sector - such as a beam in some direction with some gain.
1724 *
1725 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
1726 * of RF module for this configuration.
1727 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
1728 * amplifier gain index. Unsigned 32 bit number containing
1729 * bits for all 32 antennas.
1730 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
1731 * amplifier gain index. Unsigned 32 bit number containing
1732 * bits for all 32 antennas.
1733 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
1734 * amplifier gain index. Unsigned 32 bit number containing
1735 * bits for all 32 antennas.
1736 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
1737 * for first 16 antennas, 2 bits per antenna.
1738 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
1739 * for last 16 antennas, 2 bits per antenna.
1740 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
1741 * DTYPE values (3 bits) for each distribution amplifier, followed
1742 * by X16 switch bits for each distribution amplifier. There are
1743 * total of 8 distribution amplifiers.
1744 */
1745enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
1746 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
1747 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
1748 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
1749 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
1750 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
1751 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
1752 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
1753 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
1754
1755 /* keep last */
1756 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
1757 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
1758 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
1759};
1760
95f3703a 1761enum qca_wlan_vendor_attr_ll_stats_set {
1762 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
1763 /* Unsigned 32-bit value */
1764 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
1765 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
1766 /* keep last */
1767 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
1768 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
1769 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
1770};
1771
1772enum qca_wlan_vendor_attr_ll_stats_clr {
1773 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
1774 /* Unsigned 32bit bitmap for clearing statistics
1775 * All radio statistics 0x00000001
1776 * cca_busy_time (within radio statistics) 0x00000002
1777 * All channel stats (within radio statistics) 0x00000004
1778 * All scan statistics (within radio statistics) 0x00000008
1779 * All interface statistics 0x00000010
1780 * All tx rate statistics (within interface statistics) 0x00000020
1781 * All ac statistics (with in interface statistics) 0x00000040
1782 * All contention (min, max, avg) statistics (within ac statisctics)
1783 * 0x00000080.
1784 */
1785 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
1786 /* Unsigned 8 bit value: Request to stop statistics collection */
1787 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
1788
1789 /* Unsigned 32 bit bitmap: Response from the driver
1790 * for the cleared statistics
1791 */
1792 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
1793 /* Unsigned 8 bit value: Response from driver/firmware
1794 * for the stop request
1795 */
1796 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
1797 /* keep last */
1798 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
1799 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
1800 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
1801};
1802
1803enum qca_wlan_vendor_attr_ll_stats_get {
1804 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
1805 /* Unsigned 32 bit value provided by the caller issuing the GET stats
1806 * command. When reporting the stats results, the driver uses the same
1807 * value to indicate which GET request the results correspond to.
1808 */
1809 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
1810 /* Unsigned 32 bit value - bit mask to identify what statistics are
1811 * requested for retrieval.
1812 * Radio Statistics 0x00000001
1813 * Interface Statistics 0x00000020
1814 * All Peer Statistics 0x00000040
1815 * Peer Statistics 0x00000080
1816 */
1817 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
1818 /* keep last */
1819 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
1820 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
1821 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
1822};
1823
1824enum qca_wlan_vendor_attr_ll_stats_results {
1825 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
1826 /* Unsigned 32bit value. Used by the driver; must match the request id
1827 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
1828 */
1829 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
1830
1831 /* Unsigned 32 bit value */
1832 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
1833 /* Unsigned 32 bit value */
1834 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
1835 /* Unsigned 32 bit value */
1836 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
1837 /* Unsigned 32 bit value */
1838 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
1839 /* Signed 32 bit value */
1840 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
1841 /* Signed 32 bit value */
1842 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
1843 /* Signed 32 bit value */
1844 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
1845
1846 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
1847 * nested within the interface stats.
1848 */
1849
1850 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
1851 * Type = enum wifi_interface_mode.
1852 */
1853 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
1854 /* Interface MAC address. An array of 6 Unsigned int8 */
1855 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
1856 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
1857 * AUTHENTICATING, etc. valid for STA, CLI only.
1858 */
1859 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
1860 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
1861 */
1862 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
1863 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
1864 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
1865 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
1866 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
1867 /* BSSID. An array of 6 unsigned 8 bit values */
1868 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
1869 /* Country string advertised by AP. An array of 3 unsigned 8 bit
1870 * values.
1871 */
1872 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
1873 /* Country string for this association. An array of 3 unsigned 8 bit
1874 * values.
1875 */
1876 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
1877
1878 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
1879 * be nested within the interface stats.
1880 */
1881
1882 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
1883 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
1884 /* Unsigned int 32 value corresponding to respective AC */
1885 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
1886 /* Unsigned int 32 value corresponding to respective AC */
1887 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
1888 /* Unsigned int 32 value corresponding to respective AC */
1889 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
1890 /* Unsigned int 32 value corresponding to respective AC */
1891 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
1892 /* Unsigned int 32 value corresponding to respective AC */
1893 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
1894 /* Unsigned int 32 value corresponding to respective AC */
1895 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
1896 /* Unsigned int 32 value corresponding to respective AC */
1897 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
1898 /* Unsigned int 32 value corresponding to respective AC */
1899 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
1900 /* Unsigned int 32 value corresponding to respective AC */
1901 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
1902 /* Unsigned int 32 values corresponding to respective AC */
1903 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
1904 /* Unsigned int 32 values corresponding to respective AC */
1905 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
1906 /* Unsigned int 32 values corresponding to respective AC */
1907 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
1908 /* Unsigned int 32 values corresponding to respective AC */
1909 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
1910 /* Unsigned int 32 values corresponding to respective AC */
1911 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
1912 /* Unsigned 32 bit value. Number of peers */
1913 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
1914
1915 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
1916 * nested within the interface stats.
1917 */
1918
1919 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
1920 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
1921 /* MAC addr corresponding to respective peer. An array of 6 unsigned
1922 * 8 bit values.
1923 */
1924 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
1925 /* Unsigned int 32 bit value representing capabilities corresponding
1926 * to respective peer.
1927 */
1928 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
1929 /* Unsigned 32 bit value. Number of rates */
1930 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
1931
1932 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
1933 * are nested within the rate stat.
1934 */
1935
1936 /* Wi-Fi Rate - separate attributes defined for individual fields */
1937
1938 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
1939 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
1940 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
1941 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
1942 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
1943 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
1944 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
1945 * in the units of 0.5 Mbps HT/VHT it would be MCS index */
1946 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
1947
1948 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
1949 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
1950
1951
1952 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
1953 * nested within the peer info stats.
1954 */
1955
1956 /* Unsigned int 32 bit value. Number of successfully transmitted data
1957 * packets, i.e., with ACK received corresponding to the respective
1958 * rate.
1959 */
1960 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
1961 /* Unsigned int 32 bit value. Number of received data packets
1962 * corresponding to the respective rate.
1963 */
1964 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
1965 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
1966 * received corresponding to the respective rate.
1967 */
1968 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
1969 /* Unsigned int 32 bit value. Total number of data packet retries for
1970 * the respective rate.
1971 */
1972 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
1973 /* Unsigned int 32 bit value. Total number of short data packet retries
1974 * for the respective rate.
1975 */
1976 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
1977 /* Unsigned int 32 bit value. Total number of long data packet retries
1978 * for the respective rate.
1979 */
1980 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
1981
1982 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
1983 /* Unsigned 32 bit value. Total number of msecs the radio is awake
1984 * accruing over time.
1985 */
1986 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
1987 /* Unsigned 32 bit value. Total number of msecs the radio is
1988 * transmitting accruing over time.
1989 */
1990 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
1991 /* Unsigned 32 bit value. Total number of msecs the radio is in active
1992 * receive accruing over time.
1993 */
1994 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
1995 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
1996 * to all scan accruing over time.
1997 */
1998 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
1999 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2000 * to NAN accruing over time.
2001 */
2002 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2003 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2004 * to GSCAN accruing over time.
2005 */
2006 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2007 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2008 * to roam scan accruing over time.
2009 */
2010 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2011 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2012 * to PNO scan accruing over time.
2013 */
2014 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2015 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2016 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2017 */
2018 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2019 /* Unsigned 32 bit value. Number of channels. */
2020 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2021
2022 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2023 * be nested within the channel stats.
2024 */
2025
2026 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2027 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2028 /* Unsigned 32 bit value. Primary 20 MHz channel. */
2029 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2030 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2031 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2032 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2033 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2034
2035 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2036 * nested within the radio stats.
2037 */
2038
2039 /* Unsigned int 32 bit value representing total number of msecs the
2040 * radio is awake on that channel accruing over time, corresponding to
2041 * the respective channel.
2042 */
2043 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2044 /* Unsigned int 32 bit value representing total number of msecs the CCA
2045 * register is busy accruing over time corresponding to the respective
2046 * channel.
2047 */
2048 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2049
2050 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2051
2052 /* Signifies the nested list of channel attributes
2053 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
2054 */
2055 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2056
2057 /* Signifies the nested list of peer info attributes
2058 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2059 */
2060 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2061
2062 /* Signifies the nested list of rate info attributes
2063 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2064 */
2065 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2066
2067 /* Signifies the nested list of wmm info attributes
2068 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2069 */
2070 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2071
2072 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2073 * that more stats, e.g., peers or radio, are to follow in the next
2074 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2075 * Otherwise, it is set to 0.
2076 */
2077 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2078
2079 /* Unsigned 64 bit value */
2080 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2081
2082 /* Unsigned 32 bit value */
2083 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2084
2085 /* Unsigned 32 bit value */
2086 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2087
2088 /* Unsigned 32 bit value */
2089 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2090
2091 /* Unsigned 32 bit value */
2092 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2093
2094 /* Unsigned 32 bit value */
2095 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2096
2097 /* Number of msecs the radio spent in transmitting for each power level
2098 */
2099 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2100
a18563d4 2101 /* Unsigned 32 bit value */
2102 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2103 /* Unsigned 32 bit value */
2104 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2105 /* Unsigned 32 bit value */
2106 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2107 /* Unsigned 32 bit value */
2108 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2109
95f3703a 2110 /* keep last */
2111 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2112 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2113 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2114};
2115
2116enum qca_wlan_vendor_attr_ll_stats_type
2117{
2118 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2119 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2120 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2121 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2122
2123 /* keep last */
2124 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2125 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2126 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2127};
2128
14cd203f
SD
2129/**
2130 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
2131 * TDLS configuration to the host driver.
2132 *
2133 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
2134 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
2135 * represents the different TDLS trigger modes.
2136 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
2137 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
2138 * of packets shall meet the criteria for implicit TDLS setup.
2139 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
2140 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
2141 * to initiate a TDLS setup.
2142 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
2143 * a TDLS Discovery to the peer.
2144 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
2145 * discovery attempts to know the TDLS capability of the peer. A peer is
2146 * marked as TDLS not capable if there is no response for all the attempts.
2147 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
2148 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
2149 * number of TX / RX frames meet the criteria for TDLS teardown.
2150 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
2151 * of Tx/Rx packets within a duration
2152 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
2153 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
2154 * corresponding to the RSSI of the peer below which a TDLS setup is
2155 * triggered.
2156 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
2157 * corresponding to the RSSI of the peer above which a TDLS teardown is
2158 * triggered.
2159 */
2160enum qca_wlan_vendor_attr_tdls_configuration {
2161 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
2162 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
2163
2164 /* Attributes configuring the TDLS Implicit Trigger */
2165 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
2166 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
2167 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
2168 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
2169 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
2170 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
2171 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
2172 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
2173
2174 /* keep last */
2175 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
2176 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
2177 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
2178};
2179
2180/**
2181 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
2182 * the driver
2183 *
2184 * The following are the different values for
2185 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
2186 *
2187 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
2188 * the TDLS connection to a respective peer comes from the user space.
2189 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
2190 * TDLS_DISCOVER to do this.
2191 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
2192 * setup/teardown to the eligible peer once the configured criteria
2193 * (such as TX/RX threshold, RSSI) is met. The attributes
2194 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
2195 * the different configuration criteria for the TDLS trigger from the
2196 * host driver.
2197 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
2198 * the TDLS setup / teardown through the implicit mode only to the
2199 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
2200 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
2201 * External mode works on top of the implicit mode. Thus the host driver
2202 * is expected to configure in TDLS Implicit mode too to operate in
2203 * External mode.
2204 * Configuring External mode alone without Implicit mode is invalid.
2205 *
2206 * All the above implementations work as expected only when the host driver
2207 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
2208 * that the TDLS message exchange is not internal to the host driver, but
2209 * depends on wpa_supplicant to do the message exchange.
2210 */
2211enum qca_wlan_vendor_tdls_trigger_mode {
2212 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
2213 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
2214 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
2215};
2216
1682c623 2217#endif /* QCA_VENDOR_H */