blob: 637e4cab9027a50008075310f50a71045c18ff35 [file] [log] [blame]
Vivek3e5a3ba2017-02-20 18:13:57 +05301/*
Pankaj Singh1e0b3242020-01-20 18:42:52 +05302 * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
Vivek3e5a3ba2017-02-20 18:13:57 +05303 *
Vivek3e5a3ba2017-02-20 18:13:57 +05304 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all
7 * copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18
Vivek3e5a3ba2017-02-20 18:13:57 +053019/**
20 * DOC: declares vendor commands interfacing with linux kernel
21 */
22
23
24#ifndef _WLAN_QCA_VENDOR_H_
25#define _WLAN_QCA_VENDOR_H_
26
27/* Vendor id to be used in vendor specific command and events
28 * to user space.
29 * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
30 * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
31 * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
32 * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
33 */
34
35#define QCA_NL80211_VENDOR_ID 0x001374
36
37/**
38 * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
39 *
40 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
41 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
42 * Sub commands 2 to 8 are not used
43 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
44 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
45 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
Nachiket Kukade30ed5c42018-12-03 18:30:46 +053046 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
47 * NAN Request/Response and NAN Indication messages. These messages are
48 * interpreted between the framework and the firmware component. While
49 * sending the command from userspace to the driver, payload is not
50 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
51 * is used when receiving vendor events in userspace from the driver.
Vivek3e5a3ba2017-02-20 18:13:57 +053052 * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
53 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
54 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
55 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
56 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
57 * results
58 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
59 * results
60 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
61 * results
62 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
63 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
64 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
65 * channels
66 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
67 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
68 * results
69 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
70 * available. Used when report_threshold is reached in scan cache.
71 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
72 * result. Used to report scan results when each probe rsp. is received,
73 * if report_events enabled in wifi_scan_cmd_params.
74 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
75 * Indicates progress of scanning state-machine.
76 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
77 * ap found
78 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
79 * bssid
80 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
81 * hotlist bssid
82 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
83 * change
84 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
85 * significant change
86 * ap found
87 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
88 * significant change
89 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
90 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
91 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
92 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
93 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
94 * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
95 * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
96 * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
97 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
98 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
99 * roaming and auth information.
100 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +0530101 *
102 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
103 * invoke the ACS function in device and pass selected channels to
104 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
105 *
Vivek3e5a3ba2017-02-20 18:13:57 +0530106 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
107 * driver.
108 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
109 * started CAC on DFS channel
110 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
111 * completed the CAC check on DFS channel
112 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
113 * check was aborted by the driver
114 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
115 * driver completed NOP
116 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
117 * driver detected radar signal on the current operating channel
118 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
119 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
120 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
121 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
122 * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
123 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
124 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
125 * extscan reset ssid hotlist
126 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
127 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
128 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
129 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
130 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
131 * reset passpoint list
132 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
133 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
134 * passpoint network found
135 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
136 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
137 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
138 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
139 * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
140 * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
141 list
142 * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
143 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: vendor setband command
144 * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
145 * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
146 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
147 * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
148 * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
149 * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
150 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
151 * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
152 * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
153 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
154 * start the P2P Listen Offload function in device and pass the listen
155 * channel, period, interval, count, number of device types, device
156 * types and vendor information elements to device driver and firmware.
157 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
158 * indicate stop request/response of the P2P Listen Offload function in
159 * device. As an event, it indicates either the feature stopped after it
160 * was already running or feature has actually failed to start.
161 * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
162 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
163 * beaconing, this sub command provides the driver, the frequencies on the
164 * 5 GHz to check for any radar activity. Driver selects one channel from
165 * this priority list provided through
166 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
167 * to check for radar activity on it. If no radar activity is detected
168 * during the channel availability check period, driver internally switches
169 * to the selected frequency of operation. If the frequency is zero, driver
170 * internally selects a channel. The status of this conditional switch is
171 * indicated through an event using the same sub command through
172 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
173 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
Zhang Qian7fc2e862017-03-23 17:49:43 +0800174 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
175 * indication period and threshold for MAC layer counters.
Vivek3e5a3ba2017-02-20 18:13:57 +0530176 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
177 * in the host driver. The different TDLS configurations are defined
178 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Krishna Kumaar Natarajan526307e2017-02-24 11:08:41 -0800179 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
Vivek3e5a3ba2017-02-20 18:13:57 +0530180 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
181 * (SAR) power limits. A critical regulation for FCC compliance, OEMs
182 * require methods to set SAR limits on TX power of WLAN/WWAN.
183 * enum qca_vendor_attr_sar_limits attributes are used with this command.
184 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
185 * configuration of vendor ACS.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530186 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
187 * requisite information leading to a power save failure. The information
188 * carried as part of this event is represented by the
189 * enum qca_attr_chip_power_save_failure attributes.
190 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
191 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
192 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
193 * statistics are represented by the enum qca_attr_nud_stats_get
194 * attributes.
195 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
196 * the BSS transition status, whether accept or reject, for a list of
197 * candidate BSSIDs provided by the userspace. This uses the vendor
198 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
199 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
200 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
201 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
202 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
203 * the driver shall specify array of
204 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
205 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
206 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
207 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
208 * specific QCA module. The trace levels are represented by
209 * enum qca_attr_trace_level attributes.
210 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
211 * Protocol antenna limit in different modes. See enum
212 * qca_wlan_vendor_attr_brp_ant_limit_mode.
213 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
214 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
215 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
Edayilliam Jayadevdb962692019-04-24 16:41:58 +0530216 * identifying the operation in success case. In failure cases an
217 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
218 * describing the reason for the failure is returned.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530219 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
220 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
221 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
222 * be stopped.
Ganesh Kondabattini727c4b32017-08-29 13:23:00 +0530223 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
224 * specific interface. This can be used to modify some of the low level
225 * scan parameters (off channel dwell time, home channel time) in the
226 * driver/firmware. These parameters are maintained within the host
227 * driver.
228 * This command is valid only when the interface is in the connected
229 * state.
230 * These scan parameters shall be reset by the driver/firmware once
231 * disconnected. The attributes used with this command are defined in
232 * enum qca_wlan_vendor_attr_active_tos.
Anurag Chouhan6e569862017-10-04 12:42:27 +0530233 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
234 * driver has detected an internal failure. This event carries the
235 * information indicating the reason that triggered this detection. The
236 * attributes for this command are defined in
237 * enum qca_wlan_vendor_attr_hang.
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +0530238 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
239 * of spectral parameters used. The spectral scan parameters are specified
240 * by enum qca_wlan_vendor_attr_spectral_scan.
241 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
242 * for spectral scan functionality. The debug stats are specified by
243 * enum qca_wlan_vendor_attr_spectral_diag_stats.
244 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
245 * scan system capabilities. The capabilities are specified
246 * by enum qca_wlan_vendor_attr_spectral_cap.
247 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
248 * status of spectral scan. The status values are specified
249 * by enum qca_wlan_vendor_attr_spectral_scan_status.
Chaithanya Garrepalli30927c52017-11-22 14:31:47 +0530250 * @QCA_NL80211_VENDOR_SUBCMD_HTT_STATS: Request the firmware
251 * DP stats for a particualr stats type for response evnet
252 * it carries the stats data sent from the FW
Krishna Raofcb834f2017-11-11 20:38:29 +0530253 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
254 * RF Operating Parameter (RROP) information. The attributes for this
255 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
256 * intended for use by external Auto Channel Selection applications.
Jeff Johnsonf2f8dea2017-12-18 15:49:20 -0800257 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
258 * (SAR) power limits. This is a companion to the command
259 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
260 * settings currently in use. The attributes returned by this command are
261 * defined by enum qca_vendor_attr_sar_limits.
Yeshwanth Sriram Guntuka64de3442018-02-23 12:17:41 +0530262 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
263 * the WLAN hardware MAC's associated with each WLAN netdev interface.
264 * This works both as a query (user space asks the current mode) or event
265 * interface (driver advertizing the current mode to the user space).
266 * Driver does not trigger this event for temporary hardware mode changes.
267 * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
268 * channel change etc ) are updated with this event. Attributes for this
269 * interface are defined in enum qca_wlan_vendor_attr_mac.
Venkateswara Swamy Bandaruce6b9442018-02-20 14:24:49 +0530270 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
271 * per peer per TID. Attributes for this command are define in
272 * enum qca_wlan_set_qdepth_thresh_attr
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -0800273 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
274 * test configuration. Attributes for this command are defined in
275 * enum qca_wlan_vendor_attr_wifi_test_config.
Nachiket Kukade30ed5c42018-12-03 18:30:46 +0530276 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
277 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
278 * carried a payload which was a binary blob of data. The command was not
279 * extendable to send more information. The newer version carries the
280 * legacy blob encapsulated within an attribute and can be extended with
281 * additional vendor attributes that can enhance the NAN command
282 * interface.
Qun Zhangaf8a0812019-02-01 11:30:34 +0800283 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
284 * The returned firmware state is specified in the attribute
285 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
Amir Patel62f72ed2019-03-11 20:13:53 +0530286 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
287 * is used by host driver to flush per-peer cached statistics to user space
288 * application. This interface is used as an event from host driver to
289 * user space application. Attributes for this event are specified in
290 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
291 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
292 * sent as event from host driver.
stoneza558be12019-03-11 13:59:57 +0800293 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
294 * improve the success rate of Zigbee joining network.
295 * Due to PTA master limitation, zigbee joining network success rate is
296 * low while wlan is working. Wlan host driver need to configure some
297 * parameters including Zigbee state and specific WLAN periods to enhance
298 * PTA master. All this parameters are delivered by the NetLink attributes
299 * defined in "enum qca_mpta_helper_vendor_attr".
Abhinav Kumar88e3fc52019-05-03 00:21:11 +0530300 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
301 * implement Beacon frame reporting feature.
302 *
303 * Userspace can request the driver/firmware to periodically report
304 * received Beacon frames whose BSSID is same as the current connected
305 * BSS's MAC address.
306 *
307 * In case the STA seamlessly (without sending disconnect indication to
308 * userspace) roams to a different BSS, Beacon frame reporting will be
309 * automatically enabled for the Beacon frames whose BSSID is same as the
310 * MAC address of the new BSS. Beacon reporting will be stopped when the
311 * STA is disconnected (when the disconnect indication is sent to
312 * userspace) and need to be explicitly enabled by userspace for next
313 * connection.
314 *
315 * When a Beacon frame matching configured conditions is received, and if
316 * userspace has requested to send asynchronous beacon reports, the
317 * driver/firmware will encapsulate the details of the Beacon frame in an
318 * event and send it to userspace along with updating the BSS information
319 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
320 * scan cache with the information from the received Beacon frame but
321 * will not send any active report to userspace.
322 *
323 * The userspace can request the driver/firmware to stop reporting Beacon
324 * frames. If the driver/firmware is not able to receive Beacon frames
325 * due to other Wi-Fi operations such as off-channel activities, etc.,
326 * the driver/firmware will send a pause event to userspace and stop
327 * reporting Beacon frames. Whether the beacon reporting will be
328 * automatically resumed or not by the driver/firmware later will be
329 * reported to userspace using the
330 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
Bala Venkatesh3b0dee82019-06-12 11:41:17 +0530331 * reporting shall be resumed for all the cases except either when
332 * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
333 * in the command which triggered the current beacon reporting or during
334 * any disconnection case as indicated by setting
Abhinav Kumar88e3fc52019-05-03 00:21:11 +0530335 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
336 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
337 * driver.
338 *
339 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
340 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
341 * flag not set, the next first
342 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
343 * shall be considered as un-pause event.
344 *
345 * All the attributes used with this command are defined in
346 * enum qca_wlan_vendor_attr_beacon_reporting_params.
Paul Zhangf9afcce2019-05-13 16:08:01 +0800347 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
348 * interop issues with the DUT. This sub command is used to transfer the
349 * ap info between driver and user space. This works both as a command
350 * or event. As a command, it configs the stored list of aps from user
351 * space to firmware; as an event, it indicates the ap info detected by
352 * firmware to user space for persistent storage. The attributes defined
353 * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
354 * parameters.
Paul Zhang71b1d142019-06-23 21:15:21 +0800355 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
356 * binary blobs from application/service to firmware. The attributes
357 * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
358 * deliver the parameters.
Rajeev Kumar Sirasanagandla90f0c5e2019-09-23 19:31:48 +0530359 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
360 * to send/receive avoid frequency data using
361 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
362 * This new command is alternative to existing command
363 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
364 * is using stream of bytes instead of structured data using vendor
365 * attributes.
Shiva Sankar Gajula0f1216e2019-10-18 10:35:31 +0530366 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
367 * add the STA node details in driver/firmware. Attributes for this event
368 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
Yu Wang2b952042019-10-16 09:06:55 +0800369 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
370 * coex chain mode from application/service.
371 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
372 * to deliver the parameters.
Ashish Kumar Dhanotiya33ff8de2020-01-20 19:29:53 +0530373 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
374 * Host drivers can request the user space entity to set the SAR power
375 * limits with this event. Accordingly, the user space entity is expected
376 * to set the SAR power limits. Host drivers can retry this event to the
377 * user space for the SAR power limits configuration from user space. If
378 * the driver does not get the SAR power limits from user space for all
379 * the retried attempts, it can configure a default SAR power limit.
Abhishek Amburef15d7762020-02-14 13:31:42 +0530380 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
381 * is used to update the information about the station from the driver to
382 * userspace. Uses attributes from enum
383 * qca_wlan_vendor_attr_update_sta_info.
Vivek3e5a3ba2017-02-20 18:13:57 +0530384 */
385
386enum qca_nl80211_vendor_subcmds {
387 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
388 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
389 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
390 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
391 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
392 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
393 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
394
395 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
396 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
397 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
398 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
399 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
400 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
401
402 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
403 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
404 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
405 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
406 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
407 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
408 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
409 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
410 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
411 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
412 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
413 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
414 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
415 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
416
417 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
418 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
419 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
420 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
421
422 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
423
424 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
425 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
426
427 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
428
429 /* Get Concurrency Matrix */
430 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
431
432 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
433 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530434 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Vivek3e5a3ba2017-02-20 18:13:57 +0530435
436 /* Deprecated */
437 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
438
439 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
440
441 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
442
443 /* Off loaded DFS events */
444 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
445 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
446 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
447 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
448 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
449
450 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
451 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
452 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
453 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
454 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
455 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
456 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
457 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
458 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
459 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
460 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
461 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
462 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
463
464 /* Wi-Fi Configuration subcommands */
465 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
466 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
467 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
468 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
469
470 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
471 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
472 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
473 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
474
475 /* NS Offload enable/disable cmd */
476 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
477
478 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
479 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
480
481 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
482
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530483 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Vivek3e5a3ba2017-02-20 18:13:57 +0530484 /* OCB commands */
485 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
486 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
487 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
488 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
489 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
490 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
491 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
492 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
493 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
494
495 /* subcommand to get link properties */
496 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
497 /* LFR Subnet Detection */
498 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
499
500 /* DBS subcommands */
501 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
502 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
503
504 /* Vendor setband command */
505 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
506
507 /* Vendor scan commands */
508 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
509 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
510
511 /* OTA test subcommand */
512 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
513 /* Tx power scaling subcommands */
514 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
515 /* Tx power scaling in db subcommands */
516 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
517 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
518 QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
519 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
520 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
521 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
522 QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
523 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
524 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
525 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Om Prakash Tripathi7d867d62017-04-26 16:52:09 +0530526 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
Vivek3e5a3ba2017-02-20 18:13:57 +0530527
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530528 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Zhang Qian7fc2e862017-03-23 17:49:43 +0800529 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530530 /* FTM/indoor location subcommands */
531 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
532 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
533 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
534 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
535 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
536 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
537 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
538 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
539 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Zhang Qian7fc2e862017-03-23 17:49:43 +0800540
Vivek3e5a3ba2017-02-20 18:13:57 +0530541 /* Encrypt/Decrypt command */
542 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
543
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530544 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
545 /* DMG low level RF sector operations */
546 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
547 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
548 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
549 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
550
Vivek3e5a3ba2017-02-20 18:13:57 +0530551 /* Configure the TDLS mode from user space */
552 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
553
Krishna Kumaar Natarajan526307e2017-02-24 11:08:41 -0800554 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
555
Vivek3e5a3ba2017-02-20 18:13:57 +0530556 /* Vendor abort scan command */
557 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
558
559 /* Set Specific Absorption Rate(SAR) Power Limits */
560 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
561
562 /* External Auto channel configuration setting */
563 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
564
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530565 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
566 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
567 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
568 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
569
Vivek3e5a3ba2017-02-20 18:13:57 +0530570 /* Set the trace level for QDF */
571 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530572
573 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
574
575 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
576 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
Ganesh Kondabattini727c4b32017-08-29 13:23:00 +0530577 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
Anurag Chouhan6e569862017-10-04 12:42:27 +0530578 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +0530579 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
580 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
581 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
582 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
Chaithanya Garrepalli30927c52017-11-22 14:31:47 +0530583 QCA_NL80211_VENDOR_SUBCMD_HTT_STATS = 162,
Krishna Raofcb834f2017-11-11 20:38:29 +0530584 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
Jeff Johnsonf2f8dea2017-12-18 15:49:20 -0800585 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
Yeshwanth Sriram Guntuka64de3442018-02-23 12:17:41 +0530586 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
Venkateswara Swamy Bandaruce6b9442018-02-20 14:24:49 +0530587 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
Pankaj Singh1e0b3242020-01-20 18:42:52 +0530588 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -0800589 /* Wi-Fi test configuration subcommand */
590 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
Nachiket Kukade30ed5c42018-12-03 18:30:46 +0530591 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Alok Kumardb0d4232018-11-08 19:08:13 +0530592 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
Jiani Liu19f4cb02019-03-04 16:47:21 +0800593 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
Qun Zhangaf8a0812019-02-01 11:30:34 +0800594 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
Amir Patel62f72ed2019-03-11 20:13:53 +0530595 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
stoneza558be12019-03-11 13:59:57 +0800596 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Abhinav Kumar88e3fc52019-05-03 00:21:11 +0530597 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
Paul Zhangf9afcce2019-05-13 16:08:01 +0800598 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Paul Zhang71b1d142019-06-23 21:15:21 +0800599 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
Rajeev Kumar Sirasanagandla90f0c5e2019-09-23 19:31:48 +0530600 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
Shiva Sankar Gajula0f1216e2019-10-18 10:35:31 +0530601 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
Yu Wang2b952042019-10-16 09:06:55 +0800602 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ashish Kumar Dhanotiya33ff8de2020-01-20 19:29:53 +0530603 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
Abhishek Amburef15d7762020-02-14 13:31:42 +0530604 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
Ganesh Kondabattini727c4b32017-08-29 13:23:00 +0530605};
606
607enum qca_wlan_vendor_tos {
608 QCA_WLAN_VENDOR_TOS_BK = 0,
609 QCA_WLAN_VENDOR_TOS_BE = 1,
610 QCA_WLAN_VENDOR_TOS_VI = 2,
611 QCA_WLAN_VENDOR_TOS_VO = 3,
612};
613
614/**
615 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
616 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
617 */
618enum qca_wlan_vendor_attr_active_tos {
619 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
620 /* Type Of Service - Represented by qca_wlan_vendor_tos */
621 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
622 /* Flag attribute representing the start (attribute included) or stop
623 * (attribute not included) of the respective TOS.
624 */
625 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
626 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
Vivek3e5a3ba2017-02-20 18:13:57 +0530627};
628
Anurag Chouhan6e569862017-10-04 12:42:27 +0530629enum qca_wlan_vendor_hang_reason {
630 /* Unspecified reason */
631 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
632 /* No Map for the MAC entry for the received frame */
633 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
634 /* peer deletion timeout happened */
635 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
636 /* peer unmap timeout */
637 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
638 /* Scan request timed out */
639 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
640 /* Consecutive Scan attempt failures */
641 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
642 /* Unable to get the message buffer */
643 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
644 /* Current command processing is timedout */
645 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
646 /* Timeout for an ACK from FW for suspend request */
647 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
648 /* Timeout for an ACK from FW for resume request */
649 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
650 /* Transmission timeout for consecutive data frames */
651 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
652 /* Timeout for the TX completion status of data frame */
653 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
654 /* DXE failure for tx/Rx, DXE resource unavailability */
655 QCA_WLAN_HANG_DXE_FAILURE = 12,
656 /* WMI pending commands exceed the maximum count */
657 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
658};
659
660/**
661 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
662 * QCA_NL80211_VENDOR_SUBCMD_HANG.
663 */
664enum qca_wlan_vendor_attr_hang {
665 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
666 /*
667 * Reason for the Hang - Represented by enum
668 * qca_wlan_vendor_hang_reason.
669 */
670 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
671
672 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
673 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
674 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
675};
676
Vivek3e5a3ba2017-02-20 18:13:57 +0530677/**
678 * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
679 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
680 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
681 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
682 level needs to be updated.
683 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
684 * to be set.
685 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
686 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
687 */
688enum qca_vendor_attr_set_trace_level {
689 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
690 /*
691 * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
692 * attributes.
693 */
694 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
695 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
696 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
697 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
698 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
699 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
700};
701
702/**
703 * enum qca_wlan_vendor_attr_get_station - Sub commands used by
704 * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
705 * station information. The information obtained through these
706 * commands signify the current info in connected state and
707 * latest cached information during the connected state , if queried
708 * when in disconnected state.
709 *
710 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
711 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
712 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
Will Huang7c17db62017-07-13 18:05:34 +0800713 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
Vivek3e5a3ba2017-02-20 18:13:57 +0530714 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
715 */
716enum qca_wlan_vendor_attr_get_station {
717 QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
718 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
719 QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
Will Huang7c17db62017-07-13 18:05:34 +0800720 QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
Vivek3e5a3ba2017-02-20 18:13:57 +0530721
722 /* keep last */
723 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
724 QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
725 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
726};
727
728/**
Abhishek Amburef15d7762020-02-14 13:31:42 +0530729 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
730 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
731 *
732 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
733 * Used in STA mode. This attribute represents the list of channel center
734 * frequencies in MHz (u32) the station has learnt during the last connection
735 * or roaming attempt. This information shall not signify the channels for
736 * an explicit scan request from the user space. Host drivers can update this
737 * information to the user space in both connected and disconnected state.
738 * In the disconnected state this information shall signify the channels
739 * scanned in the last connection/roam attempt that lead to the disconnection.
740 */
741enum qca_wlan_vendor_attr_update_sta_info {
742 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
743 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
744
745 /* keep last */
746 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
747 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
748 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
749};
750
751/**
Vivek3e5a3ba2017-02-20 18:13:57 +0530752 * enum qca_wlan_802_11_mode - dot11 mode
Vivek3e5a3ba2017-02-20 18:13:57 +0530753 * @QCA_WLAN_802_11_MODE_11B: mode B
754 * @QCA_WLAN_802_11_MODE_11G: mode G
755 * @QCA_WLAN_802_11_MODE_11N: mode N
Ashish Kumar Dhanotiya18724892017-11-13 11:25:58 +0530756 * @QCA_WLAN_802_11_MODE_11A: mode A
Vivek3e5a3ba2017-02-20 18:13:57 +0530757 * @QCA_WLAN_802_11_MODE_11AC: mode AC
Ashish Kumar Dhanotiya18724892017-11-13 11:25:58 +0530758 * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
Vivek3e5a3ba2017-02-20 18:13:57 +0530759 */
760enum qca_wlan_802_11_mode {
Vivek3e5a3ba2017-02-20 18:13:57 +0530761 QCA_WLAN_802_11_MODE_11B,
762 QCA_WLAN_802_11_MODE_11G,
763 QCA_WLAN_802_11_MODE_11N,
Ashish Kumar Dhanotiya18724892017-11-13 11:25:58 +0530764 QCA_WLAN_802_11_MODE_11A,
Vivek3e5a3ba2017-02-20 18:13:57 +0530765 QCA_WLAN_802_11_MODE_11AC,
Ashish Kumar Dhanotiya18724892017-11-13 11:25:58 +0530766 QCA_WLAN_802_11_MODE_INVALID,
Vivek3e5a3ba2017-02-20 18:13:57 +0530767};
768
769/**
770 * enum qca_wlan_auth_type - Authentication key management type
771 * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
772 * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
773 * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
774 * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
775 * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
776 * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
777 * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
778 * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
779 * @QCA_WLAN_AUTH_TYPE_FT: ft key
780 * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
781 * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
782 * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
783 * @QCA_WLAN_AUTH_TYPE_WAI: wai key
784 * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
785 * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
786 * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
Pragaspathi Thilagaraj17810df2019-02-18 17:42:21 +0530787 * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
788 * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
Vivek3e5a3ba2017-02-20 18:13:57 +0530789 */
790enum qca_wlan_auth_type {
791 QCA_WLAN_AUTH_TYPE_INVALID,
792 QCA_WLAN_AUTH_TYPE_OPEN,
793 QCA_WLAN_AUTH_TYPE_SHARED,
794 QCA_WLAN_AUTH_TYPE_WPA,
795 QCA_WLAN_AUTH_TYPE_WPA_PSK,
796 QCA_WLAN_AUTH_TYPE_WPA_NONE,
797 QCA_WLAN_AUTH_TYPE_RSN,
798 QCA_WLAN_AUTH_TYPE_RSN_PSK,
799 QCA_WLAN_AUTH_TYPE_FT,
800 QCA_WLAN_AUTH_TYPE_FT_PSK,
801 QCA_WLAN_AUTH_TYPE_SHA256,
802 QCA_WLAN_AUTH_TYPE_SHA256_PSK,
803 QCA_WLAN_AUTH_TYPE_WAI,
804 QCA_WLAN_AUTH_TYPE_WAI_PSK,
805 QCA_WLAN_AUTH_TYPE_CCKM_WPA,
806 QCA_WLAN_AUTH_TYPE_CCKM_RSN,
807 QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
Pragaspathi Thilagaraj17810df2019-02-18 17:42:21 +0530808 QCA_WLAN_AUTH_TYPE_FT_SAE,
809 QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
Vivek3e5a3ba2017-02-20 18:13:57 +0530810};
811
812/**
813 * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
814 * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
815 *
816 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
817 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
818 * Get the standard NL attributes Nested with this attribute.
819 * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
820 * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
821 * NL80211_ATTR_STA_INFO
822 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
823 * Get the standard NL attributes Nested with this attribute.
824 * Ex : Query HT/VHT Capability advertized by the AP.
825 * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
826 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
827 * Number of successful Roam attempts before a
828 * disconnect, Unsigned 32 bit value
829 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
830 * Authentication Key Management Type used for the connected session.
831 * Signified by enum qca_wlan_auth_type
832 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
833 * connected Session, signified by enum qca_wlan_802_11_mode
834 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
835 * HS20 Indication Element
836 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
837 * Status Code Corresponding to the Association Failure.
838 * Unsigned 32 bit value.
Will Huang7c17db62017-07-13 18:05:34 +0800839 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
840 * Max phy rate of remote station
841 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
842 * TX packets to remote station
843 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
844 * TX bytes to remote station
845 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
846 * RX packets from remote station
847 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
848 * RX bytes from remote station
849 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
850 * Last TX rate with remote station
851 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
852 * Last RX rate with remote station
853 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
854 * Remote station enable/disable WMM
855 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
Jeff Johnson24d440b2018-05-12 11:41:14 -0700856 * Remote station connection mode
Will Huang7c17db62017-07-13 18:05:34 +0800857 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
858 * Remote station AMPDU enable/disable
859 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
860 * Remote station TX Space-time block coding enable/disable
861 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
862 * Remote station RX Space-time block coding enable/disable
863 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
864 * Remote station channel width
865 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
866 * Remote station short GI enable/disable
867 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
Vivek3e5a3ba2017-02-20 18:13:57 +0530868 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
869 */
870enum qca_wlan_vendor_attr_get_station_info {
871 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
872 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
873 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
874 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
875 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
876 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
877 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
878 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
879 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
880 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
Will Huang7c17db62017-07-13 18:05:34 +0800881 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
882 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
883 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
884 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
885 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
886 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
887 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
888 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
889 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
890 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
891 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
892 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
893 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
894 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
Will Huang7c17db62017-07-13 18:05:34 +0800895 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
Ashish Kumar Dhanotiya5e3af682018-07-10 18:54:41 +0530896 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
897 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
898
Vivek3e5a3ba2017-02-20 18:13:57 +0530899 /* keep last */
900 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
901 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
902 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
903};
904
Vivek3e5a3ba2017-02-20 18:13:57 +0530905/**
906 * enum qca_nl80211_vendor_subcmds_index - vendor sub commands index
907 *
908 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX: Avoid frequency
909 * @QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX: Nan
910 * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX: Ext stats
911 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX: Ext scan start
912 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX: Ext scan stop
913 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX: Ext scan get
914 * capability
915 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX: Ext scan get
916 * cached results
917 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX: Ext scan
918 * results available
919 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX: Ext scan full
920 * scan result
921 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX: Ext scan event
922 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX: Ext scan hot list
923 * AP found
924 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX: Ext scan set
925 * bssid hotlist
926 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX: Ext scan reset
927 * bssid hotlist
928 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX: Ext scan
929 * significant change
930 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX: Ext scan
931 * set significant change
932 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX: Ext scan
933 * reset significant change
934 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX: Set stats
935 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX: Get stats
936 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX: Clear stats
937 * @QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX: Radio stats
938 * @QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX: Iface stats
939 * @QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX: Peer info stats
Zhang Qian7fc2e862017-03-23 17:49:43 +0800940 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT_INDEX: MAC layer counters
Vivek3e5a3ba2017-02-20 18:13:57 +0530941 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX: Ext tdls state change
942 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX: ACS command
943 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX: Pass Roam and Auth info
944 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX: hotlist ap lost
945 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX:
946 * pno network found index
947 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX:
948 * passpoint match found index
949 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX:
950 * set ssid hotlist index
951 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX:
952 * reset ssid hotlist index
953 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX:
954 * hotlist ssid found index
955 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX:
956 * hotlist ssid lost index
957 * @QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX
958 * dcc stats event index
959 * @QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX: vendor scan index
960 * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX:
961 * vendor scan complete event index
962 * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX:
963 * update gateway parameters index
Paul Zhangf9afcce2019-05-13 16:08:01 +0800964 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX:
965 * update aps info which has interop issues events index
Vivek3e5a3ba2017-02-20 18:13:57 +0530966 * @QCA_NL80211_VENDOR_SUBCMD_TSF_INDEX: TSF response events index
967 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX:
968 * P2P listen offload index
969 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH_INDEX: SAP
970 * conditional channel switch index
Anurag Chouhand40d1d12017-09-11 14:56:30 +0530971 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET_INDEX: NUD DEBUG Stats index
Anurag Chouhan6e569862017-10-04 12:42:27 +0530972 * @QCA_NL80211_VENDOR_SUBCMD_HANG_REASON_INDEX: hang event reason index
Yeshwanth Sriram Guntuka64de3442018-02-23 12:17:41 +0530973 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO_INDEX: MAC mode info index
Nachiket Kukade30ed5c42018-12-03 18:30:46 +0530974 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT_INDEX: NAN Extended index
Abhinav Kumar88e3fc52019-05-03 00:21:11 +0530975 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX: Beacon reporting index
Ashish Kumar Dhanotiya33ff8de2020-01-20 19:29:53 +0530976 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_INDEX: Request SAR limit index
Vivek3e5a3ba2017-02-20 18:13:57 +0530977 */
978
979enum qca_nl80211_vendor_subcmds_index {
Vivek3e5a3ba2017-02-20 18:13:57 +0530980 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX = 0,
Vivek3e5a3ba2017-02-20 18:13:57 +0530981
Vivek3e5a3ba2017-02-20 18:13:57 +0530982 QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +0530983
984#ifdef WLAN_FEATURE_STATS_EXT
985 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX,
986#endif /* WLAN_FEATURE_STATS_EXT */
987
988#ifdef FEATURE_WLAN_EXTSCAN
989 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX,
990 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX,
991 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX,
992 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX,
993 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX,
994 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX,
995 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX,
996 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX,
997 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX,
998 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX,
999 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX,
1000 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX,
1001 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX,
1002#endif /* FEATURE_WLAN_EXTSCAN */
1003
1004#ifdef WLAN_FEATURE_LINK_LAYER_STATS
1005 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX,
1006 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX,
1007 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX,
1008 QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX,
1009 QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX,
1010 QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX,
Zhang Qian7fc2e862017-03-23 17:49:43 +08001011 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301012#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
1013
1014 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX,
1015 QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX,
1016#ifdef WLAN_FEATURE_ROAM_OFFLOAD
1017 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX,
1018#endif
1019 /* DFS */
1020 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED_INDEX,
1021 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED_INDEX,
1022 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED_INDEX,
1023 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED_INDEX,
1024 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED_INDEX,
1025#ifdef FEATURE_WLAN_EXTSCAN
1026 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX,
1027 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX,
1028 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX,
1029 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX,
1030 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX,
1031 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX,
1032 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX,
1033#endif /* FEATURE_WLAN_EXTSCAN */
Adil Saeed Musthafa65dabe42017-08-23 17:32:11 -07001034 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301035 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI_INDEX,
1036#ifdef WLAN_FEATURE_MEMDUMP
1037 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP_INDEX,
1038#endif /* WLAN_FEATURE_MEMDUMP */
1039 /* OCB events */
1040 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX,
1041 QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX,
1042 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX,
1043 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX,
Paul Zhangf9afcce2019-05-13 16:08:01 +08001044 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301045#ifdef WLAN_FEATURE_TSF
1046 QCA_NL80211_VENDOR_SUBCMD_TSF_INDEX,
1047#endif
Vivek3e5a3ba2017-02-20 18:13:57 +05301048 QCA_NL80211_VENDOR_SUBCMD_NDP_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301049 QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX,
1050 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH_INDEX,
1051 QCA_NL80211_VENDOR_SUBCMD_UPDATE_EXTERNAL_ACS_CONFIG,
Ravi Kumar Bokka4a517a22017-03-23 17:20:31 +05301052 QCA_NL80211_VENDOR_SUBCMD_PWR_SAVE_FAIL_DETECTED_INDEX,
Anurag Chouhand40d1d12017-09-11 14:56:30 +05301053 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET_INDEX,
Anurag Chouhan6e569862017-10-04 12:42:27 +05301054 QCA_NL80211_VENDOR_SUBCMD_HANG_REASON_INDEX,
Chaithanya Garrepalli30927c52017-11-22 14:31:47 +05301055 QCA_NL80211_VENDOR_SUBCMD_HTT_STATS_INDEX,
Yeshwanth Sriram Guntuka64de3442018-02-23 12:17:41 +05301056 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO_INDEX,
Nachiket Kukade30ed5c42018-12-03 18:30:46 +05301057 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT_INDEX,
Alok Kumardb0d4232018-11-08 19:08:13 +05301058 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT_INDEX,
Ashish Kumar Dhanotiya38a0c9f2018-01-19 20:17:02 +05301059 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES_INDEX,
Amir Patel62f72ed2019-03-11 20:13:53 +05301060 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH_INDEX,
Abhinav Kumar88e3fc52019-05-03 00:21:11 +05301061 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX,
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05301062 QCA_NL80211_VENDOR_SUBCMD_ROAM_INDEX,
Ashish Kumar Dhanotiya6078a892019-11-01 20:50:20 +05301063 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA_INDEX,
Ashish Kumar Dhanotiya33ff8de2020-01-20 19:29:53 +05301064 QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_INDEX,
Abhishek Amburef15d7762020-02-14 13:31:42 +05301065 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301066};
1067
1068/**
1069 * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
1070 *
1071 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
1072 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
1073 * value
1074 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
1075 * keep as unsigned for now
1076 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
1077 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
1078 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
1079 * in KBPS
1080 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
1081 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
1082 */
1083enum qca_wlan_vendor_attr_tdls_enable {
1084 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
1085 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
1086 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
1087 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
1088 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
1089 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
1090 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
1091 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
1092 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
1093};
1094
1095/**
1096 * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
1097 *
1098 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
1099 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
1100 * 8-bit value
1101 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
1102 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
1103 */
1104enum qca_wlan_vendor_attr_tdls_disable {
1105 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
1106 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
1107 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
1108 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
1109 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
1110};
1111
1112/**
Ravi Kumar Bokka4a517a22017-03-23 17:20:31 +05301113 * qca_chip_power_save_failure_reason: Power save failure reason
1114 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1115 * due to protocol/module.
1116 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1117 * due to hardware
1118 */
1119enum qca_chip_power_save_failure_reason {
1120 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1121 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1122};
1123
1124/**
1125 * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1126 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1127 * information leading to the power save failure.
1128 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1129 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1130 * represented by enum qca_chip_power_save_failure_reason
1131 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1132 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1133 */
1134enum qca_attr_chip_power_save_failure {
1135 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1136
1137 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1138
1139 /* keep last */
1140 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1141 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1142 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1143};
1144
1145
1146/**
Vivek3e5a3ba2017-02-20 18:13:57 +05301147 * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
1148 *
1149 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
1150 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
1151 * 8-bit value
1152 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
1153 * unsigned 32-bit value
1154 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
1155 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
1156 * unsigned 32-bit value
1157 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
1158 * class, unsigned 32-bit value
1159 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
1160 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
1161 */
1162enum qca_wlan_vendor_attr_tdls_get_status {
1163 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
1164 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
1165 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
1166 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
1167 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
1168 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
1169 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
1170 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
1171 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
1172};
1173
1174/**
1175 * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
1176 *
1177 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
1178 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
1179 * 8-bit value
1180 * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
1181 * unsigned 32-bit value
1182 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
1183 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
1184 * unsigned 32-bit value
1185 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
1186 * operating class, unsigned 32-bit value
1187 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
1188 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
1189 */
1190enum qca_wlan_vendor_attr_tdls_state {
1191 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
1192 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
1193 QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
1194 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
1195 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
1196 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
1197 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
1198 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
1199 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
1200};
1201
Jeff Johnson3a1832e2018-05-06 00:15:04 -07001202/* enum's to provide TDLS capabilities */
Vivek3e5a3ba2017-02-20 18:13:57 +05301203enum qca_wlan_vendor_attr_get_tdls_capabilities {
1204 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1205 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1206 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1207
1208 /* keep last */
1209 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1210 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1211 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1212};
1213
Vivek3e5a3ba2017-02-20 18:13:57 +05301214enum qca_wlan_vendor_attr {
1215 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301216 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1217 QCA_WLAN_VENDOR_ATTR_DFS = 1,
1218 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1219 QCA_WLAN_VENDOR_ATTR_NAN = 2,
1220 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1221 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
1222 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1223 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
1224 /*
1225 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1226 * by enum qca_roaming_policy.
1227 */
Vivek3e5a3ba2017-02-20 18:13:57 +05301228 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1229 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301230 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
Vivek3e5a3ba2017-02-20 18:13:57 +05301231 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301232 QCA_WLAN_VENDOR_ATTR_TEST = 8,
1233 /*
1234 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1235 * Unsigned 32-bit value.
1236 */
Vivek3e5a3ba2017-02-20 18:13:57 +05301237 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301238 /* Unsigned 32-bit value */
Vivek3e5a3ba2017-02-20 18:13:57 +05301239 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301240 /* Unsigned 32-bit value */
Vivek3e5a3ba2017-02-20 18:13:57 +05301241 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301242 /* Unsigned 32-bit value from enum qca_set_band. */
Vivek3e5a3ba2017-02-20 18:13:57 +05301243 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301244 /* Dummy (NOP) attribute for 64 bit padding */
1245 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1246 /*
1247 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1248 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1249 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1250 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1251 */
1252 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1253 /*
1254 * Indoor location capabilities, returned by
1255 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1256 * see enum qca_wlan_vendor_attr_loc_capa.
1257 */
1258 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1259 /*
1260 * Array of nested attributes containing information about each peer
1261 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1262 * for supported attributes for each peer.
1263 */
1264 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1265 /*
1266 * Array of nested attributes containing measurement results for
1267 * one or more peers, reported by the
1268 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1269 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1270 * attributes.
1271 */
1272 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1273 /* Flag attribute for enabling or disabling responder functionality. */
1274 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1275 /*
1276 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1277 * command to specify the LCI report that will be sent by
1278 * the responder during a measurement exchange. The format is
1279 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1280 */
1281 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1282 /*
1283 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1284 * command to specify the location civic report that will
1285 * be sent by the responder during a measurement exchange.
1286 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1287 */
1288 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1289 /*
1290 * Session/measurement completion status code,
1291 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1292 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1293 * see enum qca_vendor_attr_loc_session_status.
1294 */
1295 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1296 /*
1297 * Initial dialog token used by responder (0 if not specified),
1298 * unsigned 8 bit value.
1299 */
1300 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1301 /*
1302 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1303 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1304 * AOA measurements are needed as part of an FTM session.
1305 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1306 * enum qca_wlan_vendor_attr_aoa_type.
1307 */
1308 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1309 /*
1310 * A bit mask (unsigned 32 bit value) of antenna arrays used
1311 * by indoor location measurements. Refers to the antenna
1312 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1313 */
1314 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1315 /*
1316 * AOA measurement data. Its contents depends on the AOA measurement
1317 * type and antenna array mask:
1318 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1319 * phase of the strongest CIR path for each antenna in the measured
1320 * array(s).
1321 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1322 * values, phase and amplitude of the strongest CIR path for each
1323 * antenna in the measured array(s).
1324 */
1325 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1326 /*
1327 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1328 * to specify the chain number (unsigned 32 bit value) to inquire
1329 * the corresponding antenna RSSI value */
1330 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1331 /*
1332 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1333 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1334 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1335 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1336 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1337 /*
1338 * TSF timer value, unsigned 64 bit value.
1339 * May be returned by various commands.
1340 */
1341 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1342 /*
1343 * DMG RF sector index, unsigned 16 bit number. Valid values are
1344 * 0..127 for sector indices or 65535 as special value used to
1345 * unlock sector selection in
1346 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1347 */
1348 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1349 /*
1350 * DMG RF sector type, unsigned 8 bit value. One of the values
1351 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1352 */
1353 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1354 /*
1355 * Bitmask of DMG RF modules for which information is requested. Each
1356 * bit corresponds to an RF module with the same index as the bit
1357 * number. Unsigned 32 bit number but only low 8 bits can be set since
1358 * all DMG chips currently have up to 8 RF modules.
1359 */
1360 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1361 /*
1362 * Array of nested attributes where each entry is DMG RF sector
1363 * configuration for a single RF module.
1364 * Attributes for each entry are taken from enum
1365 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1366 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1367 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1368 */
1369 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1370 /*
1371 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1372 * to report frame aggregation statistics to userspace.
1373 */
1374 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1375 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1376 /*
1377 * Unsigned 8-bit value representing MBO transition reason code as
1378 * provided by the AP used by subcommand
1379 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1380 * specified by the userspace in the request to the driver.
1381 */
1382 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1383 /*
1384 * Array of nested attributes, BSSID and status code, used by subcommand
1385 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1386 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1387 * The userspace space specifies the list/array of candidate BSSIDs in
1388 * the order of preference in the request. The driver specifies the
1389 * status code, for each BSSID in the list, in the response. The
1390 * acceptable candidates are listed in the order preferred by the
1391 * driver.
1392 */
1393 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1394 /*
1395 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1396 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1397 */
1398 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1399 /*
1400 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1401 * to define the number of antennas to use for BRP.
1402 * different purpose in each ANT_LIMIT_MODE:
1403 * DISABLE - ignored
1404 * EFFECTIVE - upper limit to number of antennas to be used
1405 * FORCE - exact number of antennas to be used
1406 * unsigned 8 bit value
1407 */
1408 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1409 /*
1410 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1411 * to report the corresponding antenna index to the chain RSSI value
1412 */
1413 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
stonez2c6f4d12019-01-15 17:55:58 +08001414 /*
1415 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1416 * to report the specific antenna EVM value (unsigned 32 bit value).
1417 * With a determinate group of antennas, the driver specifies the
1418 * EVM value for each antenna ID, and application extract them
1419 * in user space.
1420 */
1421 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Qun Zhangaf8a0812019-02-01 11:30:34 +08001422 /*
1423 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1424 * wlan firmware current state. FW state is an unsigned 8 bit value,
1425 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1426 */
1427 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Vivek3e5a3ba2017-02-20 18:13:57 +05301428
1429 /* keep last */
1430 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1431 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1432};
1433
Vivek3e5a3ba2017-02-20 18:13:57 +05301434enum qca_wlan_vendor_attr_extscan_config_params {
1435 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1436
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301437 /* Unsigned 32-bit value */
1438 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05301439
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301440 /*
1441 * Attributes for data used by
1442 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1443 */
Vivek3e5a3ba2017-02-20 18:13:57 +05301444
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301445 /* Unsigned 32-bit value */
1446 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1447 = 2,
1448 /* Unsigned 32-bit value */
1449 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1450 = 3,
Vivek3e5a3ba2017-02-20 18:13:57 +05301451
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301452 /*
1453 * Attributes for input params used by
1454 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1455 */
Vivek3e5a3ba2017-02-20 18:13:57 +05301456
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301457 /* Unsigned 32-bit value; channel frequency */
1458 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1459 /* Unsigned 32-bit value; dwell time in ms. */
1460 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1461 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1462 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1463 /* Unsigned 8-bit value; channel class */
1464 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
Vivek3e5a3ba2017-02-20 18:13:57 +05301465
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301466 /* Unsigned 8-bit value; bucket index, 0 based */
1467 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1468 /* Unsigned 8-bit value; band. */
1469 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1470 /* Unsigned 32-bit value; desired period, in ms. */
1471 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1472 /* Unsigned 8-bit value; report events semantics. */
1473 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1474 /*
1475 * Unsigned 32-bit value. Followed by a nested array of
1476 * EXTSCAN_CHANNEL_SPEC_* attributes.
1477 */
1478 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
Vivek3e5a3ba2017-02-20 18:13:57 +05301479
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301480 /*
1481 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1482 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1483 */
1484 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
Vivek3e5a3ba2017-02-20 18:13:57 +05301485
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301486 /* Unsigned 32-bit value; base timer period in ms. */
1487 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1488 /*
1489 * Unsigned 32-bit value; number of APs to store in each scan in the
1490 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1491 */
1492 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1493 /*
1494 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1495 * up AP.
1496 */
1497 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1498 = 16,
Vivek3e5a3ba2017-02-20 18:13:57 +05301499
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301500 /*
1501 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1502 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1503 * of the array is determined by NUM_BUCKETS.
1504 */
1505 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
Vivek3e5a3ba2017-02-20 18:13:57 +05301506
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301507 /*
1508 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1509 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1510 */
1511 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
Vivek3e5a3ba2017-02-20 18:13:57 +05301512
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301513 /* Unsigned 8-bit value */
1514 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1515 = 19,
1516 /* Unsigned 32-bit value; maximum number of results to be returned. */
1517 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1518 = 20,
Vivek3e5a3ba2017-02-20 18:13:57 +05301519
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301520 /* An array of 6 x unsigned 8-bit value */
1521 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1522 /* Signed 32-bit value */
1523 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1524 /* Signed 32-bit value */
1525 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1526 /* Unsigned 32-bit value */
1527 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
Vivek3e5a3ba2017-02-20 18:13:57 +05301528
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301529 /*
1530 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1531 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1532 * array is determined by NUM_AP.
1533 */
1534 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
Vivek3e5a3ba2017-02-20 18:13:57 +05301535
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301536 /*
1537 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1538 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1539 */
1540 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
Vivek3e5a3ba2017-02-20 18:13:57 +05301541
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301542 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
1543 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1544 = 27,
1545 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
1546 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1547 = 28,
1548 /* Unsigned 32-bit value; number of APs breaching threshold. */
1549 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1550 /*
1551 * Unsigned 32-bit value; number of APs. Followed by an array of
1552 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1553 */
1554 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1555 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
1556 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1557 = 31,
1558 /*
1559 * Unsigned 32-bit value. If max_period is non zero or different than
1560 * period, then this bucket is an exponential backoff bucket.
1561 */
1562 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1563 /* Unsigned 32-bit value. */
1564 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1565 /*
1566 * Unsigned 32-bit value. For exponential back off bucket, number of
1567 * scans to perform for a given period.
1568 */
1569 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1570 /*
1571 * Unsigned 8-bit value; in number of scans, wake up AP after these
1572 * many scans.
1573 */
1574 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1575 = 35,
Vivek3e5a3ba2017-02-20 18:13:57 +05301576
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301577 /*
1578 * Attributes for data used by
1579 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1580 */
Vivek3e5a3ba2017-02-20 18:13:57 +05301581
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301582 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1583 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1584 = 36,
1585 /*
1586 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1587 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1588 * size of the array is determined by NUM_SSID.
1589 */
1590 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1591 /*
1592 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1593 * attributes.
1594 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1595 */
1596 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1597
1598 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1599 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1600 /* Unsigned 8-bit value */
1601 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1602 /* Signed 32-bit value */
1603 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1604 /* Signed 32-bit value */
1605 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1606 /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1607 */
1608 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1609
1610 /* keep last */
Vivek3e5a3ba2017-02-20 18:13:57 +05301611 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1612 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301613 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05301614};
1615
Vivek3e5a3ba2017-02-20 18:13:57 +05301616enum qca_wlan_vendor_attr_extscan_results {
1617 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1618
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301619 /*
1620 * Unsigned 32-bit value; must match the request Id supplied by
1621 * Wi-Fi HAL in the corresponding subcmd NL msg.
1622 */
1623 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05301624
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301625 /*
1626 * Unsigned 32-bit value; used to indicate the status response from
1627 * firmware/driver for the vendor sub-command.
1628 */
1629 QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
Vivek3e5a3ba2017-02-20 18:13:57 +05301630
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301631 /*
1632 * EXTSCAN Valid Channels attributes */
1633 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
1634 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
1635 /*
1636 * An array of NUM_CHANNELS x unsigned 32-bit value integers
1637 * representing channel numbers.
1638 */
1639 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
Vivek3e5a3ba2017-02-20 18:13:57 +05301640
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301641 /* EXTSCAN Capabilities attributes */
Vivek3e5a3ba2017-02-20 18:13:57 +05301642
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301643 /* Unsigned 32-bit value */
1644 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
1645 /* Unsigned 32-bit value */
1646 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
1647 /* Unsigned 32-bit value */
1648 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
1649 = 7,
1650 /* Unsigned 32-bit value */
1651 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
1652 = 8,
1653 /* Signed 32-bit value */
1654 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
1655 = 9,
1656 /* Unsigned 32-bit value */
1657 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
1658 /* Unsigned 32-bit value */
1659 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
1660 = 11,
1661 /* Unsigned 32-bit value */
1662 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
1663 = 12,
Vivek3e5a3ba2017-02-20 18:13:57 +05301664
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301665 /*
1666 * EXTSCAN Attributes used with
1667 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
Vivek3e5a3ba2017-02-20 18:13:57 +05301668 */
1669
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301670 /* Unsigned 32-bit value */
1671 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
1672
1673 /*
1674 * EXTSCAN attributes used with
1675 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
1676 */
1677
1678 /*
1679 * An array of NUM_RESULTS_AVAILABLE x
1680 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
1681 */
1682 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
1683
1684 /* Unsigned 64-bit value; age of sample at the time of retrieval */
1685 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
1686 /* 33 x unsigned 8-bit value; NULL terminated SSID */
1687 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
1688 /* An array of 6 x unsigned 8-bit value */
1689 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
1690 /* Unsigned 32-bit value; channel frequency in MHz */
1691 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
1692 /* Signed 32-bit value */
1693 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
1694 /* Unsigned 32-bit value */
1695 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
1696 /* Unsigned 32-bit value */
1697 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
1698 /* Unsigned 16-bit value */
1699 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
1700 /* Unsigned 16-bit value */
1701 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
1702 /* Unsigned 32-bit value; size of the IE DATA blob */
1703 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
1704 /*
1705 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
1706 * information elements found in the beacon; this data should be a
1707 * packed list of wifi_information_element objects, one after the
1708 * other.
1709 */
1710 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
1711
1712 /*
1713 * Unsigned 8-bit value; set by driver to indicate more scan results are
1714 * available.
1715 */
1716 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
1717
1718 /*
1719 * EXTSCAN attributes for
Vivek3e5a3ba2017-02-20 18:13:57 +05301720 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
1721 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301722 /* Unsigned 8-bit value */
1723 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
1724 /* Unsigned 32-bit value */
1725 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
Vivek3e5a3ba2017-02-20 18:13:57 +05301726
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301727 /*
1728 * EXTSCAN attributes for
Vivek3e5a3ba2017-02-20 18:13:57 +05301729 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
1730 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301731 /*
1732 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
Vivek3e5a3ba2017-02-20 18:13:57 +05301733 * to indicate number of results.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301734 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1735 * list of results.
Vivek3e5a3ba2017-02-20 18:13:57 +05301736 */
1737
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301738 /*
1739 * EXTSCAN attributes for
Vivek3e5a3ba2017-02-20 18:13:57 +05301740 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
1741 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301742 /* An array of 6 x unsigned 8-bit value */
1743 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
1744 /* Unsigned 32-bit value */
1745 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
1746 = 30,
1747 /* Unsigned 32-bit value. */
1748 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
1749 = 31,
1750 /*
1751 * A nested array of signed 32-bit RSSI values. Size of the array is
1752 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
1753 */
1754 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
1755 = 32,
Vivek3e5a3ba2017-02-20 18:13:57 +05301756
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301757 /*
1758 * EXTSCAN attributes used with
Vivek3e5a3ba2017-02-20 18:13:57 +05301759 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
1760 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301761 /*
1762 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1763 * to indicate number of extscan cached results returned.
1764 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
1765 * the list of extscan cached results.
Vivek3e5a3ba2017-02-20 18:13:57 +05301766 */
1767
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301768 /*
1769 * An array of NUM_RESULTS_AVAILABLE x
1770 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
1771 */
1772 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
1773 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
1774 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
1775 /*
1776 * Unsigned 32-bit value; a bitmask w/additional information about scan.
1777 */
1778 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
1779 /*
1780 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
Vivek3e5a3ba2017-02-20 18:13:57 +05301781 * to indicate number of wifi scan results/bssids retrieved by the scan.
1782 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1783 * list of wifi scan results returned for each cached result block.
1784 */
1785
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301786 /*
1787 * EXTSCAN attributes for
Vivek3e5a3ba2017-02-20 18:13:57 +05301788 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
1789 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301790 /*
1791 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
1792 * number of results.
Vivek3e5a3ba2017-02-20 18:13:57 +05301793 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
1794 * list of wifi scan results returned for each
1795 * wifi_passpoint_match_result block.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301796 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
Vivek3e5a3ba2017-02-20 18:13:57 +05301797 */
1798
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301799 /*
1800 * EXTSCAN attributes for
Vivek3e5a3ba2017-02-20 18:13:57 +05301801 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
1802 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301803 /* Unsigned 32-bit value */
1804 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
1805 = 36,
1806 /*
1807 * A nested array of
1808 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
1809 * attributes. Array size =
1810 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
1811 */
1812 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
1813
1814 /* Unsigned 32-bit value; network block id for the matched network */
1815 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
1816 /*
1817 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
Vivek3e5a3ba2017-02-20 18:13:57 +05301818 * list of wifi scan results returned for each
1819 * wifi_passpoint_match_result block.
1820 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301821 /* Unsigned 32-bit value */
1822 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
1823 /*
1824 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
1825 * ANQP data in the information_element format.
Vivek3e5a3ba2017-02-20 18:13:57 +05301826 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301827 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
Vivek3e5a3ba2017-02-20 18:13:57 +05301828
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301829 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1830 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
1831 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1832 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
1833 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1834 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
1835 = 43,
1836 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1837 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
1838 = 44,
1839
1840 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
1841 QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
Vivek3e5a3ba2017-02-20 18:13:57 +05301842
1843 /* keep last */
1844 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
1845 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301846 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05301847};
Paul Zhangf9afcce2019-05-13 16:08:01 +08001848
1849/**
1850 * enum qca_vendor_interop_issues_ap_type - interop issues type
1851 * This enum defines the valid set of values of interop issues type. These
1852 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
1853 *
1854 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
1855 * when the STA's Qpower feature is enabled.
1856 */
1857enum qca_vendor_interop_issues_ap_type {
1858 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
1859 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
1860};
1861
1862/**
1863 * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
1864 * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
1865 *
1866 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
1867 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
1868 * 32-bit unsigned value, The type defined in enum
1869 * qca_vendor_interop_issues_ap_type are used.
1870 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
1871 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
1872 * it is present and mandatory for the command but is not used for
1873 * the event since only a single BSSID is reported in an event.
1874 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
1875 * 6-byte MAC address. It is used within the nested
1876 * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
1877 * and without such encapsulation in the event case.
1878 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
1879 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
1880 */
1881enum qca_vendor_attr_interop_issues_ap {
1882 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
1883 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
1884 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
1885 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
1886 /* keep last */
1887 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
1888 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
1889 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
1890};
Vivek3e5a3ba2017-02-20 18:13:57 +05301891
1892#ifdef WLAN_FEATURE_LINK_LAYER_STATS
1893
1894/**
1895 * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
1896 *
1897 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
1898 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
1899 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
1900 * Aggresive stats gathering
1901 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
1902 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
1903 */
1904enum qca_wlan_vendor_attr_ll_stats_set {
1905 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
1906 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
1907 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
1908 /* keep last */
1909 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
1910 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
1911 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
1912};
1913
1914/**
1915 * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
1916 *
1917 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
1918 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
1919 * provided by the caller issuing the GET stats command. When reporting
1920 * the stats results, the driver uses the same value to indicate which
1921 * GET request the results correspond to.
1922 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
1923 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
1924 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
1925 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
1926 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
1927 */
1928enum qca_wlan_vendor_attr_ll_stats_get {
1929 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
1930 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
1931 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
1932 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
1933 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
1934 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
1935};
1936
1937/**
1938 * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
1939 *
1940 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
1941 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
1942 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
1943 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
1944 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
1945 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
1946 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
1947 */
1948enum qca_wlan_vendor_attr_ll_stats_clr {
1949 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
1950 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
1951 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
1952 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
1953 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
1954 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
1955 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
1956 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
1957};
1958
1959/**
1960 * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
1961 *
1962 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
1963 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
1964 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
1965 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
1966 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
1967 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
1968 */
1969enum qca_wlan_vendor_attr_ll_stats_results_type {
1970 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
1971
1972 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
1973 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
1974 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
1975
1976 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
1977 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
1978 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
1979};
1980
1981/**
1982 * enum qca_wlan_vendor_attr_ll_stats_results - vendor attribute stats results
1983 *
1984 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are nested
1985 * within the interface stats.
1986 *
1987 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could be nested
1988 * within the interface stats.
1989 *
1990 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are nested
1991 * within the interface stats.
1992 *
1993 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* could be nested
1994 * within the peer info stats.
1995 *
1996 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could be
1997 * nested within the channel stats.
1998 *
1999 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ could be nested
2000 * within the radio stats.
2001 *
2002 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID: Invalid initial value
2003 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID: Unsigned 32bit value
2004 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX: Unsigned 32bit value
2005 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX: Unsigned 32bit value
2006 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX: Unsigned 32bit value
2007 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX: Unsigned 32bit value
2008 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT: Unsigned 32bit value
2009 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA: Unsigned 32bit value
2010 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK: Unsigned 32bit value
2011 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE: Interface mode, e.g., STA,
2012 * SOFTAP, IBSS, etc. Type = enum wifi_interface_mode
2013 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR: Interface MAC address.
2014 * An array of 6 Unsigned int8_t
2015 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE:
2016 * Type = enum wifi_connection_state, e.g., DISCONNECTED, AUTHENTICATING,
2017 * etc. Valid for STA, CLI only
2018 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING:
2019 * Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2020 * (is that valid for STA only?)
2021 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES: Unsigned 32bit value.
2022 * WIFI_CAPABILITY_XXX
2023 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID: NULL terminated SSID. An
2024 * array of 33 Unsigned 8bit values
2025 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID: BSSID. An array of 6
2026 * Unsigned 8bit values
2027 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR: Country string
2028 * advertised by AP. An array of 3 Unsigned 8bit values
2029 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR: Country string for
2030 * this association. An array of 3 Unsigned 8bit values
2031 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC: Type = enum wifi_traffic_ac e.g.
2032 * V0, VI, BE and BK
2033 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU: Unsigned int 32 value
2034 * corresponding to respective AC
2035 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU: Unsigned int 32 value
2036 * corresponding to respective AC
2037 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST: Unsigned int 32 value
2038 * corresponding to respective AC
2039 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST: Unsigned int 32 value
2040 * corresponding to respective AC
2041 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU: Unsigned int 32 value
2042 * corresponding to respective AC
2043 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU: Unsigned int 32 value
2044 * corresponding to respective AC
2045 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST: Unsigned int 32 value
2046 * corresponding to respective AC
2047 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES: Unsigned int 32 value
2048 * corresponding to respective AC
2049 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT: Unsigned int 32 value
2050 * corresponding to respective AC
2051 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN: Unsigned int 32
2052 * value corresponding to respective AC
2053 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX: Unsigned int 32
2054 * value corresponding to respective AC
2055 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG: Unsigned int 32
2056 * value corresponding to respective AC
2057 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES: Unsigned int 32
2058 * value corresponding to respective AC
2059 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS: Unsigned int 32
2060 * value corresponding to respective AC
2061 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE: Type = enum wifi_peer_type
2062 * Peer type, e.g., STA, AP, P2P GO etc
2063 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS: MAC addr corresponding
2064 * to respective peer. An array of 6 Unsigned 8bit values
2065 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES: Unsigned int 32bit
2066 * value representing capabilities corresponding to respective peer.
2067 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES: Unsigned 32bit value.
2068 * Number of rates
2069 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE: Unsigned int 8bit value:
2070 * 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved
2071 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS: Unsigned int 8bit value:
2072 * 0:1x1, 1:2x2, 3:3x3, 4:4x4
2073 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW: Unsigned int 8bit value:
2074 * 0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz
2075 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX: Unsigned int 8bit value:
2076 * OFDM/CCK rate code would be as per IEEE Std in the units of 0.5mbps
2077 * HT/VHT it would be mcs index
2078 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE: Unsigned 32bit value.
2079 * Bit rate in units of 100Kbps
2080 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU: Unsigned int 32bit value.
2081 * Number of successfully transmitted data pkts i.e., with ACK received
2082 * corresponding to the respective rate
2083 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU: Unsigned int 32bit value.
2084 * Number of received data pkts corresponding to the respective rate
2085 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST: Unsigned int 32bit value.
2086 * Number of data pkts losses, i.e., no ACK received corresponding to
2087 * the respective rate
2088 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES: Unsigned int 32bit value.
2089 * Total number of data pkt retries for the respective rate
2090 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT: Unsigned int 32bit value.
2091 * Total number of short data pkt retries for the respective rate
2092 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG: Unsigned int 32bit value.
2093 * Total number of long data pkt retries for the respective rate
2094 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID: Radio id
2095 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME: Unsigned 32bit value.
2096 * Total number of msecs the radio is awake accruing over time
2097 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME: Unsigned 32bit value.
2098 * Total number of msecs the radio is transmitting accruing over time
2099 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME: Unsigned 32bit value.
2100 * Total number of msecs the radio is in active receive accruing over time
2101 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN: Unsigned 32bit value.
2102 * Total number of msecs the radio is awake due to all scan accruing
2103 * over time
2104 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD: Unsigned 32bit value.
2105 * Total number of msecs the radio is awake due to NAN accruing over time.
2106 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN: Unsigned 32bit value.
2107 * Total number of msecs the radio is awake due to GSCAN accruing over time
2108 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN: Unsigned 32bit value.
2109 * Total number of msecs the radio is awake due to roam scan accruing over
2110 * time.
2111 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN: Unsigned 32bit value.
2112 * Total number of msecs the radio is awake due to PNO scan accruing over
2113 * time.
2114 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20: Unsigned 32bit value.
2115 * Total number of msecs the radio is awake due to HS2.0 scans and GAS
2116 * exchange accruing over time.
2117 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS: Unsigned 32bit value.
2118 * Number of channels
2119 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH:
2120 * Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80, etc.
2121 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ:
2122 * Unsigned 32bit value. Primary 20MHz channel.
2123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0:
2124 * Unsigned 32bit value. Center frequency (MHz) first segment.
2125 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1:
2126 * Unsigned 32bit value. Center frequency (MHz) second segment.
2127 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME: Unsigned int 32bit value
2128 * representing total number of msecs the radio is awake on that channel
2129 * accruing over time, corresponding to the respective channel.
2130 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME: Unsigned int 32bit
2131 * value representing total number of msecs the CCA register is busy
2132 * accruing over time corresponding to the respective channel.
2133 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS: Number of radios
2134 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO: Channel info
2135 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO: Peer info
2136 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO: Peer rate info
2137 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO: WMM info
2138 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA: Unsigned 8bit value.
2139 * Used by the driver; if set to 1, it indicates that more stats, e.g.,
2140 * peers or radio, are to follow in the next
2141 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. Otherwise, it
2142 * is set to 0.
2143 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET: tsf offset
2144 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED: leaky ap detected
2145 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED:
2146 * average number of frames leaked
2147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME: guard time
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302148 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE: Link Layer stats type
2149 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS: LL Radio Number of
2150 * Tx Levels
2151 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL:Number of msecs the
2152 * radio spent in transmitting for each power level
gaolezdb66e612017-03-16 18:32:15 +08002153 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT: RTS successful count
2154 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT: RTS fail count
2155 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT: PPDU successful count
2156 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT: PPDU fail count
Vivek3e5a3ba2017-02-20 18:13:57 +05302157 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST: After last
2158 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2159 */
2160
2161enum qca_wlan_vendor_attr_ll_stats_results {
2162 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2163 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2164
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302165 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2166 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2167 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2168 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2169 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2170 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2171 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2172 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2173 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2174 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2175 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2176 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2177 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2178 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2179 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2180 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
Vivek3e5a3ba2017-02-20 18:13:57 +05302181
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302182 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2183 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2184 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2185 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2186 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2187 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2188 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2189 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2190 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2191 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2192 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2193 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2194 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2195 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2196 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
Vivek3e5a3ba2017-02-20 18:13:57 +05302197
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302198 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
Vivek3e5a3ba2017-02-20 18:13:57 +05302199
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302200 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2201 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2202 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2203 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
Vivek3e5a3ba2017-02-20 18:13:57 +05302204
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302205 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2206 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2207 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2208 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2209 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
Vivek3e5a3ba2017-02-20 18:13:57 +05302210
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302211 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2212 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2213 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2214 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2215 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2216 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
Vivek3e5a3ba2017-02-20 18:13:57 +05302217
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302218 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2219 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2220 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2221 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2222 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2223 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2224 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2225 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2226 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2227 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2228 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
Vivek3e5a3ba2017-02-20 18:13:57 +05302229
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302230 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2231 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2232 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2233 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
Vivek3e5a3ba2017-02-20 18:13:57 +05302234
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302235 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2236 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
Vivek3e5a3ba2017-02-20 18:13:57 +05302237
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302238 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2239 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2240 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2241 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2242 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
Vivek3e5a3ba2017-02-20 18:13:57 +05302243
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302244 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
Vivek3e5a3ba2017-02-20 18:13:57 +05302245
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302246 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2247 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2248 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2249 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
Vivek3e5a3ba2017-02-20 18:13:57 +05302250
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302251 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
Vivek3e5a3ba2017-02-20 18:13:57 +05302252
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302253 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
Vivek3e5a3ba2017-02-20 18:13:57 +05302254
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302255 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2256
2257 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2258 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2259 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2260 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
Vivek3e5a3ba2017-02-20 18:13:57 +05302261
2262 /* keep last */
2263 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2264 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2265 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1
2266};
2267
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302268enum qca_wlan_vendor_attr_ll_stats_type {
2269 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2270 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2271 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2272 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2273
2274 /* keep last */
2275 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2276 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2277 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2278};
2279
Vivek3e5a3ba2017-02-20 18:13:57 +05302280#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2281
2282/**
2283 * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2284 *
2285 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2286 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2287 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2288 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2289 */
2290enum qca_wlan_vendor_attr_get_supported_features {
2291 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2292 QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2293 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2294 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2295 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2296};
2297
2298/**
2299 * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2300 *
2301 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2302 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2303 * value
2304 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2305 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2306 */
2307enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2308 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2309 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2310 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2311 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2312 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2313};
2314
2315/**
2316 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2317 *
2318 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2319 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2320 * with frequencies to be scanned (in MHz)
2321 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2322 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2323 * rates to be included
2324 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2325 * at non CCK rate in 2GHz band
2326 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2327 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2328 * driver for the specific scan request
2329 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2330 * request decoded as in enum scan_status
2331 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2332 * scan flag is set
2333 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2334 * randomisation
2335 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: BSSID provided to do scan for specific BSS
2336 */
2337enum qca_wlan_vendor_attr_scan {
2338 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2339 QCA_WLAN_VENDOR_ATTR_SCAN_IE,
2340 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
2341 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
2342 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
2343 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
2344 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
2345 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
2346 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
2347 QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
2348 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
2349 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID,
2350 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2351 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2352 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2353};
2354
2355/**
2356 * enum scan_status - Specifies the valid values the vendor scan attribute
2357 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2358 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2359 * new scan results
2360 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2361 */
2362enum scan_status {
2363 VENDOR_SCAN_STATUS_NEW_RESULTS,
2364 VENDOR_SCAN_STATUS_ABORTED,
2365 VENDOR_SCAN_STATUS_MAX,
2366};
2367
2368/**
2369 * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2370 *
2371 * NL attributes for data used by
2372 * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2373 *
2374 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2375 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2376 * Unsigned 32-bit value
2377 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2378 * Unsigned 32-bit value
2379 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2380 * array of SET_SIZE x Unsigned 32bit values representing concurrency
2381 * combinations
2382 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2383 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2384 */
2385enum qca_wlan_vendor_attr_get_concurrency_matrix {
2386 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
2387 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
2388 = 1,
2389 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
2390 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
2391 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
2392 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
2393 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
2394};
2395
2396/**
2397 * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
2398 *
2399 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
2400 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
2401 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
2402 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
2403 */
2404enum qca_wlan_vendor_attr_set_no_dfs_flag {
2405 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
2406 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
2407 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
2408 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
2409 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
2410};
2411
2412/**
2413 * enum qca_vendor_attr_wisa_cmd
2414 * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
2415 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
2416 * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
2417 * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
2418 * WISA setup vendor commands
2419 */
2420enum qca_vendor_attr_wisa_cmd {
2421 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2422 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2423 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2424 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2425 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2426};
2427
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302428enum qca_roaming_policy {
2429 QCA_ROAMING_NOT_ALLOWED,
2430 QCA_ROAMING_ALLOWED_WITHIN_ESS,
2431};
2432
Vivek3e5a3ba2017-02-20 18:13:57 +05302433/**
sheenam mongaaf7c3c92019-04-03 17:48:19 +05302434 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
2435 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
2436 *
2437 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
2438 * reasons.
2439 *
2440 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
2441 * the configured threshold.
2442 *
2443 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
2444 * beacon misses from the then connected AP.
2445 *
2446 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
2447 * by the connected AP.
2448 *
2449 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
2450 * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
2451 * not poor.
2452 *
2453 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
2454 * or environment being very noisy / congested.
2455 *
2456 * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
2457 * from the user (user space).
2458 *
2459 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
2460 * connected AP.
2461 *
2462 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
2463 * breaching out the configured threshold.
2464 *
2465 */
2466enum qca_roam_reason {
2467 QCA_ROAM_REASON_UNKNOWN,
2468 QCA_ROAM_REASON_PER,
2469 QCA_ROAM_REASON_BEACON_MISS,
2470 QCA_ROAM_REASON_POOR_RSSI,
2471 QCA_ROAM_REASON_BETTER_RSSI,
2472 QCA_ROAM_REASON_CONGESTION,
2473 QCA_ROAM_REASON_USER_TRIGGER,
2474 QCA_ROAM_REASON_BTM,
2475 QCA_ROAM_REASON_BSS_LOAD,
2476};
2477
2478/**
Vivek3e5a3ba2017-02-20 18:13:57 +05302479 * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
2480 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
2481 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
2482 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
2483 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
2484 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
2485 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
2486 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
2487 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
Mukul Sharma9b53a472017-05-17 18:06:43 +05302488 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
2489 * Indicates the status of re-association requested by user space for
2490 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
2491 * Type u16.
2492 * Represents the status code from AP. Use
2493 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
2494 * real status code for failures.
2495 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
2496 * This attribute indicates that the old association was maintained when
2497 * a re-association is requested by user space and that re-association
2498 * attempt fails (i.e., cannot connect to the requested BSS, but can
2499 * remain associated with the BSS with which the association was in
2500 * place when being requested to roam). Used along with
2501 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
2502 * re-association status. Type flag.
2503 * This attribute is applicable only for re-association failure cases.
Vignesh Viswanathan051ef2e2017-09-25 14:36:38 +05302504 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
2505 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
2506 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
2507 * seq number
sheenam mongaaf7c3c92019-04-03 17:48:19 +05302508 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
2509 * representing the reasons for the roaming. Defined by enum
2510 * qca_roam_reason.
Vivek3e5a3ba2017-02-20 18:13:57 +05302511 */
2512enum qca_wlan_vendor_attr_roam_auth {
2513 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
2514 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
2515 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
2516 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
2517 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
2518 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
2519 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
2520 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
2521 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Mukul Sharma9b53a472017-05-17 18:06:43 +05302522 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
2523 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
Vignesh Viswanathan051ef2e2017-09-25 14:36:38 +05302524 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
2525 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
2526 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
sheenam mongaaf7c3c92019-04-03 17:48:19 +05302527 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
Vivek3e5a3ba2017-02-20 18:13:57 +05302528 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
2529 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
2530 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
2531};
2532
2533/**
2534 * enum qca_wlan_vendor_attr_wifi_config - wifi config
2535 *
2536 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
2537 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
2538 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
2539 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
2540 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
2541 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
2542 */
2543enum qca_wlan_vendor_attr_wifi_config {
2544 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
2545 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
2546 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
2547 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
2548
2549 /* keep last */
2550 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
2551 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
2552 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
2553};
2554
2555/**
2556 * enum qca_wlan_epno_type - the type of request to the EPNO command
2557 * @QCA_WLAN_EPNO: epno type request
2558 * @QCA_WLAN_PNO: pno type request
2559 */
2560enum qca_wlan_epno_type {
2561 QCA_WLAN_EPNO,
2562 QCA_WLAN_PNO
2563};
2564
2565/**
2566 * enum qca_wlan_vendor_attr_pno_config_params - pno config params
2567 *
2568 * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
2569 *
2570 * NL attributes for data used by
2571 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
2572 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
2573 * Unsigned 32-bit value; pno passpoint number of networks
2574 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
2575 * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
2576 * attributes. Array size =
2577 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
2578 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
2579 * Unsigned 32-bit value; network id
2580 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
2581 * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
2582 * realm, 0 if unspecified.
2583 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
2584 * An array of 16 x Unsigned 32-bit value; roaming consortium ids
2585 * to match, 0 if unspecified.
2586 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
2587 * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
2588 * unspecified.
2589 *
2590 * NL attributes for data used by
2591 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
2592 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
2593 * Unsigned 32-bit value; set pno number of networks
2594 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
2595 * Array of nested
2596 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
2597 * attributes. Array size =
2598 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
2599 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
2600 * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
2601 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
2602 * Signed 8-bit value; threshold for considering this SSID as found,
2603 * required granularity for this threshold is 4dBm to 8dBm
2604 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
2605 * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
2606 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
2607 * Unsigned 8-bit value; auth bit field for matching WPA IE
2608 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
2609 * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
2610 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
2611 * Nested attribute to send the channel list
2612 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
2613 * Unsigned 32-bit value; indicates the Interval between PNO scan
2614 * cycles in msec
2615 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
2616 * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
2617 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
2618 * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
2619 * This attribute is obsolete now.
2620 *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
2621 * Signed 32-bit value; the maximum score that a network
2622 * can have before bonuses
2623 *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
2624 * Signed 32-bit value; only report when there is a network's
2625 * score this much higher han the current connection
2626 *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
2627 * Signed 32-bit value; score bonus for all networks with
2628 * the same network flag
2629 *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
2630 * Signed 32-bit value; score bonus for networks that are not open
2631 *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
2632 * Signed 32-bit value; 5GHz RSSI score bonus applied to all
2633 * 5GHz networks
Ashish Kumar Dhanotiyacc0b0da2017-08-21 13:59:50 +05302634 *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
2635 * Unsigned 32-bit value, representing the PNO Request ID
Vivek3e5a3ba2017-02-20 18:13:57 +05302636 * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
2637 * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
2638 */
2639enum qca_wlan_vendor_attr_pno_config_params {
2640 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
2641
2642 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
2643 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
2644 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
2645 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
2646 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
2647 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
2648
2649 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
2650 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
2651 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
2652 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
2653 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
2654 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
2655 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
2656 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
2657 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
2658 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
2659 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
2660 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
2661 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
2662 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
2663 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
2664 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
2665
Ashish Kumar Dhanotiyacc0b0da2017-08-21 13:59:50 +05302666 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Vivek3e5a3ba2017-02-20 18:13:57 +05302667 /* keep last */
2668 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
2669 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
2670 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
2671};
2672
2673/**
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05302674 * enum qca_scan_freq_list_type: Frequency list types
2675 *
2676 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
2677 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
2678 * a preferred frequency list for roaming.
2679 *
2680 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
2681 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
2682 * a specific frequency list for roaming.
2683 */
2684enum qca_scan_freq_list_type {
2685 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
2686 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
2687};
2688
2689/**
2690 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
2691 *
2692 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
2693 * List of frequencies in MHz to be considered for a roam scan.
2694 *
2695 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
2696 * Type of frequency list scheme being configured/gotten as defined by the
2697 * enum qca_scan_freq_list_type.
2698 */
2699enum qca_vendor_attr_scan_freq_list_scheme {
2700 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
2701 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
2702
2703 /* keep last */
2704 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
2705 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
2706 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
2707};
2708
2709/*
2710 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
2711 *
2712 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
2713 * a bad packet error rates (PER).
2714 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
2715 * based on beacon misses from the connected AP.
2716 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
2717 * due to poor RSSI of the connected AP.
2718 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
2719 * upon finding a BSSID with a better RSSI than the connected BSSID.
2720 * Here the RSSI of the current BSSID need not be poor.
2721 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
2722 * by triggering a periodic scan to find a better AP to roam.
2723 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
2724 * when the connected channel environment is too noisy/congested.
2725 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
2726 * when BTM Request frame is received from the connected AP.
2727 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
2728 * when the channel utilization is goes above the configured threshold.
2729 *
2730 * Set the corresponding roam trigger reason bit to consider it for roam
2731 * trigger.
2732 * Userspace can set multiple bits and send to the driver. The driver shall
2733 * consider all of them to trigger/initiate a roam scan.
2734 */
2735enum qca_vendor_roam_triggers {
2736 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
2737 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
2738 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
2739 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
2740 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
2741 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
2742 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
2743 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
2744};
2745
2746/**
2747 * enum qca_vendor_attr_roam_candidate_selection_criteria:
2748 *
2749 * Each attribute carries a weightage in percentage (%).
2750 *
2751 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
2752 * Represents the weightage to be given for the RSSI selection
2753 * criteria among other parameters.
2754 *
2755 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
2756 * Represents the weightage to be given for the rate selection
2757 * criteria among other parameters.
2758 *
2759 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
2760 * Represents the weightage to be given for the band width selection
2761 * criteria among other parameters.
2762 *
2763 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
2764 * Represents the weightage to be given for the band selection
2765 * criteria among other parameters.
2766 *
2767 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
2768 * Represents the weightage to be given for the NSS selection
2769 * criteria among other parameters.
2770 *
2771 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
2772 * Represents the weightage to be given for the channel congestion
2773 * selection criteria among other parameters.
2774 *
2775 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
2776 * Represents the weightage to be given for the beamforming selection
2777 * criteria among other parameters.
2778 *
2779 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
2780 * Represents the weightage to be given for the OCE selection
2781 * criteria among other parameters.
2782 */
2783enum qca_vendor_attr_roam_candidate_selection_criteria {
2784 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
2785 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
2786 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
2787 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
2788 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
2789 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
2790 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
2791 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
2792
2793 /* keep last */
2794 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
2795 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
2796 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
2797};
2798
2799/**
2800 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
2801 * The following attributes are used to set/get/clear the respective
2802 * configurations to/from the driver.
2803 * For the get, the attribute for the configuration to be queried shall
2804 * carry any of its acceptable values to the driver. In return, the driver
2805 * shall send the configured values within the same attribute to the user
2806 * space.
2807 *
2808 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
2809 * Signifies to enable/disable roam control in driver.
2810 * 1-enable, 0-disable
2811 * Enable: Mandates the driver to do the further roams using the
2812 * configuration parameters set through
2813 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
2814 * Disable: Disables the driver/firmware roaming triggered through
2815 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
2816 * expected to continue with the default configurations.
2817 *
2818 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
2819 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
2820 * Roam control status is obtained through this attribute.
2821 *
2822 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
2823 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
2824 * is to be cleared in the driver.
2825 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
2826 * and shall be ignored if used with other sub commands.
2827 * If this attribute is specified along with subcmd
2828 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
2829 * all other attributes, if there are any.
2830 * If this attribute is not specified when the subcmd
2831 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
2832 * clear the data corresponding to the attributes specified.
2833 *
2834 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
2835 * list of frequencies and its type, represented by
2836 * enum qca_vendor_attr_scan_freq_list_scheme.
2837 * Frequency list and its type are mandatory for this attribute to set
2838 * the frequencies.
2839 * Frequency type is mandatory for this attribute to get the frequencies
2840 * and the frequency list is obtained through
2841 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
2842 * Frequency list type is mandatory for this attribute to clear the
2843 * frequencies.
2844 *
2845 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
2846 * Carries the value of scan period in seconds to set.
2847 * The value of scan period is obtained with the same attribute for get.
2848 * Clears the scan period in the driver when specified with clear command.
2849 * Scan period is the idle time in seconds between each subsequent
2850 * channel scans.
2851 *
2852 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
2853 * Carries the value of full scan period in seconds to set.
2854 * The value of full scan period is obtained with the same attribute for
2855 * get.
2856 * Clears the full scan period in the driver when specified with clear
2857 * command. Full scan period is the idle period in seconds between two
2858 * successive full channel roam scans.
2859 *
2860 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
2861 * Carries a bitmap of the roam triggers specified in
2862 * enum qca_vendor_roam_triggers.
2863 * The driver shall enable roaming by enabling corresponding roam triggers
2864 * based on the trigger bits sent with this attribute.
2865 * If this attribute is not configured, the driver shall proceed with
2866 * default behavior.
2867 * The bitmap configured is obtained with the same attribute for get.
2868 * Clears the bitmap configured in driver when specified with clear
2869 * command.
2870 *
2871 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
2872 * weightage in percentage (%) to be given for each selection criteria.
2873 * Different roam candidate selection criteria are represented by
2874 * enum qca_vendor_attr_roam_candidate_selection_criteria.
2875 * The driver shall select the roam candidate based on corresponding
2876 * candidate selection scores sent.
2877 *
2878 * An empty nested attribute is used to indicate that no specific
2879 * preference score/criteria is configured (i.e., to disable this mechanism
2880 * in the set case and to show that the mechanism is disabled in the get
2881 * case).
2882 *
2883 * Userspace can send multiple attributes out of this enum to the driver.
2884 * Since this attribute represents the weight/percentage of preference for
2885 * the respective selection criteria, it is preferred to configure 100%
2886 * total weightage. The value in each attribute or cumulative weight of the
2887 * values in all the nested attributes should not exceed 100%. The driver
2888 * shall reject such configuration.
2889 *
2890 * If the weights configured through this attribute are less than 100%,
2891 * the driver shall honor the weights (x%) passed for the corresponding
2892 * selection criteria and choose/distribute rest of the weight (100-x)%
2893 * for the other selection criteria, based on its internal logic.
2894 *
2895 * The selection criteria configured is obtained with the same
2896 * attribute for get.
2897 *
2898 * Clears the selection criteria configured in the driver when specified
2899 * with clear command.
2900 */
2901enum qca_vendor_attr_roam_control {
2902 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
2903 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
2904 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
2905 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
2906 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
2907 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
2908 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
2909 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
2910
2911 /* keep last */
2912 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
2913 QCA_ATTR_ROAM_CONTROL_MAX =
2914 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
2915};
2916
2917/**
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05302918 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
2919 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
Vivek3e5a3ba2017-02-20 18:13:57 +05302920 *
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05302921 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
2922 * Represents the different roam sub commands referred by
Srinivas Dasari30c93402019-08-13 11:45:04 +05302923 * enum qca_wlan_vendor_roaming_subcmd.
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05302924 *
2925 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
2926 * Represents the Request ID for the specific set of commands.
2927 * This also helps to map specific set of commands to the respective
2928 * ID / client. e.g., helps to identify the user entity configuring the
2929 * Blacklist BSSID and accordingly clear the respective ones with the
2930 * matching ID.
2931 *
2932 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
2933 * 32-bit value.Represents the number of whitelist SSIDs configured.
2934 *
2935 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
2936 * to carry the list of Whitelist SSIDs.
2937 *
2938 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
2939 * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
2940 * represent the list of SSIDs to which the firmware/driver can consider
2941 * to roam to.
2942 *
2943 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
2944 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
2945 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
Srinivas Dasari30c93402019-08-13 11:45:04 +05302946 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05302947 *
2948 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
2949 * value, RSSI threshold above which 5GHz RSSI is favored.
2950 *
2951 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
2952 * value, RSSI threshold below which 5GHz RSSI is penalized.
2953 *
2954 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
2955 * value, factor by which 5GHz RSSI is boosted.
2956 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
2957 *
2958 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
2959 * value, factor by which 5GHz RSSI is penalized.
2960 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
2961 *
2962 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
2963 * value, maximum boost that can be applied to a 5GHz RSSI.
2964 *
2965 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
2966 * value, boost applied to current BSSID to ensure the currently
2967 * associated BSSID is favored so as to prevent ping-pong situations.
2968 *
2969 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
2970 * value, RSSI below which "Alert" roam is enabled.
2971 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
2972 * because the RSSI is low, or because many successive beacons have been
2973 * lost or other bad link conditions.
2974 *
2975 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
2976 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
2977 * firmware is hunting for a better BSSID or white listed SSID even though
2978 * the RSSI of the link is good. The parameters enabling the roaming are
2979 * configured through the PARAM_A_BAND_XX attrbutes.
2980 *
2981 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
2982 * represents the BSSIDs preferred over others while evaluating them
2983 * for the roaming.
2984 *
2985 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
2986 * 32-bit value. Represents the number of preferred BSSIDs set.
2987 *
2988 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
2989 * address representing the BSSID to be preferred.
2990 *
2991 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
2992 * 32-bit value, representing the modifier to be applied to the RSSI of
2993 * the BSSID for the purpose of comparing it with other roam candidate.
2994 *
2995 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
2996 * represents the BSSIDs to get blacklisted for roaming.
2997 *
2998 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
2999 * 32-bit value, represents the number of blacklisted BSSIDs.
3000 *
3001 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3002 * address representing the Blacklisted BSSID.
3003 *
3004 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3005 * indicates this BSSID blacklist as a hint to the driver. The driver can
3006 * select this BSSID in the worst case (when no other BSSIDs are better).
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05303007 *
3008 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3009 * set/get/clear the roam control config as
3010 * defined @enum qca_vendor_attr_roam_control.
3011 *
Vivek3e5a3ba2017-02-20 18:13:57 +05303012 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
3013 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
3014 */
3015enum qca_wlan_vendor_attr_roaming_config_params {
3016 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3017
3018 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3019 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3020
3021 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3022 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3023 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3024
3025 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3026 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3027 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3028 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3029 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3030 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3031 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3032
3033 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3034
3035 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3036 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3037 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3038 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3039
3040 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3041 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3042 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
gaurank kathpalia9f525cb2019-05-28 18:21:18 +05303043 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Vivek3e5a3ba2017-02-20 18:13:57 +05303044
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05303045 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3046
Vivek3e5a3ba2017-02-20 18:13:57 +05303047 /* keep last */
3048 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3049 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3050 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3051};
3052
3053/**
Srinivas Dasari30c93402019-08-13 11:45:04 +05303054 * enum qca_wlan_vendor_roaming_subcmd: Referred by
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303055 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
Vivek3e5a3ba2017-02-20 18:13:57 +05303056 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303057 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303058 * configure the white list SSIDs. These are configured through
3059 * the following attributes.
3060 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3061 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3062 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3063 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303064 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303065 * configure the Roam params. These parameters are evaluated on the extscan
3066 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
3067 * params.
3068 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303069 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303070 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3071 * to enable/disable Lazy roam.
3072 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303073 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303074 * preference. Contains the attribute
3075 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3076 * preference.
3077 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303078 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303079 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303080 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303081 * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
3082 * set the same.
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05303083 *
3084 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
3085 * roam control config to the driver with the attribute
3086 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3087 *
3088 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
3089 * roam control config from driver with the attribute
3090 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3091 * For the get, the attribute for the configuration to be queried shall
3092 * carry any of its acceptable value to the driver. In return, the driver
3093 * shall send the configured values within the same attribute to the user
3094 * space.
3095 *
3096 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
3097 * roam control config in the driver with the attribute
3098 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3099 * The driver shall continue with its default roaming behavior when data
3100 * corresponding to an attribute is cleared.
Vivek3e5a3ba2017-02-20 18:13:57 +05303101 */
Srinivas Dasari30c93402019-08-13 11:45:04 +05303102enum qca_wlan_vendor_roaming_subcmd {
3103 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
3104 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
3105 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
3106 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
3107 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
3108 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05303109 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
3110 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
3111 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Vivek3e5a3ba2017-02-20 18:13:57 +05303112};
3113
3114/**
3115 * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
3116 *
3117 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
3118 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
3119 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
3120 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
3121 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
3122 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
3123 */
3124enum qca_wlan_vendor_attr_get_wifi_info {
3125 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3126 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
3127 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
3128 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
3129
3130 /* KEEP LAST */
3131 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3132 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
3133 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3134};
3135
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303136enum qca_wlan_vendor_attr_logger_results {
3137 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3138
3139 /*
3140 * Unsigned 32-bit value; must match the request Id supplied by
3141 * Wi-Fi HAL in the corresponding subcmd NL msg.
3142 */
3143 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3144
3145 /*
3146 * Unsigned 32-bit value; used to indicate the size of memory
3147 * dump to be allocated.
3148 */
3149 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3150
3151 /* keep last */
3152 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3153 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3154 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3155};
3156
3157/**
3158 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3159 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3160 */
3161enum qca_wlan_vendor_channel_prop_flags {
3162 /* Bits 0, 1, 2, and 3 are reserved */
3163
3164 /* Turbo channel */
3165 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
3166 /* CCK channel */
3167 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
3168 /* OFDM channel */
3169 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
3170 /* 2.4 GHz spectrum channel. */
3171 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
3172 /* 5 GHz spectrum channel */
3173 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
3174 /* Only passive scan allowed */
3175 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
3176 /* Dynamic CCK-OFDM channel */
3177 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
3178 /* GFSK channel (FHSS PHY) */
3179 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
3180 /* Radar found on channel */
3181 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
3182 /* 11a static turbo channel only */
3183 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
3184 /* Half rate channel */
3185 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
3186 /* Quarter rate channel */
3187 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
3188 /* HT 20 channel */
3189 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
3190 /* HT 40 with extension channel above */
3191 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
3192 /* HT 40 with extension channel below */
3193 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
3194 /* HT 40 intolerant */
3195 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
3196 /* VHT 20 channel */
3197 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
3198 /* VHT 40 with extension channel above */
3199 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
3200 /* VHT 40 with extension channel below */
3201 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
3202 /* VHT 80 channel */
3203 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
3204 /* HT 40 intolerant mark bit for ACS use */
3205 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3206 /* Channel temporarily blocked due to noise */
3207 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
3208 /* VHT 160 channel */
3209 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
3210 /* VHT 80+80 channel */
3211 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Krishna Raoddd81ae2017-09-23 14:54:24 +05303212 /* HE 20 channel */
3213 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
3214 /* HE 40 with extension channel above */
3215 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
3216 /* HE 40 with extension channel below */
3217 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
3218 /* HE 40 intolerant */
3219 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
3220};
3221
3222/**
3223 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3224 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3225 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3226 */
3227enum qca_wlan_vendor_channel_prop_flags_2 {
3228 /* HE 40 intolerant mark bit for ACS use */
3229 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3230 /* HE 80 channel */
3231 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
3232 /* HE 160 channel */
3233 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
3234 /* HE 80+80 channel */
3235 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303236};
3237
3238/**
3239 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3240 * each channel. This is used by
3241 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3242 */
3243enum qca_wlan_vendor_channel_prop_flags_ext {
3244 /* Radar found on channel */
3245 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
3246 /* DFS required on channel */
3247 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
3248 /* DFS required on channel for 2nd band of 80+80 */
3249 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
3250 /* If channel has been checked for DFS */
3251 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
3252 /* Excluded in 802.11d */
3253 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
3254 /* Channel Switch Announcement received on this channel */
3255 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
3256 /* Ad-hoc is not allowed */
3257 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
3258 /* Station only channel */
3259 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3260 /* DFS radar history for slave device (STA mode) */
3261 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
3262 /* DFS CAC valid for slave device (STA mode) */
3263 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
3264};
3265
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303266/**
3267 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3268 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3269 * information to start/stop the NUD statistics collection.
3270 */
3271enum qca_attr_nud_stats_set {
3272 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
3273
3274 /*
3275 * Flag to start/stop the NUD statistics collection.
3276 * Start - If included, Stop - If not included
3277 */
3278 QCA_ATTR_NUD_STATS_SET_START = 1,
3279 /* IPv4 address of the default gateway (in network byte order) */
3280 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Poddar, Siddarth69744982018-01-22 13:08:23 +05303281 /*
3282 * Represents the data packet type to be monitored.
3283 * Host driver tracks the stats corresponding to each data frame
3284 * represented by these flags.
3285 * These data packets are represented by
3286 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
3287 */
3288 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303289 /* keep last */
3290 QCA_ATTR_NUD_STATS_SET_LAST,
3291 QCA_ATTR_NUD_STATS_SET_MAX =
3292 QCA_ATTR_NUD_STATS_SET_LAST - 1,
3293};
3294
3295/**
Poddar, Siddarth69744982018-01-22 13:08:23 +05303296 * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
3297 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3298 * information to start / stop the NUD stats collection.
3299 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
3300 * Bitmap to Flag to Start / Stop the NUD stats collection
3301 * Start - If included , Stop - If not included
3302 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
3303 * IPv4 address of Default Gateway (in network byte order)
3304 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3305 * information to start / stop the NUD stats collection.
3306 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
3307 * Flag to Start / Stop the NUD stats collection
3308 * Start - If included , Stop - If not included
3309 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
3310 * IPv4 address of Default Gateway (in network byte order)
3311 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3312 * information to start / stop the NUD stats collection.
3313 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
3314 * Flag to Start / Stop the NUD stats collection
3315 * Start - If included , Stop - If not included
3316 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
3317 * IPv4 address of Default Gateway (in network byte order)
3318 */
3319enum qca_attr_connectivity_check_stats_set {
3320 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
3321 QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
3322 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
3323 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
3324 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
3325 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
3326 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
3327 /* keep last */
3328 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
3329 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
3330 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
3331};
3332
3333/**
3334 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
3335 * data types for which the stats have to get collected.
3336 */
3337enum qca_wlan_vendor_connectivity_check_pkt_flags {
3338 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
3339 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
3340 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
3341 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
3342 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
3343 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
3344 * to represent the stats of respective data type.
3345 */
3346 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
3347 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
3348 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
3349};
3350
3351enum qca_attr_connectivity_check_stats {
3352 QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
3353 /* Data packet type for which the stats are collected.
3354 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
3355 */
3356 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
3357 /* ID corresponding to the DNS frame for which the respective DNS stats
3358 * are monitored (u32).
3359 */
3360 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
3361 /* source / destination port on which the respective proto stats are
3362 * collected (u32).
3363 */
3364 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
3365 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
3366 /* IPv4/IPv6 address for which the destined data packets are
3367 * monitored. (in network byte order)
3368 */
3369 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
3370 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
3371 /* Data packet Request count received from netdev */
3372 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
3373 /* Data packet Request count sent to lower MAC from upper MAC */
3374 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
3375 /* Data packet Request count received by lower MAC from upper MAC */
3376 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
3377 /* Data packet Request count successfully transmitted by the device */
3378 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
3379 /* Data packet Response count received by lower MAC */
3380 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
3381 /* Data packet Response count received by upper MAC */
3382 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
3383 /* Data packet Response count delivered to netdev */
3384 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
3385 /* Data Packet Response count that are dropped out of order */
3386 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
3387
3388 /* keep last */
3389 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
3390 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
3391 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
3392};
3393
3394/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303395 * qca_attr_nud_stats_get: Attributes to vendor subcmd
3396 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
3397 * NUD statistics collected when queried.
3398 */
3399enum qca_attr_nud_stats_get {
3400 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
3401 /* ARP Request count from netdev */
3402 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
3403 /* ARP Request count sent to lower MAC from upper MAC */
3404 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
3405 /* ARP Request count received by lower MAC from upper MAC */
3406 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
3407 /* ARP Request count successfully transmitted by the device */
3408 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
3409 /* ARP Response count received by lower MAC */
3410 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
3411 /* ARP Response count received by upper MAC */
3412 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
3413 /* ARP Response count delivered to netdev */
3414 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
3415 /* ARP Response count delivered to netdev */
3416 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
3417 /*
3418 * Flag indicating if the station's link to the AP is active.
3419 * Active Link - If included, Inactive link - If not included
3420 */
3421 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
3422 /*
3423 * Flag indicating if there is any duplicate address detected (DAD).
3424 * Yes - If detected, No - If not detected.
3425 */
3426 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Poddar, Siddarth69744982018-01-22 13:08:23 +05303427 /*
3428 * List of Data types for which the stats are requested.
3429 * This list does not carry ARP stats as they are done by the
3430 * above attributes. Represented by enum qca_attr_nud_data_stats.
3431 */
3432 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303433 /* keep last */
3434 QCA_ATTR_NUD_STATS_GET_LAST,
3435 QCA_ATTR_NUD_STATS_GET_MAX =
3436 QCA_ATTR_NUD_STATS_GET_LAST - 1,
3437};
3438
3439enum qca_wlan_btm_candidate_status {
3440 QCA_STATUS_ACCEPT = 0,
3441 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
3442 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
3443 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
3444 QCA_STATUS_REJECT_LOW_RSSI = 4,
3445 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
3446 QCA_STATUS_REJECT_UNKNOWN = 6,
3447};
3448
3449enum qca_wlan_vendor_attr_btm_candidate_info {
3450 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
3451
3452 /* 6-byte MAC address representing the BSSID of transition candidate */
3453 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
3454 /*
3455 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
3456 * returned by the driver. It says whether the BSSID provided in
3457 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
3458 * the driver, if not it specifies the reason for rejection.
3459 * Note that the user-space can overwrite the transition reject reason
3460 * codes provided by driver based on more information.
3461 */
3462 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
3463
3464 /* keep last */
3465 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
3466 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
3467 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
3468};
3469
3470enum qca_attr_trace_level {
3471 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
3472 /*
3473 * Nested array of the following attributes:
3474 * QCA_ATTR_TRACE_LEVEL_MODULE,
3475 * QCA_ATTR_TRACE_LEVEL_MASK.
3476 */
3477 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
3478 /*
3479 * Specific QCA host driver module. Please refer to the QCA host
3480 * driver implementation to get the specific module ID.
3481 */
3482 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
3483 /* Different trace level masks represented in the QCA host driver. */
3484 QCA_ATTR_TRACE_LEVEL_MASK = 3,
3485
3486 /* keep last */
3487 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
3488 QCA_ATTR_TRACE_LEVEL_MAX =
3489 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
3490};
3491
Vivek3e5a3ba2017-02-20 18:13:57 +05303492/**
3493 * enum qca_wlan_vendor_attr_get_logger_features - value for logger
3494 * supported features
3495 * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
3496 * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
3497 * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
3498 * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
3499 *
3500 * enum values are used for NL attributes for data used by
3501 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
3502 */
3503enum qca_wlan_vendor_attr_get_logger_features {
3504 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
3505 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
3506
3507 /* keep last */
3508 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
3509 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
3510 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
3511};
3512
3513/**
3514 * enum qca_wlan_vendor_attr_link_properties - link properties
3515 *
3516 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
3517 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
3518 * specify the number of spatial streams negotiated
3519 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
3520 * to specify negotiated rate flags i.e. ht, vht and channel width
3521 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
3522 * specify the operating frequency
Ashish Kumar Dhanotiya38a0c9f2018-01-19 20:17:02 +05303523 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
3524 * (STA / AP ) for the connected link.
3525 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
3526 * &struct nl80211_sta_flag_update for the respective connected link. MAC
3527 * address of the peer represented by
3528 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
Vivek3e5a3ba2017-02-20 18:13:57 +05303529 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
3530 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
3531 */
3532enum qca_wlan_vendor_attr_link_properties {
3533 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
3534 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
3535 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
3536 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
Ashish Kumar Dhanotiya38a0c9f2018-01-19 20:17:02 +05303537 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
3538 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
Vivek3e5a3ba2017-02-20 18:13:57 +05303539
3540 /* KEEP LAST */
3541 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
3542 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
3543 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
3544};
3545
3546/**
3547 * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
3548 *
3549 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
3550 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
3551 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
3552 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
3553 *
3554 * enum values are used for NL attributes for data used by
3555 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
3556 */
3557enum qca_wlan_vendor_attr_nd_offload {
3558 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
3559 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
3560
3561 /* Keep last */
3562 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
3563 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
3564 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
3565};
3566
3567/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303568 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
3569 *
Vivek3e5a3ba2017-02-20 18:13:57 +05303570 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303571 * management offload, a mechanism where the station's firmware
3572 * does the exchange with the AP to establish the temporal keys
3573 * after roaming, rather than having the user space wpa_supplicant do it.
3574 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
3575 * band selection based on channel selection results.
Vivek3e5a3ba2017-02-20 18:13:57 +05303576 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303577 * simultaneous off-channel operations.
3578 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
3579 * Listen offload; a mechanism where the station's firmware takes care of
3580 * responding to incoming Probe Request frames received from other P2P
3581 * Devices whilst in Listen state, rather than having the user space
3582 * wpa_supplicant do it. Information from received P2P requests are
3583 * forwarded from firmware to host whenever the host processor wakes up.
yeshwanth sriram guntuka8bdb0692017-07-18 13:30:42 +05303584 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303585 * specific features.
yeshwanth sriram guntuka8bdb0692017-07-18 13:30:42 +05303586 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
3587 * features.
3588 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
3589 * specific features only. If a Device sets this bit but not the
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303590 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
yeshwanth sriram guntuka8bdb0692017-07-18 13:30:42 +05303591 * this Device may not support all OCE AP functionalities but can support
3592 * only OCE STA-CFON functionalities.
Kiran Kumar Lokere76da7992018-04-23 18:47:04 -07003593 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
3594 * managed regulatory.
Ashish Kumar Dhanotiya50400f92019-03-27 14:56:42 +05303595 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303596 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
3597 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Pankaj Singh1e0b3242020-01-20 18:42:52 +05303598 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
3599 * and applying thermal configuration through
3600 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
3601 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
3602 * userspace.
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303603 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
Vivek3e5a3ba2017-02-20 18:13:57 +05303604 */
3605enum qca_wlan_vendor_features {
3606 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
3607 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
3608 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303609 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
yeshwanth sriram guntuka8bdb0692017-07-18 13:30:42 +05303610 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
3611 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
3612 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Kiran Kumar Lokere76da7992018-04-23 18:47:04 -07003613 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Ashish Kumar Dhanotiya50400f92019-03-27 14:56:42 +05303614 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303615 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
3616 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Pankaj Singh1e0b3242020-01-20 18:42:52 +05303617 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303618
3619 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
Vivek3e5a3ba2017-02-20 18:13:57 +05303620};
3621
3622/**
3623 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
3624 * conditional channel switch
3625 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
3626 * value
3627 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
3628 * frequency list (an array of u32 values in host byte order)
3629 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
3630 * conditional switch (u32)- 0: Success, Non-zero: Failure
3631 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
3632 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
3633 */
3634enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
3635 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
3636 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
3637 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
3638
3639 /* Keep Last */
3640 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
3641 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
3642 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
3643};
3644
3645/**
3646 * enum wifi_logger_supported_features - values for supported logger features
Srinivas Girigowdace25ca32018-01-22 17:44:55 -08003647 * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
3648 * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
3649 * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
3650 * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
3651 * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
3652 * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
3653 * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
3654 * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
Vivek3e5a3ba2017-02-20 18:13:57 +05303655 */
3656enum wifi_logger_supported_features {
3657 WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
3658 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
3659 WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
3660 WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
3661 WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
3662 WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
3663 WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
Srinivas Girigowdace25ca32018-01-22 17:44:55 -08003664 WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
3665 WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
Vivek3e5a3ba2017-02-20 18:13:57 +05303666};
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303667
Vivek3e5a3ba2017-02-20 18:13:57 +05303668/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303669 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
3670 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
Vivek3e5a3ba2017-02-20 18:13:57 +05303671 *
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303672 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
3673 * Used with event to notify the primary channel number selected in ACS
3674 * operation.
3675 * Note: If both the driver and user-space application supports the 6 GHz band,
3676 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
3677 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
3678 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
3679 * is still used if either of the driver or user space application doesn't
3680 * support the 6 GHz band.
3681 *
3682 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
3683 * Used with event to notify the secondary channel number selected in ACS
3684 * operation.
3685 * Note: If both the driver and user-space application supports the 6 GHz band,
3686 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
3687 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
3688 * To maintain backward compatibility,
3689 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
3690 * the driver or user space application doesn't support 6 GHz band.
3691 *
3692 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
3693 * (a) Used with command to configure hw_mode from
3694 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
3695 * (b) Also used with event to notify the hw_mode of selected primary channel
3696 * in ACS operation.
3697 *
3698 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
3699 * Used with command to configure ACS operation for HT mode.
3700 * Disable (flag attribute not present) - HT disabled and
3701 * Enable (flag attribute present) - HT enabled.
3702 *
3703 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
3704 * Used with command to configure ACS operation for HT40 mode.
3705 * Disable (flag attribute not present) - HT40 disabled and
3706 * Enable (flag attribute present) - HT40 enabled.
3707 *
3708 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
3709 * Used with command to configure ACS operation for VHT mode.
3710 * Disable (flag attribute not present) - VHT disabled and
3711 * Enable (flag attribute present) - VHT enabled.
3712 *
3713 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
3714 * mandatory with event.
3715 * If specified in command path, ACS operation is configured with the given
3716 * channel width (in MHz).
3717 * In event path, specifies the channel width of the primary channel selected.
3718 *
3719 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
3720 * Used with command to configure channel list using an array of
3721 * channel numbers (u8).
3722 * Note: If both the driver and user-space application supports the 6 GHz band,
3723 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
3724 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
3725 *
3726 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
3727 * Used with event to notify the VHT segment 0 center channel number selected in
3728 * ACS operation.
3729 * Note: If both the driver and user-space application supports the 6 GHz band,
3730 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
3731 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
3732 * To maintain backward compatibility,
3733 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
3734 * the driver or user space application doesn't support the 6 GHz band.
3735 *
3736 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
3737 * Used with event to notify the VHT segment 1 center channel number selected in
3738 * ACS operation.
3739 * Note: If both the driver and user-space application supports the 6 GHz band,
3740 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
3741 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
3742 * To maintain backward compatibility,
3743 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
3744 * the driver or user space application doesn't support the 6 GHz band.
3745 *
3746 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
3747 * Used with command to configure the channel list using an array of channel
3748 * center frequencies in MHz (u32).
3749 * Note: If both the driver and user-space application supports the 6 GHz band,
3750 * the driver first parses the frequency list and if it fails to get a frequency
3751 * list, parses the channel list specified using
3752 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
3753 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
3754 *
3755 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
3756 * Used with event to notify the primary channel center frequency (MHz) selected
3757 * in ACS operation.
3758 * Note: If the driver supports the 6 GHz band, the event sent from the driver
3759 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
3760 *
3761 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
3762 * Used with event to notify the secondary channel center frequency (MHz)
3763 * selected in ACS operation.
3764 * Note: If the driver supports the 6 GHz band, the event sent from the driver
3765 * includes this attribute along with
3766 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
3767 *
3768 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
3769 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
3770 * selected in ACS operation.
3771 * Note: If the driver supports the 6 GHz band, the event sent from the driver
3772 * includes this attribute along with
3773 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
3774 *
3775 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
3776 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
3777 * selected in ACS operation.
3778 * Note: If the driver supports the 6 GHz band, the event sent from the driver
3779 * includes this attribute along with
3780 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Vivek3e5a3ba2017-02-20 18:13:57 +05303781 */
3782enum qca_wlan_vendor_attr_acs_offload {
3783 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303784 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
3785 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
3786 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
3787 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
3788 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
3789 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
3790 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
3791 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
3792 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
3793 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
3794 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
3795 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
3796 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
3797 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
3798 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
3799
Vivek3e5a3ba2017-02-20 18:13:57 +05303800 /* keep last */
3801 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
3802 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303803 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
Vivek3e5a3ba2017-02-20 18:13:57 +05303804};
3805
3806/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303807 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
3808 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
Vivek3e5a3ba2017-02-20 18:13:57 +05303809 *
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303810 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
3811 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
3812 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
3813 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
3814 * @QCA_ACS_MODE_IEEE80211ANY: all modes
3815 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
Vivek3e5a3ba2017-02-20 18:13:57 +05303816 */
3817enum qca_wlan_vendor_acs_hw_mode {
3818 QCA_ACS_MODE_IEEE80211B,
3819 QCA_ACS_MODE_IEEE80211G,
3820 QCA_ACS_MODE_IEEE80211A,
3821 QCA_ACS_MODE_IEEE80211AD,
3822 QCA_ACS_MODE_IEEE80211ANY,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303823 QCA_ACS_MODE_IEEE80211AX,
Vivek3e5a3ba2017-02-20 18:13:57 +05303824};
3825
3826/**
3827 * enum qca_access_policy - access control policy
3828 *
3829 * Access control policy is applied on the configured IE
3830 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
3831 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
3832 *
3833 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
3834 *» with the specific configuration (IE) set, i.e. allow all the
3835 *» connections which do not match the configuration.
3836 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
3837 *» with the specific configuration (IE) set, i.e. deny all the
3838 *» connections which do not match the configuration.
3839 */
3840enum qca_access_policy {
3841 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
3842 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
3843};
3844
3845/**
3846 * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
3847 *
3848 * The valid values for the ignore assoc disallowed
3849 *
3850 * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
3851 * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
3852 *
3853 */
3854enum qca_ignore_assoc_disallowed {
3855 QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
3856 QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
3857};
3858
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303859/* Attributes for data used by
3860 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
3861 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Vivek3e5a3ba2017-02-20 18:13:57 +05303862 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303863enum qca_wlan_vendor_attr_config {
Vivek3e5a3ba2017-02-20 18:13:57 +05303864 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303865 /*
3866 * Unsigned 32-bit value to set the DTIM period.
3867 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
3868 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
3869 * DTIM beacons.
3870 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303871 QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303872 /*
3873 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
3874 * used to calculate statistics like average the TSF offset or average
3875 * number of frame leaked.
3876 * For instance, upon Beacon frame reception:
3877 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
3878 * For instance, when evaluating leaky APs:
3879 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
3880 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303881 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303882 /*
3883 * Unsigned 32-bit value to configure guard time, i.e., when
3884 * implementing IEEE power management based on frame control PM bit, how
3885 * long the driver waits before shutting down the radio and after
3886 * receiving an ACK frame for a Data frame with PM bit set.
3887 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303888 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303889 /* Unsigned 32-bit value to change the FTM capability dynamically */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303890 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
3891 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
3892 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303893 /*
3894 * Unsigned 32-bit value to configure the number of continuous
3895 * Beacon Miss which shall be used by the firmware to penalize
3896 * the RSSI.
3897 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303898 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303899 /*
3900 * Unsigned 8-bit value to configure the channel avoidance indication
3901 * behavior. Firmware to send only one indication and ignore duplicate
3902 * indications when set to avoid multiple Apps wakeups.
3903 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303904 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303905 /*
3906 * 8-bit unsigned value to configure the maximum TX MPDU for
3907 * aggregation.
3908 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303909 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303910 /*
3911 * 8-bit unsigned value to configure the maximum RX MPDU for
3912 * aggregation.
3913 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303914 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303915 /*
3916 * 8-bit unsigned value to configure the Non aggregrate/11g sw
Vivek3e5a3ba2017-02-20 18:13:57 +05303917 * retry threshold (0 disable, 31 max).
3918 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303919 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303920 /*
3921 * 8-bit unsigned value to configure the aggregrate sw
Vivek3e5a3ba2017-02-20 18:13:57 +05303922 * retry threshold (0 disable, 31 max).
3923 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303924 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303925 /*
3926 * 8-bit unsigned value to configure the MGMT frame
Vivek3e5a3ba2017-02-20 18:13:57 +05303927 * retry threshold (0 disable, 31 max).
3928 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303929 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303930 /*
3931 * 8-bit unsigned value to configure the CTRL frame
Vivek3e5a3ba2017-02-20 18:13:57 +05303932 * retry threshold (0 disable, 31 max).
3933 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303934 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303935 /*
3936 * 8-bit unsigned value to configure the propagation delay for
Vivek3e5a3ba2017-02-20 18:13:57 +05303937 * 2G/5G band (0~63, units in us)
3938 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303939 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303940 /*
3941 * Unsigned 32-bit value to configure the number of unicast TX fail
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303942 * packet count. The peer is disconnected once this threshold is
3943 * reached.
3944 */
3945 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303946 /*
3947 * Attribute used to set scan default IEs to the driver.
Vivek3e5a3ba2017-02-20 18:13:57 +05303948 *
3949 * These IEs can be used by scan operations that will be initiated by
3950 * the driver/firmware.
3951 *
3952 * For further scan requests coming to the driver, these IEs should be
3953 * merged with the IEs received along with scan request coming to the
3954 * driver. If a particular IE is present in the scan default IEs but not
3955 * present in the scan request, then that IE should be added to the IEs
3956 * sent in the Probe Request frames for that scan request.
3957 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303958 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Vivek3e5a3ba2017-02-20 18:13:57 +05303959 /* Unsigned 32-bit attribute for generic commands */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303960 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Vivek3e5a3ba2017-02-20 18:13:57 +05303961 /* Unsigned 32-bit value attribute for generic commands */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303962 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Vivek3e5a3ba2017-02-20 18:13:57 +05303963 /* Unsigned 32-bit data attribute for generic command response */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303964 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303965 /*
3966 * Unsigned 32-bit length attribute for
Vivek3e5a3ba2017-02-20 18:13:57 +05303967 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
3968 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303969 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303970 /*
3971 * Unsigned 32-bit flags attribute for
Vivek3e5a3ba2017-02-20 18:13:57 +05303972 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
3973 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303974 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303975 /*
3976 * Unsigned 32-bit, defining the access policy.
Vivek3e5a3ba2017-02-20 18:13:57 +05303977 * See enum qca_access_policy. Used with
3978 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
3979 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303980 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303981 /*
3982 * Sets the list of full set of IEs for which a specific access policy
Vivek3e5a3ba2017-02-20 18:13:57 +05303983 * has to be applied. Used along with
3984 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
3985 * Zero length payload can be used to clear this access constraint.
3986 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303987 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303988 /*
3989 * Unsigned 32-bit, specifies the interface index (netdev) for which the
Vivek3e5a3ba2017-02-20 18:13:57 +05303990 * corresponding configurations are applied. If the interface index is
3991 * not specified, the configurations are attributed to the respective
3992 * wiphy.
3993 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303994 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303995 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Vivek3e5a3ba2017-02-20 18:13:57 +05303996 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303997 /*
3998 * 8-bit unsigned value to configure the driver and below layers to
3999 * ignore the assoc disallowed set by APs while connecting
4000 * 1-Ignore, 0-Don't ignore
4001 */
Vivek3e5a3ba2017-02-20 18:13:57 +05304002 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304003 /*
4004 * 32-bit unsigned value to trigger antenna diversity features:
4005 * 1-Enable, 0-Disable
4006 */
4007 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
4008 /* 32-bit unsigned value to configure specific chain antenna */
4009 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
4010 /*
4011 * 32-bit unsigned value to trigger cycle selftest
4012 * 1-Enable, 0-Disable
4013 */
4014 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
4015 /*
4016 * 32-bit unsigned to configure the cycle time of selftest
4017 * the unit is micro-second
4018 */
4019 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
4020 /* 32-bit unsigned value to set reorder timeout for AC_VO */
4021 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
4022 /* 32-bit unsigned value to set reorder timeout for AC_VI */
4023 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
4024 /* 32-bit unsigned value to set reorder timeout for AC_BE */
4025 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
4026 /* 32-bit unsigned value to set reorder timeout for AC_BK */
4027 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
4028 /* 6-byte MAC address to point out the specific peer */
4029 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
4030 /* 32-bit unsigned value to set window size for specific peer */
4031 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
4032 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
4033 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
4034 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
4035 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
4036 /*
4037 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
4038 * station device while in disconnect state. The attribute use the
4039 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
4040 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
4041 * 10 MHz channel width, the station will not connect to a BSS using 20
4042 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
4043 * clear this constraint.
4044 */
4045 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
4046 /*
4047 * 32-bit unsigned value to configure the propagation absolute delay
4048 * for 2G/5G band (units in us)
4049 */
Zhang Qianb83f9e72017-04-17 13:04:33 +08004050 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304051 /* 32-bit unsigned value to set probe period */
4052 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
4053 /* 32-bit unsigned value to set stay period */
4054 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
4055 /* 32-bit unsigned value to set snr diff */
4056 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
4057 /* 32-bit unsigned value to set probe dwell time */
4058 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
4059 /* 32-bit unsigned value to set mgmt snr weight */
4060 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
4061 /* 32-bit unsigned value to set data snr weight */
4062 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
4063 /* 32-bit unsigned value to set ack snr weight */
4064 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
Ajit Pal Singh83eddc52017-05-23 16:22:05 +05304065 /*
Mukul Sharma7d978532017-05-17 17:14:08 +05304066 * 32-bit unsigned value to configure the listen interval.
4067 * This is in units of beacon intervals. This configuration alters
4068 * the negotiated listen interval with the AP during the connection.
4069 * It is highly recommended to configure a value less than or equal to
4070 * the one negotiated during the association. Configuring any greater
4071 * value can have adverse effects (frame loss, AP disassociating STA,
4072 * etc.).
4073 */
4074 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
4075 /*
Ajit Pal Singh83eddc52017-05-23 16:22:05 +05304076 * 8 bit unsigned value that is set on an AP/GO virtual interface to
4077 * disable operations that would cause the AP/GO to leave its operating
4078 * channel.
4079 *
4080 * This will restrict the scans to the AP/GO operating channel and the
4081 * channels of the other band, if DBS is supported.A STA/CLI interface
4082 * brought up after this setting is enabled, will be restricted to
4083 * connecting to devices only on the AP/GO interface's operating channel
4084 * or on the other band in DBS case. P2P supported channel list is
4085 * modified, to only include AP interface's operating-channel and the
4086 * channels of the other band if DBS is supported.
4087 *
4088 * These restrictions are only applicable as long as the AP/GO interface
4089 * is alive. If the AP/GO interface is brought down then this
4090 * setting/restriction is forgotten.
4091 *
4092 * If this variable is set on an AP/GO interface while a multi-channel
4093 * concurrent session is active, it has no effect on the operation of
4094 * the current interfaces, other than restricting the scan to the AP/GO
4095 * operating channel and the other band channels if DBS is supported.
4096 * However, if the STA is brought down and restarted then the new STA
4097 * connection will either be formed on the AP/GO channel or on the
4098 * other band in a DBS case. This is because of the scan being
4099 * restricted on these channels as mentioned above.
4100 *
4101 * 1-Disable offchannel operations, 0-Enable offchannel operations.
4102 */
4103 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
Zhang Qianb83f9e72017-04-17 13:04:33 +08004104
Sandeep Puligilla4296edb2017-10-14 00:41:44 -07004105 /*
Poddar, Siddarth0a174212017-10-30 14:42:05 +05304106 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
4107 * on an interface.
4108 * 1 - Enable , 0 - Disable.
4109 */
4110 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
4111
4112 /*
Sandeep Puligilla4296edb2017-10-14 00:41:44 -07004113 * 8 bit unsigned value to globally enable/disable scan
4114 * 1 - Enable, 0 - Disable.
4115 */
4116 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
4117
Nachiket Kukade6e3ecc02017-07-28 19:24:11 +05304118 /* 8-bit unsigned value to set the total beacon miss count */
4119 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
4120
Vignesh Viswanathan3c11bdd2017-10-30 18:13:55 +05304121 /*
4122 * Unsigned 32-bit value to configure the number of continuous
4123 * Beacon Miss which shall be used by the firmware to penalize
4124 * the RSSI for BTC.
4125 */
4126 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
4127
4128 /*
4129 * 8-bit unsigned value to configure the driver and below layers to
4130 * enable/disable all fils features.
4131 * 0-enable, 1-disable
4132 */
4133 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
4134
Paul Zhangd6d16352017-12-08 16:08:00 +08004135 /* 16-bit unsigned value to configure the level of WLAN latency
4136 * module. See enum qca_wlan_vendor_attr_config_latency_level.
4137 */
4138 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
4139
Abhishek Singhd4212c22017-12-20 15:01:00 +05304140 /*
4141 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
4142 * the connect interface. Exclusively used for the scenarios where the
4143 * device is used as a test bed device with special functionality and
4144 * not recommended for production. This helps driver to not validate the
4145 * RSNE passed from user space and thus allow arbitrary IE data to be
4146 * used for testing purposes.
4147 * 1-enable, 0-disable.
4148 * Applications set/reset this configuration. If not reset, this
4149 * parameter remains in use until the driver is unloaded.
4150 */
4151 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
4152
Ashish Kumar Dhanotiya6f00d692018-06-15 11:35:41 +05304153 /*
4154 * 8-bit unsigned value to trigger green Tx power saving.
4155 * 1-Enable, 0-Disable
4156 */
4157 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
4158
Srinivas Dasarif4667d42019-07-01 16:22:13 +05304159 /*
4160 * Attribute to configure disconnect IEs to the driver.
4161 * This carries an array of unsigned 8-bit characters.
4162 *
4163 * If this is configured, driver shall fill the IEs in disassoc/deauth
4164 * frame.
4165 * These IEs are expected to be considered only for the next
4166 * immediate disconnection (disassoc/deauth frame) originated by
4167 * the DUT, irrespective of the entity (user space/driver/firmware)
4168 * triggering the disconnection.
4169 * The host drivers are not expected to use the IEs set through
4170 * this interface for further disconnections after the first immediate
4171 * disconnection initiated post the configuration.
4172 * If the IEs are also updated through cfg80211 interface (after the
4173 * enhancement to cfg80211_disconnect), host driver is expected to
4174 * take the union of IEs from both of these interfaces and send in
4175 * further disassoc/deauth frames.
4176 */
4177 QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES = 58,
4178
Paul Zhange1b64ab2019-06-23 22:11:11 +08004179 /* 8-bit unsigned value for ELNA bypass.
4180 * 1-Enable, 0-Disable
4181 */
4182 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
4183
Vivek3e5a3ba2017-02-20 18:13:57 +05304184 /* keep last */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304185 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
Vivek3e5a3ba2017-02-20 18:13:57 +05304186 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304187 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05304188};
4189
4190/**
4191 * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
4192 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
4193 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
4194 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
4195 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
4196 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
4197 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
4198 */
4199enum qca_wlan_vendor_attr_wifi_logger_start {
4200 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4201 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4202 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4203 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4204 /* keep last */
4205 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4206 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
4207 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4208};
4209
4210/*
4211 * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
4212 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
4213 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
4214 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
4215 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
4216 */
4217enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
4218 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
4219 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
4220 /* keep last */
4221 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
4222 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
4223 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
4224};
4225
4226#ifdef WLAN_FEATURE_OFFLOAD_PACKETS
4227/**
4228 * enum wlan_offloaded_packets_control - control commands
4229 * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
4230 * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
4231 *
4232 */
4233enum wlan_offloaded_packets_control {
4234 WLAN_START_OFFLOADED_PACKETS = 1,
4235 WLAN_STOP_OFFLOADED_PACKETS = 2
4236};
4237
4238/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304239 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
4240 *
4241 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
4242 * the offloaded data.
4243 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
4244 * data.
4245 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
4246 * indication.
4247 */
4248enum qca_wlan_vendor_attr_data_offload_ind {
4249 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
4250 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
4251 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
4252 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
4253
4254 /* keep last */
4255 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
4256 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
4257 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
4258};
4259
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304260
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304261/**
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304262 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
4263 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
Vivek3e5a3ba2017-02-20 18:13:57 +05304264 */
4265enum qca_wlan_vendor_attr_offloaded_packets {
4266 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304267 /*
4268 * Takes valid value from the enum
4269 * qca_wlan_offloaded_packets_sending_control
4270 * Unsigned 32-bit value
4271 **/
Vivek3e5a3ba2017-02-20 18:13:57 +05304272 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304273 /* Unsigned 32-bit value */
Vivek3e5a3ba2017-02-20 18:13:57 +05304274 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304275 /* array of u8 len: Max packet size */
Vivek3e5a3ba2017-02-20 18:13:57 +05304276 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304277 /* 6-byte MAC address used to represent source MAC address */
Vivek3e5a3ba2017-02-20 18:13:57 +05304278 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304279 /* 6-byte MAC address used to represent destination MAC address */
Vivek3e5a3ba2017-02-20 18:13:57 +05304280 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304281 /* Unsigned 32-bit value, in milli seconds */
Vivek3e5a3ba2017-02-20 18:13:57 +05304282 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304283 /*
4284 * This attribute is used and optional for specifying
4285 * ethernet protocol type, if not specified it will default to ipv4
4286 * Unsigned 16-bit value
4287 **/
4288 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Vivek3e5a3ba2017-02-20 18:13:57 +05304289
4290 /* keep last */
4291 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
4292 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
4293 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
4294};
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304295
Vivek3e5a3ba2017-02-20 18:13:57 +05304296#endif
4297
4298/**
4299 * enum qca_wlan_rssi_monitoring_control - rssi control commands
4300 * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
4301 * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
4302 * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
4303 */
4304enum qca_wlan_rssi_monitoring_control {
4305 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
4306 QCA_WLAN_RSSI_MONITORING_START,
4307 QCA_WLAN_RSSI_MONITORING_STOP,
4308};
4309
4310/**
4311 * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
4312 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
4313 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
4314 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
4315 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
4316 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
4317 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
4318 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
4319 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
4320 */
4321enum qca_wlan_vendor_attr_rssi_monitoring {
4322 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
4323
4324 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
4325 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
4326
4327 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
4328 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
4329
4330 /* attributes to be used/received in callback */
4331 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
4332 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
4333
4334 /* keep last */
4335 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
4336 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
4337 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
4338};
4339
4340/**
Naveen Rawat6b44ef32018-05-09 11:09:41 -07004341 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
4342 * QCA_NL80211_VENDOR_SUBCMD_NDP.
4343 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
4344 * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
4345 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
4346 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
4347 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
4348 * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
4349 * address
4350 * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
4351 * created
4352 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
4353 * NCS_SK_TYPE/PMK/SCID instead
4354 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
4355 * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
4356 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
4357 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
4358 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
4359 * code: accept/reject
4360 * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
4361 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
4362 * driver
4363 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
4364 * driver
4365 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
4366 * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
4367 * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
4368 * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
4369 * PMKID
4370 * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
4371 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
4372 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
4373 * update:
4374 * BIT_0: NSS Update
4375 * BIT_1: Channel list update
4376 * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
4377 * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
4378 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
4379 * 0:20 MHz,
4380 * 1:40 MHz,
4381 * 2:80 MHz,
4382 * 3:160 MHz
4383 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
4384 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
4385 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
Naveen Rawat46f13622018-05-17 14:45:45 -07004386 * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
4387 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
4388 * transport port used by NDP.
4389 * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
4390 * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
4391 * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
Naveen Rawat6b44ef32018-05-09 11:09:41 -07004392*/
4393enum qca_wlan_vendor_attr_ndp_params {
4394 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
Naveen Rawat46f13622018-05-17 14:45:45 -07004395 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
4396 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
4397 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
4398 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
4399 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
4400 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
4401 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
4402 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
4403 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
4404 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
4405 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
4406 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
4407 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
4408 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
4409 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
4410 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
4411 QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
4412 QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
4413 QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
4414 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
4415 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
4416 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
4417 QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
4418 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
4419 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
4420 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
4421 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
4422 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
4423 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Naveen Rawat6b44ef32018-05-09 11:09:41 -07004424
4425 /* keep last */
4426 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
4427 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
4428 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
4429};
4430
4431/**
4432 * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
4433 * QCA_NL80211_VENDOR_SUBCMD_NDP.
4434 * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
4435 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: create a ndi
4436 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: delete a ndi
4437 * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST: initiate a ndp session
4438 * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
4439 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
4440 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
4441 * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
4442 * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
4443 * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
4444 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
4445 * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
4446 * being received
4447 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
4448 * update
4449 */
4450enum qca_wlan_ndp_sub_cmd {
4451 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
4452 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
4453 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
4454 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
4455 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
4456 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
4457 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
4458 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
4459 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
4460 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
4461 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
4462 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
4463 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
4464};
4465
4466/**
Vivek3e5a3ba2017-02-20 18:13:57 +05304467 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
4468 * information. These attributes are sent as part of
4469 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
4470 * attributes correspond to a single channel.
4471 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
4472 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
4473 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
4474 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
4475 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
4476 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
4477 * regulatory transmission power
4478 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
4479 * transmission power
4480 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
4481 * transmission power
4482 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
4483 * class id
4484 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
4485 * antenna gain in dbm
4486 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
4487 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05304488 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
4489 * segment 0 in center freq in MHz.
4490 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
4491 * segment 1 in center freq in MHz.
Vivek3e5a3ba2017-02-20 18:13:57 +05304492 *
4493 */
4494enum qca_wlan_vendor_external_acs_event_chan_info_attr {
4495 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
4496
4497 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
4498 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
4499 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
4500 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
4501 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
4502 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
4503 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
4504 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
4505 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
4506 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Krishna Raoddd81ae2017-09-23 14:54:24 +05304507 /*
4508 * A bitmask (u32) with flags specified in
4509 * enum qca_wlan_vendor_channel_prop_flags_2.
4510 */
4511 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Vivek3e5a3ba2017-02-20 18:13:57 +05304512
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05304513 /*
4514 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
4515 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
4516 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4517 * along with
4518 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
4519 *
4520 * If both the driver and user-space application supports the 6 GHz
4521 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
4522 * is deprecated and
4523 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4524 * should be used.
4525 *
4526 * To maintain backward compatibility,
4527 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4528 * is still used if either of the driver or user space application
4529 * doesn't support the 6 GHz band.
4530 */
4531 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
4532
4533 /*
4534 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
4535 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
4536 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4537 * along with
4538 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
4539 *
4540 * If both the driver and user-space application supports the 6 GHz
4541 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
4542 * is deprecated and
4543 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4544 * should be considered.
4545 *
4546 * To maintain backward compatibility,
4547 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4548 * is still used if either of the driver or user space application
4549 * doesn't support the 6 GHz band.
4550 */
4551 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
4552
Vivek3e5a3ba2017-02-20 18:13:57 +05304553 /* keep last */
4554 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
4555 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
4556 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
4557};
4558
4559/**
4560 * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
4561 * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
4562 * driver.
4563 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
4564 * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
4565 * ACS need to be started
4566 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
4567 * driver supports spectral scanning or not
4568 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
4569 * offloaded to firmware.
4570 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
4571 * provides additional channel capability as part of scan operation.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304572 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
4573 * interface status is UP
Vivek3e5a3ba2017-02-20 18:13:57 +05304574 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
4575 * interface. It takes one of nl80211_iftype values.
Vivek3e5a3ba2017-02-20 18:13:57 +05304576 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
4577 * of chan width. ACS logic should try to get a channel with specified width
4578 * if not found then look for lower values.
Vivek3e5a3ba2017-02-20 18:13:57 +05304579 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
4580 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
4581 * a/b/g/n/ac.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304582 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
4583 * among which ACS should choose best frequency.
Vivek3e5a3ba2017-02-20 18:13:57 +05304584 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
4585 * driver which will have <channel(u8), weight(u8)> format as array of
4586 * nested values.
4587 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
4588 * for each channel. It takes attr as defined in
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304589 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
4590 * PCL mandatory, PCL preferred, etc.It uses values defined in enum
4591 * qca_wlan_vendor_attr_external_acs_policy.
Krishna Raofcb834f2017-11-11 20:38:29 +05304592 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
4593 * Operating Parameter (RROP) availability information (u16). It uses values
4594 * defined in enum qca_wlan_vendor_attr_rropavail_info.
Vivek3e5a3ba2017-02-20 18:13:57 +05304595 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304596enum qca_wlan_vendor_attr_external_acs_event {
Vivek3e5a3ba2017-02-20 18:13:57 +05304597 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
4598 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
4599 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
4600 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
4601 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304602 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
4603 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
Vivek3e5a3ba2017-02-20 18:13:57 +05304604 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304605 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
4606 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
4607 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
4608 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
4609 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
4610 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Krishna Raofcb834f2017-11-11 20:38:29 +05304611 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Vivek3e5a3ba2017-02-20 18:13:57 +05304612
4613 /* keep last */
4614 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
4615 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
4616 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
4617};
4618
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304619enum qca_iface_type {
4620 QCA_IFACE_TYPE_STA,
4621 QCA_IFACE_TYPE_AP,
4622 QCA_IFACE_TYPE_P2P_CLIENT,
4623 QCA_IFACE_TYPE_P2P_GO,
4624 QCA_IFACE_TYPE_IBSS,
4625 QCA_IFACE_TYPE_TDLS,
4626};
4627
Vivek3e5a3ba2017-02-20 18:13:57 +05304628/**
4629 * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
Jayachandran Sreekumaran203cf902019-01-08 13:36:52 +05304630 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
4631 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Vivek3e5a3ba2017-02-20 18:13:57 +05304632 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
4633 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
4634 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
Jayachandran Sreekumaran203cf902019-01-08 13:36:52 +05304635 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
4636 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
Vivek3e5a3ba2017-02-20 18:13:57 +05304637 */
4638enum qca_wlan_vendor_attr_pcl_config {
Kapil Guptac4278412017-05-18 20:58:01 +05304639 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
4640 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
4641 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Jayachandran Sreekumaran203cf902019-01-08 13:36:52 +05304642 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
4643 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Vivek3e5a3ba2017-02-20 18:13:57 +05304644};
4645
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304646enum qca_set_band {
4647 QCA_SETBAND_AUTO,
4648 QCA_SETBAND_5G,
4649 QCA_SETBAND_2G,
4650};
4651
Vivek3e5a3ba2017-02-20 18:13:57 +05304652/**
4653 * enum set_reset_packet_filter - set packet filter control commands
4654 * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
4655 * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
Nachiket Kukadeb29adc42018-05-25 14:52:55 +05304656 * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
4657 * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
4658 * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
4659 * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
Vivek3e5a3ba2017-02-20 18:13:57 +05304660 */
4661enum set_reset_packet_filter {
4662 QCA_WLAN_SET_PACKET_FILTER = 1,
4663 QCA_WLAN_GET_PACKET_FILTER = 2,
Nachiket Kukadeb29adc42018-05-25 14:52:55 +05304664 QCA_WLAN_WRITE_PACKET_FILTER = 3,
4665 QCA_WLAN_READ_PACKET_FILTER = 4,
4666 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
4667 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
Vivek3e5a3ba2017-02-20 18:13:57 +05304668};
4669
4670/**
Nachiket Kukadea52b8182018-05-22 12:17:15 +05304671 * enum qca_wlan_vendor_attr_packet_filter - APF control commands
Vivek3e5a3ba2017-02-20 18:13:57 +05304672 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
4673 * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
4674 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
4675 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
4676 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
Nachiket Kukadea52b8182018-05-22 12:17:15 +05304677 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
Nachiket Kukadeb29adc42018-05-25 14:52:55 +05304678 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
4679 * section in packet filter buffer
Vivek3e5a3ba2017-02-20 18:13:57 +05304680 */
4681enum qca_wlan_vendor_attr_packet_filter {
4682 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
4683 QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
4684 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
4685 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
4686 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
4687 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
4688 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
Nachiket Kukadeb29adc42018-05-25 14:52:55 +05304689 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
Vivek3e5a3ba2017-02-20 18:13:57 +05304690
4691 /* keep last */
4692 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
4693 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
4694 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
4695};
4696
4697/**
4698 * enum qca_wlan_vendor_attr_wake_stats - wake lock stats
4699 * @QCA_WLAN_VENDOR_ATTR_GET_WAKE_STATS_INVALID: invalid
4700 * @QCA_WLAN_VENDOR_ATTR_TOTAL_CMD_EVENT_WAKE:
4701 * @QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_PTR:
4702 * @QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_SZ:
4703 * @QCA_WLAN_VENDOR_ATTR_TOTAL_DRIVER_FW_LOCAL_WAKE:
4704 * @QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_PTR:
4705 * @QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_SZ:
4706 * @QCA_WLAN_VENDOR_ATTR_TOTAL_RX_DATA_WAKE:
4707 * total rx wakeup count
4708 * @QCA_WLAN_VENDOR_ATTR_RX_UNICAST_CNT:
4709 * Total rx unicast packet which woke up host
4710 * @QCA_WLAN_VENDOR_ATTR_RX_MULTICAST_CNT:
4711 * Total rx multicast packet which woke up host
4712 * @QCA_WLAN_VENDOR_ATTR_RX_BROADCAST_CNT:
4713 * Total rx broadcast packet which woke up host
4714 * @QCA_WLAN_VENDOR_ATTR_ICMP_PKT:
4715 * wake icmp packet count
4716 * @QCA_WLAN_VENDOR_ATTR_ICMP6_PKT:
4717 * wake icmp6 packet count
4718 * @QCA_WLAN_VENDOR_ATTR_ICMP6_RA:
4719 * wake icmp6 RA packet count
4720 * @QCA_WLAN_VENDOR_ATTR_ICMP6_NA:
4721 * wake icmp6 NA packet count
4722 * @QCA_WLAN_VENDOR_ATTR_ICMP6_NS:
4723 * wake icmp6 NS packet count
4724 * @QCA_WLAN_VENDOR_ATTR_ICMP4_RX_MULTICAST_CNT:
4725 * Rx wake packet count due to ipv4 multicast
4726 * @QCA_WLAN_VENDOR_ATTR_ICMP6_RX_MULTICAST_CNT:
4727 * Rx wake packet count due to ipv6 multicast
4728 * @QCA_WLAN_VENDOR_ATTR_OTHER_RX_MULTICAST_CNT:
4729 * Rx wake packet count due to non-ipv4 and non-ipv6 packets
4730 * @QCA_WLAN_VENDOR_ATTR_RSSI_BREACH_CNT:
4731 * wake rssi breach packet count
4732 * @QCA_WLAN_VENDOR_ATTR_LOW_RSSI_CNT:
4733 * wake low rssi packet count
4734 * @QCA_WLAN_VENDOR_ATTR_GSCAN_CNT:
4735 * wake gscan packet count
4736 * @QCA_WLAN_VENDOR_ATTR_PNO_COMPLETE_CNT:
4737 * wake pno complete packet count
4738 * @QCA_WLAN_VENDOR_ATTR_PNO_MATCH_CNT:
4739 * wake pno match packet count
4740 */
4741enum qca_wlan_vendor_attr_wake_stats {
4742 QCA_WLAN_VENDOR_ATTR_GET_WAKE_STATS_INVALID = 0,
4743 QCA_WLAN_VENDOR_ATTR_TOTAL_CMD_EVENT_WAKE,
4744 QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_PTR,
4745 QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_SZ,
4746 QCA_WLAN_VENDOR_ATTR_TOTAL_DRIVER_FW_LOCAL_WAKE,
4747 QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
4748 QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
4749 QCA_WLAN_VENDOR_ATTR_TOTAL_RX_DATA_WAKE,
4750 QCA_WLAN_VENDOR_ATTR_RX_UNICAST_CNT,
4751 QCA_WLAN_VENDOR_ATTR_RX_MULTICAST_CNT,
4752 QCA_WLAN_VENDOR_ATTR_RX_BROADCAST_CNT,
4753 QCA_WLAN_VENDOR_ATTR_ICMP_PKT,
4754 QCA_WLAN_VENDOR_ATTR_ICMP6_PKT,
4755 QCA_WLAN_VENDOR_ATTR_ICMP6_RA,
4756 QCA_WLAN_VENDOR_ATTR_ICMP6_NA,
4757 QCA_WLAN_VENDOR_ATTR_ICMP6_NS,
4758 QCA_WLAN_VENDOR_ATTR_ICMP4_RX_MULTICAST_CNT,
4759 QCA_WLAN_VENDOR_ATTR_ICMP6_RX_MULTICAST_CNT,
4760 QCA_WLAN_VENDOR_ATTR_OTHER_RX_MULTICAST_CNT,
4761 QCA_WLAN_VENDOR_ATTR_RSSI_BREACH_CNT,
4762 QCA_WLAN_VENDOR_ATTR_LOW_RSSI_CNT,
4763 QCA_WLAN_VENDOR_ATTR_GSCAN_CNT,
4764 QCA_WLAN_VENDOR_ATTR_PNO_COMPLETE_CNT,
4765 QCA_WLAN_VENDOR_ATTR_PNO_MATCH_CNT,
4766 /* keep last */
4767 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
4768 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
4769 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
4770};
4771
4772/**
Pankaj Singh1e0b3242020-01-20 18:42:52 +05304773 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
4774 * configured by userspace to the driver/firmware. The values will be
4775 * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
4776 * The driver/firmware takes necessary actions requested by userspace
4777 * such as throttling wifi tx etc. in order to mitigate high temperature.
4778 *
4779 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
4780 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
4781 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
4782 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
4783 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
4784 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
4785 */
4786enum qca_wlan_vendor_thermal_level {
4787 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
4788 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
4789 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
4790 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
4791 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
4792 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
4793};
4794
4795/**
4796 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
4797 * cmd value. Used for NL attributes for data used by
4798 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
4799 */
4800enum qca_wlan_vendor_attr_thermal_cmd {
4801 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
4802 /*
4803 * The value of command, driver will implement different operations
4804 * according to this value. It uses values defined in
4805 * enum qca_wlan_vendor_attr_thermal_cmd_type.
4806 * u32 attribute.
4807 */
4808 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
4809 /*
4810 * Userspace uses this attribute to configure thermal level to
4811 * driver/firmware. Used in request, u32 attribute, possible values
4812 * are defined in enum qca_wlan_vendor_thermal_level.
4813 */
4814 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
4815 /*
4816 * Userspace uses this attribute to configure the time in which the
4817 * driver/firmware should complete applying settings it received from
4818 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
4819 * command type. Used in request, u32 attribute, value is in milli
4820 * seconds. A value of zero indicates to apply the settings
4821 * immediately. The driver/firmware can delay applying the configured
4822 * thermal settings within the time specified in this attribute if
4823 * there is any critical ongoing operation.
4824 */
4825 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
4826 /* keep last */
4827 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
4828 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
4829 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
4830};
4831
4832/**
4833 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
4834 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
4835 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
4836 * thermal command types sent to driver.
4837 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
4838 * get thermal shutdown configuration parameters for display. Parameters
4839 * responded from driver are defined in
4840 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
4841 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
4842 * get temperature. Host should respond with a temperature data. It is defined
4843 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
4844 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
4845 * suspend action.
4846 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
4847 * resume action.
4848 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
4849 * the driver/firmware.
4850 */
4851enum qca_wlan_vendor_attr_thermal_cmd_type {
4852 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
4853 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
4854 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
4855 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
4856 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
4857};
4858
4859/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304860 * enum qca_vendor_element_id - QCA Vendor Specific element types
4861 *
4862 * These values are used to identify QCA Vendor Specific elements. The
4863 * payload of the element starts with the three octet OUI (OUI_QCA) and
4864 * is followed by a single octet type which is defined by this enum.
4865 *
4866 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
4867 * This element can be used to specify preference order for supported
4868 * channels. The channels in this list are in preference order (the first
4869 * one has the highest preference) and are described as a pair of
4870 * (global) Operating Class and Channel Number (each one octet) fields.
4871 *
4872 * This extends the standard P2P functionality by providing option to have
4873 * more than one preferred operating channel. When this element is present,
4874 * it replaces the preference indicated in the Operating Channel attribute.
4875 * For supporting other implementations, the Operating Channel attribute is
4876 * expected to be used with the highest preference channel. Similarly, all
4877 * the channels included in this Preferred channel list element are
4878 * expected to be included in the Channel List attribute.
4879 *
4880 * This vendor element may be included in GO Negotiation Request, P2P
4881 * Invitation Request, and Provision Discovery Request frames.
4882 *
4883 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
4884 * This element can be used for pre-standard publication testing of HE
4885 * before P802.11ax draft assigns the element ID. The payload of this
4886 * vendor specific element is defined by the latest P802.11ax draft.
4887 * Please note that the draft is still work in progress and this element
4888 * payload is subject to change.
4889 *
4890 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
4891 * This element can be used for pre-standard publication testing of HE
4892 * before P802.11ax draft assigns the element ID. The payload of this
4893 * vendor specific element is defined by the latest P802.11ax draft.
4894 * Please note that the draft is still work in progress and this element
4895 * payload is subject to change.
4896 *
4897 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
4898 * element).
4899 * This element can be used for pre-standard publication testing of HE
4900 * before P802.11ax draft assigns the element ID extension. The payload of
4901 * this vendor specific element is defined by the latest P802.11ax draft
4902 * (not including the Element ID Extension field). Please note that the
4903 * draft is still work in progress and this element payload is subject to
4904 * change.
4905 *
4906 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
4907 * This element can be used for pre-standard publication testing of HE
4908 * before P802.11ax draft assigns the element ID extension. The payload of
4909 * this vendor specific element is defined by the latest P802.11ax draft
4910 * (not including the Element ID Extension field). Please note that the
4911 * draft is still work in progress and this element payload is subject to
4912 * change.
4913 *
4914 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
4915 * This element can be used for pre-standard publication testing of HE
4916 * before P802.11ax draft assigns the element ID extension. The payload of
4917 * this vendor specific element is defined by the latest P802.11ax draft
4918 * (not including the Element ID Extension field). Please note that the
4919 * draft is still work in progress and this element payload is subject to
4920 * change.
4921 */
4922enum qca_vendor_element_id {
4923 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
4924 QCA_VENDOR_ELEM_HE_CAPAB = 1,
4925 QCA_VENDOR_ELEM_HE_OPER = 2,
4926 QCA_VENDOR_ELEM_RAPS = 3,
4927 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
4928 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
4929};
4930
4931/**
Vivek3e5a3ba2017-02-20 18:13:57 +05304932 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
4933 * @QCA_WLAN_VENDOR_ATTR_TSF_INVALID: Invalid attribute value
4934 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
4935 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
4936 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
4937 * SOC timer value at TSF capture
4938 * @QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST: after last
4939 * @QCA_WLAN_VENDOR_ATTR_TSF_MAX: Max value
4940 */
4941enum qca_vendor_attr_tsf_cmd {
4942 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
4943 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
4944 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
4945 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
4946 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
4947 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
4948 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
4949};
4950
4951/**
4952 * enum qca_tsf_operation: TSF driver commands
4953 * @QCA_TSF_CAPTURE: Initiate TSF Capture
4954 * @QCA_TSF_GET: Get TSF capture value
4955 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
4956 */
4957enum qca_tsf_cmd {
4958 QCA_TSF_CAPTURE,
4959 QCA_TSF_GET,
4960 QCA_TSF_SYNC_GET,
4961};
4962
4963/**
4964 * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
4965 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
4966 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
4967 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
Jayachandran Sreekumaran203cf902019-01-08 13:36:52 +05304968 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
Vivek3e5a3ba2017-02-20 18:13:57 +05304969 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
4970 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
4971 */
4972enum qca_vendor_attr_get_preferred_freq_list {
4973 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
4974 /* A 32-unsigned value; the interface type/mode for which the preferred
4975 * frequency list is requested (see enum qca_iface_type for possible
4976 * values); used in both south- and north-bound.
4977 */
4978 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
4979 /* An array of 32-unsigned values; values are frequency (MHz); used
4980 * in north-bound only.
4981 */
4982 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Jayachandran Sreekumaran203cf902019-01-08 13:36:52 +05304983 /* An array of nested values as per enum
4984 * qca_wlan_vendor_attr_pcl_config attribute.
4985 * Each element contains frequency (MHz), weight, and flag
4986 * bit mask indicating how the frequency should be used in P2P
4987 * negotiation.
4988 */
4989 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Vivek3e5a3ba2017-02-20 18:13:57 +05304990 /* keep last */
4991 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
4992 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
4993 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
4994};
4995
4996/**
4997 * enum qca_vendor_attr_probable_oper_channel - channel hint
4998 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
4999 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
5000 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
5001 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
5002 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
5003 */
5004enum qca_vendor_attr_probable_oper_channel {
5005 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
5006 /* 32-bit unsigned value; indicates the connection/iface type likely to
5007 * come on this channel (see enum qca_iface_type).
5008 */
5009 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
5010 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
5011 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
5012 /* keep last */
5013 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
5014 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
5015 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
5016};
5017
5018/**
5019 * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
5020 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
5021 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
5022 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
5023 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
5024 */
5025enum qca_wlan_vendor_attr_gw_param_config {
5026 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
5027 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
5028 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
5029 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
5030 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
5031 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
5032 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
5033};
5034
5035/**
5036 * enum drv_dbs_capability - DBS capability
5037 * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
5038 * @DRV_DBS_CAPABILITY_1X1: 1x1
5039 * @DRV_DBS_CAPABILITY_2X2: 2x2
5040 */
5041enum drv_dbs_capability {
5042 DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
5043 DRV_DBS_CAPABILITY_1X1,
5044 DRV_DBS_CAPABILITY_2X2,
5045};
5046
5047/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305048 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
5049 *
5050 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
5051 */
5052enum qca_vendor_attr_txpower_decr_db {
5053 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
5054 /*
5055 * 8-bit unsigned value to indicate the reduction of TX power in dB for
5056 * a virtual interface.
5057 */
5058 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
5059 /* keep last */
5060 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
5061 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
5062 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
5063};
5064
5065/**
Vivek3e5a3ba2017-02-20 18:13:57 +05305066 * enum qca_vendor_attr_ota_test - Enable OTA test
5067 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
5068 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
5069 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
5070 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
5071 */
5072enum qca_vendor_attr_ota_test {
5073 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
5074 /* 8-bit unsigned value to indicate if OTA test is enabled */
5075 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
5076 /* keep last */
5077 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
5078 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
5079 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
5080};
5081
5082/** enum qca_vendor_attr_txpower_scale - vendor sub commands index
5083 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
5084 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
5085 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
5086 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
5087 */
5088enum qca_vendor_attr_txpower_scale {
5089 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
5090 /* 8-bit unsigned value to indicate the scaling of tx power */
5091 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
5092 /* keep last */
5093 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
5094 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
5095 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
5096};
5097
5098/**
5099 * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
5100 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
5101 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
5102 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
5103 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
5104 */
5105enum qca_vendor_attr_txpower_scale_decr_db {
5106 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
5107 /* 8-bit unsigned value to indicate the scaling of tx power */
5108 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
5109 /* keep last */
5110 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
5111 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
5112 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
5113};
5114
5115/**
5116 * enum dfs_mode - state of DFS mode
5117 * @DFS_MODE_NONE: DFS mode attribute is none
5118 * @DFS_MODE_ENABLE: DFS mode is enabled
5119 * @DFS_MODE_DISABLE: DFS mode is disabled
5120 * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
5121 */
5122enum dfs_mode {
5123 DFS_MODE_NONE,
5124 DFS_MODE_ENABLE,
5125 DFS_MODE_DISABLE,
5126 DFS_MODE_DEPRIORITIZE
5127};
5128
5129/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05305130 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
5131 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
5132 *
5133 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
5134 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
5135 *
5136 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
5137 * channel number hint for ACS operation, if valid channel is specified then
5138 * ACS operation gives priority to this channel.
5139 * Note: If both the driver and user space application supports the 6 GHz band,
5140 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
5141 * should be used.
5142 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
5143 * is still used if either of the driver or user space application doesn't
5144 * support the 6 GHz band.
5145 *
5146 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
5147 * Channel center frequency (MHz) hint for ACS operation, if a valid center
5148 * frequency is specified, ACS operation gives priority to this channel.
Vivek3e5a3ba2017-02-20 18:13:57 +05305149 */
5150enum qca_wlan_vendor_attr_acs_config {
5151 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05305152 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
5153 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
5154 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
Vivek3e5a3ba2017-02-20 18:13:57 +05305155
5156 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
5157 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
5158 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05305159};
5160
5161/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305162 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
5163 */
5164enum qca_wlan_vendor_attr_get_hw_capability {
5165 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
5166 /*
5167 * Antenna isolation
5168 * An attribute used in the response.
5169 * The content of this attribute is encoded in a byte array. Each byte
5170 * value is an antenna isolation value. The array length is the number
5171 * of antennas.
5172 */
5173 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
5174 /*
5175 * Request HW capability
5176 * An attribute used in the request.
5177 * The content of this attribute is a u32 array for one or more of
5178 * hardware capabilities (attribute IDs) that are being requested. Each
5179 * u32 value has a value from this
5180 * enum qca_wlan_vendor_attr_get_hw_capability
5181 * identifying which capabilities are requested.
5182 */
5183 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
5184
5185 /* keep last */
5186 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
5187 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
5188 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
5189};
5190
5191/**
Vivek3e5a3ba2017-02-20 18:13:57 +05305192 * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
5193 * config params for sta roam policy
5194 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
5195 * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
5196 * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
5197 * If sta should skip unsafe channels or not in scanning
5198 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
5199 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
5200 */
5201enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
5202 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
5203 QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
5204 QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
5205
5206 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
5207 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
5208 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
5209};
5210
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305211/* Attributes for FTM commands and events */
5212
5213/**
5214 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
5215 *
5216 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
5217 * enum qca_wlan_vendor_attr_loc_capa_flags.
5218 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
5219 * of measurement sessions that can run concurrently.
5220 * Default is one session (no session concurrency).
5221 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
5222 * peers that are supported in running sessions. For example,
5223 * if the value is 8 and maximum number of sessions is 2, you can
5224 * have one session with 8 unique peers, or 2 sessions with 4 unique
5225 * peers each, and so on.
5226 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
5227 * of bursts per peer, as an exponent (2^value). Default is 0,
5228 * meaning no multi-burst support.
5229 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
5230 * of measurement exchanges allowed in a single burst.
5231 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
5232 * types. A bit mask (unsigned 32 bit value), each bit corresponds
5233 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
5234 */
5235enum qca_wlan_vendor_attr_loc_capa {
5236 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
5237 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
5238 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
5239 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
5240 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
5241 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
5242 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
5243 /* keep last */
5244 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
5245 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
5246 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
5247};
5248
5249/**
5250 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
5251 *
5252 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
5253 * can be configured as an FTM responder (for example, an AP that
5254 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
5255 * will be supported if set.
5256 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
5257 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
5258 * will be supported if set.
5259* @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
5260 * supports immediate (ASAP) response.
5261 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
5262 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
5263 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
5264 * requesting AOA measurements as part of an FTM session.
5265 */
5266enum qca_wlan_vendor_attr_loc_capa_flags {
5267 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
5268 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
5269 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
5270 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
5271 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
5272};
Vivek3e5a3ba2017-02-20 18:13:57 +05305273
5274/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05305275 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
5276 *
5277 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
5278 * Channel number on which Access Point should restart.
5279 * Note: If both the driver and user space application supports the 6 GHz band,
5280 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
5281 * should be used.
5282 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
5283 * is still used if either of the driver or user space application doesn't
5284 * support the 6 GHz band.
5285 *
5286 * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
5287 * Nested attribute to hold list of center frequencies on which AP is
5288 * expected to operate. This is irrespective of ACS configuration.
5289 * This list is a priority based one and is looked for before the AP is
5290 * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
5291 * co-exist in the system.
5292 *
5293 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
5294 * Channel center frequency (MHz) on which the access point should restart.
Vivek3e5a3ba2017-02-20 18:13:57 +05305295 */
5296enum qca_wlan_vendor_attr_sap_config {
5297 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05305298 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05305299 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05305300 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
5301
5302 /* Keep last */
Vivek3e5a3ba2017-02-20 18:13:57 +05305303 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
5304 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
5305 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
5306};
5307
5308/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305309 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
5310 * a single peer in a measurement session.
5311 *
5312 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
5313 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
5314 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
5315 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
5316 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
5317 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
5318 * list of supported attributes.
5319 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
5320 * secure measurement.
5321 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
5322 * measurement every <value> bursts. If 0 or not specified,
5323 * AOA measurements will be disabled for this peer.
5324 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
5325 * the measurement frames are exchanged. Optional; if not
5326 * specified, try to locate the peer in the kernel scan
5327 * results cache and use frequency from there.
5328 */
5329enum qca_wlan_vendor_attr_ftm_peer_info {
5330 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
5331 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
5332 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
5333 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
5334 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
5335 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
5336 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
5337 /* keep last */
5338 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
5339 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
5340 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
5341};
5342
5343/**
5344 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
5345 * per-peer
5346 *
5347 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
5348 * immediate (ASAP) response from peer.
5349 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
5350 * LCI report from peer. The LCI report includes the absolute
5351 * location of the peer in "official" coordinates (similar to GPS).
5352 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
5353 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
5354 * Location civic report from peer. The LCR includes the location
5355 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
5356 * 11.24.6.7 for more information.
5357 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
5358 * request a secure measurement.
5359 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
5360 */
5361enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
5362 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
5363 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
5364 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
5365 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
5366};
5367
5368/**
5369 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
5370 *
5371 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
5372 * to perform in a single burst.
5373 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
5374 * perform, specified as an exponent (2^value).
5375 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
5376 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
5377 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
5378 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
5379 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
5380 */
5381enum qca_wlan_vendor_attr_ftm_meas_param {
5382 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
5383 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
5384 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
5385 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
5386 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
5387 /* keep last */
5388 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
5389 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
5390 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
5391};
5392
5393/**
5394 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
5395 *
5396 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
5397 * peer.
5398 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
5399 * request for this peer.
5400 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
5401 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
5402 * to measurement results for this peer.
5403 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
5404 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
5405 * request failed and peer requested not to send an additional request
5406 * for this number of seconds.
5407 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
5408 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
5409 * 9.4.2.22.10.
5410 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
5411 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
5412 * 9.4.2.22.13.
5413 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
5414 * overridden some measurement request parameters. See
5415 * enum qca_wlan_vendor_attr_ftm_meas_param.
5416 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
5417 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
5418 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
5419 * results. Each entry is a nested attribute defined
5420 * by enum qca_wlan_vendor_attr_ftm_meas.
5421 */
5422enum qca_wlan_vendor_attr_ftm_peer_result {
5423 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
5424 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
5425 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
5426 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
5427 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
5428 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
5429 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
5430 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
5431 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
5432 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
5433 /* keep last */
5434 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
5435 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
5436 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
5437};
5438
5439/**
5440 * enum qca_wlan_vendor_attr_ftm_peer_result_status
5441 *
5442 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
5443 * will be provided. Peer may have overridden some measurement parameters,
5444 * in which case overridden parameters will be report by
5445 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
5446 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
5447 * of performing the measurement request. No more results will be sent
5448 * for this peer in this session.
5449 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
5450 * failed, and requested not to send an additional request for number
5451 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
5452 * attribute.
5453 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
5454 * failed. Request was not sent over the air.
5455 */
5456enum qca_wlan_vendor_attr_ftm_peer_result_status {
5457 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
5458 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
5459 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
5460 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
5461};
5462
5463/**
5464 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
5465 * for measurement result, per-peer
5466 *
5467 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
5468 * measurement completed for this peer. No more results will be reported
5469 * for this peer in this session.
5470 */
5471enum qca_wlan_vendor_attr_ftm_peer_result_flags {
5472 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
5473};
5474
5475/**
5476 * enum qca_vendor_attr_loc_session_status: Session completion status code
5477 *
5478 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
5479 * successfully.
5480 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
5481 * by request.
5482 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
5483 * was invalid and was not started.
5484 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
5485 * and did not complete normally (for example out of resources).
5486 */
5487enum qca_vendor_attr_loc_session_status {
5488 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
5489 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
5490 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
5491 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
5492};
5493
5494/**
5495 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
5496 *
5497 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
5498 * recorded by responder, in picoseconds.
5499 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5500 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
5501 * initiator, in picoseconds.
5502 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5503 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
5504 * initiator, in picoseconds.
5505 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5506 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
5507 * responder, in picoseconds.
5508 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5509 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
5510 * during this measurement exchange. Optional and will be provided if
5511 * the hardware can measure it.
5512 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
5513 * responder. Not always provided.
5514 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5515 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
5516 * responder. Not always provided.
5517 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5518 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
5519 * initiator. Not always provided.
5520 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5521 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
5522 * initiator. Not always provided.
5523 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5524 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
5525 */
5526enum qca_wlan_vendor_attr_ftm_meas {
5527 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
5528 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
5529 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
5530 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
5531 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
5532 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
5533 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
5534 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
5535 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
5536 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
5537 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
5538 /* keep last */
5539 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
5540 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
5541 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
5542};
5543
5544/**
Vivek3e5a3ba2017-02-20 18:13:57 +05305545 * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
5546 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
5547 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
5548 * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
5549 * of the social channels.
5550 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
5551 * A 32-bit unsigned value; the P2P listen offload period (ms).
5552 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
5553 * A 32-bit unsigned value; the P2P listen interval duration (ms).
5554 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
5555 * A 32-bit unsigned value; number of interval times the Firmware needs
5556 * to run the offloaded P2P listen operation before it stops.
5557 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
5558 * An array of unsigned 8-bit characters; vendor information elements.
5559 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
5560 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
5561 * A 32-bit unsigned value; a control flag to indicate whether listen
5562 * results need to be flushed to wpa_supplicant.
5563 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
5564 * A 8-bit unsigned value; reason code for P2P listen offload stop
5565 * event.
5566 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
5567 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
5568 */
5569enum qca_wlan_vendor_attr_p2p_listen_offload {
5570 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
5571 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
5572 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
5573 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
5574 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
5575 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
5576 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
5577 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
5578 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
5579 /* keep last */
5580 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
5581 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
5582 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
5583};
5584
5585/**
5586 * enum qca_wlan_vendor_drv_info - WLAN driver info
5587 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
5588 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
5589 * between Firmware & Host.
5590 */
5591enum qca_wlan_vendor_drv_info {
5592 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
5593 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
5594
5595 /* keep last */
5596 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
5597 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
5598 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
5599};
5600
5601/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305602 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
5603 *
5604 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
5605 * CIR (channel impulse response) path for each antenna.
5606 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
5607 * of the strongest CIR path for each antenna.
5608 */
5609enum qca_wlan_vendor_attr_aoa_type {
5610 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
5611 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
5612 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
5613};
5614
5615/**
Vivek3e5a3ba2017-02-20 18:13:57 +05305616 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
5617 * validate encryption engine
5618 *
5619 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
5620 * This will be included if the request is for decryption; if not included,
5621 * the request is treated as a request for encryption by default.
5622 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
5623 * indicating the key cipher suite. Takes same values as
5624 * NL80211_ATTR_KEY_CIPHER.
5625 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
5626 * Key Id to be used for encryption
5627 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
5628 * Key (TK) to be used for encryption/decryption
5629 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
5630 * Packet number to be specified for encryption/decryption
5631 * 6 bytes for TKIP/CCMP/GCMP.
5632 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
5633 * representing the 802.11 packet (header + payload + FCS) that
5634 * needs to be encrypted/decrypted.
5635 * Encrypted/decrypted response from the driver will also be sent
5636 * to userspace with the same attribute.
5637 */
5638enum qca_wlan_vendor_attr_encryption_test {
5639 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
5640 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
5641 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
5642 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
5643 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
5644 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
5645 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
5646
5647 /* keep last */
5648 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
5649 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
5650 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
5651};
5652
5653/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305654 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
5655 * sector for DMG RF sector operations.
5656 *
5657 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
5658 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
5659 */
5660enum qca_wlan_vendor_attr_dmg_rf_sector_type {
5661 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
5662 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
5663 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
5664};
5665
5666/**
Qun Zhangaf8a0812019-02-01 11:30:34 +08005667 * enum qca_wlan_vendor_attr_fw_state - State of firmware
5668 *
5669 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
5670 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
5671 */
5672enum qca_wlan_vendor_attr_fw_state {
5673 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
5674 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
5675 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
5676};
5677
5678/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305679 * BRP antenna limit mode
5680 *
5681 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
5682 * antenna limit, BRP will be performed as usual.
5683 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
5684 * antennas limit. the hardware may use less antennas than the
5685 * maximum limit.
5686 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
5687 * use exactly the specified number of antennas for BRP.
5688 */
5689enum qca_wlan_vendor_attr_brp_ant_limit_mode {
5690 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
5691 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
5692 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
5693 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
5694};
5695
5696/**
5697 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
5698 * DMG RF sector configuration for a single RF module.
5699 * The values are defined in a compact way which closely matches
5700 * the way it is stored in HW registers.
5701 * The configuration provides values for 32 antennas and 8 distribution
5702 * amplifiers, and together describes the characteristics of the RF
5703 * sector - such as a beam in some direction with some gain.
5704 *
5705 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
5706 * of RF module for this configuration.
5707 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
5708 * amplifier gain index. Unsigned 32 bit number containing
5709 * bits for all 32 antennas.
5710 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
5711 * amplifier gain index. Unsigned 32 bit number containing
5712 * bits for all 32 antennas.
5713 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
5714 * amplifier gain index. Unsigned 32 bit number containing
5715 * bits for all 32 antennas.
5716 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
5717 * for first 16 antennas, 2 bits per antenna.
5718 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
5719 * for last 16 antennas, 2 bits per antenna.
5720 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
5721 * DTYPE values (3 bits) for each distribution amplifier, followed
5722 * by X16 switch bits for each distribution amplifier. There are
5723 * total of 8 distribution amplifiers.
5724 */
5725enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
5726 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
5727 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
5728 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
5729 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
5730 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
5731 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
5732 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
5733 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
5734
5735 /* keep last */
5736 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
5737 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
5738 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
5739};
5740
5741/**
Vivek3e5a3ba2017-02-20 18:13:57 +05305742 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
5743 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
5744 *
5745 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
5746 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
5747 * represents the different TDLS trigger modes.
5748 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
5749 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
5750 * of packets shall meet the criteria for implicit TDLS setup.
5751 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
5752 * packets within a duration.
5753 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
5754 * a TDLS setup.
5755 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
5756 * a TDLS Discovery to the Peer.
5757 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
5758 * discovery attempts to know the TDLS capability of the peer. A peer is
5759 * marked as TDLS not capable if there is no response for all the attempts.
5760 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
5761 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
5762 * number of TX / RX frames meet the criteria for TDLS teardown.
Jeff Johnson24d440b2018-05-12 11:41:14 -07005763 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
Vivek3e5a3ba2017-02-20 18:13:57 +05305764 * (u32) of Tx/Rx packets within a duration
5765 * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
5766 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
5767 * corresponding to the RSSI of the peer below which a TDLS
5768 * setup is triggered.
5769 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
5770 * corresponding to the RSSI of the peer above which
5771 * a TDLS teardown is triggered.
5772 */
5773enum qca_wlan_vendor_attr_tdls_configuration {
5774 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
5775 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
5776
5777 /* Attributes configuring the TDLS Implicit Trigger */
5778 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
5779 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
5780 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
5781 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
5782 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
5783 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
5784 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
5785 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
5786
5787 /* keep last */
5788 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
5789 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
5790 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
5791};
5792
5793/**
5794 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
5795 * the driver.
5796 *
5797 * The following are the different values for
5798 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
5799 *
5800 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
5801 * initiate/teardown the TDLS connection to a respective peer comes
5802 * from the user space. wpa_supplicant provides the commands
5803 * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
5804 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
5805 * setup/teardown to the eligible peer once the configured criteria
5806 * (such as TX/RX threshold, RSSI) is met. The attributes
5807 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
5808 * the different configuration criteria for the TDLS trigger from the
5809 * host driver.
5810 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
5811 * the TDLS setup / teardown through the implicit mode, only to the
5812 * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
5813 * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
5814 * External mode works on top of the implicit mode, thus the host Driver
5815 * is expected to be configured in TDLS Implicit mode too to operate in
5816 * External mode. Configuring External mode alone without Implicit
5817 * mode is invalid.
5818 *
5819 * All the above implementations work as expected only when the host driver
5820 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
5821 * representing that the TDLS message exchange is not internal to the host
5822 * driver, but depends on wpa_supplicant to do the message exchange.
5823 */
5824enum qca_wlan_vendor_tdls_trigger_mode {
5825 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
5826 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
5827 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
5828};
5829
5830/**
5831 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
5832 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
5833 * that is hard-coded in the Board Data File (BDF).
5834 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
5835 * that is hard-coded in the Board Data File (BDF).
5836 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
5837 * that is hard-coded in the Board Data File (BDF).
5838 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
5839 * that is hard-coded in the Board Data File (BDF).
5840 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
5841 * that is hard-coded in the Board Data File (BDF).
5842 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
5843 * source of SAR power limits, thereby disabling the SAR power
5844 * limit feature.
5845 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
5846 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Kabilan Kannan762ad5d2018-06-21 16:55:47 -07005847 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
5848 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Vivek3e5a3ba2017-02-20 18:13:57 +05305849 *
5850 * This enumerates the valid set of values that may be supplied for
5851 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Jeff Johnsonf2f8dea2017-12-18 15:49:20 -08005852 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
5853 * the response to an instance of the
5854 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Vivek3e5a3ba2017-02-20 18:13:57 +05305855 */
5856enum qca_vendor_attr_sar_limits_selections {
5857 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
5858 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
5859 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
5860 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
5861 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
5862 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
5863 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Kabilan Kannan762ad5d2018-06-21 16:55:47 -07005864 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Vivek3e5a3ba2017-02-20 18:13:57 +05305865};
5866
5867/**
5868 * enum qca_vendor_attr_sar_limits_spec_modulations -
5869 * SAR limits specification modulation
5870 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
5871 * CCK modulation
5872 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
5873 * OFDM modulation
5874 *
5875 * This enumerates the valid set of values that may be supplied for
5876 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
5877 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
5878 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Jeff Johnsonf2f8dea2017-12-18 15:49:20 -08005879 * command or in the response to an instance of the
5880 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Vivek3e5a3ba2017-02-20 18:13:57 +05305881 */
5882enum qca_vendor_attr_sar_limits_spec_modulations {
5883 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
5884 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
5885};
5886
5887/**
5888 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
5889 *
5890 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
5891 * select which SAR power limit table should be used. Valid
5892 * values are enumerated in enum
5893 * %qca_vendor_attr_sar_limits_selections. The existing SAR
5894 * power limit selection is unchanged if this attribute is not
5895 * present.
5896 *
5897 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
5898 * which specifies the number of SAR power limit specifications
5899 * which will follow.
5900 *
5901 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
5902 * limit specifications. The number of specifications is
5903 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
5904 * specification contains a set of
5905 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
5906 * specification is uniquely identified by the attributes
5907 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
5908 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
5909 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
5910 * contains as a payload the attribute
5911 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
Kabilan Kannan762ad5d2018-06-21 16:55:47 -07005912 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
5913 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
5914 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
5915 * needed based upon the value of
5916 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Vivek3e5a3ba2017-02-20 18:13:57 +05305917 *
5918 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
5919 * indicate for which band this specification applies. Valid
5920 * values are enumerated in enum %nl80211_band (although not all
5921 * bands may be supported by a given device). If the attribute is
5922 * not supplied then the specification will be applied to all
5923 * supported bands.
5924 *
5925 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
5926 * to indicate for which antenna chain this specification
5927 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
5928 * attribute is not supplied then the specification will be
5929 * applied to all chains.
5930 *
5931 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
5932 * value to indicate for which modulation scheme this
5933 * specification applies. Valid values are enumerated in enum
5934 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
5935 * is not supplied then the specification will be applied to all
5936 * modulation schemes.
5937 *
5938 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
Kabilan Kannan762ad5d2018-06-21 16:55:47 -07005939 * value to specify the actual power limit value in units of 0.5
5940 * dBm (i.e., a value of 11 represents 5.5 dBm).
5941 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5942 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
5943 *
5944 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
5945 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
5946 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5947 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
Vivek3e5a3ba2017-02-20 18:13:57 +05305948 *
Jeff Johnsonf2f8dea2017-12-18 15:49:20 -08005949 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
5950 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Vivek3e5a3ba2017-02-20 18:13:57 +05305951 */
5952enum qca_vendor_attr_sar_limits {
5953 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
5954 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
5955 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
5956 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
5957 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
5958 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
5959 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
5960 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Kabilan Kannan762ad5d2018-06-21 16:55:47 -07005961 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Vivek3e5a3ba2017-02-20 18:13:57 +05305962
5963 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
5964 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
5965 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
5966};
5967
5968/**
Zhang Qian7fc2e862017-03-23 17:49:43 +08005969 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
5970 * offload which is an extension for LL_STATS.
5971 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
5972 * If MAC counters do not exceed the threshold, FW will report monitored
5973 * link layer counters periodically as this setting. The first report is
5974 * always triggered by this timer.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305975 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
Zhang Qian7fc2e862017-03-23 17:49:43 +08005976 * For each MAC layer counter, FW holds two copies. One is the current value.
5977 * The other is the last report. Once a current counter's increment is larger
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305978 * than the threshold, FW will indicate that counter to host even if the
Zhang Qian7fc2e862017-03-23 17:49:43 +08005979 * monitoring timer does not expire.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305980 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
5981 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
5982 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
Zhang Qian7fc2e862017-03-23 17:49:43 +08005983 * failure code.
5984 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
5985 * 1: TX packet discarded
5986 * 2: No ACK
5987 * 3: Postpone
5988 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
5989 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
Zhang Qian9d973df2017-04-26 15:10:46 +08005990 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
5991 * Threshold for all monitored parameters. If per counter dedicated threshold
5992 * is not enabled, this threshold will take effect.
5993 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
5994 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
5995 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
5996 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
5997 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
5998 * Bit0: TX counter unit in MSDU
5999 * Bit1: TX counter unit in MPDU
6000 * Bit2: TX counter unit in PPDU
6001 * Bit3: TX counter unit in byte
6002 * Bit4: Dropped MSDUs
6003 * Bit5: Dropped Bytes
6004 * Bit6: MPDU retry counter
6005 * Bit7: MPDU failure counter
6006 * Bit8: PPDU failure counter
6007 * Bit9: MPDU aggregation counter
6008 * Bit10: MCS counter for ACKed MPDUs
6009 * Bit11: MCS counter for Failed MPDUs
6010 * Bit12: TX Delay counter
6011 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
6012 * Bit0: MAC RX counter unit in MPDU
6013 * Bit1: MAC RX counter unit in byte
6014 * Bit2: PHY RX counter unit in PPDU
6015 * Bit3: PHY RX counter unit in byte
6016 * Bit4: Disorder counter
6017 * Bit5: Retry counter
6018 * Bit6: Duplication counter
6019 * Bit7: Discard counter
6020 * Bit8: MPDU aggregation size counter
6021 * Bit9: MCS counter
6022 * Bit10: Peer STA power state change (wake to sleep) counter
6023 * Bit11: Peer STA power save counter, total time in PS mode
6024 * Bit12: Probe request counter
6025 * Bit13: Other management frames counter
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306026 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
Zhang Qian9d973df2017-04-26 15:10:46 +08006027 * Bit0: Idle time
6028 * Bit1: TX time
6029 * Bit2: time RX in current bss
6030 * Bit3: Out of current bss time
6031 * Bit4: Wireless medium busy time
6032 * Bit5: RX in bad condition time
6033 * Bit6: TX in bad condition time
6034 * Bit7: time wlan card not available
6035 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
6036 * Bit0: Per channel SNR counter
6037 * Bit1: Per channel noise floor counter
Zhang Qian7fc2e862017-03-23 17:49:43 +08006038 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
Zhang Qian9d973df2017-04-26 15:10:46 +08006039 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
6040 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
6041 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
6042 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
6043 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
6044 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
6045 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
6046 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
6047 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
6048 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
6049 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
6050 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
6051 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
6052 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
6053 * aggregation stats buffer length
6054 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
6055 * buffer for ACKed MPDUs.
6056 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
6057 * buffer for failed MPDUs.
6058 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
6059 * length of delay stats array.
6060 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
6061 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
6062 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
6063 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
6064 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
6065 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
6066 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
6067 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
6068 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
6069 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
6070 * flagged as retransmissions
6071 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
6072 * flagged as duplicated
6073 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
6074 * packets discarded
6075 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
6076 * stats buffer.
6077 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
6078 * stats buffer.
6079 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
6080 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
6081 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
6082 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
6083 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
6084 * requests received
6085 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
6086 * frames received
6087 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
6088 * there is no TX, nor RX, nor interference.
6089 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
6090 * transmitting packets.
6091 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
6092 * for receiving.
6093 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
6094 * interference detected.
6095 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
6096 * receiving packets with errors.
6097 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
6098 * TX no-ACK.
6099 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
6100 * the chip is unable to work in normal conditions.
6101 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
6102 * receiving packets in current BSS.
6103 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
6104 * receiving packets not in current BSS.
6105 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
6106 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
6107 * This is a container for per antenna signal stats.
6108 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
6109 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
6110 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
6111 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
6112 */
Zhang Qian7fc2e862017-03-23 17:49:43 +08006113enum qca_wlan_vendor_attr_ll_stats_ext {
6114 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
6115
6116 /* Attributes for configurations */
6117 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
6118 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
6119
6120 /* Peer STA power state change */
6121 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
6122
6123 /* TX failure event */
6124 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
6125 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
6126 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
6127
6128 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
6129 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
Zhang Qian9d973df2017-04-26 15:10:46 +08006130
6131 /* MAC counters */
6132 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
6133 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
6134 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
6135 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
6136 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
6137 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
6138 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
6139 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
Zhang Qian7fc2e862017-03-23 17:49:43 +08006140 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
Zhang Qian9d973df2017-04-26 15:10:46 +08006141 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
6142 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
6143 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
6144
6145 /* Sub-attributes for PEER_AC_TX */
6146 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
6147 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
6148 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
6149 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
6150 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
6151 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
6152 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
6153 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
6154 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
6155 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
6156 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
6157 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
6158 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
6159 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
6160 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
6161 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
6162 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
6163
6164 /* Sub-attributes for PEER_AC_RX */
6165 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
6166 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
6167 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
6168 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
6169 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
6170 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
6171 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
6172 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
6173 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
6174 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
6175 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
6176 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
6177 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
6178 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
6179 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
6180 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
6181
6182 /* Sub-attributes for CCA_BSS */
6183 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
6184 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
6185 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
6186 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
6187 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
6188 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
6189 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
6190
6191 /* sub-attribute for BSS_RX_TIME */
6192 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
6193 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
6194
6195 /* Sub-attributes for PEER_SIGNAL */
6196 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
6197 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
6198 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
6199 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
6200
6201 /* Sub-attributes for IFACE_BSS */
6202 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
6203 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
Zhang Qian7fc2e862017-03-23 17:49:43 +08006204
6205 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
6206 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
6207 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
6208};
6209
6210/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306211 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
6212 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
6213 * in priority order as decided after ACS operation in userspace.
6214 *
6215 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
6216 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
6217 *
6218 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
6219 * Array of nested values for each channel with following attributes:
Vivek3e5a3ba2017-02-20 18:13:57 +05306220 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6221 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6222 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6223 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6224 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306225 * Note: If both the driver and user-space application supports the 6 GHz band,
6226 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
6227 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
6228 * To maintain backward compatibility,
6229 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
6230 * is still used if either of the driver or user space application doesn't
6231 * support the 6 GHz band.
6232 *
6233 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
6234 * Primary channel number
6235 * Note: If both the driver and user-space application supports the 6 GHz band,
6236 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
6237 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
6238 * To maintain backward compatibility,
6239 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
6240 * is still used if either of the driver or user space application doesn't
6241 * support the 6 GHz band.
6242 *
6243 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
6244 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
6245 * Note: If both the driver and user-space application supports the 6 GHz band,
6246 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
6247 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
6248 * To maintain backward compatibility,
6249 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
6250 * is still used if either of the driver or user space application
6251 * doesn't support the 6 GHz band.
6252 *
6253 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
6254 * VHT seg0 channel number
6255 * Note: If both the driver and user-space application supports the 6 GHz band,
6256 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
6257 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
6258 * To maintain backward compatibility,
6259 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
6260 * is still used if either of the driver or user space application
6261 * doesn't support the 6 GHz band.
6262 *
6263 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
6264 * VHT seg1 channel number
6265 * Note: If both the driver and user-space application supports the 6 GHz band,
6266 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
6267 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
6268 * To maintain backward compatibility,
6269 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
6270 * is still used if either of the driver or user space application
6271 * doesn't support the 6 GHz band.
6272 *
6273 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
6274 * Takes one of enum nl80211_chan_width values.
6275 *
6276 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
6277 * Array of nested values for each channel with following attributes:
6278 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
6279 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
6280 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
6281 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
6282 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6283 * Note: If user-space application has no support of the 6 GHz band, this
6284 * attribute is optional.
6285 *
6286 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
6287 * Primary channel frequency in MHz
6288 * Note: If user-space application has no support of the 6 GHz band, this
6289 * attribute is optional.
6290 *
6291 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
6292 * Secondary channel frequency in MHz used for HT 40 MHz channels.
6293 * Note: If user-space application has no support of the 6 GHz band, this
6294 * attribute is optional.
6295 *
6296 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
6297 * VHT seg0 channel frequency in MHz
6298 * Note: If user-space application has no support of the 6GHz band, this
6299 * attribute is optional.
6300 *
6301 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
6302 * VHT seg1 channel frequency in MHz
6303 * Note: If user-space application has no support of the 6 GHz band, this
6304 * attribute is optional.
Vivek3e5a3ba2017-02-20 18:13:57 +05306305 */
6306enum qca_wlan_vendor_attr_external_acs_channels {
6307 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
6308
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306309 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
6310 */
Vivek3e5a3ba2017-02-20 18:13:57 +05306311 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306312
6313 /* Array of nested values for each channel with following attributes:
6314 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
6315 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6316 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6317 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6318 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6319 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6320 */
Kapil Guptac4278412017-05-18 20:58:01 +05306321 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306322 /* This (u8) will hold values of one of enum nl80211_bands */
Kapil Guptac4278412017-05-18 20:58:01 +05306323 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306324 /* Primary channel (u8) */
Vivek3e5a3ba2017-02-20 18:13:57 +05306325 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306326 /* Secondary channel (u8) used for HT 40 MHz channels */
Vivek3e5a3ba2017-02-20 18:13:57 +05306327 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306328 /* VHT seg0 channel (u8) */
Vivek3e5a3ba2017-02-20 18:13:57 +05306329 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306330 /* VHT seg1 channel (u8) */
Vivek3e5a3ba2017-02-20 18:13:57 +05306331 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306332 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
Vivek3e5a3ba2017-02-20 18:13:57 +05306333 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
6334
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306335 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
6336 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
6337 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
6338 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
6339 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
6340
Vivek3e5a3ba2017-02-20 18:13:57 +05306341 /* keep last */
6342 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
6343 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
6344 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
6345};
6346
6347/**
6348 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
Krishna Rao365029b2019-08-16 18:16:56 +05306349 * the ACS has to be triggered. These values are used by
Vivek3e5a3ba2017-02-20 18:13:57 +05306350 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
Krishna Rao365029b2019-08-16 18:16:56 +05306351 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
Vivek3e5a3ba2017-02-20 18:13:57 +05306352 */
6353enum qca_wlan_vendor_acs_select_reason {
Krishna Rao365029b2019-08-16 18:16:56 +05306354 /* Represents the reason that the ACS triggered during the AP start */
Vivek3e5a3ba2017-02-20 18:13:57 +05306355 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
Krishna Rao365029b2019-08-16 18:16:56 +05306356 /* Represents the reason that DFS found with the current channel */
Vivek3e5a3ba2017-02-20 18:13:57 +05306357 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
Krishna Rao365029b2019-08-16 18:16:56 +05306358 /* Represents the reason that LTE co-exist in the current band. */
Vivek3e5a3ba2017-02-20 18:13:57 +05306359 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Krishna Rao365029b2019-08-16 18:16:56 +05306360 /* Represents the reason that generic, uncategorized interference has
6361 * been found in the current channel.
6362 */
6363 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
6364 /* Represents the reason that excessive 802.11 interference has been
6365 * found in the current channel.
6366 */
6367 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
6368 /* Represents the reason that generic Continuous Wave (CW) interference
6369 * has been found in the current channel.
6370 */
6371 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
6372 /* Represents the reason that Microwave Oven (MWO) interference has been
6373 * found in the current channel.
6374 */
6375 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
6376 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
6377 * (FHSS) interference has been found in the current channel. This may
6378 * include 802.11 waveforms.
6379 */
6380 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
6381 /* Represents the reason that non-802.11 generic Frequency-Hopping
6382 * Spread Spectrum (FHSS) interference has been found in the current
6383 * channel.
6384 */
6385 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
6386 /* Represents the reason that generic Wideband (WB) interference has
6387 * been found in the current channel. This may include 802.11 waveforms.
6388 */
6389 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
6390 /* Represents the reason that non-802.11 generic Wideband (WB)
6391 * interference has been found in the current channel.
6392 */
6393 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
6394 /* Represents the reason that Jammer interference has been found in the
6395 * current channel.
6396 */
6397 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Vivek3e5a3ba2017-02-20 18:13:57 +05306398};
Om Prakash Tripathi7d867d62017-04-26 16:52:09 +05306399
6400/**
6401 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
6402 */
6403enum qca_wlan_gpio_attr {
6404 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
6405 /* Unsigned 32-bit attribute for GPIO command */
6406 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
6407 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
6408 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
6409 /* Unsigned 32-bit attribute for GPIO value to configure */
6410 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
6411 /* Unsigned 32-bit attribute for GPIO pull type */
6412 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
6413 /* Unsigned 32-bit attribute for GPIO interrupt mode */
6414 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
6415
6416 /* keep last */
6417 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
6418 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
6419 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
6420};
6421
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306422/**
Venkateswara Swamy Bandaruce6b9442018-02-20 14:24:49 +05306423 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
6424 * MSDUQ depth threshold per peer per tid in the target
6425 *
6426 * Associated Vendor Command:
6427 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
6428 */
6429enum qca_wlan_set_qdepth_thresh_attr {
6430 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
6431 /* 6-byte MAC address */
6432 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
6433 /* Unsigned 32-bit attribute for holding the TID */
6434 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
6435 /* Unsigned 32-bit attribute for holding the update mask
6436 * bit 0 - Update high priority msdu qdepth threshold
6437 * bit 1 - Update low priority msdu qdepth threshold
6438 * bit 2 - Update UDP msdu qdepth threshold
6439 * bit 3 - Update Non UDP msdu qdepth threshold
6440 * rest of bits are reserved
6441 */
6442 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
6443 /* Unsigned 32-bit attribute for holding the threshold value */
6444 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
6445
6446 /* keep last */
6447 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
6448 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
6449 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
6450};
6451
6452/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306453 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
6454 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
6455 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
6456 * external ACS policies to select the channels w.r.t. the PCL weights.
6457 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
6458 * their PCL weights.)
6459 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
6460 * select a channel with non-zero PCL weight.
6461 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
6462 * channel with non-zero PCL weight.
6463 *
6464 */
6465enum qca_wlan_vendor_attr_external_acs_policy {
6466 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
6467 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
6468};
6469
6470/**
6471 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6472 */
6473enum qca_wlan_vendor_attr_spectral_scan {
6474 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6475 /*
6476 * Number of times the chip enters spectral scan mode before
6477 * deactivating spectral scans. When set to 0, chip will enter spectral
6478 * scan mode continuously. u32 attribute.
6479 */
6480 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6481 /*
6482 * Spectral scan period. Period increment resolution is 256*Tclk,
6483 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6484 */
6485 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6486 /* Spectral scan priority. u32 attribute. */
6487 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6488 /* Number of FFT data points to compute. u32 attribute. */
6489 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6490 /*
6491 * Enable targeted gain change before starting the spectral scan FFT.
6492 * u32 attribute.
6493 */
6494 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6495 /* Restart a queued spectral scan. u32 attribute. */
6496 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6497 /*
6498 * Noise floor reference number for the calculation of bin power.
6499 * u32 attribute.
6500 */
6501 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6502 /*
6503 * Disallow spectral scan triggers after TX/RX packets by setting
6504 * this delay value to roughly SIFS time period or greater.
6505 * u32 attribute.
6506 */
6507 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6508 /*
6509 * Number of strong bins (inclusive) per sub-channel, below
6510 * which a signal is declared a narrow band tone. u32 attribute.
6511 */
6512 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6513 /*
6514 * Specify the threshold over which a bin is declared strong (for
6515 * scan bandwidth analysis). u32 attribute.
6516 */
6517 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6518 /* Spectral scan report mode. u32 attribute. */
6519 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6520 /*
6521 * RSSI report mode, if the ADC RSSI is below
6522 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6523 * then FFTs will not trigger, but timestamps and summaries get
6524 * reported. u32 attribute.
6525 */
6526 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6527 /*
6528 * ADC RSSI must be greater than or equal to this threshold (signed dB)
6529 * to ensure spectral scan reporting with normal error code.
6530 * u32 attribute.
6531 */
6532 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6533 /*
6534 * Format of frequency bin magnitude for spectral scan triggered FFTs:
6535 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6536 * u32 attribute.
6537 */
6538 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6539 /*
6540 * Format of FFT report to software for spectral scan triggered FFTs.
6541 * 0: No FFT report (only spectral scan summary report)
6542 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6543 * report
6544 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6545 * bins (in-band) per FFT + spectral scan summary report
6546 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6547 * bins (all) per FFT + spectral scan summary report
6548 * u32 attribute.
6549 */
6550 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6551 /*
6552 * Number of LSBs to shift out in order to scale the FFT bins.
6553 * u32 attribute.
6554 */
6555 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6556 /*
6557 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6558 * in dBm power. u32 attribute.
6559 */
6560 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6561 /*
6562 * Per chain enable mask to select input ADC for search FFT.
6563 * u32 attribute.
6564 */
6565 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6566 /*
6567 * An unsigned 64-bit integer provided by host driver to identify the
6568 * spectral scan request. This attribute is included in the scan
6569 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6570 * and used as an attribute in
6571 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6572 * specific scan to be stopped.
6573 */
6574 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +05306575 /* Skip interval for FFT reports. u32 attribute */
6576 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6577 /* Set to report only one set of FFT results.
6578 * u32 attribute.
6579 */
6580 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6581 /* Debug level for spectral module in driver.
6582 * 0 : Verbosity level 0
6583 * 1 : Verbosity level 1
6584 * 2 : Verbosity level 2
6585 * 3 : Matched filterID display
6586 * 4 : One time dump of FFT report
6587 * u32 attribute.
6588 */
6589 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6590 /* Type of spectral scan request. u32 attribute.
6591 * It uses values defined in enum
6592 * qca_wlan_vendor_attr_spectral_scan_request_type.
6593 */
6594 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Edayilliam Jayadevdb962692019-04-24 16:41:58 +05306595 /* This specifies the frequency span over which spectral
6596 * scan would be carried out. Its value depends on the
6597 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6598 * the relation is as follows.
6599 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6600 * Not applicable. Spectral scan would happen in the
6601 * operating span.
6602 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6603 * Center frequency (in MHz) of the span of interest or
6604 * for convenience, center frequency (in MHz) of any channel
6605 * in the span of interest. If agile spectral scan is initiated
6606 * without setting a valid frequency it returns the error code
6607 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
6608 * u32 attribute.
6609 */
6610 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
6611 /* Spectral scan mode. u32 attribute.
6612 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6613 * If this attribute is not present, it is assumed to be
6614 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
6615 */
6616 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
6617 /* Spectral scan error code. u32 attribute.
6618 * It uses values defined in enum
6619 * qca_wlan_vendor_spectral_scan_error_code.
6620 * This attribute is included only in failure scenarios.
6621 */
6622 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
Shiva Krishna Pittalaefbe2e92019-06-06 15:26:55 +05306623 /* 8-bit unsigned value to enable/disable debug of the
6624 * Spectral DMA ring.
6625 * 1-enable, 0-disable
6626 */
6627 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
6628 /* 8-bit unsigned value to enable/disable debug of the
6629 * Spectral DMA buffers.
6630 * 1-enable, 0-disable
6631 */
6632 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Edayilliam Jayadevdb962692019-04-24 16:41:58 +05306633
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306634 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
6635 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
6636 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
6637};
6638
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +05306639/**
6640 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
6641 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
6642 */
6643enum qca_wlan_vendor_attr_spectral_diag_stats {
6644 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
6645 /* Number of spectral TLV signature mismatches.
6646 * u64 attribute.
6647 */
6648 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
6649 /* Number of spectral phyerror events with insufficient length when
6650 * parsing for secondary 80 search FFT report. u64 attribute.
6651 */
6652 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
6653 /* Number of spectral phyerror events without secondary 80
6654 * search FFT report. u64 attribute.
6655 */
6656 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
6657 /* Number of spectral phyerror events with vht operation segment 1 id
6658 * mismatches in search fft report. u64 attribute.
6659 */
6660 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
6661 /* Number of spectral phyerror events with vht operation segment 2 id
6662 * mismatches in search fft report. u64 attribute.
6663 */
6664 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
6665
6666 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
6667 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
6668 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
6669};
6670
6671/**
6672 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
6673 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
6674 */
6675enum qca_wlan_vendor_attr_spectral_cap {
6676 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
6677 /* Flag attribute to indicate phydiag capability */
6678 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
6679 /* Flag attribute to indicate radar detection capability */
6680 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
6681 /* Flag attribute to indicate spectral capability */
6682 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
6683 /* Flag attribute to indicate advanced spectral capability */
6684 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
Edayilliam Jayadev0a04a142018-05-07 10:46:25 +05306685 /* Spectral hardware generation. u32 attribute.
6686 * It uses values defined in enum
6687 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
6688 */
6689 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Edayilliam Jayadev83da2272018-12-17 17:03:15 +05306690 /* Spectral bin scaling formula ID. u16 attribute.
6691 * It uses values defined in enum
6692 * qca_wlan_vendor_spectral_scan_cap_formula_id.
6693 */
6694 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
6695 /* Spectral bin scaling param - low level offset.
6696 * s16 attribute.
6697 */
6698 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
6699 /* Spectral bin scaling param - high level offset.
6700 * s16 attribute.
6701 */
6702 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
6703 /* Spectral bin scaling param - RSSI threshold.
6704 * s16 attribute.
6705 */
6706 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
6707 /* Spectral bin scaling param - default AGC max gain.
6708 * u8 attribute.
6709 */
6710 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Edayilliam Jayadev8feb8252019-10-09 15:44:24 +05306711 /* Flag attribute to indicate agile spectral scan capability
6712 * for 20/40/80 MHz modes.
6713 */
Edayilliam Jayadevdb962692019-04-24 16:41:58 +05306714 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Edayilliam Jayadev8feb8252019-10-09 15:44:24 +05306715 /* Flag attribute to indicate agile spectral scan capability
6716 * for 160 MHz mode.
6717 */
6718 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
6719 /* Flag attribute to indicate agile spectral scan capability
6720 * for 80+80 MHz mode.
6721 */
6722 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +05306723
6724 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
6725 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
6726 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
6727};
6728
6729/**
6730 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
6731 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
6732 */
6733enum qca_wlan_vendor_attr_spectral_scan_status {
6734 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
6735 /* Flag attribute to indicate whether spectral scan is enabled */
6736 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
6737 /* Flag attribute to indicate whether spectral scan is in progress*/
6738 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Edayilliam Jayadevdb962692019-04-24 16:41:58 +05306739 /* Spectral scan mode. u32 attribute.
6740 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6741 * If this attribute is not present, normal mode
6742 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
6743 * requested.
6744 */
6745 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +05306746
6747 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
6748 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
6749 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
6750};
6751
6752/**
Paul Zhangd6d16352017-12-08 16:08:00 +08006753 * enum qca_wlan_vendor_attr_config_latency_level - Level for
6754 * wlan latency module.
6755 *
6756 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
6757 * power saving which would causing data exchange out of service, this
6758 * would be a big impact on latency. For latency sensitive applications over
6759 * Wi-Fi are intolerant to such operations and thus would configure them
6760 * to meet their respective needs. It is well understood by such applications
6761 * that altering the default behavior would degrade the Wi-Fi functionality
6762 * w.r.t the above pointed WLAN operations.
6763 *
6764 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
6765 * Default WLAN operation level which throughput orientated.
6766 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
6767 * Use moderate level to improve latency by limit scan duration.
6768 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
6769 * Use low latency level to benifit application like concurrent
6770 * downloading or video streaming via constraint scan/adaptive PS.
6771 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
6772 * Use ultra low latency level to benefit for gaming/voice
6773 * application via constraint scan/roaming/adaptive PS.
6774 */
6775enum qca_wlan_vendor_attr_config_latency_level {
6776 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
6777 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
6778 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
6779 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
6780 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
6781
6782 /* keep last */
6783 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
6784 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
6785 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
6786};
6787
6788/**
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +05306789 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
6790 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
6791 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
6792 * spectral scan request types.
6793 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
6794 * set the spectral parameters and start scan.
6795 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
6796 * only set the spectral parameters.
6797 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
6798 * only start the spectral scan.
6799 */
6800enum qca_wlan_vendor_attr_spectral_scan_request_type {
6801 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
6802 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
6803 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
6804};
6805
Krishna Raofcb834f2017-11-11 20:38:29 +05306806/**
Edayilliam Jayadevdb962692019-04-24 16:41:58 +05306807 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
6808 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
6809 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
6810 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
6811 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
6812 * spectral scan modes.
6813 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
6814 * spectral scan in the current operating span.
6815 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
6816 * spectral scan in the configured agile span.
6817 */
6818enum qca_wlan_vendor_spectral_scan_mode {
6819 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
6820 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
6821};
6822
6823/**
6824 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
6825 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
6826 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
6827 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
6828 * of a parameter is not supported.
6829 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
6830 * mode is not supported.
6831 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
6832 * has invalid value.
6833 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
6834 * is not initialized.
6835 */
6836enum qca_wlan_vendor_spectral_scan_error_code {
6837 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
6838 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
6839 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
6840 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
6841};
6842
6843/**
Edayilliam Jayadev0a04a142018-05-07 10:46:25 +05306844 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
6845 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
6846 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6847 * spectral hardware generation.
6848 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
6849 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
6850 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
6851 */
6852enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
6853 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
6854 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
6855 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
6856};
6857
6858/**
Edayilliam Jayadev83da2272018-12-17 17:03:15 +05306859 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
6860 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
6861 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6862 * Spectral bin scaling formula ID.
6863 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
6864 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
6865 * and RSSI threshold based formula.
6866 */
6867enum qca_wlan_vendor_spectral_scan_cap_formula_id {
6868 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
6869 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
6870};
6871
6872/**
Krishna Raofcb834f2017-11-11 20:38:29 +05306873 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
6874 * RF Operating Parameter (RROP) information is available, and if so, at which
6875 * point in the application-driver interaction sequence it can be retrieved by
6876 * the application from the driver. This point may vary by architecture and
6877 * other factors. This is a u16 value.
6878 */
6879enum qca_wlan_vendor_attr_rropavail_info {
6880 /* RROP information is unavailable. */
6881 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
6882 /* RROP information is available and the application can retrieve the
6883 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
6884 * event from the driver.
6885 */
6886 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
6887 /* RROP information is available only after a vendor specific scan
6888 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
6889 * successfully completed. The application can retrieve the information
6890 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
6891 * the driver.
6892 */
6893 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
6894};
6895
6896/**
6897 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
6898 * Representative RF Operating Parameter (RROP) information. It is sent for the
6899 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
6900 * intended for use by external Auto Channel Selection applications. It provides
6901 * guidance values for some RF parameters that are used by the system during
6902 * operation. These values could vary by channel, band, radio, and so on.
6903 */
6904enum qca_wlan_vendor_attr_rrop_info {
6905 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
6906
6907 /* Representative Tx Power List (RTPL) which has an array of nested
6908 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
6909 */
6910 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
6911
6912 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
6913 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
6914 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
6915};
6916
6917/**
6918 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
6919 * entry instances in the Representative Tx Power List (RTPL). It provides
6920 * simplified power values intended for helping external Auto channel Selection
6921 * applications compare potential Tx power performance between channels, other
6922 * operating conditions remaining identical. These values are not necessarily
6923 * the actual Tx power values that will be used by the system. They are also not
6924 * necessarily the max or average values that will be used. Instead, they are
6925 * relative, summarized keys for algorithmic use computed by the driver or
6926 * underlying firmware considering a number of vendor specific factors.
6927 */
6928enum qca_wlan_vendor_attr_rtplinst {
6929 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
6930
Krishna Rao58454952020-01-29 17:10:26 +05306931 /* Primary channel number (u8).
6932 * Note: If both the driver and user space application support the
6933 * 6 GHz band, this attribute is deprecated and
6934 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
6935 * maintain backward compatibility,
6936 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
6937 * driver or user space application or both do not support the 6 GHz
6938 * band.
6939 */
Krishna Raofcb834f2017-11-11 20:38:29 +05306940 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
6941 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
6942 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
6943 /* Representative Tx power in dBm (s32) with emphasis on range. */
6944 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Krishna Rao58454952020-01-29 17:10:26 +05306945 /* Primary channel center frequency (u32) in MHz */
6946 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Krishna Raofcb834f2017-11-11 20:38:29 +05306947
6948 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
6949 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
6950 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
6951};
6952
Yeshwanth Sriram Guntuka64de3442018-02-23 12:17:41 +05306953/**
6954 * enum qca_wlan_vendor_attr_mac - Used by the vendor command
6955 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
6956 *
6957 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
6958 * array of nested values as per attributes in
6959 * enum qca_wlan_vendor_attr_mac_mode_info.
6960 */
6961enum qca_wlan_vendor_attr_mac {
6962 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
6963 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
6964
6965 /* keep last */
6966 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
6967 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
6968 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
6969};
6970
6971/**
6972 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
6973 * WiFi netdev interface on a respective MAC. Used by the attribute
6974 * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
6975 *
6976 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
6977 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
6978 * the connected Wi-Fi interface(u32).
6979 */
6980enum qca_wlan_vendor_attr_mac_iface_info {
6981 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
6982 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
6983 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
6984
6985 /* keep last */
6986 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
6987 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
6988 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
6989};
6990
6991/**
6992 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
6993 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
6994 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
6995 *
6996 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
6997 * MAC (u32)
6998 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
6999 * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
7000 * in enum nl80211_band.
7001 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
7002 * interfaces associated with this MAC. Represented by enum
7003 * qca_wlan_vendor_attr_mac_iface_info.
7004 */
7005enum qca_wlan_vendor_attr_mac_info {
7006 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
7007 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
7008 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
7009 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
7010
7011 /* keep last */
7012 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
7013 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
7014 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
7015
7016};
7017
Vivek3e5a3ba2017-02-20 18:13:57 +05307018#if !(defined (SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC)) && \
7019 (LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)) && \
7020 !(defined(WITH_BACKPORTS))
7021
7022static inline struct sk_buff *
7023backported_cfg80211_vendor_event_alloc(struct wiphy *wiphy,
7024 struct wireless_dev *wdev,
7025 int approxlen,
7026 int event_idx, gfp_t gfp)
7027{
7028 struct sk_buff *skb;
7029
7030 skb = cfg80211_vendor_event_alloc(wiphy, approxlen, event_idx, gfp);
7031
7032 if (skb && wdev) {
7033 struct nlattr *attr;
7034 u32 ifindex = wdev->netdev->ifindex;
7035
7036 nla_nest_cancel(skb, ((void **)skb->cb)[2]);
7037 if (nla_put_u32(skb, NL80211_ATTR_IFINDEX, ifindex))
7038 goto nla_fail;
7039
7040 attr = nla_nest_start(skb, NL80211_ATTR_VENDOR_DATA);
7041 ((void **)skb->cb)[2] = attr;
7042 }
7043
7044 return skb;
7045
7046nla_fail:
7047 kfree_skb(skb);
7048
7049 return NULL;
7050}
7051#define cfg80211_vendor_event_alloc backported_cfg80211_vendor_event_alloc
7052#endif
7053
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -08007054/**
7055 * enum he_fragmentation_val - HE fragmentation support values
7056 * Indicates level of dynamic fragmentation that is supported by
7057 * a STA as a recipient.
7058 * HE fragmentation values are defined as per 11ax spec and are used in
7059 * HE capability IE to advertise the support. These values are validated
7060 * in the driver to check the device capability and advertised in the HE
7061 * capability element.
7062 *
7063 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
7064 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
7065 * contained within an MPDU or S-MPDU, no support for dynamic fragments
7066 * within an A-MPDU that is not an S-MPDU.
7067 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
7068 * contained within an MPDU or S-MPDU and support for up to one dynamic
7069 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
7070 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
7071 * MPDU or S-MPDU.
7072 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
7073 * contained within an MPDU or S-MPDU and support for multiple dynamic
7074 * fragments for each MSDU and for each A-MSDU if supported by the
7075 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
7076 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
7077 */
7078enum he_fragmentation_val {
7079 HE_FRAG_DISABLE,
7080 HE_FRAG_LEVEL1,
7081 HE_FRAG_LEVEL2,
7082 HE_FRAG_LEVEL3,
7083};
7084
7085/**
7086 * enum he_mcs_config - HE MCS support configuration
7087 *
7088 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
7089 * These values are used in driver to configure the HE MCS map to advertise
7090 * Tx/Rx MCS map in HE capability and these values are applied for all the
7091 * streams supported by the device. To configure MCS for different bandwidths,
7092 * vendor command needs to be sent using this attribute with appropriate value.
7093 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
7094 * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
7095 * for HE_160_MCS0_11 send this command using HE MCS config attribute with
7096 * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
7097 *
7098 * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
7099 * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
7100 * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
7101 * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
7102 * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
7103 * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
7104 * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
7105 * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
7106 * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
7107 */
7108enum he_mcs_config {
7109 HE_80_MCS0_7 = 0,
7110 HE_80_MCS0_9 = 1,
7111 HE_80_MCS0_11 = 2,
7112 HE_160_MCS0_7 = 4,
7113 HE_160_MCS0_9 = 5,
7114 HE_160_MCS0_11 = 6,
7115 HE_80p80_MCS0_7 = 8,
7116 HE_80p80_MCS0_9 = 9,
7117 HE_80p80_MCS0_11 = 10,
7118};
7119
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007120/**
7121 * enum qca_wlan_ba_session_config - BA session configuration
7122 *
7123 * Indicates the configuration values for BA session configuration attribute.
7124 *
7125 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
7126 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
7127 */
7128enum qca_wlan_ba_session_config {
7129 QCA_WLAN_ADD_BA = 1,
7130 QCA_WLAN_DELETE_BA = 2,
7131};
7132
7133/**
7134 * enum qca_wlan_ac_type - access category type
7135 *
7136 * Indicates the access category type value.
7137 *
7138 * @QCA_WLAN_AC_BE: BE access category
7139 * @QCA_WLAN_AC_BK: BK access category
7140 * @QCA_WLAN_AC_VI: VI access category
7141 * @QCA_WLAN_AC_VO: VO access category
7142 * @QCA_WLAN_AC_ALL: All ACs
7143 */
7144enum qca_wlan_ac_type {
7145 QCA_WLAN_AC_BE = 0,
7146 QCA_WLAN_AC_BK = 1,
7147 QCA_WLAN_AC_VI = 2,
7148 QCA_WLAN_AC_VO = 3,
7149 QCA_WLAN_AC_ALL = 4,
7150};
7151
Kiran Kumar Lokerecbb21ca2018-03-08 19:34:24 -08007152/**
7153 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
7154 *
7155 * Indicates the HE LTF configuration value.
7156 *
7157 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
7158 * the mandatory HE-LTF based on the GI setting
7159 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
7160 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
7161 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
7162 */
7163enum qca_wlan_he_ltf_cfg {
7164 QCA_WLAN_HE_LTF_AUTO = 0,
7165 QCA_WLAN_HE_LTF_1X = 1,
7166 QCA_WLAN_HE_LTF_2X = 2,
7167 QCA_WLAN_HE_LTF_4X = 3,
7168};
7169
Kiran Kumar Lokere8b60f1e2018-07-05 15:57:01 -07007170/**
7171 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
7172 *
7173 * Indicates the HE trigger frame MAC padding duration value.
7174 *
7175 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
7176 * process the trigger frame.
7177 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
7178 * trigger frame.
7179 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
7180 * trigger frame.
7181 */
7182enum qca_wlan_he_mac_padding_dur {
7183 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
7184 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
7185 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
7186};
7187
Kiran Kumar Lokerefd7bd582018-09-21 18:28:17 -07007188/**
7189 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
7190 *
7191 * Indicates the HE Operating mode control channel width setting value.
7192 *
7193 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
7194 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
7195 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
7196 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
7197 */
7198enum qca_wlan_he_om_ctrl_ch_bw {
7199 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
7200 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
7201 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
7202 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
7203};
7204
Kiran Kumar Lokerebd60ad32018-12-10 19:02:50 -08007205/**
7206 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
7207 * HE operating mode control transmit request. These attributes are
7208 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
7209 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7210 *
7211 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
7212 * indicates the maximum number of spatial streams, NSS, that the STA
7213 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
7214 * and is set to NSS - 1.
7215 *
7216 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
7217 * indicates the operating channel width supported by the STA for both
7218 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
7219 *
7220 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
7221 * indicates the all trigger based UL MU operations by the STA.
7222 * 0 - UL MU operations are enabled by the STA.
7223 * 1 - All triggered UL MU transmissions are suspended by the STA.
7224 *
7225 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
7226 * indicates the maximum number of space-time streams, NSTS, that
7227 * the STA supports in transmission and is set to NSTS - 1.
Kiran Kumar Lokere55ec2b92019-02-06 14:17:11 -08007228 *
7229 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
7230 * combined with the UL MU Disable subfield and the recipient's setting
7231 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
7232 * capabilities to determine which HE TB PPDUs are possible by the
7233 * STA to transmit.
7234 * 0 - UL MU data operations are enabled by the STA.
7235 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
7236 * bit is not set, else UL MU Tx is suspended.
7237 *
Kiran Kumar Lokerebd60ad32018-12-10 19:02:50 -08007238 */
7239enum qca_wlan_vendor_attr_he_omi_tx {
7240 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
7241 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
7242 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
7243 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
7244 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Kiran Kumar Lokere55ec2b92019-02-06 14:17:11 -08007245 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Kiran Kumar Lokerebd60ad32018-12-10 19:02:50 -08007246
7247 /* keep last */
7248 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
7249 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
7250 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
7251};
7252
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -08007253/* Attributes for data used by
7254 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
7255 */
7256enum qca_wlan_vendor_attr_wifi_test_config {
7257 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
7258 /* 8-bit unsigned value to configure the driver to enable/disable
7259 * WMM feature. This attribute is used to configure testbed device.
7260 * 1-enable, 0-disable
7261 */
7262 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
7263
7264 /* 8-bit unsigned value to configure the driver to accept/reject
7265 * the addba request from peer. This attribute is used to configure
7266 * the testbed device.
7267 * 1-accept addba, 0-reject addba
7268 */
7269 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
7270
7271 /* 8-bit unsigned value to configure the driver to send or not to
7272 * send the addba request to peer.
7273 * This attribute is used to configure the testbed device.
7274 * 1-send addba, 0-do not send addba
7275 */
7276 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
7277
7278 /* 8-bit unsigned value to indicate the HE fragmentation support.
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007279 * Uses enum he_fragmentation_val values.
7280 * This attribute is used to configure the testbed device to
7281 * allow the advertised hardware capabilities to be downgraded
7282 * for testing purposes.
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -08007283 */
7284 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
7285
7286 /* 8-bit unsigned value to indicate the HE MCS support.
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007287 * Uses enum he_mcs_config values.
7288 * This attribute is used to configure the testbed device to
7289 * allow the advertised hardware capabilities to be downgraded
7290 * for testing purposes.
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -08007291 */
7292 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
7293
Kiran Kumar Lokere2a450cc2018-02-26 15:09:18 -08007294 /* 8-bit unsigned value to configure the driver to allow or not to
7295 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
7296 * This attribute is used to configure the testbed device.
7297 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
7298 */
7299 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
7300
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007301 /* 8-bit unsigned value to configure the driver to add a
7302 * new BA session or delete the existing BA session for
7303 * given TID. ADDBA command uses the buffer size and tid
7304 * configuration if user specifies the values else default
7305 * value for buffer size is used for all tids if the tid
7306 * also not specified. For DEL_BA command TID value is
7307 * required to process the command.
7308 * Uses enum qca_wlan_ba_session_config values.
7309 * This attribute is used to configure the testbed device.
7310 */
7311 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
7312
Kiran Kumar Lokere7ba00f32018-08-29 18:27:34 -07007313 /* 16-bit unsigned value to configure the buffer size in addba
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007314 * request and response frames.
7315 * This attribute is used to configure the testbed device.
Kiran Kumar Lokere7ba00f32018-08-29 18:27:34 -07007316 * The range of the value is 0 to 256.
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007317 */
7318 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
7319
7320 /* 8-bit unsigned value to configure the buffer size in addba
7321 * request and response frames.
7322 * This attribute is used to configure the testbed device.
7323 */
7324 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
7325
7326 /* 8-bit unsigned value to configure the no ack policy.
7327 * To configure no ack policy, access category value
7328 * is required to process the command.
7329 * This attribute is used to configure the testbed device.
7330 * 1 - enable no ack, 0 - disable no ack
7331 */
7332 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
7333
7334 /* 8-bit unsigned value to configure the AC for no ack policy
7335 * This attribute is used to configure the testbed device.
7336 * uses the enum qca_wlan_ac_type values
7337 */
7338 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
7339
Kiran Kumar Lokerecbb21ca2018-03-08 19:34:24 -08007340 /* 8-bit unsigned value to configure the HE LTF
7341 * This attribute is used to configure the testbed device.
7342 * Uses the enum qca_wlan_he_ltf_cfg values.
7343 */
7344 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
7345
Kiran Kumar Lokere993a3842018-05-14 18:17:18 -07007346 /* 8-bit unsigned value to configure the tx beamformee.
7347 * This attribute is used to configure the testbed device.
7348 * 1 - enable, 0 - disable.
7349 */
7350 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
7351
Kiran Kumar Lokere9c0d0e02018-06-27 15:27:01 -07007352 /* 8-bit unsigned value to configure the tx beamformee number of
7353 * space-time streams.
7354 * This attribute is used to configure the testbed device.
7355 * The range of the value is 0 to 8
7356 */
7357 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
7358
Kiran Kumar Lokere0c66f3e2018-07-05 15:46:49 -07007359 /* 8-bit unsigned value to configure the MU EDCA params for given AC
7360 * This attribute is used to configure the testbed device.
7361 * Uses the enum qca_wlan_ac_type values.
7362 */
7363 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
7364
7365 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
7366 * To configure MU EDCA AIFSN value, MU EDCA access category value
7367 * is required to process the command.
7368 * This attribute is used to configure the testbed device.
7369 */
7370 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
7371
7372 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
7373 * given AC.
7374 * To configure MU EDCA ECW min value, MU EDCA access category value
7375 * is required to process the command.
7376 * This attribute is used to configure the testbed device.
7377 */
7378 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
7379
7380 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
7381 * given AC.
7382 * To configure MU EDCA ECW max value, MU EDCA access category value
7383 * is required to process the command.
7384 * This attribute is used to configure the testbed device.
7385 */
7386 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
7387
7388 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
7389 * To configure MU EDCA timer value, MU EDCA access category value
7390 * is required to process the command.
7391 * This attribute is used to configure the testbed device.
7392 */
7393 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
7394
Kiran Kumar Lokere8b60f1e2018-07-05 15:57:01 -07007395 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
7396 * duration.
7397 * This attribute is used to configure the testbed device.
7398 * Uses the enum qca_wlan_he_mac_padding_dur values.
7399 */
7400 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
7401
Kiran Kumar Lokerecb0c0a12018-07-24 13:36:59 -07007402 /* 8-bit unsigned value to override the MU EDCA params to defaults
7403 * regardless of the AP beacon MU EDCA params. If it is enabled use
7404 * the default values else use the MU EDCA params from AP beacon.
7405 * This attribute is used to configure the testbed device.
7406 * 1 - enable override, 0 - disable.
7407 */
7408 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
7409
Kiran Kumar Lokere7ba00f32018-08-29 18:27:34 -07007410 /* 8-bit unsigned value to configure the support for receiving
7411 * an MPDU that contains an operating mode control subfield.
7412 * This attribute is used to configure the testbed device.
7413 * 1-enable, 0-disable.
7414 */
7415 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
7416
Varun Reddy Yeturu49149e82018-09-22 18:52:40 -07007417 /* Nested attribute values required to setup the TWT session.
7418 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
7419 * information to set up the session. It contains broadcast flags,
7420 * set_up flags, trigger value, flow type, flow ID, wake interval
7421 * exponent, protection, target wake time, wake duration, wake interval
7422 * mantissa. These nested attributes are used to setup a host triggered
7423 * TWT session.
7424 */
7425 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
7426
7427 /* This nested attribute is used to terminate the current TWT session.
7428 * It does not currently carry any attributes.
7429 */
7430 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
7431
7432 /* This nested attribute is used to suspend the current TWT session.
7433 * It does not currently carry any attributes.
7434 */
7435 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
7436
7437 /* Nested attribute values to indicate the request for resume.
7438 * This attribute is used to resume the TWT session.
7439 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
7440 * parameters required to resume the TWT session.
7441 */
7442 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
7443
Kiran Kumar Lokerefd7bd582018-09-21 18:28:17 -07007444 /* 8-bit unsigned value to set the HE operating mode control
7445 * (OM CTRL) Channel Width subfield.
7446 * The Channel Width subfield indicates the operating channel width
7447 * supported by the STA for both reception and transmission.
7448 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
7449 * This setting is cleared with the
7450 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7451 * flag attribute to reset defaults.
7452 * This attribute is used to configure the testbed device.
7453 */
7454 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
7455
7456 /* 8-bit unsigned value to configure the number of spatial
7457 * streams in HE operating mode control field.
7458 * This setting is cleared with the
7459 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7460 * flag attribute to reset defaults.
7461 * This attribute is used to configure the testbed device.
7462 */
7463 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
7464
7465 /* Flag attribute to configure the UL MU disable bit in
7466 * HE operating mode control field.
7467 * This setting is cleared with the
7468 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7469 * flag attribute to reset defaults.
7470 * This attribute is used to configure the testbed device.
7471 */
7472 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
7473
7474 /* Flag attribute to clear the previously set HE operating mode
7475 * control field configuration.
7476 * This attribute is used to configure the testbed device to reset
7477 * defaults to clear any previously set HE operating mode control
7478 * field configuration.
7479 */
7480 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
7481
Kiran Kumar Lokere82ba8702018-09-25 18:16:47 -07007482 /* 8-bit unsigned value to configure HE single user PPDU
7483 * transmission. By default this setting is disabled and it
7484 * is disabled in the reset defaults of the device configuration.
7485 * This attribute is used to configure the testbed device.
7486 * 1-enable, 0-disable
7487 */
7488 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
7489
Kiran Kumar Lokere7b5131b2018-09-25 18:28:42 -07007490 /* 8-bit unsigned value to configure action frame transmission
7491 * in HE trigger based PPDU transmission.
7492 * By default this setting is disabled and it is disabled in
7493 * the reset defaults of the device configuration.
7494 * This attribute is used to configure the testbed device.
7495 * 1-enable, 0-disable
7496 */
7497 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
7498
Kiran Kumar Lokerebd60ad32018-12-10 19:02:50 -08007499 /* Nested attribute to indicate HE operating mode control field
7500 * transmission. It contains operating mode control field Nss,
7501 * channel bandwidth, Tx Nsts and UL MU disable attributes.
7502 * These nested attributes are used to send HE operating mode control
7503 * with configured values.
7504 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
7505 * This attribute is used to configure the testbed device.
7506 */
7507 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
7508
7509 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
7510 * support for the reception of a frame that carries an HE variant
7511 * HT Control field.
7512 * This attribute is used to configure the testbed device.
7513 * 1-enable, 0-disable
7514 */
7515 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
7516
Kiran Kumar Lokere47eba662019-02-06 14:38:19 -08007517 /* 8-bit unsigned value to configure VHT support in 2.4G band.
7518 * This attribute is used to configure the testbed device.
7519 * 1-enable, 0-disable
7520 */
7521 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
7522
Kiran Kumar Lokere2d26d822019-02-24 21:44:00 -08007523 /* 8-bit unsigned value to configure HE testbed defaults.
7524 * This attribute is used to configure the testbed device.
7525 * 1-set the device HE capabilities to testbed defaults.
7526 * 0-reset the device HE capabilities to supported config.
7527 */
7528 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
7529
Arif Hussain1d9aae02019-03-12 14:30:51 -07007530 /* 8-bit unsigned value to configure twt request support.
7531 * This attribute is used to configure the testbed device.
7532 * 1-enable, 0-disable.
7533 */
7534 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
7535
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -08007536 /* keep last */
7537 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
7538 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
7539 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
7540};
7541
Varun Reddy Yeturu49149e82018-09-22 18:52:40 -07007542/**
7543 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
7544 * TWT (Target Wake Time) setup request. These attributes are sent as part of
7545 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
7546 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7547 *
7548 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
7549 * Disable (flag attribute not present) - Individual TWT
7550 * Enable (flag attribute present) - Broadcast TWT.
7551 * Individual means the session is between the STA and the AP.
7552 * This session is established using a separate negotiation between
7553 * STA and AP.
7554 * Broadcast means the session is across multiple STAs and an AP. The
7555 * configuration parameters are announced in Beacon frames by the AP.
7556 *
7557 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
7558 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
7559 * specify the TWT request type
7560 *
7561 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
7562 * Enable (flag attribute present) - TWT with trigger support.
7563 * Disable (flag attribute not present) - TWT without trigger support.
7564 * Trigger means the AP will send the trigger frame to allow STA to send data.
7565 * Without trigger, the STA will wait for the MU EDCA timer before
7566 * transmitting the data.
7567 *
7568 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
7569 * 0 - Announced TWT - In this mode, STA may skip few service periods to
7570 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
7571 * NULL frame to AP.
7572 * 1 - Unannounced TWT - The STA will wakeup during every SP.
7573 *
7574 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
7575 * Flow ID is the unique identifier for each TWT session.
7576 * Currently this is not required and dialog ID will be set to zero.
7577 *
7578 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
7579 * This attribute (exp) is used along with the mantissa to derive the
7580 * wake interval using the following formula:
7581 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
7582 * Wake interval is the interval between 2 successive SP.
7583 *
7584 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
7585 * Enable (flag attribute present) - Protection required.
7586 * Disable (flag attribute not present) - Protection not required.
7587 * If protection is enabled, then the AP will use protection
7588 * mechanism using RTS/CTS to self to reserve the airtime.
7589 *
7590 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
7591 * This attribute is used as the SP offset which is the offset from
7592 * TSF after which the wake happens. The units are in microseconds. If
7593 * this attribute is not provided, then the value will be set to zero.
7594 *
7595 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
7596 * This is the duration of the service period. The units are in TU.
7597 *
7598 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
7599 * This attribute is used to configure wake interval mantissa.
7600 * The units are in TU.
7601 */
7602enum qca_wlan_vendor_attr_twt_setup {
7603 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
7604 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
7605 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
7606 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
7607 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
7608 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
7609 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
7610 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
7611 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
7612 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
7613 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
7614
7615 /* keep last */
7616 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
7617 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
7618 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
7619};
7620
7621/**
7622 * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for
7623 * TWT (Target Wake Time) resume request. These attributes are sent as part of
7624 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
7625 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7626 *
7627 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
7628 * This attribute is used as the SP offset which is the offset from
7629 * TSF after which the wake happens. The units are in microseconds.
7630 * If this attribute is not provided, then the value will be set to
7631 * zero.
7632 *
7633 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
7634 * This attribute represents the next TWT subfield size.
7635 */
7636enum qca_wlan_vendor_attr_twt_resume {
7637 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
7638 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
7639 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
7640
7641 /* keep last */
7642 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
7643 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
7644 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
7645};
7646
7647/**
7648 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
7649 * Represents the setup type being requested for TWT.
7650 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
7651 * parameters but relying on AP to fill the parameters during the negotiation.
7652 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
7653 * values which the AP may accept or AP may provide alternative parameters
7654 * which the STA may accept.
7655 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
7656 * alternate parameters than the requested ones.
7657 */
7658enum qca_wlan_vendor_twt_setup_req_type {
7659 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
7660 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
7661 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
7662};
7663
Alok Kumardb0d4232018-11-08 19:08:13 +05307664/**
7665 * enum qca_wlan_throughput_level - Current throughput level
7666 *
7667 * Indicates the current level of throughput calculated by driver. The driver
7668 * may choose different thresholds to decide whether the throughput level is
7669 * low or medium or high based on variety of parameters like physical link
7670 * capacity of current connection, number of pakcets being dispatched per
7671 * second etc. The throughput level events might not be consistent with the
7672 * actual current throughput value being observed.
7673 *
7674 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
7675 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
7676 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
7677 */
7678enum qca_wlan_throughput_level {
7679 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
7680 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
7681 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
7682};
7683
7684/**
7685 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
7686 * report throughput changes from driver to user space. enum values are used
7687 * for NL attributes sent with
7688 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
7689 */
7690enum qca_wlan_vendor_attr_throughput_change {
7691 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
7692 /*
7693 * Indicates the direction of throughput in which the change is being
7694 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
7695 */
7696 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
7697
7698 /*
7699 * Indicates the newly observed throughput level.
7700 * qca_wlan_throughput_level describes the possible range of values.
7701 * u8 attribute.
7702 */
7703 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
7704
7705 /*
7706 * Indicates the driver's guidance on the new value to be set to
7707 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
7708 * may optionally include this attribute.
7709 */
7710 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
7711
7712 /*
7713 * Indicates the driver's guidance on the new value to be set to
7714 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
7715 * values are from -31 to 31. Driver may optionally include this
7716 * attribute.
7717 */
7718 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
7719
7720 /*
7721 * Indicates the driver's guidance on the new value to be set to
7722 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
7723 * optionally include this attribute.
7724 */
7725 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
7726
7727 /* keep last */
7728 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
7729 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
7730 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
7731};
7732
Nachiket Kukade30ed5c42018-12-03 18:30:46 +05307733/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
7734 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
7735 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
7736 */
7737enum qca_wlan_nan_ext_subcmd_type {
7738 /* Subcmd of type NAN Enable Request */
7739 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
7740 /* Subcmd of type NAN Disable Request */
7741 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
7742};
7743
7744/**
7745 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
7746 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
7747 */
7748enum qca_wlan_vendor_attr_nan_params {
7749 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
7750 /* Carries NAN command for firmware component. Every vendor command
7751 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
7752 * payload containing the NAN command. NLA_BINARY attribute.
7753 */
7754 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
7755 /* Indicates the type of NAN command sent with
7756 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
7757 * describes the possible range of values. This attribute is mandatory
7758 * if the command being issued is either
7759 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
7760 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
7761 */
7762 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
7763 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
7764 * band. This attribute is mandatory when command type is
7765 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
7766 */
7767 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
7768 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
7769 * band. This attribute is optional and should be included when command
7770 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
7771 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
7772 */
7773 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
7774
7775 /* keep last */
7776 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
7777 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
7778 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
7779};
Amir Patel62f72ed2019-03-11 20:13:53 +05307780
7781/**
Jiani Liu19f4cb02019-03-04 16:47:21 +08007782 * enum qca_coex_config_profiles - This enum defines different types of
7783 * traffic streams that can be prioritized one over the other during coex
7784 * scenarios.
7785 * The types defined in this enum are categorized in the below manner.
7786 * 0 - 31 values corresponds to WLAN
7787 * 32 - 63 values corresponds to BT
7788 * 64 - 95 values corresponds to Zigbee
7789 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
7790 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
7791 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
7792 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
7793 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
7794 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
7795 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
7796 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
7797 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
7798 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
7799 * @QCA_BT_A2DP: Prioritize BT A2DP
7800 * @QCA_BT_BLE: Prioritize BT BLE
7801 * @QCA_BT_SCO: Prioritize BT SCO
7802 * @QCA_ZB_LOW: Prioritize Zigbee Low
7803 * @QCA_ZB_HIGH: Prioritize Zigbee High
7804 */
7805enum qca_coex_config_profiles {
7806 /* 0 - 31 corresponds to WLAN */
7807 QCA_WIFI_STA_DISCOVERY = 0,
7808 QCA_WIFI_STA_CONNECTION = 1,
7809 QCA_WIFI_STA_CLASS_3_MGMT = 2,
7810 QCA_WIFI_STA_DATA = 3,
7811 QCA_WIFI_STA_ALL = 4,
7812 QCA_WIFI_SAP_DISCOVERY = 5,
7813 QCA_WIFI_SAP_CONNECTION = 6,
7814 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
7815 QCA_WIFI_SAP_DATA = 8,
7816 QCA_WIFI_SAP_ALL = 9,
7817 QCA_WIFI_CASE_MAX = 31,
7818 /* 32 - 63 corresponds to BT */
7819 QCA_BT_A2DP = 32,
7820 QCA_BT_BLE = 33,
7821 QCA_BT_SCO = 34,
7822 QCA_BT_CASE_MAX = 63,
7823 /* 64 - 95 corresponds to Zigbee */
7824 QCA_ZB_LOW = 64,
7825 QCA_ZB_HIGH = 65,
7826 QCA_ZB_CASE_MAX = 95,
7827 /* 0xff is default value if the u8 profile value is not set. */
7828 QCA_PROFILE_DEFAULT_VALUE = 255
7829};
7830
7831/**
7832 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
7833 * This enum defines the valid set of values of coex configuration types. These
7834 * values may used by attribute
7835 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
7836 *
7837 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
7838 * weights to default values.
7839 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
7840 * weights with configurability value.
7841 */
7842enum qca_vendor_attr_coex_config_types {
7843 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
7844 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
7845 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
7846 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
7847};
7848
7849/**
7850 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
7851 * attributes
7852 * Attributes for data used by
7853 * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
7854 *
7855 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
7856 * Indicate config type.
7857 * the config types are 32-bit values from qca_vendor_attr_coex_config_types
7858 *
7859 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
7860 * Indicate the Priority 1 profiles.
7861 * the profiles are 8-bit values from enum qca_coex_config_profiles
7862 * In same priority level, maximum to 4 profiles can be set here.
7863 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
7864 * Indicate the Priority 2 profiles.
7865 * the profiles are 8-bit values from enum qca_coex_config_profiles
7866 * In same priority level, maximum to 4 profiles can be set here.
7867 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
7868 * Indicate the Priority 3 profiles.
7869 * the profiles are 8-bit values from enum qca_coex_config_profiles
7870 * In same priority level, maximum to 4 profiles can be set here.
7871 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
7872 * Indicate the Priority 4 profiles.
7873 * the profiles are 8-bit values from enum qca_coex_config_profiles
7874 * In same priority level, maximum to 4 profiles can be set here.
7875 * NOTE:
7876 * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
7877 * arrangement:
7878 * 1: In the same u32 attribute(priority x), the profiles enum values own
7879 * same priority level.
7880 * 2: 0xff is default value if the u8 profile value is not set.
7881 * 3: max to 4 rules/profiles in same priority level.
7882 * 4: max to 4 priority level (priority 1 - priority 4)
7883 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
7884 * hybrid rules not support.
7885 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
7886 * remain blank to reset all parameters.
7887 * For example:
7888 *
7889 * If the attributes as follow:
7890 * priority 1:
7891 * ------------------------------------
7892 * | 0xff | 0 | 1 | 2 |
7893 * ------------------------------------
7894 * priority 2:
7895 * -------------------------------------
7896 * | 0xff | 0xff | 0xff | 32 |
7897 * -------------------------------------
7898 * priority 3:
7899 * -------------------------------------
7900 * | 0xff | 0xff | 0xff | 65 |
7901 * -------------------------------------
7902 * then it means:
7903 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
7904 * owns same priority level.
7905 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
7906 * has priority over BT_A2DP and ZB_HIGH.
7907 * 3: BT_A2DP has priority over ZB_HIGH.
7908 */
7909
7910enum qca_vendor_attr_coex_config_three_way {
7911 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
7912 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
7913 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
7914 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
7915 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
7916 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
7917
7918 /* Keep last */
7919 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
7920 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
7921 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
7922};
7923
7924/**
Amir Patel62f72ed2019-03-11 20:13:53 +05307925 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
7926 * This enum defines the valid set of values of peer stats cache types. These
7927 * values are used by attribute
7928 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
7929 *
7930 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
7931 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
7932 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
7933 * statistics
7934 */
7935enum qca_vendor_attr_peer_stats_cache_type {
7936 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
7937
7938 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
7939 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
7940 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
7941};
7942
7943/**
7944 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
7945 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
7946 * Attributes are required to flush peer rate statistics from driver to
7947 * user application.
7948 *
7949 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
7950 * Indicate peer stats cache type.
7951 * The statistics types are 32-bit values from
7952 * qca_vendor_attr_peer_stats_cache_type
7953 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
7954 * of size 6, representing peer mac address.
7955 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
7956 * containing buffer of statistics to send event to application layer entity.
7957 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
7958 * representing cookie for peer unique session.
7959 */
7960enum qca_wlan_vendor_attr_peer_stats_cache_params {
7961 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
7962
7963 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
7964 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
7965 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
7966 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
7967
7968 /* Keep last */
7969 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
7970 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
7971 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
7972};
stoneza558be12019-03-11 13:59:57 +08007973
7974/**
7975 * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
7976 * this enum defines all the possible state of zigbee, which can be
7977 * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
7978 *
7979 * @ZIGBEE_IDLE: zigbee in idle state
7980 * @ZIGBEE_FORM_NETWORK: zibee forming network
7981 * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
7982 * @ZIGBEE_JOIN: zigbee joining network
7983 * @ZIGBEE_NETWORK_UP: zigbee network is up
7984 * @ZIGBEE_HMI: zigbee in HMI mode
7985 */
7986enum qca_mpta_helper_attr_zigbee_state {
7987 ZIGBEE_IDLE = 0,
7988 ZIGBEE_FORM_NETWORK = 1,
7989 ZIGBEE_WAIT_JOIN = 2,
7990 ZIGBEE_JOIN = 3,
7991 ZIGBEE_NETWORK_UP = 4,
7992 ZIGBEE_HMI = 5,
7993};
7994
7995/**
7996 * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
7997 * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
7998 */
7999enum qca_mpta_helper_vendor_attr {
8000 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
8001 /* Optional attribute used to update zigbee state.
8002 * enum qca_mpta_helper_attr_zigbee_state.
8003 * NLA_U32 attribute.
8004 */
8005 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
8006 /* Optional attribute used to configure wlan duration for Shape-OCS
8007 * during interrupt.
8008 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
8009 * Value range 0 ~ 300 (ms).
8010 * NLA_U32 attribute.
8011 */
8012 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
8013 /* Optional attribute used to configure non wlan duration for Shape-OCS
8014 * during interrupt.
8015 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
8016 * Value range 0 ~ 300 (ms).
8017 * NLA_U32 attribute.
8018 */
8019 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
8020 /* Optional attribute used to configure wlan duration for Shape-OCS
8021 * monitor period.
8022 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
8023 * Value range 0 ~ 300 (ms)
8024 * NLA_U32 attribute
8025 */
8026 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
8027 /* Optional attribute used to configure non wlan duration for Shape-OCS
8028 * monitor period.
8029 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
8030 * Value range 0 ~ 300 (ms)
8031 * NLA_U32 attribute
8032 */
8033 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
8034 /* Optional attribute used to configure ocs interrupt duration.
8035 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
8036 * Value range 1000 ~ 20000 (ms)
8037 * NLA_U32 attribute
8038 */
8039 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
8040 /* Optional attribute used to configure ocs monitor duration.
8041 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
8042 * Value range 1000 ~ 20000 (ms)
8043 * NLA_U32 attribute
8044 */
8045 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
8046 /* Optional attribute used to notify wlan FW current zigbee channel.
8047 * Value range 11 ~ 26
8048 * NLA_U32 attribute
8049 */
8050 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
8051 /* Optional attribute used to configure wlan mute duration.
8052 * Value range 0 ~ 400 (ms)
8053 * NLA_U32 attribute
8054 */
8055 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
8056
8057 /* keep last */
8058 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
8059 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
8060 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
8061};
Abhinav Kumar88e3fc52019-05-03 00:21:11 +05308062
8063/**
8064 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
8065 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
8066 * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
8067 *
8068 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
8069 * to request the driver to start reporting Beacon frames.
8070 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
8071 * to request the driver to stop reporting Beacon frames.
8072 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
8073 * userspace to report received Beacon frames.
8074 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
8075 * to indicate that the driver is going to pause reporting Beacon frames.
8076 */
8077enum qca_wlan_vendor_beacon_reporting_op_types {
8078 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
8079 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
8080 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
8081 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
8082};
8083
8084/**
8085 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
8086 * types of reasons for which the driver is pausing reporting Beacon frames.
8087 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
8088 *
8089 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
8090 * reasons.
8091 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
8092 * driver/firmware is starting a scan.
8093 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
8094 * driver/firmware disconnects from the ESS and indicates the disconnection to
8095 * userspace (non-seamless roaming case). This reason code will be used by the
8096 * driver/firmware to indicate stopping of beacon report events. Userspace
8097 * will need to start beacon reporting again (if desired) by sending vendor
8098 * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
8099 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
8100 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
8101 * completed.
8102 */
8103enum qca_wlan_vendor_beacon_reporting_pause_reasons {
8104 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
8105 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
8106 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
8107};
8108
8109/*
8110 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
8111 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
8112 */
8113enum qca_wlan_vendor_attr_beacon_reporting_params {
8114 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
8115 /* Specifies the type of operation that the vendor command/event is
8116 * intended for. Possible values for this attribute are defined in
8117 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
8118 */
8119 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
8120 /* Optionally set by userspace to request the driver to report Beacon
8121 * frames using asynchronous vendor events when the
8122 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8123 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
8124 * If this flag is not set, the driver will only update Beacon frames
8125 * in cfg80211 scan cache but not send any vendor events.
8126 */
8127 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
8128 /* Optionally used by userspace to request the driver/firmware to
8129 * report Beacon frames periodically when the
8130 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8131 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
8132 * u32 attribute, indicates the period of Beacon frames to be reported
8133 * and in the units of beacon interval.
8134 * If this attribute is missing in the command, then the default value
8135 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
8136 * Zero is an invalid value.
8137 * If a valid value is received for this attribute, the driver will
8138 * update the cfg80211 scan cache periodically as per the value
8139 * received in this attribute in addition to updating the cfg80211 scan
8140 * cache when there is significant change in Beacon frame IEs.
8141 */
8142 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
8143 /* Used by the driver to encapsulate the SSID when the
8144 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8145 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8146 * u8 array with a maximum size of 32.
8147 *
8148 * When generating beacon report from non-MBSSID Beacon frame, the SSID
8149 * will be taken from the SSID element of the received Beacon frame.
8150 *
8151 * When generating beacon report from Multiple BSSID Beacon frame and
8152 * if the BSSID of the current connected BSS matches the BSSID of the
8153 * transmitting BSS, the SSID will be taken from the SSID element of
8154 * the received Beacon frame.
8155 *
8156 * When generating beacon report from Multiple BSSID Beacon frame and
8157 * if the BSSID of the current connected BSS matches the BSSID of one
8158 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
8159 * field included in the nontransmitted BSS profile whose derived BSSI
8160 * is same as the BSSID of the current connected BSS. When there is no
8161 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
8162 * of current connected* BSS, this attribute will not be present.
8163 */
8164 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
8165 /* Used by the driver to encapsulate the BSSID of the AP to which STA
8166 * is currently connected to when the
8167 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8168 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
8169 * fixed size of 6 bytes.
8170 *
8171 * When generating beacon report from a Multiple BSSID beacon and the
8172 * current connected BSSID matches one of the nontransmitted BSSIDs in
8173 * a Multiple BSSID set, this BSSID will be that particular
8174 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
8175 * transmitting address of the Beacon frame).
8176 */
8177 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
8178 /* Used by the driver to encapsulate the frequency in MHz on which
8179 * the Beacon frame was received when the
8180 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
8181 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8182 * u32 attribute.
8183 */
8184 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
8185 /* Used by the driver to encapsulate the Beacon interval
8186 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8187 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8188 * u16 attribute. The value will be copied from the Beacon frame and
8189 * the units are TUs.
8190 */
8191 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
8192 /* Used by the driver to encapsulate the Timestamp field from the
8193 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
8194 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8195 * u64 attribute.
8196 */
8197 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
8198 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
8199 * Beacon frame is received in the driver when the
8200 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8201 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
8202 * the units of nanoseconds. This value is expected to have accuracy of
8203 * about 10 ms.
8204 */
8205 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
8206 /* Used by the driver to encapsulate the IEs of the Beacon frame from
8207 * which this event is generated when the
8208 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8209 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
8210 */
8211 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
8212 /* Used by the driver to specify the reason for the driver/firmware to
8213 * pause sending beacons to userspace when the
8214 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8215 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
8216 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
8217 * attribute.
8218 */
8219 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
8220 /* Used by the driver to specify whether the driver will automatically
8221 * resume reporting beacon events to userspace later (for example after
8222 * the ongoing off-channel activity is completed etc.) when the
8223 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8224 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
8225 */
8226 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
Bala Venkatesh3b0dee82019-06-12 11:41:17 +05308227 /* Optionally set by userspace to request the driver not to resume
8228 * beacon reporting after a pause is completed, when the
8229 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8230 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
8231 * If this flag is set, the driver will not resume beacon reporting
8232 * after any pause in beacon reporting is completed. Userspace has to
8233 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
8234 * to initiate beacon reporting again. If this flag is set in the recent
8235 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
8236 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
8237 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
8238 * set by the driver. Setting this flag until and unless there is a
8239 * specific need is not recommended as there is a chance of some beacons
8240 * received after pause command and next start command being not
8241 * reported.
8242 */
8243 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
Abhinav Kumar88e3fc52019-05-03 00:21:11 +05308244
8245 /* Keep last */
8246 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
8247 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
8248 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
8249};
8250
Paul Zhang71b1d142019-06-23 21:15:21 +08008251/*
8252 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
8253 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
8254 *
8255 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: The binary blob for the vendor
8256 * command QCA_NL80211_VENDOR_SUBCMD_OEM_DATA are carried through this
8257 * attribute.
8258 * NLA_BINARY attribute, the max size is 1024 bytes.
8259 */
8260enum qca_wlan_vendor_attr_oem_data_params {
8261 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
8262 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
8263
8264 /* keep last */
8265 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
8266 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
8267 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
8268};
Shiva Sankar Gajula0f1216e2019-10-18 10:35:31 +05308269
Rajeev Kumar Sirasanagandla90f0c5e2019-09-23 19:31:48 +05308270/**
8271 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
8272 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
8273 *
8274 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
8275 * Nested attribute containing multiple ranges with following attributes:
8276 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
8277 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
8278 *
8279 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
8280 * Starting center frequency in MHz.
8281 *
8282 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
8283 * Ending center frequency in MHz.
8284 */
8285enum qca_wlan_vendor_attr_avoid_frequency_ext {
8286 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
8287 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
8288 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
8289 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
8290
8291 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
8292 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
8293 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
8294};
8295
Shiva Sankar Gajula0f1216e2019-10-18 10:35:31 +05308296/*
8297 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
8298 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
8299 */
8300enum qca_wlan_vendor_attr_add_sta_node_params {
8301 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
8302 /* 6 byte MAC address of STA */
8303 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
8304 /* Authentication algorithm used by the station of size u16;
8305 * defined in enum nl80211_auth_type.
8306 */
8307 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
8308
8309 /* keep last */
8310 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
8311 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
8312 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
8313};
Yu Wang2b952042019-10-16 09:06:55 +08008314
8315/**
8316 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
8317 * This enum defines the valid set of values of BT coex chain mode.
8318 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
8319 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
8320 *
8321 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
8322 * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
8323 */
8324enum qca_btc_chain_mode {
8325 QCA_BTC_CHAIN_SHARED = 0,
8326 QCA_BTC_CHAIN_SEPARATED = 1,
8327};
8328
8329/**
8330 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
8331 * chain mode.
8332 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
8333 *
8334 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
8335 * Indicates the BT coex chain mode, are 32-bit values from
8336 * enum qca_btc_chain_mode. This attribute is mandatory.
8337 *
8338 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
8339 * If set, vdev should be restarted when BT coex chain mode is updated.
8340 * This attribute is optional.
8341 */
8342enum qca_vendor_attr_btc_chain_mode {
8343 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
8344 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
8345 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
8346
8347 /* Keep last */
8348 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
8349 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
8350 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
8351};
8352
Vivek3e5a3ba2017-02-20 18:13:57 +05308353#endif