]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/common/qca-vendor.h
tests: Avoid failures in ap_vlan_without_station with new kernel
[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.
1682c623
JM
231 */
232enum qca_nl80211_vendor_subcmds {
233 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
234 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
0800f9ee
JM
235 /* subcmds 2..8 not yet allocated */
236 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
253f2e37 237 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
65d645ce 238 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
4a16a0bd 239 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
4a64d5a9 240 QCA_NL80211_VENDOR_SUBMCD_STATS_EXT = 13,
37df6a87
JM
241 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
242 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
243 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
244 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
245 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
246 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
e48635cf
JM
247 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
248 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
249 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
250 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
251 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
252 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
253 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
254 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
255 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
256 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
257 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
258 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
259 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
260 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
37df6a87
JM
261 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
262 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
263 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
264 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
265 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
266 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
267 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
994d6f46 268 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
37df6a87
JM
269 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
270 /* 43..49 - reserved for QCA */
b41f2684
CL
271 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
272 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
41a23357 273 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
90758f09 274 /* 53 - reserved - was used by QCA, but not in use anymore */
16689c7c 275 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
15badebd 276 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
480994da
AK
277 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
278 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
279 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
280 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
281 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
ac7aea86
SD
282 /* 61-73 - reserved for QCA */
283 /* Wi-Fi configuration subcommands */
284 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
285 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
286 /* 76-90 - reserved for QCA */
b2329e4a 287 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
7f90a234
JM
288 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
289 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
290 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
291 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
292 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
293 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
294 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
295 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
296 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
279724d8 297 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
d71bdfbd 298 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
6b0ceee9
AK
299 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
300 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
844dfeb8 301 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
b4856719
KV
302 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
303 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
5d4c5089
PX
304 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
305 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
95784134 306 /* 110..114 - reserved for QCA */
9a8d9f7c 307 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
52a6c9c9
SD
308 /* 116..117 - reserved for QCA */
309 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
85c0f01d
MM
310 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
311 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
d1296da6 312 /* 121 - reserved for QCA */
35d66557
PX
313 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
314 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1c8fe68f 315 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
4ac75cd0 316 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
6fe3b9d4 317 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
22950d05 318 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
fcd85d9a
LD
319 /* FTM/indoor location subcommands */
320 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
321 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
322 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
323 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
324 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
325 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
326 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
327 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
328 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
0d7eba54 329 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
8b7c5b89 330 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
6eb1a569
LD
331 /* DMG low level RF sector operations */
332 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
333 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
334 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
335 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1682c623
JM
336};
337
253f2e37 338
65d645ce
AS
339enum qca_wlan_vendor_attr {
340 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
341 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
342 QCA_WLAN_VENDOR_ATTR_DFS = 1,
4a16a0bd
AHS
343 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
344 QCA_WLAN_VENDOR_ATTR_NAN = 2,
4a64d5a9
AS
345 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
346 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
84df1675
AS
347 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
348 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
0800f9ee
JM
349 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
350 * by enum qca_roaming_policy. */
351 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
352 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
15badebd
CL
353 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
354 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1db718b3 355 QCA_WLAN_VENDOR_ATTR_TEST = 8,
6b0ceee9
AK
356 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
357 /* Unsigned 32-bit value. */
358 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
359 /* Unsigned 32-bit value */
360 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
361 /* Unsigned 32-bit value */
362 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
844dfeb8
SD
363 /* Unsigned 32-bit value from enum qca_set_band. */
364 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
fcd85d9a
LD
365 /* Dummy (NOP) attribute for 64 bit padding */
366 QCA_WLAN_VENDOR_ATTR_PAD = 13,
367 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
368 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
369 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
370 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
371 */
372 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
373 /* Indoor location capabilities, returned by
374 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
375 * see enum qca_wlan_vendor_attr_loc_capa.
376 */
377 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
378 /* Array of nested attributes containing information about each peer
379 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
380 * for supported attributes for each peer.
381 */
382 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
383 /* Array of nested attributes containing measurement results for
384 * one or more peers, reported by the
385 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
386 * See enum qca_wlan_vendor_attr_peer_result for list of supported
387 * attributes.
388 */
389 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
390 /* Flag attribute for enabling or disabling responder functionality. */
391 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
392 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
393 * command to specify the LCI report that will be sent by
394 * the responder during a measurement exchange. The format is
395 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
396 */
397 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
398 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
399 * command to specify the location civic report that will
400 * be sent by the responder during a measurement exchange.
401 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
402 */
403 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
404 /* Session/measurement completion status code,
405 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
406 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
407 * see enum qca_vendor_attr_loc_session_status.
408 */
409 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
410 /* Initial dialog token used by responder (0 if not specified),
411 * unsigned 8 bit value.
412 */
413 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
414 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
415 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
416 * AOA measurements are needed as part of an FTM session.
417 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
418 * enum qca_wlan_vendor_attr_aoa_type.
419 */
420 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
421 /* A bit mask (unsigned 32 bit value) of antenna arrays used
422 * by indoor location measurements. Refers to the antenna
423 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
424 */
425 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
426 /* AOA measurement data. Its contents depends on the AOA measurement
427 * type and antenna array mask:
428 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
429 * phase of the strongest CIR path for each antenna in the measured
430 * array(s).
431 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
432 * values, phase and amplitude of the strongest CIR path for each
433 * antenna in the measured array(s).
434 */
435 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
8b7c5b89 436 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
437 * to specify the chain number (unsigned 32 bit value) to inquire
438 * the corresponding antenna RSSI value */
439 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
440 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
441 * to report the specific antenna RSSI value (unsigned 32 bit value) */
442 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
32d08d5b
LD
443 /* Frequency in MHz, various uses. Unsigned 32 bit value */
444 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
6eb1a569
LD
445 /* TSF timer value, unsigned 64 bit value.
446 * May be returned by various commands.
447 */
448 QCA_WLAN_VENDOR_ATTR_TSF = 29,
449 /* DMG RF sector index, unsigned 16 bit number. Valid values are
450 * 0..127 for sector indices or 65535 as special value used to
451 * unlock sector selection in
452 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
453 */
454 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
455 /* DMG RF sector type, unsigned 8 bit value. One of the values
456 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
457 */
458 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
459 /* Bitmask of DMG RF modules for which information is requested. Each
460 * bit corresponds to an RF module with the same index as the bit
461 * number. Unsigned 32 bit number but only low 8 bits can be set since
462 * all DMG chips currently have up to 8 RF modules.
463 */
464 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
465 /* Array of nested attributes where each entry is DMG RF sector
466 * configuration for a single RF module.
467 * Attributes for each entry are taken from enum
468 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
469 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
470 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
471 */
472 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
65d645ce
AS
473 /* keep last */
474 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
475 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
476};
477
0800f9ee
JM
478
479enum qca_roaming_policy {
480 QCA_ROAMING_NOT_ALLOWED,
481 QCA_ROAMING_ALLOWED_WITHIN_ESS,
482};
483
b41f2684
CL
484enum qca_wlan_vendor_attr_roam_auth {
485 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
486 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
487 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
488 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
489 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
490 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
491 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
492 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
d3819633 493 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
b41f2684
CL
494 /* keep last */
495 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
496 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
497 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
498};
499
35d66557
PX
500enum qca_wlan_vendor_attr_p2p_listen_offload {
501 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
502 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
503 * of the social channels.
504 */
505 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
506 /* A 32-bit unsigned value; the P2P listen offload period (ms).
507 */
508 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
509 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
510 */
511 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
512 /* A 32-bit unsigned value; number of interval times the firmware needs
513 * to run the offloaded P2P listen operation before it stops.
514 */
515 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
516 /* An array of arbitrary binary data with one or more 8-byte values.
517 * The device types include both primary and secondary device types.
518 */
519 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
520 /* An array of unsigned 8-bit characters; vendor information elements.
521 */
522 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
523 /* A 32-bit unsigned value; a control flag to indicate whether listen
524 * results need to be flushed to wpa_supplicant.
525 */
526 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
527 /* A 8-bit unsigned value; reason code for P2P listen offload stop
528 * event.
529 */
530 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
531 /* keep last */
532 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
533 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
534 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
535};
536
16689c7c
PX
537enum qca_wlan_vendor_attr_acs_offload {
538 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
539 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
540 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
541 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
542 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
543 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
857d9422
MM
544 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
545 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
546 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
547 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
548 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
d0cdccd3 549 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
16689c7c
PX
550 /* keep last */
551 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
552 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
553 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
554};
555
556enum qca_wlan_vendor_acs_hw_mode {
557 QCA_ACS_MODE_IEEE80211B,
558 QCA_ACS_MODE_IEEE80211G,
559 QCA_ACS_MODE_IEEE80211A,
560 QCA_ACS_MODE_IEEE80211AD,
3784c058 561 QCA_ACS_MODE_IEEE80211ANY,
16689c7c
PX
562};
563
15badebd
CL
564/**
565 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
566 *
567 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
568 * management offload, a mechanism where the station's firmware
569 * does the exchange with the AP to establish the temporal keys
570 * after roaming, rather than having the user space wpa_supplicant do it.
3784c058
PX
571 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
572 * band selection based on channel selection results.
94fb165c
KV
573 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
574 * simultaneous off-channel operations.
35d66557
PX
575 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
576 * Listen offload; a mechanism where the station's firmware takes care of
577 * responding to incoming Probe Request frames received from other P2P
578 * Devices whilst in Listen state, rather than having the user space
579 * wpa_supplicant do it. Information from received P2P requests are
580 * forwarded from firmware to host whenever the host processor wakes up.
15badebd
CL
581 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
582 */
583enum qca_wlan_vendor_features {
584 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
3784c058 585 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
94fb165c 586 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
35d66557 587 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
15badebd
CL
588 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
589};
590
b2329e4a
SD
591/**
592 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
593 *
594 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
595 * the offloaded data.
596 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
597 * data.
598 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
599 * indication.
600 */
601enum qca_wlan_vendor_attr_data_offload_ind {
602 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
603 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
604 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
605 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
606
607 /* keep last */
608 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
609 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
610 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
611};
6b0ceee9
AK
612
613enum qca_vendor_attr_get_preferred_freq_list {
614 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
615 /* A 32-unsigned value; the interface type/mode for which the preferred
616 * frequency list is requested (see enum qca_iface_type for possible
617 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
618 * kernel and in the kernel response back to user-space.
619 */
620 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
621 /* An array of 32-unsigned values; values are frequency (MHz); sent
622 * from kernel space to user space.
623 */
624 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
625 /* keep last */
626 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
627 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
628 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
629};
630
631enum qca_vendor_attr_probable_oper_channel {
632 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
633 /* 32-bit unsigned value; indicates the connection/iface type likely to
634 * come on this channel (see enum qca_iface_type).
635 */
636 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
637 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
638 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
639 /* keep last */
640 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
641 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
642 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
643};
644
645enum qca_iface_type {
646 QCA_IFACE_TYPE_STA,
647 QCA_IFACE_TYPE_AP,
648 QCA_IFACE_TYPE_P2P_CLIENT,
649 QCA_IFACE_TYPE_P2P_GO,
650 QCA_IFACE_TYPE_IBSS,
651 QCA_IFACE_TYPE_TDLS,
652};
653
844dfeb8
SD
654enum qca_set_band {
655 QCA_SETBAND_AUTO,
656 QCA_SETBAND_5G,
657 QCA_SETBAND_2G,
658};
659
14b76124
SD
660/**
661 * enum qca_access_policy - Access control policy
662 *
663 * Access control policy is applied on the configured IE
664 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
665 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
666 *
667 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
668 * the specific configuration (IE) set, i.e., allow all the
669 * connections which do not match the configuration.
670 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
671 * the specific configuration (IE) set, i.e., deny all the
672 * connections which do not match the configuration.
673 */
674enum qca_access_policy {
675 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
676 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
677};
678
85c0f01d
MM
679/**
680 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
681 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
682 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
683 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
684 * SOC timer value at TSF capture
685 */
686enum qca_vendor_attr_tsf_cmd {
687 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
688 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
689 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
690 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
691 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
692 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
693 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
694};
695
696/**
697 * enum qca_tsf_operation: TSF driver commands
698 * @QCA_TSF_CAPTURE: Initiate TSF Capture
699 * @QCA_TSF_GET: Get TSF capture value
700 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
701 */
702enum qca_tsf_cmd {
703 QCA_TSF_CAPTURE,
704 QCA_TSF_GET,
705 QCA_TSF_SYNC_GET,
706};
707
708/**
709 * enum qca_vendor_attr_wisa_cmd
710 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
711 * WISA setup vendor commands
712 */
713enum qca_vendor_attr_wisa_cmd {
714 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
715 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
716 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
717 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
718 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
719};
720
b43b2b52
JM
721/* IEEE 802.11 Vendor Specific elements */
722
723/**
724 * enum qca_vendor_element_id - QCA Vendor Specific element types
725 *
726 * These values are used to identify QCA Vendor Specific elements. The
727 * payload of the element starts with the three octet OUI (OUI_QCA) and
728 * is followed by a single octet type which is defined by this enum.
729 *
730 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
731 * This element can be used to specify preference order for supported
732 * channels. The channels in this list are in preference order (the first
733 * one has the highest preference) and are described as a pair of
734 * (global) Operating Class and Channel Number (each one octet) fields.
735 *
736 * This extends the standard P2P functionality by providing option to have
737 * more than one preferred operating channel. When this element is present,
738 * it replaces the preference indicated in the Operating Channel attribute.
739 * For supporting other implementations, the Operating Channel attribute is
740 * expected to be used with the highest preference channel. Similarly, all
741 * the channels included in this Preferred channel list element are
742 * expected to be included in the Channel List attribute.
743 *
744 * This vendor element may be included in GO Negotiation Request, P2P
745 * Invitation Request, and Provision Discovery Request frames.
617593c3
JM
746 *
747 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
748 * This element can be used for pre-standard publication testing of HE
749 * before P802.11ax draft assigns the element ID. The payload of this
750 * vendor specific element is defined by the latest P802.11ax draft.
751 * Please note that the draft is still work in progress and this element
752 * payload is subject to change.
753 *
754 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
755 * This element can be used for pre-standard publication testing of HE
756 * before P802.11ax draft assigns the element ID. The payload of this
757 * vendor specific element is defined by the latest P802.11ax draft.
758 * Please note that the draft is still work in progress and this element
759 * payload is subject to change.
b43b2b52
JM
760 */
761enum qca_vendor_element_id {
762 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
617593c3
JM
763 QCA_VENDOR_ELEM_HE_CAPAB = 1,
764 QCA_VENDOR_ELEM_HE_OPER = 2,
b43b2b52
JM
765};
766
b4856719
KV
767/**
768 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
769 *
770 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
771 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
772 * with frequencies to be scanned (in MHz)
773 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
774 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
775 * rates to be included
776 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
777 * at non CCK rate in 2GHz band
778 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
779 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
780 * driver for the specific scan request
781 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
782 * request decoded as in enum scan_status
783 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
784 * scan flag is set
785 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
786 * randomisation
787 */
788enum qca_wlan_vendor_attr_scan {
789 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
790 QCA_WLAN_VENDOR_ATTR_SCAN_IE,
791 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
792 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
793 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
794 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
795 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
796 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
797 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
798 QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
799 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
800 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
801 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
802 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
803};
804
805/**
806 * enum scan_status - Specifies the valid values the vendor scan attribute
807 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
808 *
809 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
810 * new scan results
811 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
812 */
813enum scan_status {
814 VENDOR_SCAN_STATUS_NEW_RESULTS,
815 VENDOR_SCAN_STATUS_ABORTED,
816 VENDOR_SCAN_STATUS_MAX,
817};
818
5d4c5089
PX
819/**
820 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
821 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
822 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
823 */
824enum qca_vendor_attr_ota_test {
825 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
826 /* 8-bit unsigned value to indicate if OTA test is enabled */
827 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
828 /* keep last */
829 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
830 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
831 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
832};
833
834/**
835 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
836 *
837 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
838 */
839enum qca_vendor_attr_txpower_scale {
840 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
841 /* 8-bit unsigned value to indicate the scaling of tx power */
842 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
843 /* keep last */
844 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
845 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
846 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
847};
848
9a8d9f7c
PX
849/**
850 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
851 *
852 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
853 */
854enum qca_vendor_attr_txpower_decr_db {
855 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
856 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
857 * a virtual interface. */
858 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
859 /* keep last */
860 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
861 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
862 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
863};
864
ac7aea86 865/* Attributes for data used by
4f910f38
JM
866 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
867 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
ac7aea86
SD
868 */
869enum qca_wlan_vendor_attr_config {
8b668884 870 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
ac7aea86
SD
871 /* Unsigned 32-bit value to set the DTIM period.
872 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
873 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
874 * DTIM beacons.
875 */
8b668884 876 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
ac7aea86
SD
877 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
878 * used to calculate statistics like average the TSF offset or average
879 * number of frame leaked.
880 * For instance, upon Beacon frame reception:
881 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
882 * For instance, when evaluating leaky APs:
883 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
884 */
8b668884 885 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
ac7aea86
SD
886 /* Unsigned 32-bit value to configure guard time, i.e., when
887 * implementing IEEE power management based on frame control PM bit, how
888 * long the driver waits before shutting down the radio and after
889 * receiving an ACK frame for a Data frame with PM bit set.
890 */
8b668884 891 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
ac7aea86 892 /* Unsigned 32-bit value to change the FTM capability dynamically */
8b668884 893 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
ac7aea86 894 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
8b668884 895 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
ac7aea86
SD
896 /* Unsigned 32-bit value to configure the number of continuous
897 * Beacon Miss which shall be used by the firmware to penalize
898 * the RSSI.
899 */
8b668884 900 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
ac7aea86
SD
901 /* Unsigned 8-bit value to configure the channel avoidance indication
902 * behavior. Firmware to send only one indication and ignore duplicate
903 * indications when set to avoid multiple Apps wakeups.
904 */
8b668884 905 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
ac7aea86
SD
906 /* 8-bit unsigned value to configure the maximum TX MPDU for
907 * aggregation. */
8b668884 908 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
ac7aea86
SD
909 /* 8-bit unsigned value to configure the maximum RX MPDU for
910 * aggregation. */
8b668884 911 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
52fec366 912 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
913 * retry threshold (0 disable, 31 max). */
8b668884 914 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
52fec366 915 /* 8-bit unsigned value to configure the aggregrate sw
916 * retry threshold (0 disable, 31 max). */
8b668884 917 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
52fec366 918 /* 8-bit unsigned value to configure the MGMT frame
919 * retry threshold (0 disable, 31 max). */
8b668884 920 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
52fec366 921 /* 8-bit unsigned value to configure the CTRL frame
922 * retry threshold (0 disable, 31 max). */
8b668884 923 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
52fec366 924 /* 8-bit unsigned value to configure the propagation delay for
925 * 2G/5G band (0~63, units in us) */
8b668884 926 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
6c34b9c2
SD
927 /* Unsigned 32-bit value to configure the number of unicast TX fail
928 * packet count. The peer is disconnected once this threshold is
929 * reached. */
8b668884 930 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
ab218631 931 /* Attribute used to set scan default IEs to the driver.
932 *
933 * These IEs can be used by scan operations that will be initiated by
934 * the driver/firmware.
935 *
936 * For further scan requests coming to the driver, these IEs should be
937 * merged with the IEs received along with scan request coming to the
938 * driver. If a particular IE is present in the scan default IEs but not
939 * present in the scan request, then that IE should be added to the IEs
940 * sent in the Probe Request frames for that scan request. */
8b668884 941 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
babf0ce0 942 /* Unsigned 32-bit attribute for generic commands */
8b668884 943 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
babf0ce0 944 /* Unsigned 32-bit value attribute for generic commands */
8b668884 945 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
babf0ce0 946 /* Unsigned 32-bit data attribute for generic command response */
8b668884 947 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
babf0ce0
VK
948 /* Unsigned 32-bit length attribute for
949 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
8b668884 950 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
babf0ce0
VK
951 /* Unsigned 32-bit flags attribute for
952 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
8b668884 953 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
14b76124
SD
954 /* Unsigned 32-bit, defining the access policy.
955 * See enum qca_access_policy. Used with
956 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */
8b668884 957 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
14b76124
SD
958 /* Sets the list of full set of IEs for which a specific access policy
959 * has to be applied. Used along with
960 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
961 * Zero length payload can be used to clear this access constraint. */
8b668884 962 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
fed802c2
SD
963 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
964 * corresponding configurations are applied. If the interface index is
965 * not specified, the configurations are attributed to the respective
966 * wiphy. */
8b668884 967 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
dc24a361 968 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
8b668884 969 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
2800ec85 970 /* 8-bit unsigned value to configure the driver and below layers to
971 * ignore the assoc disallowed set by APs while connecting
972 * 1-Ignore, 0-Don't ignore */
8b668884 973 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
8b7c5b89 974 /* 32-bit unsigned value to trigger antenna diversity features:
975 * 1-Enable, 0-Disable */
8b668884 976 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
8b7c5b89 977 /* 32-bit unsigned value to configure specific chain antenna */
8b668884 978 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
8b7c5b89 979 /* 32-bit unsigned value to trigger cycle selftest
980 * 1-Enable, 0-Disable */
8b668884 981 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
8b7c5b89 982 /* 32-bit unsigned to configure the cycle time of selftest
983 * the unit is micro-second */
8b668884 984 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
ac7aea86
SD
985
986 /* keep last */
987 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
988 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
989 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
990};
991
52a6c9c9
SD
992/**
993 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
994 */
995enum qca_wlan_vendor_attr_sap_config {
996 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
997 /* 1 - reserved for QCA */
998 /* List of frequencies on which AP is expected to operate.
999 * This is irrespective of ACS configuration. This list is a priority
1000 * based one and is looked for before the AP is created to ensure the
1001 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
1002 * the system.
1003 */
1004 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
1005
1006 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
1007 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
1008 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
1009};
1010
1c8fe68f
CM
1011/**
1012 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
1013 * conditional channel switch
1014 */
1015enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
1016 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
1017 /* Priority based frequency list (an array of u32 values in host byte
1018 * order) */
1019 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
1020 /* Status of the conditional switch (u32).
1021 * 0: Success, Non-zero: Failure
1022 */
1023 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
1024
1025 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
1026 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
1027 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
1028};
1029
4ac75cd0
VK
1030/**
1031 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
1032 */
1033enum qca_wlan_gpio_attr {
1034 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
1035 /* Unsigned 32-bit attribute for GPIO command */
1036 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
1037 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
1038 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
1039 /* Unsigned 32-bit attribute for GPIO value to configure */
1040 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
1041 /* Unsigned 32-bit attribute for GPIO pull type */
1042 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
1043 /* Unsigned 32-bit attribute for GPIO interrupt mode */
1044 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
1045
1046 /* keep last */
1047 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
1048 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
1049 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
1050};
1051
6fe3b9d4
YT
1052/**
1053 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
1054 */
1055enum qca_wlan_vendor_attr_get_hw_capability {
1056 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
1057 /* Antenna isolation
1058 * An attribute used in the response.
1059 * The content of this attribute is encoded in a byte array. Each byte
1060 * value is an antenna isolation value. The array length is the number
1061 * of antennas.
1062 */
1063 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
1064 /* Request HW capability
1065 * An attribute used in the request.
1066 * The content of this attribute is a u32 array for one or more of
1067 * hardware capabilities (attribute IDs) that are being requested. Each
1068 * u32 value has a value from this
1069 * enum qca_wlan_vendor_attr_get_hw_capability
1070 * identifying which capabilities are requested.
1071 */
1072 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
1073
1074 /* keep last */
1075 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
1076 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
1077 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
1078};
1079
22950d05
ZQ
1080/**
1081 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
1082 * offload which is an extension for LL_STATS.
1083 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
1084 * If MAC counters do not exceed the threshold, FW will report monitored
1085 * link layer counters periodically as this setting. The first report is
1086 * always triggered by this timer.
1087 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
1088 * For each MAC layer counter, FW holds two copies. One is the current value.
1089 * The other is the last report. Once a current counter's increment is larger
1090 * than the threshold, FW will indicate that counter to host even if the
1091 * monitoring timer does not expire.
1092 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
1093 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
1094 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
1095 * failure code.
1096 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
1097 * 1: TX packet discarded
1098 * 2: No ACK
1099 * 3: Postpone
320caeab
ZQ
1100 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
1101 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
1102 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
1103 * Threshold for all monitored parameters. If per counter dedicated threshold
1104 * is not enabled, this threshold will take effect.
1105 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
1106 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
1107 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
1108 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
1109 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
1110 * Bit0: TX counter unit in MSDU
1111 * Bit1: TX counter unit in MPDU
1112 * Bit2: TX counter unit in PPDU
1113 * Bit3: TX counter unit in byte
1114 * Bit4: Dropped MSDUs
1115 * Bit5: Dropped Bytes
1116 * Bit6: MPDU retry counter
1117 * Bit7: MPDU failure counter
1118 * Bit8: PPDU failure counter
1119 * Bit9: MPDU aggregation counter
1120 * Bit10: MCS counter for ACKed MPDUs
1121 * Bit11: MCS counter for Failed MPDUs
1122 * Bit12: TX Delay counter
1123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
1124 * Bit0: MAC RX counter unit in MPDU
1125 * Bit1: MAC RX counter unit in byte
1126 * Bit2: PHY RX counter unit in PPDU
1127 * Bit3: PHY RX counter unit in byte
1128 * Bit4: Disorder counter
1129 * Bit5: Retry counter
1130 * Bit6: Duplication counter
1131 * Bit7: Discard counter
1132 * Bit8: MPDU aggregation size counter
1133 * Bit9: MCS counter
1134 * Bit10: Peer STA power state change (wake to sleep) counter
1135 * Bit11: Peer STA power save counter, total time in PS mode
1136 * Bit12: Probe request counter
1137 * Bit13: Other management frames counter
1138 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
1139 * Bit0: Idle time
1140 * Bit1: TX time
1141 * Bit2: time RX in current bss
1142 * Bit3: Out of current bss time
1143 * Bit4: Wireless medium busy time
1144 * Bit5: RX in bad condition time
1145 * Bit6: TX in bad condition time
1146 * Bit7: time wlan card not available
1147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
1148 * Bit0: Per channel SNR counter
1149 * Bit1: Per channel noise floor counter
1150 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
1151 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
1152 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
1153 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
1154 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
1155 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
1156 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
1157 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
1158 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
1159 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
1160 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
1161 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
1162 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
1163 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
1164 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
1165 * aggregation stats buffer length
1166 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
1167 * buffer for ACKed MPDUs.
1168 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
1169 * buffer for failed MPDUs.
1170 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
1171 * length of delay stats array.
1172 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
1173 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
1174 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
1175 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
1176 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
1177 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
1178 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
1179 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
1180 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
1181 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
1182 * flagged as retransmissions
1183 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
1184 * flagged as duplicated
1185 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
1186 * packets discarded
1187 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
1188 * stats buffer.
1189 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
1190 * stats buffer.
1191 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
1192 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
1193 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
1194 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
1195 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
1196 * requests received
1197 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
1198 * frames received
1199 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
1200 * there is no TX, nor RX, nor interference.
1201 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
1202 * transmitting packets.
1203 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
1204 * for receiving.
1205 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
1206 * interference detected.
1207 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
1208 * receiving packets with errors.
1209 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
1210 * TX no-ACK.
1211 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
1212 * the chip is unable to work in normal conditions.
1213 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
1214 * receiving packets in current BSS.
1215 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
1216 * receiving packets not in current BSS.
1217 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
1218 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
1219 * This is a container for per antenna signal stats.
1220 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
1221 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
1222 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
1223 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
22950d05
ZQ
1224 */
1225enum qca_wlan_vendor_attr_ll_stats_ext {
1226 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
1227
1228 /* Attributes for configurations */
1229 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
1230 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
1231
320caeab 1232 /* Peer STA power state change */
22950d05
ZQ
1233 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
1234
1235 /* TX failure event */
1236 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
1237 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
1238 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
1239
320caeab
ZQ
1240 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
1241 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
1242
1243 /* MAC counters */
1244 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
1245 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
1246 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
1247 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
1248 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
1249 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
1250 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
1251 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
1252 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
1253 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
1254 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
1255 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
1256
1257 /* Sub-attributes for PEER_AC_TX */
1258 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
1259 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
1260 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
1261 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
1262 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
1263 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
1264 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
1265 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
1266 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
1267 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
1268 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
1269 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
1270 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
1271 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
1272 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
1273 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
1274 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
1275
1276 /* Sub-attributes for PEER_AC_RX */
1277 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
1278 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
1279 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
1280 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
1281 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
1282 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
1283 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
1284 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
1285 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
1286 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
1287 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
1288 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
1289 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
1290 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
1291 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
1292 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
1293
1294 /* Sub-attributes for CCA_BSS */
1295 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
1296 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
1297 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
1298 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
1299 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
1300 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
1301 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
1302
1303 /* sub-attribute for BSS_RX_TIME */
1304 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
1305 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
1306
1307 /* Sub-attributes for PEER_SIGNAL */
1308 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
1309 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
1310 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
1311 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
1312
1313 /* Sub-attributes for IFACE_BSS */
1314 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
1315 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
1316
22950d05
ZQ
1317 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
1318 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
1319 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
1320};
1321
fcd85d9a
LD
1322/* Attributes for FTM commands and events */
1323
1324/**
1325 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
1326 *
1327 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
1328 * enum qca_wlan_vendor_attr_loc_capa_flags.
1329 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
1330 * of measurement sessions that can run concurrently.
1331 * Default is one session (no session concurrency).
1332 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
1333 * peers that are supported in running sessions. For example,
1334 * if the value is 8 and maximum number of sessions is 2, you can
1335 * have one session with 8 unique peers, or 2 sessions with 4 unique
1336 * peers each, and so on.
1337 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
1338 * of bursts per peer, as an exponent (2^value). Default is 0,
1339 * meaning no multi-burst support.
1340 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
1341 * of measurement exchanges allowed in a single burst.
1342 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
1343 * types. A bit mask (unsigned 32 bit value), each bit corresponds
1344 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
1345 */
1346enum qca_wlan_vendor_attr_loc_capa {
1347 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
1348 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
1349 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
1350 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
1351 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
1352 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
1353 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
1354 /* keep last */
1355 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
1356 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
1357 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
1358};
1359
1360/**
1361 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
1362 *
1363 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
1364 * can be configured as an FTM responder (for example, an AP that
1365 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1366 * will be supported if set.
1367 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
1368 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
1369 * will be supported if set.
1370* @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
1371 * supports immediate (ASAP) response.
1372 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
1373 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
1374 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
1375 * requesting AOA measurements as part of an FTM session.
1376 */
1377enum qca_wlan_vendor_attr_loc_capa_flags {
1378 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
1379 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
1380 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
1381 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
1382 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
1383};
1384
1385/**
1386 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
1387 * a single peer in a measurement session.
1388 *
1389 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
1390 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
1391 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
a62dea41 1392 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
fcd85d9a
LD
1393 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
1394 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
1395 * list of supported attributes.
1396 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
1397 * secure measurement.
1398 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
1399 * measurement every <value> bursts. If 0 or not specified,
1400 * AOA measurements will be disabled for this peer.
32d08d5b
LD
1401 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
1402 * the measurement frames are exchanged. Optional; if not
1403 * specified, try to locate the peer in the kernel scan
1404 * results cache and use frequency from there.
fcd85d9a
LD
1405 */
1406enum qca_wlan_vendor_attr_ftm_peer_info {
1407 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
1408 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
1409 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
a62dea41 1410 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
fcd85d9a
LD
1411 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
1412 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
32d08d5b 1413 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
fcd85d9a
LD
1414 /* keep last */
1415 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
1416 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
1417 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
1418};
1419
1420/**
1421 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
1422 * per-peer
1423 *
1424 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
1425 * immediate (ASAP) response from peer.
1426 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
1427 * LCI report from peer. The LCI report includes the absolute
1428 * location of the peer in "official" coordinates (similar to GPS).
1429 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
1430 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
1431 * Location civic report from peer. The LCR includes the location
1432 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
1433 * 11.24.6.7 for more information.
1434 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
1435 * request a secure measurement.
1436 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
1437 */
1438enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
1439 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
1440 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
1441 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
1442 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
1443};
1444
1445/**
1446 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
1447 *
1448 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
1449 * to perform in a single burst.
1450 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
1451 * perform, specified as an exponent (2^value).
1452 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
1453 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
1454 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
1455 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
1456 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
1457 */
1458enum qca_wlan_vendor_attr_ftm_meas_param {
1459 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
1460 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
1461 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
1462 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
1463 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
1464 /* keep last */
1465 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
1466 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
1467 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
1468};
1469
1470/**
1471 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
1472 *
1473 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
1474 * peer.
1475 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
1476 * request for this peer.
1477 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
1478 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
1479 * to measurement results for this peer.
1480 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
1481 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
1482 * request failed and peer requested not to send an additional request
1483 * for this number of seconds.
1484 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
1485 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
1486 * 9.4.2.22.10.
1487 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
1488 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
1489 * 9.4.2.22.13.
1490 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
1491 * overridden some measurement request parameters. See
1492 * enum qca_wlan_vendor_attr_ftm_meas_param.
1493 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
1494 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
1495 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
1496 * results. Each entry is a nested attribute defined
1497 * by enum qca_wlan_vendor_attr_ftm_meas.
1498 */
1499enum qca_wlan_vendor_attr_ftm_peer_result {
1500 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
1501 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
1502 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
1503 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
1504 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
1505 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
1506 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
1507 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
1508 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
1509 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
1510 /* keep last */
1511 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
1512 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
1513 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
1514};
1515
1516/**
1517 * enum qca_wlan_vendor_attr_ftm_peer_result_status
1518 *
1519 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
1520 * will be provided. Peer may have overridden some measurement parameters,
1521 * in which case overridden parameters will be report by
1522 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
1523 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
1524 * of performing the measurement request. No more results will be sent
1525 * for this peer in this session.
1526 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
1527 * failed, and requested not to send an additional request for number
1528 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
1529 * attribute.
1530 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
1531 * failed. Request was not sent over the air.
1532 */
1533enum qca_wlan_vendor_attr_ftm_peer_result_status {
1534 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
1535 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
1536 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
1537 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
1538};
1539
1540/**
1541 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
1542 * for measurement result, per-peer
1543 *
1544 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
1545 * measurement completed for this peer. No more results will be reported
1546 * for this peer in this session.
1547 */
1548enum qca_wlan_vendor_attr_ftm_peer_result_flags {
1549 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
1550};
1551
1552/**
1553 * enum qca_vendor_attr_loc_session_status: Session completion status code
1554 *
1555 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
1556 * successfully.
1557 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
1558 * by request.
1559 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
1560 * was invalid and was not started.
1561 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
1562 * and did not complete normally (for example out of resources).
1563 */
1564enum qca_vendor_attr_loc_session_status {
1565 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
1566 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
1567 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
1568 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
1569};
1570
1571/**
1572 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
1573 *
1574 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
1575 * recorded by responder, in picoseconds.
1576 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1577 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
1578 * initiator, in picoseconds.
1579 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1580 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
1581 * initiator, in picoseconds.
1582 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1583 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
1584 * responder, in picoseconds.
1585 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1586 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
1587 * during this measurement exchange. Optional and will be provided if
1588 * the hardware can measure it.
1589 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
1590 * responder. Not always provided.
1591 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1592 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
1593 * responder. Not always provided.
1594 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1595 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
1596 * initiator. Not always provided.
1597 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1598 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
1599 * initiator. Not always provided.
1600 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
1601 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
1602 */
1603enum qca_wlan_vendor_attr_ftm_meas {
a62dea41 1604 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
fcd85d9a
LD
1605 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
1606 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
1607 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
1608 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
1609 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
1610 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
1611 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
1612 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
1613 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
1614 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
1615 /* keep last */
1616 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
1617 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
1618 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
1619};
1620
1621/**
1622 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
1623 *
1624 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
1625 * CIR (channel impulse response) path for each antenna.
1626 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
1627 * of the strongest CIR path for each antenna.
1628 */
1629enum qca_wlan_vendor_attr_aoa_type {
1630 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
1631 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
1632 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
1633};
1634
0d7eba54
SD
1635/**
1636 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
1637 * validate encryption engine
1638 *
1639 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
1640 * This will be included if the request is for decryption; if not included,
1641 * the request is treated as a request for encryption by default.
1642 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
1643 * indicating the key cipher suite. Takes same values as
1644 * NL80211_ATTR_KEY_CIPHER.
1645 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
1646 * Key Id to be used for encryption
1647 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
1648 * Key (TK) to be used for encryption/decryption
1649 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
1650 * Packet number to be specified for encryption/decryption
1651 * 6 bytes for TKIP/CCMP/GCMP.
1652 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
1653 * representing the 802.11 packet (header + payload + FCS) that
1654 * needs to be encrypted/decrypted.
1655 * Encrypted/decrypted response from the driver will also be sent
1656 * to userspace with the same attribute.
1657 */
1658enum qca_wlan_vendor_attr_encryption_test {
1659 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
1660 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
1661 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
1662 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
1663 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
1664 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
1665 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
1666
1667 /* keep last */
1668 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
1669 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
1670 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
1671};
1672
6eb1a569
LD
1673/**
1674 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
1675 * sector for DMG RF sector operations.
1676 *
1677 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
1678 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
1679 */
1680enum qca_wlan_vendor_attr_dmg_rf_sector_type {
1681 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
1682 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
1683 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
1684};
1685
1686/**
1687 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
1688 * DMG RF sector configuration for a single RF module.
1689 * The values are defined in a compact way which closely matches
1690 * the way it is stored in HW registers.
1691 * The configuration provides values for 32 antennas and 8 distribution
1692 * amplifiers, and together describes the characteristics of the RF
1693 * sector - such as a beam in some direction with some gain.
1694 *
1695 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
1696 * of RF module for this configuration.
1697 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
1698 * amplifier gain index. Unsigned 32 bit number containing
1699 * bits for all 32 antennas.
1700 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
1701 * amplifier gain index. Unsigned 32 bit number containing
1702 * bits for all 32 antennas.
1703 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
1704 * amplifier gain index. Unsigned 32 bit number containing
1705 * bits for all 32 antennas.
1706 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
1707 * for first 16 antennas, 2 bits per antenna.
1708 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
1709 * for last 16 antennas, 2 bits per antenna.
1710 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
1711 * DTYPE values (3 bits) for each distribution amplifier, followed
1712 * by X16 switch bits for each distribution amplifier. There are
1713 * total of 8 distribution amplifiers.
1714 */
1715enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
1716 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
1717 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
1718 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
1719 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
1720 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
1721 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
1722 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
1723 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
1724
1725 /* keep last */
1726 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
1727 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
1728 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
1729};
1730
1682c623 1731#endif /* QCA_VENDOR_H */