2 * Qualcomm Atheros OUI and vendor specific assignments
3 * Copyright (c) 2014-2015, Qualcomm Atheros, Inc.
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
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.
19 #define OUI_QCA 0x001374
22 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
24 enum qca_radiotap_vendor_ids {
25 QCA_RADIOTAP_VID_WLANTEST = 0,
29 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
31 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
33 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
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.
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.
47 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
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.
54 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
55 * used to configure PMK to the driver even when not connected. This can
56 * be used to request offloading of key management operations. Only used
57 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
59 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
60 * NL80211_CMD_ROAM event with optional attributes including information
61 * from offloaded key management operation. Uses
62 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
63 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
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
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.
73 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
74 * which supports DFS offloading, to indicate a channel availability check
77 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
78 * which supports DFS offloading, to indicate a channel availability check
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.
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.
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.
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.
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.
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.
119 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
120 * attributes defined in enum qca_wlan_gpio_attr.
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.
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
132 enum qca_nl80211_vendor_subcmds {
133 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
134 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
135 /* subcmds 2..8 not yet allocated */
136 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
137 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
138 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
139 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
140 QCA_NL80211_VENDOR_SUBMCD_STATS_EXT = 13,
141 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
142 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
143 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
144 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
145 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
146 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
147 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
148 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
149 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
150 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
151 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
152 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
153 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
154 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
155 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
156 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
157 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
158 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
159 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
160 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
161 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
162 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
163 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
164 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
165 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
166 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
167 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
168 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
169 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
170 /* 43..49 - reserved for QCA */
171 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
172 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
173 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
174 /* 53 - reserved - was used by QCA, but not in use anymore */
175 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
176 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
177 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
178 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
179 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
180 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
181 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
182 /* 61-73 - reserved for QCA */
183 /* Wi-Fi configuration subcommands */
184 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
185 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
186 /* 76-90 - reserved for QCA */
187 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
188 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
189 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
190 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
191 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
192 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
193 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
194 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
195 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
196 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
197 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
198 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
199 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
200 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
201 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
202 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
203 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
204 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
205 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
206 /* 110..114 - reserved for QCA */
207 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
208 /* 116..117 - reserved for QCA */
209 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
210 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
211 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
212 /* 121 - reserved for QCA */
213 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
214 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
215 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
216 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
217 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
218 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
222 enum qca_wlan_vendor_attr {
223 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
224 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
225 QCA_WLAN_VENDOR_ATTR_DFS = 1,
226 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
227 QCA_WLAN_VENDOR_ATTR_NAN = 2,
228 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
229 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
230 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
231 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
232 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
233 * by enum qca_roaming_policy. */
234 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
235 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
236 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
237 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
238 QCA_WLAN_VENDOR_ATTR_TEST = 8,
239 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
240 /* Unsigned 32-bit value. */
241 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
242 /* Unsigned 32-bit value */
243 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
244 /* Unsigned 32-bit value */
245 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
246 /* Unsigned 32-bit value from enum qca_set_band. */
247 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
249 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
250 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
254 enum qca_roaming_policy {
255 QCA_ROAMING_NOT_ALLOWED,
256 QCA_ROAMING_ALLOWED_WITHIN_ESS,
259 enum qca_wlan_vendor_attr_roam_auth {
260 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
261 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
262 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
263 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
264 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
265 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
266 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
267 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
268 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
270 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
271 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
272 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
275 enum qca_wlan_vendor_attr_p2p_listen_offload {
276 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
277 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
278 * of the social channels.
280 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
281 /* A 32-bit unsigned value; the P2P listen offload period (ms).
283 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
284 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
286 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
287 /* A 32-bit unsigned value; number of interval times the firmware needs
288 * to run the offloaded P2P listen operation before it stops.
290 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
291 /* An array of arbitrary binary data with one or more 8-byte values.
292 * The device types include both primary and secondary device types.
294 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
295 /* An array of unsigned 8-bit characters; vendor information elements.
297 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
298 /* A 32-bit unsigned value; a control flag to indicate whether listen
299 * results need to be flushed to wpa_supplicant.
301 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
302 /* A 8-bit unsigned value; reason code for P2P listen offload stop
305 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
307 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
308 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
309 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
312 enum qca_wlan_vendor_attr_acs_offload {
313 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
314 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
315 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
316 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
317 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
318 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
319 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
320 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
321 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
322 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
323 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
324 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
326 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
327 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
328 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
331 enum qca_wlan_vendor_acs_hw_mode {
332 QCA_ACS_MODE_IEEE80211B,
333 QCA_ACS_MODE_IEEE80211G,
334 QCA_ACS_MODE_IEEE80211A,
335 QCA_ACS_MODE_IEEE80211AD,
336 QCA_ACS_MODE_IEEE80211ANY,
340 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
342 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
343 * management offload, a mechanism where the station's firmware
344 * does the exchange with the AP to establish the temporal keys
345 * after roaming, rather than having the user space wpa_supplicant do it.
346 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
347 * band selection based on channel selection results.
348 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
349 * simultaneous off-channel operations.
350 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
351 * Listen offload; a mechanism where the station's firmware takes care of
352 * responding to incoming Probe Request frames received from other P2P
353 * Devices whilst in Listen state, rather than having the user space
354 * wpa_supplicant do it. Information from received P2P requests are
355 * forwarded from firmware to host whenever the host processor wakes up.
356 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
358 enum qca_wlan_vendor_features {
359 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
360 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
361 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
362 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
363 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
367 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
369 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
370 * the offloaded data.
371 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
373 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
376 enum qca_wlan_vendor_attr_data_offload_ind {
377 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
378 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
379 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
380 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
383 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
384 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
385 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
388 enum qca_vendor_attr_get_preferred_freq_list {
389 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
390 /* A 32-unsigned value; the interface type/mode for which the preferred
391 * frequency list is requested (see enum qca_iface_type for possible
392 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
393 * kernel and in the kernel response back to user-space.
395 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
396 /* An array of 32-unsigned values; values are frequency (MHz); sent
397 * from kernel space to user space.
399 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
401 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
402 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
403 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
406 enum qca_vendor_attr_probable_oper_channel {
407 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
408 /* 32-bit unsigned value; indicates the connection/iface type likely to
409 * come on this channel (see enum qca_iface_type).
411 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
412 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
413 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
415 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
416 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
417 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
420 enum qca_iface_type {
423 QCA_IFACE_TYPE_P2P_CLIENT,
424 QCA_IFACE_TYPE_P2P_GO,
436 * enum qca_access_policy - Access control policy
438 * Access control policy is applied on the configured IE
439 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
440 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
442 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
443 * the specific configuration (IE) set, i.e., allow all the
444 * connections which do not match the configuration.
445 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
446 * the specific configuration (IE) set, i.e., deny all the
447 * connections which do not match the configuration.
449 enum qca_access_policy {
450 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
451 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
455 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
456 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
457 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
458 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
459 * SOC timer value at TSF capture
461 enum qca_vendor_attr_tsf_cmd {
462 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
463 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
464 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
465 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
466 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
467 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
468 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
472 * enum qca_tsf_operation: TSF driver commands
473 * @QCA_TSF_CAPTURE: Initiate TSF Capture
474 * @QCA_TSF_GET: Get TSF capture value
475 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
484 * enum qca_vendor_attr_wisa_cmd
485 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
486 * WISA setup vendor commands
488 enum qca_vendor_attr_wisa_cmd {
489 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
490 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
491 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
492 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
493 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
496 /* IEEE 802.11 Vendor Specific elements */
499 * enum qca_vendor_element_id - QCA Vendor Specific element types
501 * These values are used to identify QCA Vendor Specific elements. The
502 * payload of the element starts with the three octet OUI (OUI_QCA) and
503 * is followed by a single octet type which is defined by this enum.
505 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
506 * This element can be used to specify preference order for supported
507 * channels. The channels in this list are in preference order (the first
508 * one has the highest preference) and are described as a pair of
509 * (global) Operating Class and Channel Number (each one octet) fields.
511 * This extends the standard P2P functionality by providing option to have
512 * more than one preferred operating channel. When this element is present,
513 * it replaces the preference indicated in the Operating Channel attribute.
514 * For supporting other implementations, the Operating Channel attribute is
515 * expected to be used with the highest preference channel. Similarly, all
516 * the channels included in this Preferred channel list element are
517 * expected to be included in the Channel List attribute.
519 * This vendor element may be included in GO Negotiation Request, P2P
520 * Invitation Request, and Provision Discovery Request frames.
522 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
523 * This element can be used for pre-standard publication testing of HE
524 * before P802.11ax draft assigns the element ID. The payload of this
525 * vendor specific element is defined by the latest P802.11ax draft.
526 * Please note that the draft is still work in progress and this element
527 * payload is subject to change.
529 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
530 * This element can be used for pre-standard publication testing of HE
531 * before P802.11ax draft assigns the element ID. The payload of this
532 * vendor specific element is defined by the latest P802.11ax draft.
533 * Please note that the draft is still work in progress and this element
534 * payload is subject to change.
536 enum qca_vendor_element_id {
537 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
538 QCA_VENDOR_ELEM_HE_CAPAB = 1,
539 QCA_VENDOR_ELEM_HE_OPER = 2,
543 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
545 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
546 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
547 * with frequencies to be scanned (in MHz)
548 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
549 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
550 * rates to be included
551 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
552 * at non CCK rate in 2GHz band
553 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
554 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
555 * driver for the specific scan request
556 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
557 * request decoded as in enum scan_status
558 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
560 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
563 enum qca_wlan_vendor_attr_scan {
564 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
565 QCA_WLAN_VENDOR_ATTR_SCAN_IE,
566 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
567 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
568 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
569 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
570 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
571 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
572 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
573 QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
574 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
575 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
576 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
577 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
581 * enum scan_status - Specifies the valid values the vendor scan attribute
582 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
584 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
586 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
589 VENDOR_SCAN_STATUS_NEW_RESULTS,
590 VENDOR_SCAN_STATUS_ABORTED,
591 VENDOR_SCAN_STATUS_MAX,
595 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
596 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
597 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
599 enum qca_vendor_attr_ota_test {
600 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
601 /* 8-bit unsigned value to indicate if OTA test is enabled */
602 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
604 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
605 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
606 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
610 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
612 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
614 enum qca_vendor_attr_txpower_scale {
615 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
616 /* 8-bit unsigned value to indicate the scaling of tx power */
617 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
619 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
620 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
621 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
625 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
627 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
629 enum qca_vendor_attr_txpower_decr_db {
630 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
631 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
632 * a virtual interface. */
633 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
635 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
636 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
637 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
640 /* Attributes for data used by
641 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
642 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
644 enum qca_wlan_vendor_attr_config {
645 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID,
646 /* Unsigned 32-bit value to set the DTIM period.
647 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
648 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
651 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM,
652 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
653 * used to calculate statistics like average the TSF offset or average
654 * number of frame leaked.
655 * For instance, upon Beacon frame reception:
656 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
657 * For instance, when evaluating leaky APs:
658 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
660 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR,
661 /* Unsigned 32-bit value to configure guard time, i.e., when
662 * implementing IEEE power management based on frame control PM bit, how
663 * long the driver waits before shutting down the radio and after
664 * receiving an ACK frame for a Data frame with PM bit set.
666 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME,
667 /* Unsigned 32-bit value to change the FTM capability dynamically */
668 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT,
669 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
670 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE,
671 /* Unsigned 32-bit value to configure the number of continuous
672 * Beacon Miss which shall be used by the firmware to penalize
675 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS,
676 /* Unsigned 8-bit value to configure the channel avoidance indication
677 * behavior. Firmware to send only one indication and ignore duplicate
678 * indications when set to avoid multiple Apps wakeups.
680 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND,
681 /* 8-bit unsigned value to configure the maximum TX MPDU for
683 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION,
684 /* 8-bit unsigned value to configure the maximum RX MPDU for
686 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION,
687 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
688 * retry threshold (0 disable, 31 max). */
689 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY,
690 /* 8-bit unsigned value to configure the aggregrate sw
691 * retry threshold (0 disable, 31 max). */
692 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY,
693 /* 8-bit unsigned value to configure the MGMT frame
694 * retry threshold (0 disable, 31 max). */
695 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY,
696 /* 8-bit unsigned value to configure the CTRL frame
697 * retry threshold (0 disable, 31 max). */
698 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY,
699 /* 8-bit unsigned value to configure the propagation delay for
700 * 2G/5G band (0~63, units in us) */
701 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY,
702 /* Unsigned 32-bit value to configure the number of unicast TX fail
703 * packet count. The peer is disconnected once this threshold is
705 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT,
706 /* Attribute used to set scan default IEs to the driver.
708 * These IEs can be used by scan operations that will be initiated by
709 * the driver/firmware.
711 * For further scan requests coming to the driver, these IEs should be
712 * merged with the IEs received along with scan request coming to the
713 * driver. If a particular IE is present in the scan default IEs but not
714 * present in the scan request, then that IE should be added to the IEs
715 * sent in the Probe Request frames for that scan request. */
716 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES,
717 /* Unsigned 32-bit attribute for generic commands */
718 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND,
719 /* Unsigned 32-bit value attribute for generic commands */
720 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE,
721 /* Unsigned 32-bit data attribute for generic command response */
722 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA,
723 /* Unsigned 32-bit length attribute for
724 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
725 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH,
726 /* Unsigned 32-bit flags attribute for
727 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
728 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS,
729 /* Unsigned 32-bit, defining the access policy.
730 * See enum qca_access_policy. Used with
731 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */
732 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY,
733 /* Sets the list of full set of IEs for which a specific access policy
734 * has to be applied. Used along with
735 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
736 * Zero length payload can be used to clear this access constraint. */
737 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST,
738 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
739 * corresponding configurations are applied. If the interface index is
740 * not specified, the configurations are attributed to the respective
742 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX,
743 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
744 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER,
747 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
748 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
749 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
753 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
755 enum qca_wlan_vendor_attr_sap_config {
756 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
757 /* 1 - reserved for QCA */
758 /* List of frequencies on which AP is expected to operate.
759 * This is irrespective of ACS configuration. This list is a priority
760 * based one and is looked for before the AP is created to ensure the
761 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
764 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
766 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
767 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
768 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
772 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
773 * conditional channel switch
775 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
776 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
777 /* Priority based frequency list (an array of u32 values in host byte
779 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
780 /* Status of the conditional switch (u32).
781 * 0: Success, Non-zero: Failure
783 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
785 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
786 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
787 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
791 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
793 enum qca_wlan_gpio_attr {
794 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
795 /* Unsigned 32-bit attribute for GPIO command */
796 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
797 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
798 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
799 /* Unsigned 32-bit attribute for GPIO value to configure */
800 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
801 /* Unsigned 32-bit attribute for GPIO pull type */
802 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
803 /* Unsigned 32-bit attribute for GPIO interrupt mode */
804 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
807 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
808 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
809 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
813 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
815 enum qca_wlan_vendor_attr_get_hw_capability {
816 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
818 * An attribute used in the response.
819 * The content of this attribute is encoded in a byte array. Each byte
820 * value is an antenna isolation value. The array length is the number
823 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
824 /* Request HW capability
825 * An attribute used in the request.
826 * The content of this attribute is a u32 array for one or more of
827 * hardware capabilities (attribute IDs) that are being requested. Each
828 * u32 value has a value from this
829 * enum qca_wlan_vendor_attr_get_hw_capability
830 * identifying which capabilities are requested.
832 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
835 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
836 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
837 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
841 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
842 * offload which is an extension for LL_STATS.
843 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
844 * If MAC counters do not exceed the threshold, FW will report monitored
845 * link layer counters periodically as this setting. The first report is
846 * always triggered by this timer.
847 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
848 * For each MAC layer counter, FW holds two copies. One is the current value.
849 * The other is the last report. Once a current counter's increment is larger
850 * than the threshold, FW will indicate that counter to host even if the
851 * monitoring timer does not expire.
852 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
853 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
854 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
856 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
857 * 1: TX packet discarded
861 enum qca_wlan_vendor_attr_ll_stats_ext {
862 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
864 /* Attributes for configurations */
865 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
866 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
868 /* Attributes for events */
869 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
871 /* TX failure event */
872 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
873 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
874 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
876 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
877 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
878 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
881 #endif /* QCA_VENDOR_H */