2 * Qualcomm Atheros OUI and vendor specific assignments
3 * Copyright (c) 2014-2017, 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_OCB_SET_CONFIG: Command used to set configuration
94 * for IEEE 802.11 communicating outside the context of a basic service
95 * set, called OCB command. Uses the attributes defines in
96 * enum qca_wlan_vendor_attr_ocb_set_config.
98 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
99 * UTC time. Use the attributes defines in
100 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
102 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
103 * sending OCB timing advert frames. Uses the attributes defines in
104 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
106 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
107 * OCB timing advert. Uses the attributes defines in
108 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
110 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
111 * timer value. Uses the attributes defines in
112 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
114 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
115 * start the P2P Listen offload function in device and pass the listen
116 * channel, period, interval, count, device types, and vendor specific
117 * information elements to the device driver and firmware.
118 * Uses the attributes defines in
119 * enum qca_wlan_vendor_attr_p2p_listen_offload.
121 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
122 * indicate stop request/response of the P2P Listen offload function in
123 * device. As an event, it indicates either the feature stopped after it
124 * was already running or feature has actually failed to start. Uses the
125 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
127 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
128 * beaconing, this sub command provides the driver, the frequencies on the
129 * 5 GHz band to check for any radar activity. Driver selects one channel
130 * from this priority list provided through
131 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
132 * to check for radar activity on it. If no radar activity is detected
133 * during the channel availability check period, driver internally switches
134 * to the selected frequency of operation. If the frequency is zero, driver
135 * internally selects a channel. The status of this conditional switch is
136 * indicated through an event using the same sub command through
137 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
138 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
140 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
141 * attributes defined in enum qca_wlan_gpio_attr.
143 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
144 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
145 * capabilities are to be fetched and other
146 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
147 * requested capabilities.
149 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
150 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
153 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
154 * indoor location features. Capabilities are reported in
155 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
157 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
158 * (fine timing measurement) session with one or more peers.
159 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
160 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
161 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
162 * events will be reported, followed by
163 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
165 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
167 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
168 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
169 * status code indicating session was aborted.
171 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
172 * results for one peer. Results are reported in
173 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
175 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
176 * FTM session is finished, either successfully or aborted by
179 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
180 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
181 * to enable or disable the responder. LCI/LCR reports can be
182 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
183 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
184 * times to update the LCI/LCR reports.
186 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
187 * arrival) measurement with a single peer. Specify peer MAC address in
188 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
189 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
190 * scan results cache and use the frequency from there).
191 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
192 * Measurement result is reported in
193 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
195 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
196 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
198 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
199 * the AOA measurement result.
200 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
201 * success/failure status is reported in
202 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
203 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
204 * The antenna array(s) used in the measurement are reported in
205 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
207 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
208 * data as per the given parameters.
210 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
213 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
214 * configuration for a DMG RF sector. Specify sector index in
215 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
216 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
217 * to return sector information for in
218 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
219 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
220 * exact time where information was captured in
221 * QCA_WLAN_VENDOR_ATTR_TSF.
223 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
224 * configuration for a DMG RF sector. Specify sector index in
225 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
226 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
227 * for one or more DMG RF modules in
228 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
230 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
231 * DMG RF sector for a station. This is the sector that the HW
232 * will use to communicate with the station. Specify the MAC address
233 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
234 * needed for unassociated station). Specify sector type to return in
235 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
236 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
237 * Also return the exact time where the information was captured
238 * in QCA_WLAN_VENDOR_ATTR_TSF.
240 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
241 * selected DMG RF sector for a station. This is the sector that
242 * the HW will use to communicate with the station.
243 * Specify the MAC address of associated station/AP/PCP in
244 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
245 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
246 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
247 * The selected sector will be locked such that it will not be
248 * modified like it normally does (for example when station
249 * moves around). To unlock the selected sector for a station
250 * pass the special value 0xFFFF in the sector index. To unlock
251 * all connected stations also pass a broadcast MAC address.
253 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
254 * in the host driver. The different TDLS configurations are defined
255 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
257 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
258 * capabilities. The response uses the attributes defined in
259 * enum qca_wlan_vendor_attr_get_he_capabilities.
261 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
262 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
263 * carries the scan cookie of the corresponding scan request. The scan
264 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
266 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
267 * Absorption Rate (SAR) power limits. A critical regulation for
268 * FCC compliance, OEMs require methods to set SAR limits on TX
269 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
270 * attributes are used with this command.
272 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
273 * host driver for offloading the implementation of Auto Channel Selection
274 * (ACS) to an external user space entity. This interface is used as the
275 * event from the host driver to the user space entity and also as the
276 * request from the user space entity to the host driver. The event from
277 * the host driver is used by the user space entity as an indication to
278 * start the ACS functionality. The attributes used by this event are
279 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
280 * User space entity uses the same interface to inform the host driver with
281 * selected channels after the ACS operation using the attributes defined
282 * by enum qca_wlan_vendor_attr_external_acs_channels.
284 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
285 * requisite information leading to a power save failure. The information
286 * carried as part of this event is represented by the
287 * enum qca_attr_chip_power_save_failure attributes.
289 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
290 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
292 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
293 * statistics are represented by the enum qca_attr_nud_stats_get
296 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
297 * the BSS transition status, whether accept or reject, for a list of
298 * candidate BSSIDs provided by the userspace. This uses the vendor
299 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
300 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
301 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
302 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
303 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
304 * the driver shall specify array of
305 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
306 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
307 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
309 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
310 * specific QCA module. The trace levels are represented by
311 * enum qca_attr_trace_level attributes.
313 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
314 * Protocol antenna limit in different modes. See enum
315 * qca_wlan_vendor_attr_brp_ant_limit_mode.
317 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
318 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
319 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
320 * identifying the operation in success case.
322 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
323 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
324 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
327 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
328 * specific interface. This can be used to modify some of the low level
329 * scan parameters (off channel dwell time, home channel time) in the
330 * driver/firmware. These parameters are maintained within the host driver.
331 * This command is valid only when the interface is in the connected state.
332 * These scan parameters shall be reset by the driver/firmware once
333 * disconnected. The attributes used with this command are defined in
334 * enum qca_wlan_vendor_attr_active_tos.
336 enum qca_nl80211_vendor_subcmds
{
337 QCA_NL80211_VENDOR_SUBCMD_UNSPEC
= 0,
338 QCA_NL80211_VENDOR_SUBCMD_TEST
= 1,
339 /* subcmds 2..8 not yet allocated */
340 QCA_NL80211_VENDOR_SUBCMD_ROAMING
= 9,
341 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY
= 10,
342 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY
= 11,
343 QCA_NL80211_VENDOR_SUBCMD_NAN
= 12,
344 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT
= 13,
345 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET
= 14,
346 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET
= 15,
347 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR
= 16,
348 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS
= 17,
349 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS
= 18,
350 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS
= 19,
351 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START
= 20,
352 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP
= 21,
353 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS
= 22,
354 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES
= 23,
355 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS
= 24,
356 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE
= 25,
357 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT
= 26,
358 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT
= 27,
359 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND
= 28,
360 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST
= 29,
361 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST
= 30,
362 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE
= 31,
363 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE
= 32,
364 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE
= 33,
365 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE
= 34,
366 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE
= 35,
367 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS
= 36,
368 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE
= 37,
369 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES
= 38,
370 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI
= 39,
371 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG
= 40,
372 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST
= 41,
373 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX
= 42,
374 /* 43..49 - reserved for QCA */
375 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY
= 50,
376 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH
= 51,
377 QCA_NL80211_VENDOR_SUBCMD_APFIND
= 52,
378 /* 53 - reserved - was used by QCA, but not in use anymore */
379 QCA_NL80211_VENDOR_SUBCMD_DO_ACS
= 54,
380 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
= 55,
381 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED
= 56,
382 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED
= 57,
383 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED
= 58,
384 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED
= 59,
385 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED
= 60,
386 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO
= 61,
387 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START
= 62,
388 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP
= 63,
389 QCA_NL80211_VENDOR_SUBCMD_ROAM
= 64,
390 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST
= 65,
391 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST
= 66,
392 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND
= 67,
393 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST
= 68,
394 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST
= 69,
395 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST
= 70,
396 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST
= 71,
397 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND
= 72,
398 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND
= 73,
399 /* Wi-Fi configuration subcommands */
400 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION
= 74,
401 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION
= 75,
402 /* 76-90 - reserved for QCA */
403 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD
= 91,
404 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG
= 92,
405 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME
= 93,
406 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT
= 94,
407 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT
= 95,
408 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER
= 96,
409 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS
= 97,
410 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS
= 98,
411 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL
= 99,
412 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT
= 100,
413 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES
= 101,
414 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG
= 102,
415 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST
= 103,
416 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL
= 104,
417 QCA_NL80211_VENDOR_SUBCMD_SETBAND
= 105,
418 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN
= 106,
419 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE
= 107,
420 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
= 108,
421 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE
= 109,
422 /* 110..114 - reserved for QCA */
423 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB
= 115,
424 /* 116..117 - reserved for QCA */
425 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG
= 118,
426 QCA_NL80211_VENDOR_SUBCMD_TSF
= 119,
427 QCA_NL80211_VENDOR_SUBCMD_WISA
= 120,
428 /* 121 - reserved for QCA */
429 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START
= 122,
430 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP
= 123,
431 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH
= 124,
432 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND
= 125,
433 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY
= 126,
434 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT
= 127,
435 /* FTM/indoor location subcommands */
436 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA
= 128,
437 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
= 129,
438 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION
= 130,
439 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
= 131,
440 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE
= 132,
441 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
= 133,
442 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
= 134,
443 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS
= 135,
444 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
= 136,
445 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST
= 137,
446 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI
= 138,
447 /* DMG low level RF sector operations */
448 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG
= 139,
449 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
= 140,
450 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR
= 141,
451 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR
= 142,
452 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS
= 143,
453 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES
= 144,
454 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN
= 145,
455 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
= 146,
456 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
= 147,
457 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE
= 148,
458 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET
= 149,
459 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET
= 150,
460 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS
= 151,
461 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL
= 152,
462 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT
= 153,
463 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
= 154,
464 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP
= 155,
465 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS
= 156,
469 enum qca_wlan_vendor_attr
{
470 QCA_WLAN_VENDOR_ATTR_INVALID
= 0,
471 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
472 QCA_WLAN_VENDOR_ATTR_DFS
= 1,
473 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
474 QCA_WLAN_VENDOR_ATTR_NAN
= 2,
475 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
476 QCA_WLAN_VENDOR_ATTR_STATS_EXT
= 3,
477 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
478 QCA_WLAN_VENDOR_ATTR_IFINDEX
= 4,
479 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
480 * by enum qca_roaming_policy. */
481 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY
= 5,
482 QCA_WLAN_VENDOR_ATTR_MAC_ADDR
= 6,
483 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
484 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS
= 7,
485 QCA_WLAN_VENDOR_ATTR_TEST
= 8,
486 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
487 /* Unsigned 32-bit value. */
488 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA
= 9,
489 /* Unsigned 32-bit value */
490 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND
= 10,
491 /* Unsigned 32-bit value */
492 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND
= 11,
493 /* Unsigned 32-bit value from enum qca_set_band. */
494 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
= 12,
495 /* Dummy (NOP) attribute for 64 bit padding */
496 QCA_WLAN_VENDOR_ATTR_PAD
= 13,
497 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
498 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
499 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
500 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
502 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE
= 14,
503 /* Indoor location capabilities, returned by
504 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
505 * see enum qca_wlan_vendor_attr_loc_capa.
507 QCA_WLAN_VENDOR_ATTR_LOC_CAPA
= 15,
508 /* Array of nested attributes containing information about each peer
509 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
510 * for supported attributes for each peer.
512 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS
= 16,
513 /* Array of nested attributes containing measurement results for
514 * one or more peers, reported by the
515 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
516 * See enum qca_wlan_vendor_attr_peer_result for list of supported
519 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS
= 17,
520 /* Flag attribute for enabling or disabling responder functionality. */
521 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE
= 18,
522 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
523 * command to specify the LCI report that will be sent by
524 * the responder during a measurement exchange. The format is
525 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
527 QCA_WLAN_VENDOR_ATTR_FTM_LCI
= 19,
528 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
529 * command to specify the location civic report that will
530 * be sent by the responder during a measurement exchange.
531 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
533 QCA_WLAN_VENDOR_ATTR_FTM_LCR
= 20,
534 /* Session/measurement completion status code,
535 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
536 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
537 * see enum qca_vendor_attr_loc_session_status.
539 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS
= 21,
540 /* Initial dialog token used by responder (0 if not specified),
541 * unsigned 8 bit value.
543 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN
= 22,
544 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
545 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
546 * AOA measurements are needed as part of an FTM session.
547 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
548 * enum qca_wlan_vendor_attr_aoa_type.
550 QCA_WLAN_VENDOR_ATTR_AOA_TYPE
= 23,
551 /* A bit mask (unsigned 32 bit value) of antenna arrays used
552 * by indoor location measurements. Refers to the antenna
553 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
555 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK
= 24,
556 /* AOA measurement data. Its contents depends on the AOA measurement
557 * type and antenna array mask:
558 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
559 * phase of the strongest CIR path for each antenna in the measured
561 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
562 * values, phase and amplitude of the strongest CIR path for each
563 * antenna in the measured array(s).
565 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT
= 25,
566 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
567 * to specify the chain number (unsigned 32 bit value) to inquire
568 * the corresponding antenna RSSI value */
569 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX
= 26,
570 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
571 * to report the specific antenna RSSI value (unsigned 32 bit value) */
572 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI
= 27,
573 /* Frequency in MHz, various uses. Unsigned 32 bit value */
574 QCA_WLAN_VENDOR_ATTR_FREQ
= 28,
575 /* TSF timer value, unsigned 64 bit value.
576 * May be returned by various commands.
578 QCA_WLAN_VENDOR_ATTR_TSF
= 29,
579 /* DMG RF sector index, unsigned 16 bit number. Valid values are
580 * 0..127 for sector indices or 65535 as special value used to
581 * unlock sector selection in
582 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
584 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX
= 30,
585 /* DMG RF sector type, unsigned 8 bit value. One of the values
586 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
588 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE
= 31,
589 /* Bitmask of DMG RF modules for which information is requested. Each
590 * bit corresponds to an RF module with the same index as the bit
591 * number. Unsigned 32 bit number but only low 8 bits can be set since
592 * all DMG chips currently have up to 8 RF modules.
594 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK
= 32,
595 /* Array of nested attributes where each entry is DMG RF sector
596 * configuration for a single RF module.
597 * Attributes for each entry are taken from enum
598 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
599 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
600 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
602 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG
= 33,
603 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
604 * to report frame aggregation statistics to userspace.
606 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM
= 34,
607 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO
= 35,
608 /* Unsigned 8-bit value representing MBO transition reason code as
609 * provided by the AP used by subcommand
610 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
611 * specified by the userspace in the request to the driver.
613 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON
= 36,
614 /* Array of nested attributes, BSSID and status code, used by subcommand
615 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
616 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
617 * The userspace space specifies the list/array of candidate BSSIDs in
618 * the order of preference in the request. The driver specifies the
619 * status code, for each BSSID in the list, in the response. The
620 * acceptable candidates are listed in the order preferred by the
623 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO
= 37,
624 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
625 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
627 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE
= 38,
628 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
629 * to define the number of antennas to use for BRP.
630 * different purpose in each ANT_LIMIT_MODE:
632 * EFFECTIVE - upper limit to number of antennas to be used
633 * FORCE - exact number of antennas to be used
634 * unsigned 8 bit value
636 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT
= 39,
637 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
638 * to report the corresponding antenna index to the chain RSSI value */
639 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO
= 40,
642 QCA_WLAN_VENDOR_ATTR_AFTER_LAST
,
643 QCA_WLAN_VENDOR_ATTR_MAX
= QCA_WLAN_VENDOR_ATTR_AFTER_LAST
- 1,
647 enum qca_roaming_policy
{
648 QCA_ROAMING_NOT_ALLOWED
,
649 QCA_ROAMING_ALLOWED_WITHIN_ESS
,
652 enum qca_wlan_vendor_attr_roam_auth
{
653 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID
= 0,
654 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID
,
655 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE
,
656 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE
,
657 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED
,
658 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR
,
659 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK
,
660 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK
,
661 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS
,
662 /* Indicates the status of re-association requested by user space for
663 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
665 * Represents the status code from AP. Use
666 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
667 * real status code for failures.
669 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS
,
670 /* This attribute indicates that the old association was maintained when
671 * a re-association is requested by user space and that re-association
672 * attempt fails (i.e., cannot connect to the requested BSS, but can
673 * remain associated with the BSS with which the association was in
674 * place when being requested to roam). Used along with
675 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
676 * re-association status. Type flag.
677 * This attribute is applicable only for re-association failure cases.
679 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION
,
681 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST
,
682 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX
=
683 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST
- 1
686 enum qca_wlan_vendor_attr_p2p_listen_offload
{
687 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID
= 0,
688 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
689 * of the social channels.
691 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL
,
692 /* A 32-bit unsigned value; the P2P listen offload period (ms).
694 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD
,
695 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
697 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL
,
698 /* A 32-bit unsigned value; number of interval times the firmware needs
699 * to run the offloaded P2P listen operation before it stops.
701 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT
,
702 /* An array of arbitrary binary data with one or more 8-byte values.
703 * The device types include both primary and secondary device types.
705 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES
,
706 /* An array of unsigned 8-bit characters; vendor information elements.
708 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE
,
709 /* A 32-bit unsigned value; a control flag to indicate whether listen
710 * results need to be flushed to wpa_supplicant.
712 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG
,
713 /* A 8-bit unsigned value; reason code for P2P listen offload stop
716 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON
,
718 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST
,
719 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX
=
720 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST
- 1
723 enum qca_wlan_vendor_attr_acs_offload
{
724 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID
= 0,
725 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
,
726 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL
,
727 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE
,
728 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED
,
729 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED
,
730 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED
,
731 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH
,
732 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST
,
733 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL
,
734 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL
,
735 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST
,
737 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST
,
738 QCA_WLAN_VENDOR_ATTR_ACS_MAX
=
739 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST
- 1
742 enum qca_wlan_vendor_acs_hw_mode
{
743 QCA_ACS_MODE_IEEE80211B
,
744 QCA_ACS_MODE_IEEE80211G
,
745 QCA_ACS_MODE_IEEE80211A
,
746 QCA_ACS_MODE_IEEE80211AD
,
747 QCA_ACS_MODE_IEEE80211ANY
,
751 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
753 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
754 * management offload, a mechanism where the station's firmware
755 * does the exchange with the AP to establish the temporal keys
756 * after roaming, rather than having the user space wpa_supplicant do it.
757 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
758 * band selection based on channel selection results.
759 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
760 * simultaneous off-channel operations.
761 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
762 * Listen offload; a mechanism where the station's firmware takes care of
763 * responding to incoming Probe Request frames received from other P2P
764 * Devices whilst in Listen state, rather than having the user space
765 * wpa_supplicant do it. Information from received P2P requests are
766 * forwarded from firmware to host whenever the host processor wakes up.
767 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
769 enum qca_wlan_vendor_features
{
770 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD
= 0,
771 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY
= 1,
772 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS
= 2,
773 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD
= 3,
774 NUM_QCA_WLAN_VENDOR_FEATURES
/* keep last */
778 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
780 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
781 * the offloaded data.
782 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
784 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
787 enum qca_wlan_vendor_attr_data_offload_ind
{
788 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID
= 0,
789 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION
,
790 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL
,
791 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT
,
794 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST
,
795 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX
=
796 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST
- 1
800 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
803 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
805 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
806 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
807 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
809 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
811 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
812 * active state configuration
813 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
814 * OCB_CONFIG_FLAG_80211_FRAME_MODE
815 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
816 * use in the case that a packet is sent without a TX control header
817 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
818 * last TA received that the local time set by TA is synchronous to other
819 * communicating OCB STAs.
821 enum qca_wlan_vendor_attr_ocb_set_config
{
822 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID
= 0,
823 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT
= 1,
824 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE
= 2,
825 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY
= 3,
826 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY
= 4,
827 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY
= 5,
828 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY
= 6,
829 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS
= 7,
830 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM
= 8,
831 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION
= 9,
832 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST
,
833 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX
=
834 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST
- 1
838 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
841 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
843 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
846 enum qca_wlan_vendor_attr_ocb_set_utc_time
{
847 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID
= 0,
848 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE
= 1,
849 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR
= 2,
850 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST
,
851 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX
=
852 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST
- 1
856 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
857 * to start sending timing advert frames
859 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
860 * on which to send the frames
861 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
862 * the frame is sent in 5 seconds
864 enum qca_wlan_vendor_attr_ocb_start_timing_advert
{
865 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID
= 0,
866 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ
= 1,
867 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE
= 2,
868 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST
,
869 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX
=
870 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST
- 1
874 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
875 * to stop timing advert
877 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
878 * frequency on which to stop the timing advert
880 enum qca_wlan_vendor_attr_ocb_stop_timing_advert
{
881 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID
= 0,
882 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ
= 1,
883 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST
,
884 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX
=
885 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST
- 1
889 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
890 * get TSF timer value
892 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
894 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
896 enum qca_wlan_vendor_attr_ocb_get_tsf_resp
{
897 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID
= 0,
898 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH
= 1,
899 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW
= 2,
900 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST
,
901 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX
=
902 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST
- 1
905 enum qca_vendor_attr_get_preferred_freq_list
{
906 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID
,
907 /* A 32-unsigned value; the interface type/mode for which the preferred
908 * frequency list is requested (see enum qca_iface_type for possible
909 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
910 * kernel and in the kernel response back to user-space.
912 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE
,
913 /* An array of 32-unsigned values; values are frequency (MHz); sent
914 * from kernel space to user space.
916 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST
,
918 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST
,
919 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX
=
920 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST
- 1
923 enum qca_vendor_attr_probable_oper_channel
{
924 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID
,
925 /* 32-bit unsigned value; indicates the connection/iface type likely to
926 * come on this channel (see enum qca_iface_type).
928 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE
,
929 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
930 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ
,
932 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST
,
933 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX
=
934 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST
- 1
937 enum qca_iface_type
{
940 QCA_IFACE_TYPE_P2P_CLIENT
,
941 QCA_IFACE_TYPE_P2P_GO
,
953 * enum qca_access_policy - Access control policy
955 * Access control policy is applied on the configured IE
956 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
957 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
959 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
960 * the specific configuration (IE) set, i.e., allow all the
961 * connections which do not match the configuration.
962 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
963 * the specific configuration (IE) set, i.e., deny all the
964 * connections which do not match the configuration.
966 enum qca_access_policy
{
967 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED
,
968 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED
,
972 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
973 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
974 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
975 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
976 * SOC timer value at TSF capture
978 enum qca_vendor_attr_tsf_cmd
{
979 QCA_WLAN_VENDOR_ATTR_TSF_INVALID
= 0,
980 QCA_WLAN_VENDOR_ATTR_TSF_CMD
,
981 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE
,
982 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE
,
983 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST
,
984 QCA_WLAN_VENDOR_ATTR_TSF_MAX
=
985 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST
- 1
989 * enum qca_tsf_operation: TSF driver commands
990 * @QCA_TSF_CAPTURE: Initiate TSF Capture
991 * @QCA_TSF_GET: Get TSF capture value
992 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
1001 * enum qca_vendor_attr_wisa_cmd
1002 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1003 * WISA setup vendor commands
1005 enum qca_vendor_attr_wisa_cmd
{
1006 QCA_WLAN_VENDOR_ATTR_WISA_INVALID
= 0,
1007 QCA_WLAN_VENDOR_ATTR_WISA_MODE
,
1008 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST
,
1009 QCA_WLAN_VENDOR_ATTR_WISA_MAX
=
1010 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST
- 1
1013 /* IEEE 802.11 Vendor Specific elements */
1016 * enum qca_vendor_element_id - QCA Vendor Specific element types
1018 * These values are used to identify QCA Vendor Specific elements. The
1019 * payload of the element starts with the three octet OUI (OUI_QCA) and
1020 * is followed by a single octet type which is defined by this enum.
1022 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1023 * This element can be used to specify preference order for supported
1024 * channels. The channels in this list are in preference order (the first
1025 * one has the highest preference) and are described as a pair of
1026 * (global) Operating Class and Channel Number (each one octet) fields.
1028 * This extends the standard P2P functionality by providing option to have
1029 * more than one preferred operating channel. When this element is present,
1030 * it replaces the preference indicated in the Operating Channel attribute.
1031 * For supporting other implementations, the Operating Channel attribute is
1032 * expected to be used with the highest preference channel. Similarly, all
1033 * the channels included in this Preferred channel list element are
1034 * expected to be included in the Channel List attribute.
1036 * This vendor element may be included in GO Negotiation Request, P2P
1037 * Invitation Request, and Provision Discovery Request frames.
1039 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1040 * This element can be used for pre-standard publication testing of HE
1041 * before P802.11ax draft assigns the element ID. The payload of this
1042 * vendor specific element is defined by the latest P802.11ax draft.
1043 * Please note that the draft is still work in progress and this element
1044 * payload is subject to change.
1046 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1047 * This element can be used for pre-standard publication testing of HE
1048 * before P802.11ax draft assigns the element ID. The payload of this
1049 * vendor specific element is defined by the latest P802.11ax draft.
1050 * Please note that the draft is still work in progress and this element
1051 * payload is subject to change.
1053 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1055 * This element can be used for pre-standard publication testing of HE
1056 * before P802.11ax draft assigns the element ID extension. The payload of
1057 * this vendor specific element is defined by the latest P802.11ax draft
1058 * (not including the Element ID Extension field). Please note that the
1059 * draft is still work in progress and this element payload is subject to
1062 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1063 * This element can be used for pre-standard publication testing of HE
1064 * before P802.11ax draft assigns the element ID extension. The payload of
1065 * this vendor specific element is defined by the latest P802.11ax draft
1066 * (not including the Element ID Extension field). Please note that the
1067 * draft is still work in progress and this element payload is subject to
1070 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1071 * This element can be used for pre-standard publication testing of HE
1072 * before P802.11ax draft assigns the element ID extension. The payload of
1073 * this vendor specific element is defined by the latest P802.11ax draft
1074 * (not including the Element ID Extension field). Please note that the
1075 * draft is still work in progress and this element payload is subject to
1078 enum qca_vendor_element_id
{
1079 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST
= 0,
1080 QCA_VENDOR_ELEM_HE_CAPAB
= 1,
1081 QCA_VENDOR_ELEM_HE_OPER
= 2,
1082 QCA_VENDOR_ELEM_RAPS
= 3,
1083 QCA_VENDOR_ELEM_MU_EDCA_PARAMS
= 4,
1084 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE
= 5,
1088 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1090 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1091 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1092 * with frequencies to be scanned (in MHz)
1093 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1094 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1095 * rates to be included
1096 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
1097 * at non CCK rate in 2GHz band
1098 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1099 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
1100 * driver for the specific scan request
1101 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
1102 * request decoded as in enum scan_status
1103 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
1105 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
1107 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1108 * specific BSSID to scan for.
1110 enum qca_wlan_vendor_attr_scan
{
1111 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM
= 0,
1112 QCA_WLAN_VENDOR_ATTR_SCAN_IE
= 1,
1113 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES
= 2,
1114 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS
= 3,
1115 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES
= 4,
1116 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE
= 5,
1117 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS
= 6,
1118 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE
= 7,
1119 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS
= 8,
1120 QCA_WLAN_VENDOR_ATTR_SCAN_MAC
= 9,
1121 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK
= 10,
1122 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID
= 11,
1123 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST
,
1124 QCA_WLAN_VENDOR_ATTR_SCAN_MAX
=
1125 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST
- 1
1129 * enum scan_status - Specifies the valid values the vendor scan attribute
1130 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
1132 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
1134 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1137 VENDOR_SCAN_STATUS_NEW_RESULTS
,
1138 VENDOR_SCAN_STATUS_ABORTED
,
1139 VENDOR_SCAN_STATUS_MAX
,
1143 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1144 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1145 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1147 enum qca_vendor_attr_ota_test
{
1148 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID
,
1149 /* 8-bit unsigned value to indicate if OTA test is enabled */
1150 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE
,
1152 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST
,
1153 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX
=
1154 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST
- 1
1158 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1160 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1162 enum qca_vendor_attr_txpower_scale
{
1163 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID
,
1164 /* 8-bit unsigned value to indicate the scaling of tx power */
1165 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE
,
1167 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST
,
1168 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX
=
1169 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST
- 1
1173 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1175 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1177 enum qca_vendor_attr_txpower_decr_db
{
1178 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID
,
1179 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
1180 * a virtual interface. */
1181 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB
,
1183 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST
,
1184 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX
=
1185 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST
- 1
1188 /* Attributes for data used by
1189 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1190 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
1192 enum qca_wlan_vendor_attr_config
{
1193 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID
= 0,
1194 /* Unsigned 32-bit value to set the DTIM period.
1195 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1196 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1199 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM
= 1,
1200 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1201 * used to calculate statistics like average the TSF offset or average
1202 * number of frame leaked.
1203 * For instance, upon Beacon frame reception:
1204 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1205 * For instance, when evaluating leaky APs:
1206 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1208 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR
= 2,
1209 /* Unsigned 32-bit value to configure guard time, i.e., when
1210 * implementing IEEE power management based on frame control PM bit, how
1211 * long the driver waits before shutting down the radio and after
1212 * receiving an ACK frame for a Data frame with PM bit set.
1214 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME
= 3,
1215 /* Unsigned 32-bit value to change the FTM capability dynamically */
1216 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT
= 4,
1217 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
1218 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE
= 5,
1219 /* Unsigned 32-bit value to configure the number of continuous
1220 * Beacon Miss which shall be used by the firmware to penalize
1223 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS
= 6,
1224 /* Unsigned 8-bit value to configure the channel avoidance indication
1225 * behavior. Firmware to send only one indication and ignore duplicate
1226 * indications when set to avoid multiple Apps wakeups.
1228 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND
= 7,
1229 /* 8-bit unsigned value to configure the maximum TX MPDU for
1231 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION
= 8,
1232 /* 8-bit unsigned value to configure the maximum RX MPDU for
1234 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION
= 9,
1235 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
1236 * retry threshold (0 disable, 31 max). */
1237 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY
= 10,
1238 /* 8-bit unsigned value to configure the aggregrate sw
1239 * retry threshold (0 disable, 31 max). */
1240 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY
= 11,
1241 /* 8-bit unsigned value to configure the MGMT frame
1242 * retry threshold (0 disable, 31 max). */
1243 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY
= 12,
1244 /* 8-bit unsigned value to configure the CTRL frame
1245 * retry threshold (0 disable, 31 max). */
1246 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY
= 13,
1247 /* 8-bit unsigned value to configure the propagation delay for
1248 * 2G/5G band (0~63, units in us) */
1249 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY
= 14,
1250 /* Unsigned 32-bit value to configure the number of unicast TX fail
1251 * packet count. The peer is disconnected once this threshold is
1253 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT
= 15,
1254 /* Attribute used to set scan default IEs to the driver.
1256 * These IEs can be used by scan operations that will be initiated by
1257 * the driver/firmware.
1259 * For further scan requests coming to the driver, these IEs should be
1260 * merged with the IEs received along with scan request coming to the
1261 * driver. If a particular IE is present in the scan default IEs but not
1262 * present in the scan request, then that IE should be added to the IEs
1263 * sent in the Probe Request frames for that scan request. */
1264 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES
= 16,
1265 /* Unsigned 32-bit attribute for generic commands */
1266 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND
= 17,
1267 /* Unsigned 32-bit value attribute for generic commands */
1268 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE
= 18,
1269 /* Unsigned 32-bit data attribute for generic command response */
1270 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
= 19,
1271 /* Unsigned 32-bit length attribute for
1272 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
1273 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH
= 20,
1274 /* Unsigned 32-bit flags attribute for
1275 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
1276 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS
= 21,
1277 /* Unsigned 32-bit, defining the access policy.
1278 * See enum qca_access_policy. Used with
1279 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */
1280 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY
= 22,
1281 /* Sets the list of full set of IEs for which a specific access policy
1282 * has to be applied. Used along with
1283 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
1284 * Zero length payload can be used to clear this access constraint. */
1285 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST
= 23,
1286 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
1287 * corresponding configurations are applied. If the interface index is
1288 * not specified, the configurations are attributed to the respective
1290 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX
= 24,
1291 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
1292 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER
= 25,
1293 /* 8-bit unsigned value to configure the driver and below layers to
1294 * ignore the assoc disallowed set by APs while connecting
1295 * 1-Ignore, 0-Don't ignore */
1296 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED
= 26,
1297 /* 32-bit unsigned value to trigger antenna diversity features:
1298 * 1-Enable, 0-Disable */
1299 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA
= 27,
1300 /* 32-bit unsigned value to configure specific chain antenna */
1301 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN
= 28,
1302 /* 32-bit unsigned value to trigger cycle selftest
1303 * 1-Enable, 0-Disable */
1304 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST
= 29,
1305 /* 32-bit unsigned to configure the cycle time of selftest
1306 * the unit is micro-second */
1307 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL
= 30,
1308 /* 32-bit unsigned value to set reorder timeout for AC_VO */
1309 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE
= 31,
1310 /* 32-bit unsigned value to set reorder timeout for AC_VI */
1311 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO
= 32,
1312 /* 32-bit unsigned value to set reorder timeout for AC_BE */
1313 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT
= 33,
1314 /* 32-bit unsigned value to set reorder timeout for AC_BK */
1315 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND
= 34,
1316 /* 6-byte MAC address to point out the specific peer */
1317 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC
= 35,
1318 /* 32-bit unsigned value to set window size for specific peer */
1319 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT
= 36,
1320 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
1321 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24
= 37,
1322 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
1323 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5
= 38,
1324 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
1325 * station device while in disconnect state. The attribute use the
1326 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
1327 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
1328 * 10 MHz channel width, the station will not connect to a BSS using 20
1329 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
1330 * clear this constraint. */
1331 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH
= 39,
1332 /* 32-bit unsigned value to configure the propagation absolute delay
1333 * for 2G/5G band (units in us) */
1334 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY
= 40,
1335 /* 32-bit unsigned value to set probe period */
1336 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD
= 41,
1337 /* 32-bit unsigned value to set stay period */
1338 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD
= 42,
1339 /* 32-bit unsigned value to set snr diff */
1340 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF
= 43,
1341 /* 32-bit unsigned value to set probe dwell time */
1342 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME
= 44,
1343 /* 32-bit unsigned value to set mgmt snr weight */
1344 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT
= 45,
1345 /* 32-bit unsigned value to set data snr weight */
1346 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT
= 46,
1347 /* 32-bit unsigned value to set ack snr weight */
1348 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT
= 47,
1349 /* 32-bit unsigned value to configure the listen interval.
1350 * This is in units of beacon intervals. This configuration alters
1351 * the negotiated listen interval with the AP during the connection.
1352 * It is highly recommended to configure a value less than or equal to
1353 * the one negotiated during the association. Configuring any greater
1354 * value can have adverse effects (frame loss, AP disassociating STA,
1357 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL
= 48,
1359 * 8 bit unsigned value that is set on an AP/GO virtual interface to
1360 * disable operations that would cause the AP/GO to leave its operating
1363 * This will restrict the scans to the AP/GO operating channel and the
1364 * channels of the other band, if DBS is supported.A STA/CLI interface
1365 * brought up after this setting is enabled, will be restricted to
1366 * connecting to devices only on the AP/GO interface's operating channel
1367 * or on the other band in DBS case. P2P supported channel list is
1368 * modified, to only include AP interface's operating-channel and the
1369 * channels of the other band if DBS is supported.
1371 * These restrictions are only applicable as long as the AP/GO interface
1372 * is alive. If the AP/GO interface is brought down then this
1373 * setting/restriction is forgotten.
1375 * If this variable is set on an AP/GO interface while a multi-channel
1376 * concurrent session is active, it has no effect on the operation of
1377 * the current interfaces, other than restricting the scan to the AP/GO
1378 * operating channel and the other band channels if DBS is supported.
1379 * However, if the STA is brought down and restarted then the new STA
1380 * connection will either be formed on the AP/GO channel or on the
1381 * other band in a DBS case. This is because of the scan being
1382 * restricted on these channels as mentioned above.
1384 * 1-Restrict / 0-Don't restrict offchannel operations.
1386 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL
= 49,
1388 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
1390 * 1 - Enable, 0 - Disable.
1392 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO
= 50,
1395 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST
,
1396 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX
=
1397 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST
- 1,
1401 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
1403 enum qca_wlan_vendor_attr_sap_config
{
1404 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID
= 0,
1405 /* 1 - reserved for QCA */
1406 /* List of frequencies on which AP is expected to operate.
1407 * This is irrespective of ACS configuration. This list is a priority
1408 * based one and is looked for before the AP is created to ensure the
1409 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
1412 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST
= 2,
1414 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST
,
1415 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX
=
1416 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST
- 1,
1420 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
1421 * conditional channel switch
1423 enum qca_wlan_vendor_attr_sap_conditional_chan_switch
{
1424 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID
= 0,
1425 /* Priority based frequency list (an array of u32 values in host byte
1427 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST
= 1,
1428 /* Status of the conditional switch (u32).
1429 * 0: Success, Non-zero: Failure
1431 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS
= 2,
1433 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST
,
1434 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX
=
1435 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST
- 1,
1439 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
1441 enum qca_wlan_gpio_attr
{
1442 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID
= 0,
1443 /* Unsigned 32-bit attribute for GPIO command */
1444 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND
,
1445 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
1446 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM
,
1447 /* Unsigned 32-bit attribute for GPIO value to configure */
1448 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE
,
1449 /* Unsigned 32-bit attribute for GPIO pull type */
1450 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE
,
1451 /* Unsigned 32-bit attribute for GPIO interrupt mode */
1452 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE
,
1455 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST
,
1456 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX
=
1457 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST
- 1
1461 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
1463 enum qca_wlan_vendor_attr_get_hw_capability
{
1464 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID
,
1465 /* Antenna isolation
1466 * An attribute used in the response.
1467 * The content of this attribute is encoded in a byte array. Each byte
1468 * value is an antenna isolation value. The array length is the number
1471 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION
,
1472 /* Request HW capability
1473 * An attribute used in the request.
1474 * The content of this attribute is a u32 array for one or more of
1475 * hardware capabilities (attribute IDs) that are being requested. Each
1476 * u32 value has a value from this
1477 * enum qca_wlan_vendor_attr_get_hw_capability
1478 * identifying which capabilities are requested.
1480 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY
,
1483 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST
,
1484 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX
=
1485 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST
- 1,
1489 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
1490 * offload which is an extension for LL_STATS.
1491 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
1492 * If MAC counters do not exceed the threshold, FW will report monitored
1493 * link layer counters periodically as this setting. The first report is
1494 * always triggered by this timer.
1495 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
1496 * For each MAC layer counter, FW holds two copies. One is the current value.
1497 * The other is the last report. Once a current counter's increment is larger
1498 * than the threshold, FW will indicate that counter to host even if the
1499 * monitoring timer does not expire.
1500 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
1501 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
1502 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
1504 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
1505 * 1: TX packet discarded
1508 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
1509 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
1510 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
1511 * Threshold for all monitored parameters. If per counter dedicated threshold
1512 * is not enabled, this threshold will take effect.
1513 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
1514 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
1515 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
1516 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
1517 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
1518 * Bit0: TX counter unit in MSDU
1519 * Bit1: TX counter unit in MPDU
1520 * Bit2: TX counter unit in PPDU
1521 * Bit3: TX counter unit in byte
1522 * Bit4: Dropped MSDUs
1523 * Bit5: Dropped Bytes
1524 * Bit6: MPDU retry counter
1525 * Bit7: MPDU failure counter
1526 * Bit8: PPDU failure counter
1527 * Bit9: MPDU aggregation counter
1528 * Bit10: MCS counter for ACKed MPDUs
1529 * Bit11: MCS counter for Failed MPDUs
1530 * Bit12: TX Delay counter
1531 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
1532 * Bit0: MAC RX counter unit in MPDU
1533 * Bit1: MAC RX counter unit in byte
1534 * Bit2: PHY RX counter unit in PPDU
1535 * Bit3: PHY RX counter unit in byte
1536 * Bit4: Disorder counter
1537 * Bit5: Retry counter
1538 * Bit6: Duplication counter
1539 * Bit7: Discard counter
1540 * Bit8: MPDU aggregation size counter
1542 * Bit10: Peer STA power state change (wake to sleep) counter
1543 * Bit11: Peer STA power save counter, total time in PS mode
1544 * Bit12: Probe request counter
1545 * Bit13: Other management frames counter
1546 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
1549 * Bit2: time RX in current bss
1550 * Bit3: Out of current bss time
1551 * Bit4: Wireless medium busy time
1552 * Bit5: RX in bad condition time
1553 * Bit6: TX in bad condition time
1554 * Bit7: time wlan card not available
1555 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
1556 * Bit0: Per channel SNR counter
1557 * Bit1: Per channel noise floor counter
1558 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
1559 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
1560 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
1561 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
1562 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
1563 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
1564 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
1565 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
1566 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
1567 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
1568 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
1569 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
1570 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
1571 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
1572 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
1573 * aggregation stats buffer length
1574 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
1575 * buffer for ACKed MPDUs.
1576 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
1577 * buffer for failed MPDUs.
1578 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
1579 * length of delay stats array.
1580 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
1581 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
1582 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
1583 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
1584 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
1585 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
1586 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
1587 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
1588 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
1589 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
1590 * flagged as retransmissions
1591 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
1592 * flagged as duplicated
1593 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
1595 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
1597 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
1599 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
1600 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
1601 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
1602 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
1603 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
1605 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
1607 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
1608 * there is no TX, nor RX, nor interference.
1609 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
1610 * transmitting packets.
1611 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
1613 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
1614 * interference detected.
1615 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
1616 * receiving packets with errors.
1617 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
1619 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
1620 * the chip is unable to work in normal conditions.
1621 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
1622 * receiving packets in current BSS.
1623 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
1624 * receiving packets not in current BSS.
1625 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
1626 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
1627 * This is a container for per antenna signal stats.
1628 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
1629 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
1630 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
1631 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
1633 enum qca_wlan_vendor_attr_ll_stats_ext
{
1634 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID
= 0,
1636 /* Attributes for configurations */
1637 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD
,
1638 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD
,
1640 /* Peer STA power state change */
1641 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG
,
1643 /* TX failure event */
1644 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID
,
1645 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU
,
1646 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS
,
1648 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE
,
1649 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS
,
1652 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL
,
1653 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE
,
1654 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID
,
1655 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID
,
1656 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP
,
1657 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP
,
1658 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP
,
1659 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP
,
1660 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM
,
1661 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM
,
1662 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS
,
1663 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER
,
1665 /* Sub-attributes for PEER_AC_TX */
1666 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU
,
1667 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU
,
1668 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU
,
1669 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES
,
1670 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP
,
1671 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES
,
1672 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY
,
1673 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK
,
1674 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK
,
1675 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM
,
1676 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM
,
1677 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM
,
1678 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR
,
1679 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS
,
1680 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS
,
1681 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE
,
1682 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY
,
1684 /* Sub-attributes for PEER_AC_RX */
1685 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU
,
1686 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES
,
1687 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU
,
1688 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES
,
1689 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST
,
1690 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY
,
1691 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP
,
1692 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD
,
1693 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM
,
1694 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM
,
1695 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS
,
1696 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR
,
1697 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES
,
1698 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION
,
1699 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ
,
1700 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT
,
1702 /* Sub-attributes for CCA_BSS */
1703 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME
,
1704 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME
,
1705 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME
,
1706 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY
,
1707 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD
,
1708 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD
,
1709 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL
,
1711 /* sub-attribute for BSS_RX_TIME */
1712 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME
,
1713 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME
,
1715 /* Sub-attributes for PEER_SIGNAL */
1716 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM
,
1717 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL
,
1718 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR
,
1719 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF
,
1721 /* Sub-attributes for IFACE_BSS */
1722 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON
,
1723 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON
,
1725 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST
,
1726 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX
=
1727 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST
- 1
1730 /* Attributes for FTM commands and events */
1733 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
1735 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
1736 * enum qca_wlan_vendor_attr_loc_capa_flags.
1737 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
1738 * of measurement sessions that can run concurrently.
1739 * Default is one session (no session concurrency).
1740 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
1741 * peers that are supported in running sessions. For example,
1742 * if the value is 8 and maximum number of sessions is 2, you can
1743 * have one session with 8 unique peers, or 2 sessions with 4 unique
1744 * peers each, and so on.
1745 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
1746 * of bursts per peer, as an exponent (2^value). Default is 0,
1747 * meaning no multi-burst support.
1748 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
1749 * of measurement exchanges allowed in a single burst.
1750 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
1751 * types. A bit mask (unsigned 32 bit value), each bit corresponds
1752 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
1754 enum qca_wlan_vendor_attr_loc_capa
{
1755 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID
,
1756 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS
,
1757 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS
,
1758 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS
,
1759 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP
,
1760 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST
,
1761 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES
,
1763 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST
,
1764 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX
=
1765 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST
- 1,
1769 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
1771 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
1772 * can be configured as an FTM responder (for example, an AP that
1773 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1774 * will be supported if set.
1775 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
1776 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
1777 * will be supported if set.
1778 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
1779 * supports immediate (ASAP) response.
1780 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
1781 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
1782 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
1783 * requesting AOA measurements as part of an FTM session.
1785 enum qca_wlan_vendor_attr_loc_capa_flags
{
1786 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER
= 1 << 0,
1787 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR
= 1 << 1,
1788 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP
= 1 << 2,
1789 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA
= 1 << 3,
1790 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM
= 1 << 4,
1794 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
1795 * a single peer in a measurement session.
1797 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
1798 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
1799 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
1800 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
1801 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
1802 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
1803 * list of supported attributes.
1804 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
1805 * secure measurement.
1806 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
1807 * measurement every <value> bursts. If 0 or not specified,
1808 * AOA measurements will be disabled for this peer.
1809 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
1810 * the measurement frames are exchanged. Optional; if not
1811 * specified, try to locate the peer in the kernel scan
1812 * results cache and use frequency from there.
1814 enum qca_wlan_vendor_attr_ftm_peer_info
{
1815 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID
,
1816 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR
,
1817 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS
,
1818 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS
,
1819 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID
,
1820 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD
,
1821 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ
,
1823 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST
,
1824 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX
=
1825 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST
- 1,
1829 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
1832 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
1833 * immediate (ASAP) response from peer.
1834 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
1835 * LCI report from peer. The LCI report includes the absolute
1836 * location of the peer in "official" coordinates (similar to GPS).
1837 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
1838 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
1839 * Location civic report from peer. The LCR includes the location
1840 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
1841 * 11.24.6.7 for more information.
1842 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
1843 * request a secure measurement.
1844 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
1846 enum qca_wlan_vendor_attr_ftm_peer_meas_flags
{
1847 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP
= 1 << 0,
1848 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI
= 1 << 1,
1849 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR
= 1 << 2,
1850 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE
= 1 << 3,
1854 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
1856 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
1857 * to perform in a single burst.
1858 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
1859 * perform, specified as an exponent (2^value).
1860 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
1861 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
1862 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
1863 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
1864 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
1866 enum qca_wlan_vendor_attr_ftm_meas_param
{
1867 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID
,
1868 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST
,
1869 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP
,
1870 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION
,
1871 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD
,
1873 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST
,
1874 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX
=
1875 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST
- 1,
1879 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
1881 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
1883 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
1884 * request for this peer.
1885 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
1886 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
1887 * to measurement results for this peer.
1888 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
1889 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
1890 * request failed and peer requested not to send an additional request
1891 * for this number of seconds.
1892 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
1893 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
1895 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
1896 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
1898 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
1899 * overridden some measurement request parameters. See
1900 * enum qca_wlan_vendor_attr_ftm_meas_param.
1901 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
1902 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
1903 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
1904 * results. Each entry is a nested attribute defined
1905 * by enum qca_wlan_vendor_attr_ftm_meas.
1907 enum qca_wlan_vendor_attr_ftm_peer_result
{
1908 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID
,
1909 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR
,
1910 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS
,
1911 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS
,
1912 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
,
1913 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI
,
1914 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR
,
1915 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS
,
1916 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS
,
1917 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS
,
1919 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST
,
1920 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX
=
1921 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST
- 1,
1925 * enum qca_wlan_vendor_attr_ftm_peer_result_status
1927 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
1928 * will be provided. Peer may have overridden some measurement parameters,
1929 * in which case overridden parameters will be report by
1930 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
1931 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
1932 * of performing the measurement request. No more results will be sent
1933 * for this peer in this session.
1934 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
1935 * failed, and requested not to send an additional request for number
1936 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
1938 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
1939 * failed. Request was not sent over the air.
1941 enum qca_wlan_vendor_attr_ftm_peer_result_status
{
1942 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK
,
1943 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE
,
1944 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED
,
1945 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID
,
1949 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
1950 * for measurement result, per-peer
1952 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
1953 * measurement completed for this peer. No more results will be reported
1954 * for this peer in this session.
1956 enum qca_wlan_vendor_attr_ftm_peer_result_flags
{
1957 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE
= 1 << 0,
1961 * enum qca_vendor_attr_loc_session_status: Session completion status code
1963 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
1965 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
1967 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
1968 * was invalid and was not started.
1969 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
1970 * and did not complete normally (for example out of resources).
1972 enum qca_vendor_attr_loc_session_status
{
1973 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK
,
1974 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED
,
1975 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID
,
1976 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED
,
1980 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
1982 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
1983 * recorded by responder, in picoseconds.
1984 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1985 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
1986 * initiator, in picoseconds.
1987 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1988 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
1989 * initiator, in picoseconds.
1990 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1991 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
1992 * responder, in picoseconds.
1993 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
1994 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
1995 * during this measurement exchange. Optional and will be provided if
1996 * the hardware can measure it.
1997 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
1998 * responder. Not always provided.
1999 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2000 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
2001 * responder. Not always provided.
2002 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2003 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
2004 * initiator. Not always provided.
2005 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2006 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
2007 * initiator. Not always provided.
2008 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2009 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
2011 enum qca_wlan_vendor_attr_ftm_meas
{
2012 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID
,
2013 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1
,
2014 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2
,
2015 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3
,
2016 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4
,
2017 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI
,
2018 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR
,
2019 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR
,
2020 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR
,
2021 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR
,
2022 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD
,
2024 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST
,
2025 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX
=
2026 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST
- 1,
2030 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
2032 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
2033 * CIR (channel impulse response) path for each antenna.
2034 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
2035 * of the strongest CIR path for each antenna.
2037 enum qca_wlan_vendor_attr_aoa_type
{
2038 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE
,
2039 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP
,
2040 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
2044 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
2045 * validate encryption engine
2047 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
2048 * This will be included if the request is for decryption; if not included,
2049 * the request is treated as a request for encryption by default.
2050 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
2051 * indicating the key cipher suite. Takes same values as
2052 * NL80211_ATTR_KEY_CIPHER.
2053 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
2054 * Key Id to be used for encryption
2055 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
2056 * Key (TK) to be used for encryption/decryption
2057 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
2058 * Packet number to be specified for encryption/decryption
2059 * 6 bytes for TKIP/CCMP/GCMP.
2060 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
2061 * representing the 802.11 packet (header + payload + FCS) that
2062 * needs to be encrypted/decrypted.
2063 * Encrypted/decrypted response from the driver will also be sent
2064 * to userspace with the same attribute.
2066 enum qca_wlan_vendor_attr_encryption_test
{
2067 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID
= 0,
2068 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION
,
2069 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER
,
2070 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID
,
2071 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK
,
2072 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN
,
2073 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA
,
2076 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST
,
2077 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX
=
2078 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST
- 1
2082 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
2083 * sector for DMG RF sector operations.
2085 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
2086 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
2088 enum qca_wlan_vendor_attr_dmg_rf_sector_type
{
2089 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX
,
2090 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX
,
2091 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
2095 * BRP antenna limit mode
2097 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
2098 * antenna limit, BRP will be performed as usual.
2099 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
2100 * antennas limit. the hardware may use less antennas than the
2102 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
2103 * use exactly the specified number of antennas for BRP.
2105 enum qca_wlan_vendor_attr_brp_ant_limit_mode
{
2106 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE
,
2107 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE
,
2108 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE
,
2109 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
2113 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
2114 * DMG RF sector configuration for a single RF module.
2115 * The values are defined in a compact way which closely matches
2116 * the way it is stored in HW registers.
2117 * The configuration provides values for 32 antennas and 8 distribution
2118 * amplifiers, and together describes the characteristics of the RF
2119 * sector - such as a beam in some direction with some gain.
2121 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
2122 * of RF module for this configuration.
2123 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
2124 * amplifier gain index. Unsigned 32 bit number containing
2125 * bits for all 32 antennas.
2126 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
2127 * amplifier gain index. Unsigned 32 bit number containing
2128 * bits for all 32 antennas.
2129 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
2130 * amplifier gain index. Unsigned 32 bit number containing
2131 * bits for all 32 antennas.
2132 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
2133 * for first 16 antennas, 2 bits per antenna.
2134 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
2135 * for last 16 antennas, 2 bits per antenna.
2136 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
2137 * DTYPE values (3 bits) for each distribution amplifier, followed
2138 * by X16 switch bits for each distribution amplifier. There are
2139 * total of 8 distribution amplifiers.
2141 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg
{
2142 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID
= 0,
2143 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX
= 1,
2144 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0
= 2,
2145 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1
= 3,
2146 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2
= 4,
2147 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI
= 5,
2148 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO
= 6,
2149 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16
= 7,
2152 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST
,
2153 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX
=
2154 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST
- 1
2157 enum qca_wlan_vendor_attr_ll_stats_set
{
2158 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID
= 0,
2159 /* Unsigned 32-bit value */
2160 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD
= 1,
2161 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING
= 2,
2163 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST
,
2164 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX
=
2165 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST
- 1,
2168 enum qca_wlan_vendor_attr_ll_stats_clr
{
2169 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID
= 0,
2170 /* Unsigned 32bit bitmap for clearing statistics
2171 * All radio statistics 0x00000001
2172 * cca_busy_time (within radio statistics) 0x00000002
2173 * All channel stats (within radio statistics) 0x00000004
2174 * All scan statistics (within radio statistics) 0x00000008
2175 * All interface statistics 0x00000010
2176 * All tx rate statistics (within interface statistics) 0x00000020
2177 * All ac statistics (with in interface statistics) 0x00000040
2178 * All contention (min, max, avg) statistics (within ac statisctics)
2181 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK
= 1,
2182 /* Unsigned 8 bit value: Request to stop statistics collection */
2183 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ
= 2,
2185 /* Unsigned 32 bit bitmap: Response from the driver
2186 * for the cleared statistics
2188 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK
= 3,
2189 /* Unsigned 8 bit value: Response from driver/firmware
2190 * for the stop request
2192 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP
= 4,
2194 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST
,
2195 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX
=
2196 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST
- 1,
2199 enum qca_wlan_vendor_attr_ll_stats_get
{
2200 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID
= 0,
2201 /* Unsigned 32 bit value provided by the caller issuing the GET stats
2202 * command. When reporting the stats results, the driver uses the same
2203 * value to indicate which GET request the results correspond to.
2205 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID
= 1,
2206 /* Unsigned 32 bit value - bit mask to identify what statistics are
2207 * requested for retrieval.
2208 * Radio Statistics 0x00000001
2209 * Interface Statistics 0x00000020
2210 * All Peer Statistics 0x00000040
2211 * Peer Statistics 0x00000080
2213 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK
= 2,
2215 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST
,
2216 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX
=
2217 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST
- 1,
2220 enum qca_wlan_vendor_attr_ll_stats_results
{
2221 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID
= 0,
2222 /* Unsigned 32bit value. Used by the driver; must match the request id
2223 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2225 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID
= 1,
2227 /* Unsigned 32 bit value */
2228 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX
= 2,
2229 /* Unsigned 32 bit value */
2230 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX
= 3,
2231 /* Unsigned 32 bit value */
2232 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX
= 4,
2233 /* Unsigned 32 bit value */
2234 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX
= 5,
2235 /* Signed 32 bit value */
2236 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT
= 6,
2237 /* Signed 32 bit value */
2238 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA
= 7,
2239 /* Signed 32 bit value */
2240 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK
= 8,
2242 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2243 * nested within the interface stats.
2246 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2247 * Type = enum wifi_interface_mode.
2249 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE
= 9,
2250 /* Interface MAC address. An array of 6 Unsigned int8 */
2251 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR
= 10,
2252 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2253 * AUTHENTICATING, etc. valid for STA, CLI only.
2255 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE
= 11,
2256 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2258 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING
= 12,
2259 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2260 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES
= 13,
2261 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2262 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID
= 14,
2263 /* BSSID. An array of 6 unsigned 8 bit values */
2264 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID
= 15,
2265 /* Country string advertised by AP. An array of 3 unsigned 8 bit
2268 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR
= 16,
2269 /* Country string for this association. An array of 3 unsigned 8 bit
2272 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR
= 17,
2274 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2275 * be nested within the interface stats.
2278 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2279 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC
= 18,
2280 /* Unsigned int 32 value corresponding to respective AC */
2281 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU
= 19,
2282 /* Unsigned int 32 value corresponding to respective AC */
2283 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU
= 20,
2284 /* Unsigned int 32 value corresponding to respective AC */
2285 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST
= 21,
2286 /* Unsigned int 32 value corresponding to respective AC */
2287 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST
= 22,
2288 /* Unsigned int 32 value corresponding to respective AC */
2289 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU
= 23,
2290 /* Unsigned int 32 value corresponding to respective AC */
2291 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU
= 24,
2292 /* Unsigned int 32 value corresponding to respective AC */
2293 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST
= 25,
2294 /* Unsigned int 32 value corresponding to respective AC */
2295 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES
= 26,
2296 /* Unsigned int 32 value corresponding to respective AC */
2297 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT
= 27,
2298 /* Unsigned int 32 values corresponding to respective AC */
2299 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG
= 28,
2300 /* Unsigned int 32 values corresponding to respective AC */
2301 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN
= 29,
2302 /* Unsigned int 32 values corresponding to respective AC */
2303 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX
= 30,
2304 /* Unsigned int 32 values corresponding to respective AC */
2305 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG
= 31,
2306 /* Unsigned int 32 values corresponding to respective AC */
2307 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES
= 32,
2308 /* Unsigned 32 bit value. Number of peers */
2309 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS
= 33,
2311 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2312 * nested within the interface stats.
2315 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2316 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE
= 34,
2317 /* MAC addr corresponding to respective peer. An array of 6 unsigned
2320 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS
= 35,
2321 /* Unsigned int 32 bit value representing capabilities corresponding
2322 * to respective peer.
2324 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES
= 36,
2325 /* Unsigned 32 bit value. Number of rates */
2326 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES
= 37,
2328 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2329 * are nested within the rate stat.
2332 /* Wi-Fi Rate - separate attributes defined for individual fields */
2334 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2335 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE
= 38,
2336 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2337 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS
= 39,
2338 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2339 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW
= 40,
2340 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2341 * in the units of 0.5 Mbps HT/VHT it would be MCS index */
2342 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX
= 41,
2344 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2345 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE
= 42,
2348 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2349 * nested within the peer info stats.
2352 /* Unsigned int 32 bit value. Number of successfully transmitted data
2353 * packets, i.e., with ACK received corresponding to the respective
2356 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU
= 43,
2357 /* Unsigned int 32 bit value. Number of received data packets
2358 * corresponding to the respective rate.
2360 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU
= 44,
2361 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2362 * received corresponding to the respective rate.
2364 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST
= 45,
2365 /* Unsigned int 32 bit value. Total number of data packet retries for
2366 * the respective rate.
2368 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES
= 46,
2369 /* Unsigned int 32 bit value. Total number of short data packet retries
2370 * for the respective rate.
2372 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT
= 47,
2373 /* Unsigned int 32 bit value. Total number of long data packet retries
2374 * for the respective rate.
2376 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG
= 48,
2378 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID
= 49,
2379 /* Unsigned 32 bit value. Total number of msecs the radio is awake
2380 * accruing over time.
2382 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME
= 50,
2383 /* Unsigned 32 bit value. Total number of msecs the radio is
2384 * transmitting accruing over time.
2386 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME
= 51,
2387 /* Unsigned 32 bit value. Total number of msecs the radio is in active
2388 * receive accruing over time.
2390 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME
= 52,
2391 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2392 * to all scan accruing over time.
2394 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN
= 53,
2395 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2396 * to NAN accruing over time.
2398 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD
= 54,
2399 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2400 * to GSCAN accruing over time.
2402 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN
= 55,
2403 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2404 * to roam scan accruing over time.
2406 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN
= 56,
2407 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2408 * to PNO scan accruing over time.
2410 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN
= 57,
2411 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
2412 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2414 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20
= 58,
2415 /* Unsigned 32 bit value. Number of channels. */
2416 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS
= 59,
2418 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2419 * be nested within the channel stats.
2422 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2423 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH
= 60,
2424 /* Unsigned 32 bit value. Primary 20 MHz channel. */
2425 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ
= 61,
2426 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2427 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0
= 62,
2428 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2429 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1
= 63,
2431 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2432 * nested within the radio stats.
2435 /* Unsigned int 32 bit value representing total number of msecs the
2436 * radio is awake on that channel accruing over time, corresponding to
2437 * the respective channel.
2439 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME
= 64,
2440 /* Unsigned int 32 bit value representing total number of msecs the CCA
2441 * register is busy accruing over time corresponding to the respective
2444 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME
= 65,
2446 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS
= 66,
2448 /* Signifies the nested list of channel attributes
2449 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
2451 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO
= 67,
2453 /* Signifies the nested list of peer info attributes
2454 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2456 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO
= 68,
2458 /* Signifies the nested list of rate info attributes
2459 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2461 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO
= 69,
2463 /* Signifies the nested list of wmm info attributes
2464 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2466 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO
= 70,
2468 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2469 * that more stats, e.g., peers or radio, are to follow in the next
2470 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2471 * Otherwise, it is set to 0.
2473 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA
= 71,
2475 /* Unsigned 64 bit value */
2476 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET
= 72,
2478 /* Unsigned 32 bit value */
2479 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED
= 73,
2481 /* Unsigned 32 bit value */
2482 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED
= 74,
2484 /* Unsigned 32 bit value */
2485 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME
= 75,
2487 /* Unsigned 32 bit value */
2488 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE
= 76,
2490 /* Unsigned 32 bit value */
2491 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS
= 77,
2493 /* Number of msecs the radio spent in transmitting for each power level
2495 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL
= 78,
2497 /* Unsigned 32 bit value */
2498 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT
= 79,
2499 /* Unsigned 32 bit value */
2500 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT
= 80,
2501 /* Unsigned 32 bit value */
2502 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT
= 81,
2503 /* Unsigned 32 bit value */
2504 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT
= 82,
2507 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST
,
2508 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX
=
2509 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST
- 1,
2512 enum qca_wlan_vendor_attr_ll_stats_type
2514 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID
= 0,
2515 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO
= 1,
2516 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE
= 2,
2517 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS
= 3,
2520 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST
,
2521 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX
=
2522 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST
- 1,
2526 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
2527 * TDLS configuration to the host driver.
2529 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
2530 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
2531 * represents the different TDLS trigger modes.
2532 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
2533 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
2534 * of packets shall meet the criteria for implicit TDLS setup.
2535 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
2536 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
2537 * to initiate a TDLS setup.
2538 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
2539 * a TDLS Discovery to the peer.
2540 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
2541 * discovery attempts to know the TDLS capability of the peer. A peer is
2542 * marked as TDLS not capable if there is no response for all the attempts.
2543 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
2544 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
2545 * number of TX / RX frames meet the criteria for TDLS teardown.
2546 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
2547 * of Tx/Rx packets within a duration
2548 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
2549 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
2550 * corresponding to the RSSI of the peer below which a TDLS setup is
2552 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
2553 * corresponding to the RSSI of the peer above which a TDLS teardown is
2556 enum qca_wlan_vendor_attr_tdls_configuration
{
2557 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID
= 0,
2558 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE
= 1,
2560 /* Attributes configuring the TDLS Implicit Trigger */
2561 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
= 2,
2562 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD
= 3,
2563 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD
= 4,
2564 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT
= 5,
2565 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT
= 6,
2566 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
= 7,
2567 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD
= 8,
2568 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD
= 9,
2571 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST
,
2572 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX
=
2573 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST
- 1
2577 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
2580 * The following are the different values for
2581 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
2583 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
2584 * the TDLS connection to a respective peer comes from the user space.
2585 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
2586 * TDLS_DISCOVER to do this.
2587 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
2588 * setup/teardown to the eligible peer once the configured criteria
2589 * (such as TX/RX threshold, RSSI) is met. The attributes
2590 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
2591 * the different configuration criteria for the TDLS trigger from the
2593 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
2594 * the TDLS setup / teardown through the implicit mode only to the
2595 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
2596 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
2597 * External mode works on top of the implicit mode. Thus the host driver
2598 * is expected to configure in TDLS Implicit mode too to operate in
2600 * Configuring External mode alone without Implicit mode is invalid.
2602 * All the above implementations work as expected only when the host driver
2603 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
2604 * that the TDLS message exchange is not internal to the host driver, but
2605 * depends on wpa_supplicant to do the message exchange.
2607 enum qca_wlan_vendor_tdls_trigger_mode
{
2608 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT
= 1 << 0,
2609 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT
= 1 << 1,
2610 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL
= 1 << 2,
2614 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
2615 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
2616 * that is hard-coded in the Board Data File (BDF).
2617 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
2618 * that is hard-coded in the Board Data File (BDF).
2619 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
2620 * that is hard-coded in the Board Data File (BDF).
2621 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
2622 * that is hard-coded in the Board Data File (BDF).
2623 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
2624 * that is hard-coded in the Board Data File (BDF).
2625 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
2626 * source of SAR power limits, thereby disabling the SAR power
2628 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
2629 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
2631 * This enumerates the valid set of values that may be supplied for
2632 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
2633 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command.
2635 enum qca_vendor_attr_sar_limits_selections
{
2636 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0
= 0,
2637 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1
= 1,
2638 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2
= 2,
2639 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3
= 3,
2640 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4
= 4,
2641 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE
= 5,
2642 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER
= 6,
2646 * enum qca_vendor_attr_sar_limits_spec_modulations -
2647 * SAR limits specification modulation
2648 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
2650 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
2653 * This enumerates the valid set of values that may be supplied for
2654 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
2655 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
2656 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
2659 enum qca_vendor_attr_sar_limits_spec_modulations
{
2660 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK
= 0,
2661 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM
= 1,
2665 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
2667 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
2668 * select which SAR power limit table should be used. Valid
2669 * values are enumerated in enum
2670 * %qca_vendor_attr_sar_limits_selections. The existing SAR
2671 * power limit selection is unchanged if this attribute is not
2674 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
2675 * which specifies the number of SAR power limit specifications
2676 * which will follow.
2678 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
2679 * limit specifications. The number of specifications is
2680 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
2681 * specification contains a set of
2682 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
2683 * specification is uniquely identified by the attributes
2684 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
2685 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
2686 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
2687 * contains as a payload the attribute
2688 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
2690 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
2691 * indicate for which band this specification applies. Valid
2692 * values are enumerated in enum %nl80211_band (although not all
2693 * bands may be supported by a given device). If the attribute is
2694 * not supplied then the specification will be applied to all
2697 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
2698 * to indicate for which antenna chain this specification
2699 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
2700 * attribute is not supplied then the specification will be
2701 * applied to all chains.
2703 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
2704 * value to indicate for which modulation scheme this
2705 * specification applies. Valid values are enumerated in enum
2706 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
2707 * is not supplied then the specification will be applied to all
2708 * modulation schemes.
2710 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
2711 * value to specify the actual power limit value in units of 0.5
2712 * dBm (i.e., a value of 11 represents 5.5 dBm).
2714 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS.
2716 enum qca_vendor_attr_sar_limits
{
2717 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID
= 0,
2718 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE
= 1,
2719 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS
= 2,
2720 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC
= 3,
2721 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND
= 4,
2722 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN
= 5,
2723 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION
= 6,
2724 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT
= 7,
2726 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST
,
2727 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX
=
2728 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST
- 1
2732 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
2733 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
2735 enum qca_wlan_vendor_attr_get_wifi_info
{
2736 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID
= 0,
2737 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION
= 1,
2738 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION
= 2,
2741 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST
,
2742 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX
=
2743 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST
- 1,
2747 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
2748 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
2750 enum qca_wlan_vendor_attr_wifi_logger_start
{
2751 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID
= 0,
2752 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID
= 1,
2753 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL
= 2,
2754 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS
= 3,
2757 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST
,
2758 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX
=
2759 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST
- 1,
2762 enum qca_wlan_vendor_attr_logger_results
{
2763 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID
= 0,
2765 /* Unsigned 32-bit value; must match the request Id supplied by
2766 * Wi-Fi HAL in the corresponding subcmd NL msg.
2768 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID
= 1,
2770 /* Unsigned 32-bit value; used to indicate the size of memory
2771 * dump to be allocated.
2773 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE
= 2,
2776 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST
,
2777 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX
=
2778 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST
- 1,
2781 enum qca_wlan_vendor_attr_roaming_config_params
{
2782 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID
= 0,
2784 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD
= 1,
2785 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID
= 2,
2787 /* Attributes for wifi_set_ssid_white_list */
2788 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS
= 3,
2789 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST
= 4,
2790 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
= 5,
2792 /* Attributes for set_roam_params */
2793 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD
= 6,
2794 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD
= 7,
2795 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR
= 8,
2796 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR
= 9,
2797 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST
= 10,
2798 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS
= 11,
2799 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER
= 12,
2801 /* Attribute for set_lazy_roam */
2802 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
= 13,
2804 /* Attribute for set_lazy_roam with preferences */
2805 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS
= 14,
2806 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID
= 15,
2807 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID
= 16,
2808 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER
= 17,
2810 /* Attribute for set_blacklist bssid params */
2811 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS
= 18,
2812 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID
= 19,
2813 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID
= 20,
2816 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST
,
2817 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX
=
2818 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST
- 1,
2822 * enum qca_wlan_vendor_attr_roam_subcmd: Attributes for data used by
2823 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
2825 enum qca_wlan_vendor_attr_roam_subcmd
{
2826 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID
= 0,
2827 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST
= 1,
2828 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_GSCAN_ROAM_PARAMS
= 2,
2829 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM
= 3,
2830 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS
= 4,
2831 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS
= 5,
2832 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID
= 6,
2835 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST
,
2836 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX
=
2837 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST
- 1,
2840 enum qca_wlan_vendor_attr_gscan_config_params
{
2841 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID
= 0,
2843 /* Unsigned 32-bit value */
2844 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID
= 1,
2846 /* Attributes for data used by
2847 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
2849 /* Unsigned 32-bit value */
2850 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
2852 /* Unsigned 32-bit value */
2853 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
2856 /* Attributes for input params used by
2857 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
2860 /* Unsigned 32-bit value; channel frequency */
2861 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL
= 4,
2862 /* Unsigned 32-bit value; dwell time in ms. */
2863 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME
= 5,
2864 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
2865 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE
= 6,
2866 /* Unsigned 8-bit value; channel class */
2867 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS
= 7,
2869 /* Unsigned 8-bit value; bucket index, 0 based */
2870 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX
= 8,
2871 /* Unsigned 8-bit value; band. */
2872 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND
= 9,
2873 /* Unsigned 32-bit value; desired period, in ms. */
2874 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD
= 10,
2875 /* Unsigned 8-bit value; report events semantics. */
2876 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS
= 11,
2877 /* Unsigned 32-bit value. Followed by a nested array of
2878 * GSCAN_CHANNEL_SPEC_* attributes.
2880 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
= 12,
2882 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
2883 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
2885 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC
= 13,
2887 /* Unsigned 32-bit value; base timer period in ms. */
2888 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD
= 14,
2889 /* Unsigned 32-bit value; number of APs to store in each scan in the
2890 * BSSID/RSSI history buffer (keep the highest RSSI APs).
2892 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN
= 15,
2893 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
2896 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
2899 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
2900 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
2901 * of the array is determined by NUM_BUCKETS.
2903 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
= 17,
2905 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
2906 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
2908 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC
= 18,
2910 /* Unsigned 8-bit value */
2911 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
2913 /* Unsigned 32-bit value; maximum number of results to be returned. */
2914 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
2917 /* An array of 6 x unsigned 8-bit value */
2918 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID
= 21,
2919 /* Signed 32-bit value */
2920 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW
= 22,
2921 /* Signed 32-bit value */
2922 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH
= 23,
2923 /* Unsigned 32-bit value */
2924 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL
= 24,
2926 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
2927 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
2928 * array is determined by NUM_AP.
2930 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP
= 25,
2932 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
2933 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
2935 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM
= 26,
2937 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
2938 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
2940 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
2941 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
2943 /* Unsigned 32-bit value; number of APs breaching threshold. */
2944 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING
= 29,
2945 /* Unsigned 32-bit value; number of APs. Followed by an array of
2946 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
2948 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP
= 30,
2949 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
2950 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
2952 /* Unsigned 32-bit value. If max_period is non zero or different than
2953 * period, then this bucket is an exponential backoff bucket.
2955 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD
= 32,
2956 /* Unsigned 32-bit value. */
2957 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE
= 33,
2958 /* Unsigned 32-bit value. For exponential back off bucket, number of
2959 * scans to perform for a given period.
2961 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT
= 34,
2962 /* Unsigned 8-bit value; in number of scans, wake up AP after these
2965 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
2968 /* Attributes for data used by
2969 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
2971 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
2972 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
2974 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
2975 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
2976 * size of the array is determined by NUM_SSID.
2978 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
= 37,
2979 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
2981 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
2983 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM
= 38,
2985 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
2986 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID
= 39,
2987 /* Unsigned 8-bit value */
2988 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND
= 40,
2989 /* Signed 32-bit value */
2990 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW
= 41,
2991 /* Signed 32-bit value */
2992 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH
= 42,
2993 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
2995 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS
= 43,
2998 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST
,
2999 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX
=
3000 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST
- 1,
3003 enum qca_wlan_vendor_attr_gscan_results
{
3004 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID
= 0,
3006 /* Unsigned 32-bit value; must match the request Id supplied by
3007 * Wi-Fi HAL in the corresponding subcmd NL msg.
3009 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID
= 1,
3011 /* Unsigned 32-bit value; used to indicate the status response from
3012 * firmware/driver for the vendor sub-command.
3014 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS
= 2,
3016 /* GSCAN Valid Channels attributes */
3017 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
3018 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS
= 3,
3019 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
3020 * representing channel numbers.
3022 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS
= 4,
3024 /* GSCAN Capabilities attributes */
3025 /* Unsigned 32-bit value */
3026 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE
= 5,
3027 /* Unsigned 32-bit value */
3028 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS
= 6,
3029 /* Unsigned 32-bit value */
3030 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
3032 /* Unsigned 32-bit value */
3033 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
3035 /* Signed 32-bit value */
3036 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
3038 /* Unsigned 32-bit value */
3039 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS
= 10,
3040 /* Unsigned 32-bit value */
3041 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
3043 /* Unsigned 32-bit value */
3044 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
3047 /* GSCAN Attributes used with
3048 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
3051 /* Unsigned 32-bit value */
3052 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
= 13,
3054 /* GSCAN attributes used with
3055 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
3058 /* An array of NUM_RESULTS_AVAILABLE x
3059 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
3061 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST
= 14,
3063 /* Unsigned 64-bit value; age of sample at the time of retrieval */
3064 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP
= 15,
3065 /* 33 x unsigned 8-bit value; NULL terminated SSID */
3066 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID
= 16,
3067 /* An array of 6 x unsigned 8-bit value */
3068 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID
= 17,
3069 /* Unsigned 32-bit value; channel frequency in MHz */
3070 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL
= 18,
3071 /* Signed 32-bit value */
3072 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI
= 19,
3073 /* Unsigned 32-bit value */
3074 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT
= 20,
3075 /* Unsigned 32-bit value */
3076 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD
= 21,
3077 /* Unsigned 16-bit value */
3078 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD
= 22,
3079 /* Unsigned 16-bit value */
3080 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY
= 23,
3081 /* Unsigned 32-bit value; size of the IE DATA blob */
3082 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH
= 24,
3083 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
3084 * information elements found in the beacon; this data should be a
3085 * packed list of wifi_information_element objects, one after the
3088 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA
= 25,
3090 /* Unsigned 8-bit value; set by driver to indicate more scan results are
3093 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA
= 26,
3095 /* GSCAN attributes for
3096 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
3098 /* Unsigned 8-bit value */
3099 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE
= 27,
3100 /* Unsigned 32-bit value */
3101 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS
= 28,
3103 /* GSCAN attributes for
3104 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
3106 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3107 * to indicate number of results.
3108 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3112 /* GSCAN attributes for
3113 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
3115 /* An array of 6 x unsigned 8-bit value */
3116 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID
= 29,
3117 /* Unsigned 32-bit value */
3118 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
3120 /* Unsigned 32-bit value. */
3121 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
3123 /* A nested array of signed 32-bit RSSI values. Size of the array is
3124 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
3126 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
3129 /* GSCAN attributes used with
3130 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
3132 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3133 * to indicate number of gscan cached results returned.
3134 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
3135 * the list of gscan cached results.
3138 /* An array of NUM_RESULTS_AVAILABLE x
3139 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
3141 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST
= 33,
3142 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
3143 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID
= 34,
3144 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
3146 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS
= 35,
3147 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3148 * to indicate number of wifi scan results/bssids retrieved by the scan.
3149 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3150 * list of wifi scan results returned for each cached result block.
3153 /* GSCAN attributes for
3154 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
3156 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
3157 * number of results.
3158 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3159 * list of wifi scan results returned for each
3160 * wifi_passpoint_match_result block.
3161 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
3164 /* GSCAN attributes for
3165 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
3167 /* Unsigned 32-bit value */
3168 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
3170 /* A nested array of
3171 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
3172 * attributes. Array size =
3173 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
3175 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST
= 37,
3177 /* Unsigned 32-bit value; network block id for the matched network */
3178 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID
= 38,
3179 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3180 * list of wifi scan results returned for each
3181 * wifi_passpoint_match_result block.
3183 /* Unsigned 32-bit value */
3184 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN
= 39,
3185 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
3186 * ANQP data in the information_element format.
3188 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP
= 40,
3190 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3191 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS
= 41,
3192 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3193 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS
= 42,
3194 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3195 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
3197 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3198 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
3201 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED
= 45,
3204 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST
,
3205 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX
=
3206 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST
- 1,
3209 enum qca_wlan_vendor_attr_pno_config_params
{
3210 QCA_WLAN_VENDOR_ATTR_PNO_INVALID
= 0,
3211 /* Attributes for data used by
3212 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3214 /* Unsigned 32-bit value */
3215 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM
= 1,
3216 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3217 * attributes. Array size =
3218 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3220 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY
= 2,
3222 /* Unsigned 32-bit value */
3223 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID
= 3,
3224 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
3225 * realm, 0 if unspecified.
3227 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM
= 4,
3228 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
3229 * match, 0 if unspecified.
3231 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID
= 5,
3232 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
3235 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN
= 6,
3237 /* Attributes for data used by
3238 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3240 /* Unsigned 32-bit value */
3241 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
= 7,
3243 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3244 * attributes. Array size =
3245 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
3247 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST
= 8,
3248 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3249 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID
= 9,
3250 /* Signed 8-bit value; threshold for considering this SSID as found,
3251 * required granularity for this threshold is 4 dBm to 8 dBm.
3253 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
3255 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
3256 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS
= 11,
3257 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
3258 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT
= 12,
3259 /* Unsigned 8-bit to indicate ePNO type;
3260 * It takes values from qca_wlan_epno_type
3262 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
= 13,
3264 /* Nested attribute to send the channel list */
3265 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
= 14,
3267 /* Unsigned 32-bit value; indicates the interval between PNO scan
3270 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
= 15,
3271 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
= 16,
3272 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
= 17,
3273 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
= 18,
3274 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
= 19,
3275 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
= 20,
3276 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
= 21,
3277 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
= 22,
3280 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST
,
3281 QCA_WLAN_VENDOR_ATTR_PNO_MAX
=
3282 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST
- 1,
3286 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
3287 * the ACS has to be triggered. These values are used by
3288 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
3289 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
3291 enum qca_wlan_vendor_acs_select_reason
{
3292 /* Represents the reason that the ACS triggered during the AP start */
3293 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT
,
3294 /* Represents the reason that DFS found with the current channel */
3295 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS
,
3296 /* Represents the reason that LTE co-exist in the current band. */
3297 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX
,
3301 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
3302 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
3303 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
3304 * external ACS policies to select the channels w.r.t. the PCL weights.
3305 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
3306 * their PCL weights.)
3307 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
3308 * select a channel with non-zero PCL weight.
3309 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
3310 * channel with non-zero PCL weight.
3313 enum qca_wlan_vendor_attr_external_acs_policy
{
3314 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED
,
3315 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY
,
3319 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3320 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3322 enum qca_wlan_vendor_channel_prop_flags
{
3323 /* Bits 0, 1, 2, and 3 are reserved */
3326 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO
= 1 << 4,
3328 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK
= 1 << 5,
3330 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM
= 1 << 6,
3331 /* 2.4 GHz spectrum channel. */
3332 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ
= 1 << 7,
3333 /* 5 GHz spectrum channel */
3334 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ
= 1 << 8,
3335 /* Only passive scan allowed */
3336 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE
= 1 << 9,
3337 /* Dynamic CCK-OFDM channel */
3338 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN
= 1 << 10,
3339 /* GFSK channel (FHSS PHY) */
3340 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK
= 1 << 11,
3341 /* Radar found on channel */
3342 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR
= 1 << 12,
3343 /* 11a static turbo channel only */
3344 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO
= 1 << 13,
3345 /* Half rate channel */
3346 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF
= 1 << 14,
3347 /* Quarter rate channel */
3348 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER
= 1 << 15,
3350 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20
= 1 << 16,
3351 /* HT 40 with extension channel above */
3352 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS
= 1 << 17,
3353 /* HT 40 with extension channel below */
3354 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS
= 1 << 18,
3355 /* HT 40 intolerant */
3356 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL
= 1 << 19,
3357 /* VHT 20 channel */
3358 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20
= 1 << 20,
3359 /* VHT 40 with extension channel above */
3360 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS
= 1 << 21,
3361 /* VHT 40 with extension channel below */
3362 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS
= 1 << 22,
3363 /* VHT 80 channel */
3364 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80
= 1 << 23,
3365 /* HT 40 intolerant mark bit for ACS use */
3366 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK
= 1 << 24,
3367 /* Channel temporarily blocked due to noise */
3368 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED
= 1 << 25,
3369 /* VHT 160 channel */
3370 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160
= 1 << 26,
3371 /* VHT 80+80 channel */
3372 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80
= 1 << 27,
3376 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3377 * each channel. This is used by
3378 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3380 enum qca_wlan_vendor_channel_prop_flags_ext
{
3381 /* Radar found on channel */
3382 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND
= 1 << 0,
3383 /* DFS required on channel */
3384 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS
= 1 << 1,
3385 /* DFS required on channel for 2nd band of 80+80 */
3386 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2
= 1 << 2,
3387 /* If channel has been checked for DFS */
3388 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR
= 1 << 3,
3389 /* Excluded in 802.11d */
3390 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED
= 1 << 4,
3391 /* Channel Switch Announcement received on this channel */
3392 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED
= 1 << 5,
3393 /* Ad-hoc is not allowed */
3394 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC
= 1 << 6,
3395 /* Station only channel */
3396 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP
= 1 << 7,
3397 /* DFS radar history for slave device (STA mode) */
3398 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR
= 1 << 8,
3399 /* DFS CAC valid for slave device (STA mode) */
3400 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID
= 1 << 9,
3404 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
3405 * information. These attributes are sent as part of
3406 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
3407 * attributes correspond to a single channel.
3409 enum qca_wlan_vendor_external_acs_event_chan_info_attr
{
3410 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID
= 0,
3412 /* A bitmask (u32) with flags specified in
3413 * enum qca_wlan_vendor_channel_prop_flags.
3415 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS
= 1,
3416 /* A bitmask (u32) with flags specified in
3417 * enum qca_wlan_vendor_channel_prop_flags_ext.
3419 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT
= 2,
3420 /* frequency in MHz (u32) */
3421 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ
= 3,
3422 /* maximum regulatory transmission power (u32) */
3423 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER
= 4,
3424 /* maximum transmission power (u32) */
3425 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER
= 5,
3426 /* minimum transmission power (u32) */
3427 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER
= 6,
3428 /* regulatory class id (u8) */
3429 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID
= 7,
3430 /* maximum antenna gain in (u8) */
3431 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN
= 8,
3432 /* VHT segment 0 (u8) */
3433 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
= 9,
3434 /* VHT segment 1 (u8) */
3435 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
= 10,
3438 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST
,
3439 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX
=
3440 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST
- 1,
3444 * qca_wlan_vendor_attr_pcl: Represents attributes for
3445 * preferred channel list (PCL). These attributes are sent as part of
3446 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL.
3448 enum qca_wlan_vendor_attr_pcl
{
3449 QCA_WLAN_VENDOR_ATTR_PCL_INVALID
= 0,
3451 /* Channel number (u8) */
3452 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL
= 1,
3453 /* Channel weightage (u8) */
3454 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT
= 2,
3458 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
3459 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
3462 enum qca_wlan_vendor_attr_external_acs_event
{
3463 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID
= 0,
3465 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
3466 * This helps ACS module to understand why ACS needs to be started.
3468 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON
= 1,
3469 /* Flag attribute to indicate if driver supports spectral scanning */
3470 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED
= 2,
3471 /* Flag attribute to indicate if 11ac is offloaded to firmware */
3472 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED
= 3,
3473 /* Flag attribute to indicate if driver provides additional channel
3474 * capability as part of scan operation */
3475 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT
= 4,
3476 /* Flag attribute to indicate interface status is UP */
3477 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP
= 5,
3478 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
3480 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE
= 6,
3481 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
3482 * This is the upper bound of channel width. ACS logic should try to get
3483 * a channel with the specified width and if not found, look for lower
3486 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH
= 7,
3487 /* This (u8) will hold values of one of enum nl80211_bands */
3488 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND
= 8,
3489 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
3491 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE
= 9,
3492 /* Array of (u32) supported frequency list among which ACS should choose
3495 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST
= 10,
3496 /* Preferred channel list by the driver which will have array of nested
3497 * values as per enum qca_wlan_vendor_attr_pcl attribute.
3499 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL
= 11,
3500 /* Array of nested attribute for each channel. It takes attr as defined
3501 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
3503 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO
= 12,
3504 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
3505 * It uses values defined in enum
3506 * qca_wlan_vendor_attr_external_acs_policy.
3508 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY
= 13,
3511 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST
,
3512 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX
=
3513 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST
- 1,
3517 * qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
3518 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
3519 * in priority order as decided after ACS operation in userspace.
3521 enum qca_wlan_vendor_attr_external_acs_channels
{
3522 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID
= 0,
3524 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
3526 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
= 1,
3528 /* Array of nested values for each channel with following attributes:
3529 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
3530 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
3531 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
3532 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
3533 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
3534 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
3536 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
= 2,
3537 /* This (u8) will hold values of one of enum nl80211_bands */
3538 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND
= 3,
3539 /* Primary channel (u8) */
3540 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
= 4,
3541 /* Secondary channel (u8) used for HT 40 MHz channels */
3542 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
= 5,
3543 /* VHT seg0 channel (u8) */
3544 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
= 6,
3545 /* VHT seg1 channel (u8) */
3546 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
= 7,
3547 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
3548 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
= 8,
3551 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST
,
3552 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX
=
3553 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST
- 1
3556 enum qca_chip_power_save_failure_reason
{
3557 /* Indicates if the reason for the failure is due to a protocol
3560 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL
= 0,
3561 /* Indicates if the reason for the failure is due to a hardware issue.
3563 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE
= 1,
3567 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
3568 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
3569 * information leading to the power save failure.
3571 enum qca_attr_chip_power_save_failure
{
3572 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID
= 0,
3573 /* Reason to cause the power save failure.
3574 * These reasons are represented by
3575 * enum qca_chip_power_save_failure_reason.
3577 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON
= 1,
3580 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST
,
3581 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX
=
3582 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST
- 1,
3586 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3587 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3588 * information to start/stop the NUD statistics collection.
3590 enum qca_attr_nud_stats_set
{
3591 QCA_ATTR_NUD_STATS_SET_INVALID
= 0,
3593 /* Flag to start/stop the NUD statistics collection.
3594 * Start - If included, Stop - If not included
3596 QCA_ATTR_NUD_STATS_SET_START
= 1,
3597 /* IPv4 address of the default gateway (in network byte order) */
3598 QCA_ATTR_NUD_STATS_GW_IPV4
= 2,
3601 QCA_ATTR_NUD_STATS_SET_LAST
,
3602 QCA_ATTR_NUD_STATS_SET_MAX
=
3603 QCA_ATTR_NUD_STATS_SET_LAST
- 1,
3607 * qca_attr_nud_stats_get: Attributes to vendor subcmd
3608 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
3609 * NUD statistics collected when queried.
3611 enum qca_attr_nud_stats_get
{
3612 QCA_ATTR_NUD_STATS_GET_INVALID
= 0,
3613 /* ARP Request count from netdev */
3614 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV
= 1,
3615 /* ARP Request count sent to lower MAC from upper MAC */
3616 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC
= 2,
3617 /* ARP Request count received by lower MAC from upper MAC */
3618 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC
= 3,
3619 /* ARP Request count successfully transmitted by the device */
3620 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS
= 4,
3621 /* ARP Response count received by lower MAC */
3622 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC
= 5,
3623 /* ARP Response count received by upper MAC */
3624 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC
= 6,
3625 /* ARP Response count delivered to netdev */
3626 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV
= 7,
3627 /* ARP Response count delivered to netdev */
3628 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP
= 8,
3629 /* Flag indicating if the station's link to the AP is active.
3630 * Active Link - If included, Inactive link - If not included
3632 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE
= 9,
3633 /* Flag indicating if there is any duplicate address detected (DAD).
3634 * Yes - If detected, No - If not detected.
3636 QCA_ATTR_NUD_STATS_IS_DAD
= 10,
3639 QCA_ATTR_NUD_STATS_GET_LAST
,
3640 QCA_ATTR_NUD_STATS_GET_MAX
=
3641 QCA_ATTR_NUD_STATS_GET_LAST
- 1,
3644 enum qca_wlan_btm_candidate_status
{
3645 QCA_STATUS_ACCEPT
= 0,
3646 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED
= 1,
3647 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED
= 2,
3648 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY
= 3,
3649 QCA_STATUS_REJECT_LOW_RSSI
= 4,
3650 QCA_STATUS_REJECT_HIGH_INTERFERENCE
= 5,
3651 QCA_STATUS_REJECT_UNKNOWN
= 6,
3654 enum qca_wlan_vendor_attr_btm_candidate_info
{
3655 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID
= 0,
3657 /* 6-byte MAC address representing the BSSID of transition candidate */
3658 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID
= 1,
3659 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
3660 * returned by the driver. It says whether the BSSID provided in
3661 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
3662 * the driver, if not it specifies the reason for rejection.
3663 * Note that the user-space can overwrite the transition reject reason
3664 * codes provided by driver based on more information.
3666 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS
= 2,
3669 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST
,
3670 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX
=
3671 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST
- 1,
3674 enum qca_attr_trace_level
{
3675 QCA_ATTR_TRACE_LEVEL_INVALID
= 0,
3677 * Nested array of the following attributes:
3678 * QCA_ATTR_TRACE_LEVEL_MODULE,
3679 * QCA_ATTR_TRACE_LEVEL_MASK.
3681 QCA_ATTR_TRACE_LEVEL_PARAM
= 1,
3683 * Specific QCA host driver module. Please refer to the QCA host
3684 * driver implementation to get the specific module ID.
3686 QCA_ATTR_TRACE_LEVEL_MODULE
= 2,
3687 /* Different trace level masks represented in the QCA host driver. */
3688 QCA_ATTR_TRACE_LEVEL_MASK
= 3,
3691 QCA_ATTR_TRACE_LEVEL_AFTER_LAST
,
3692 QCA_ATTR_TRACE_LEVEL_MAX
=
3693 QCA_ATTR_TRACE_LEVEL_AFTER_LAST
- 1,
3697 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
3699 enum qca_wlan_vendor_attr_get_he_capabilities
{
3700 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID
= 0,
3701 /* Whether HE capabilities is supported
3702 * (u8 attribute: 0 = not supported, 1 = supported) */
3703 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED
= 1,
3704 /* HE PHY capabilities, array of 3 u32 values */
3705 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB
= 2,
3706 /* HE MAC capabilities (u32 attribute) */
3707 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB
= 3,
3708 /* HE MCS map (u32 attribute) */
3709 QCA_WLAN_VENDOR_ATTR_HE_MCS
= 4,
3710 /* Number of SS (u32 attribute) */
3711 QCA_WLAN_VENDOR_ATTR_NUM_SS
= 5,
3712 /* RU count (u32 attribute) */
3713 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK
= 6,
3714 /* PPE threshold data, array of 8 u32 values */
3715 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD
= 7,
3718 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST
,
3719 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX
=
3720 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST
- 1,
3724 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
3726 enum qca_wlan_vendor_attr_spectral_scan
{
3727 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID
= 0,
3728 /* Number of times the chip enters spectral scan mode before
3729 * deactivating spectral scans. When set to 0, chip will enter spectral
3730 * scan mode continuously. u32 attribute.
3732 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT
= 1,
3733 /* Spectral scan period. Period increment resolution is 256*Tclk,
3734 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
3736 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD
= 2,
3737 /* Spectral scan priority. u32 attribute. */
3738 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY
= 3,
3739 /* Number of FFT data points to compute. u32 attribute. */
3740 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE
= 4,
3741 /* Enable targeted gain change before starting the spectral scan FFT.
3744 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA
= 5,
3745 /* Restart a queued spectral scan. u32 attribute. */
3746 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA
= 6,
3747 /* Noise floor reference number for the calculation of bin power.
3750 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF
= 7,
3751 /* Disallow spectral scan triggers after TX/RX packets by setting
3752 * this delay value to roughly SIFS time period or greater.
3755 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY
= 8,
3756 /* Number of strong bins (inclusive) per sub-channel, below
3757 * which a signal is declared a narrow band tone. u32 attribute.
3759 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR
= 9,
3760 /* Specify the threshold over which a bin is declared strong (for
3761 * scan bandwidth analysis). u32 attribute.
3763 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR
= 10,
3764 /* Spectral scan report mode. u32 attribute. */
3765 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE
= 11,
3766 /* RSSI report mode, if the ADC RSSI is below
3767 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
3768 * then FFTs will not trigger, but timestamps and summaries get
3769 * reported. u32 attribute.
3771 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE
= 12,
3772 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
3773 * to ensure spectral scan reporting with normal error code.
3776 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR
= 13,
3777 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
3778 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
3781 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT
= 14,
3782 /* Format of FFT report to software for spectral scan triggered FFTs.
3783 * 0: No FFT report (only spectral scan summary report)
3784 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
3786 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
3787 * bins (in-band) per FFT + spectral scan summary report
3788 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
3789 * bins (all) per FFT + spectral scan summary report
3792 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE
= 15,
3793 /* Number of LSBs to shift out in order to scale the FFT bins.
3796 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE
= 16,
3797 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
3798 * in dBm power. u32 attribute.
3800 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ
= 17,
3801 /* Per chain enable mask to select input ADC for search FFT.
3804 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK
= 18,
3805 /* An unsigned 64-bit integer provided by host driver to identify the
3806 * spectral scan request. This attribute is included in the scan
3807 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
3808 * and used as an attribute in
3809 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
3810 * specific scan to be stopped.
3812 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE
= 19,
3814 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST
,
3815 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX
=
3816 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST
- 1,
3819 enum qca_wlan_vendor_tos
{
3820 QCA_WLAN_VENDOR_TOS_BK
= 0,
3821 QCA_WLAN_VENDOR_TOS_BE
= 1,
3822 QCA_WLAN_VENDOR_TOS_VI
= 2,
3823 QCA_WLAN_VENDOR_TOS_VO
= 3,
3827 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
3828 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
3830 enum qca_wlan_vendor_attr_active_tos
{
3831 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID
= 0,
3832 /* Type Of Service - Represented by qca_wlan_vendor_tos */
3833 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS
= 1,
3834 /* Flag attribute representing the start (attribute included) or stop
3835 * (attribute not included) of the respective TOS.
3837 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START
= 2,
3840 #endif /* QCA_VENDOR_H */