blob: 87619ea17b6d2e90a55255393a18d4b262267208 [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.
Srinivas Dasari73660c52020-02-16 17:33:36 +0530384 *
385 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
386 * The host driver initiates the disconnection for scenarios such as beacon
387 * miss, NUD failure, peer kick out, etc. The disconnection indication
388 * through cfg80211_disconnected() expects the reason codes from enum
389 * ieee80211_reasoncode which does not signify these various reasons why
390 * the driver has triggered the disconnection. This event will be used to
391 * send the driver specific reason codes by the host driver to userspace.
392 * Host drivers should trigger this event and pass the respective reason
393 * code immediately prior to triggering cfg80211_disconnected(). The
394 * attributes used with this event are defined in enum
395 * qca_wlan_vendor_attr_driver_disconnect_reason.
Vivek3e5a3ba2017-02-20 18:13:57 +0530396 */
397
398enum qca_nl80211_vendor_subcmds {
399 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
400 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
401 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
402 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
403 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
404 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
405 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
406
407 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
408 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
409 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
410 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
411 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
412 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
413
414 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
415 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
416 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
417 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
418 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
419 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
420 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
421 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
422 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
423 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
424 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
425 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
426 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
427 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
428
429 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
430 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
431 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
432 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
433
434 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
435
436 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
437 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
438
439 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
440
441 /* Get Concurrency Matrix */
442 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
443
444 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
445 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530446 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Vivek3e5a3ba2017-02-20 18:13:57 +0530447
448 /* Deprecated */
449 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
450
451 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
452
453 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
454
455 /* Off loaded DFS events */
456 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
457 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
458 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
459 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
460 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
461
462 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
463 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
464 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
465 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
466 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
467 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
468 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
469 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
470 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
471 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
472 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
473 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
474 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
475
476 /* Wi-Fi Configuration subcommands */
477 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
478 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
479 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
480 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
481
482 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
483 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
484 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
485 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
486
487 /* NS Offload enable/disable cmd */
488 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
489
490 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
491 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
492
493 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
494
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530495 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Vivek3e5a3ba2017-02-20 18:13:57 +0530496 /* OCB commands */
497 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
498 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
499 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
500 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
501 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
502 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
503 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
504 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
505 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
506
507 /* subcommand to get link properties */
508 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
509 /* LFR Subnet Detection */
510 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
511
512 /* DBS subcommands */
513 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
514 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
515
516 /* Vendor setband command */
517 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
518
519 /* Vendor scan commands */
520 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
521 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
522
523 /* OTA test subcommand */
524 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
525 /* Tx power scaling subcommands */
526 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
527 /* Tx power scaling in db subcommands */
528 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
529 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
530 QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
531 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
532 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
533 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
534 QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
535 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
536 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
537 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Om Prakash Tripathi7d867d62017-04-26 16:52:09 +0530538 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
Vivek3e5a3ba2017-02-20 18:13:57 +0530539
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530540 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Zhang Qian7fc2e862017-03-23 17:49:43 +0800541 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530542 /* FTM/indoor location subcommands */
543 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
544 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
545 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
546 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
547 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
548 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
549 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
550 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
551 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Zhang Qian7fc2e862017-03-23 17:49:43 +0800552
Vivek3e5a3ba2017-02-20 18:13:57 +0530553 /* Encrypt/Decrypt command */
554 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
555
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530556 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
557 /* DMG low level RF sector operations */
558 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
559 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
560 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
561 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
562
Vivek3e5a3ba2017-02-20 18:13:57 +0530563 /* Configure the TDLS mode from user space */
564 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
565
Krishna Kumaar Natarajan526307e2017-02-24 11:08:41 -0800566 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
567
Vivek3e5a3ba2017-02-20 18:13:57 +0530568 /* Vendor abort scan command */
569 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
570
571 /* Set Specific Absorption Rate(SAR) Power Limits */
572 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
573
574 /* External Auto channel configuration setting */
575 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
576
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530577 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
578 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
579 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
580 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
581
Vivek3e5a3ba2017-02-20 18:13:57 +0530582 /* Set the trace level for QDF */
583 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +0530584
585 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
586
587 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
588 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
Ganesh Kondabattini727c4b32017-08-29 13:23:00 +0530589 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
Anurag Chouhan6e569862017-10-04 12:42:27 +0530590 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +0530591 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
592 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
593 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
594 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
Chaithanya Garrepalli30927c52017-11-22 14:31:47 +0530595 QCA_NL80211_VENDOR_SUBCMD_HTT_STATS = 162,
Krishna Raofcb834f2017-11-11 20:38:29 +0530596 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
Jeff Johnsonf2f8dea2017-12-18 15:49:20 -0800597 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
Yeshwanth Sriram Guntuka64de3442018-02-23 12:17:41 +0530598 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
Venkateswara Swamy Bandaruce6b9442018-02-20 14:24:49 +0530599 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
Pankaj Singh1e0b3242020-01-20 18:42:52 +0530600 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -0800601 /* Wi-Fi test configuration subcommand */
602 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
Nachiket Kukade30ed5c42018-12-03 18:30:46 +0530603 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Alok Kumardb0d4232018-11-08 19:08:13 +0530604 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
Jiani Liu19f4cb02019-03-04 16:47:21 +0800605 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
Qun Zhangaf8a0812019-02-01 11:30:34 +0800606 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
Amir Patel62f72ed2019-03-11 20:13:53 +0530607 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
stoneza558be12019-03-11 13:59:57 +0800608 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Abhinav Kumar88e3fc52019-05-03 00:21:11 +0530609 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
Paul Zhangf9afcce2019-05-13 16:08:01 +0800610 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Paul Zhang71b1d142019-06-23 21:15:21 +0800611 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
Rajeev Kumar Sirasanagandla90f0c5e2019-09-23 19:31:48 +0530612 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
Shiva Sankar Gajula0f1216e2019-10-18 10:35:31 +0530613 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
Yu Wang2b952042019-10-16 09:06:55 +0800614 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ashish Kumar Dhanotiya33ff8de2020-01-20 19:29:53 +0530615 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
Abhishek Amburef15d7762020-02-14 13:31:42 +0530616 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
Srinivas Dasari73660c52020-02-16 17:33:36 +0530617 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Ganesh Kondabattini727c4b32017-08-29 13:23:00 +0530618};
619
620enum qca_wlan_vendor_tos {
621 QCA_WLAN_VENDOR_TOS_BK = 0,
622 QCA_WLAN_VENDOR_TOS_BE = 1,
623 QCA_WLAN_VENDOR_TOS_VI = 2,
624 QCA_WLAN_VENDOR_TOS_VO = 3,
625};
626
627/**
628 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
629 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
630 */
631enum qca_wlan_vendor_attr_active_tos {
632 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
633 /* Type Of Service - Represented by qca_wlan_vendor_tos */
634 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
635 /* Flag attribute representing the start (attribute included) or stop
636 * (attribute not included) of the respective TOS.
637 */
638 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
639 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
Vivek3e5a3ba2017-02-20 18:13:57 +0530640};
641
Anurag Chouhan6e569862017-10-04 12:42:27 +0530642enum qca_wlan_vendor_hang_reason {
643 /* Unspecified reason */
644 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
645 /* No Map for the MAC entry for the received frame */
646 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
647 /* peer deletion timeout happened */
648 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
649 /* peer unmap timeout */
650 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
651 /* Scan request timed out */
652 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
653 /* Consecutive Scan attempt failures */
654 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
655 /* Unable to get the message buffer */
656 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
657 /* Current command processing is timedout */
658 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
659 /* Timeout for an ACK from FW for suspend request */
660 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
661 /* Timeout for an ACK from FW for resume request */
662 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
663 /* Transmission timeout for consecutive data frames */
664 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
665 /* Timeout for the TX completion status of data frame */
666 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
667 /* DXE failure for tx/Rx, DXE resource unavailability */
668 QCA_WLAN_HANG_DXE_FAILURE = 12,
669 /* WMI pending commands exceed the maximum count */
670 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
671};
672
673/**
674 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
675 * QCA_NL80211_VENDOR_SUBCMD_HANG.
676 */
677enum qca_wlan_vendor_attr_hang {
678 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
679 /*
680 * Reason for the Hang - Represented by enum
681 * qca_wlan_vendor_hang_reason.
682 */
683 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
684
685 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
686 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
687 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
688};
689
Vivek3e5a3ba2017-02-20 18:13:57 +0530690/**
691 * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
692 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
693 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
694 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
695 level needs to be updated.
696 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
697 * to be set.
698 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
699 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
700 */
701enum qca_vendor_attr_set_trace_level {
702 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
703 /*
704 * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
705 * attributes.
706 */
707 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
708 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
709 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
710 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
711 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
712 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
713};
714
715/**
716 * enum qca_wlan_vendor_attr_get_station - Sub commands used by
717 * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
718 * station information. The information obtained through these
719 * commands signify the current info in connected state and
720 * latest cached information during the connected state , if queried
721 * when in disconnected state.
722 *
723 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
724 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
725 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
Will Huang7c17db62017-07-13 18:05:34 +0800726 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
Vivek3e5a3ba2017-02-20 18:13:57 +0530727 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
728 */
729enum qca_wlan_vendor_attr_get_station {
730 QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
731 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
732 QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
Will Huang7c17db62017-07-13 18:05:34 +0800733 QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
Vivek3e5a3ba2017-02-20 18:13:57 +0530734
735 /* keep last */
736 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
737 QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
738 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
739};
740
741/**
Abhishek Amburef15d7762020-02-14 13:31:42 +0530742 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
743 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
744 *
745 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
746 * Used in STA mode. This attribute represents the list of channel center
747 * frequencies in MHz (u32) the station has learnt during the last connection
748 * or roaming attempt. This information shall not signify the channels for
749 * an explicit scan request from the user space. Host drivers can update this
750 * information to the user space in both connected and disconnected state.
751 * In the disconnected state this information shall signify the channels
752 * scanned in the last connection/roam attempt that lead to the disconnection.
753 */
754enum qca_wlan_vendor_attr_update_sta_info {
755 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
756 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
757
758 /* keep last */
759 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
760 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
761 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
762};
763
764/**
Vivek3e5a3ba2017-02-20 18:13:57 +0530765 * enum qca_wlan_802_11_mode - dot11 mode
Vivek3e5a3ba2017-02-20 18:13:57 +0530766 * @QCA_WLAN_802_11_MODE_11B: mode B
767 * @QCA_WLAN_802_11_MODE_11G: mode G
768 * @QCA_WLAN_802_11_MODE_11N: mode N
Ashish Kumar Dhanotiya18724892017-11-13 11:25:58 +0530769 * @QCA_WLAN_802_11_MODE_11A: mode A
Vivek3e5a3ba2017-02-20 18:13:57 +0530770 * @QCA_WLAN_802_11_MODE_11AC: mode AC
Ashish Kumar Dhanotiya18724892017-11-13 11:25:58 +0530771 * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
Vivek3e5a3ba2017-02-20 18:13:57 +0530772 */
773enum qca_wlan_802_11_mode {
Vivek3e5a3ba2017-02-20 18:13:57 +0530774 QCA_WLAN_802_11_MODE_11B,
775 QCA_WLAN_802_11_MODE_11G,
776 QCA_WLAN_802_11_MODE_11N,
Ashish Kumar Dhanotiya18724892017-11-13 11:25:58 +0530777 QCA_WLAN_802_11_MODE_11A,
Vivek3e5a3ba2017-02-20 18:13:57 +0530778 QCA_WLAN_802_11_MODE_11AC,
Ashish Kumar Dhanotiya18724892017-11-13 11:25:58 +0530779 QCA_WLAN_802_11_MODE_INVALID,
Vivek3e5a3ba2017-02-20 18:13:57 +0530780};
781
782/**
783 * enum qca_wlan_auth_type - Authentication key management type
784 * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
785 * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
786 * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
787 * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
788 * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
789 * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
790 * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
791 * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
792 * @QCA_WLAN_AUTH_TYPE_FT: ft key
793 * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
794 * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
795 * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
796 * @QCA_WLAN_AUTH_TYPE_WAI: wai key
797 * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
798 * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
799 * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
Pragaspathi Thilagaraj17810df2019-02-18 17:42:21 +0530800 * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
801 * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
Vivek3e5a3ba2017-02-20 18:13:57 +0530802 */
803enum qca_wlan_auth_type {
804 QCA_WLAN_AUTH_TYPE_INVALID,
805 QCA_WLAN_AUTH_TYPE_OPEN,
806 QCA_WLAN_AUTH_TYPE_SHARED,
807 QCA_WLAN_AUTH_TYPE_WPA,
808 QCA_WLAN_AUTH_TYPE_WPA_PSK,
809 QCA_WLAN_AUTH_TYPE_WPA_NONE,
810 QCA_WLAN_AUTH_TYPE_RSN,
811 QCA_WLAN_AUTH_TYPE_RSN_PSK,
812 QCA_WLAN_AUTH_TYPE_FT,
813 QCA_WLAN_AUTH_TYPE_FT_PSK,
814 QCA_WLAN_AUTH_TYPE_SHA256,
815 QCA_WLAN_AUTH_TYPE_SHA256_PSK,
816 QCA_WLAN_AUTH_TYPE_WAI,
817 QCA_WLAN_AUTH_TYPE_WAI_PSK,
818 QCA_WLAN_AUTH_TYPE_CCKM_WPA,
819 QCA_WLAN_AUTH_TYPE_CCKM_RSN,
820 QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
Pragaspathi Thilagaraj17810df2019-02-18 17:42:21 +0530821 QCA_WLAN_AUTH_TYPE_FT_SAE,
822 QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
Vivek3e5a3ba2017-02-20 18:13:57 +0530823};
824
825/**
826 * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
827 * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
828 *
829 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
830 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
831 * Get the standard NL attributes Nested with this attribute.
832 * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
833 * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
834 * NL80211_ATTR_STA_INFO
835 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
836 * Get the standard NL attributes Nested with this attribute.
837 * Ex : Query HT/VHT Capability advertized by the AP.
838 * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
839 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
840 * Number of successful Roam attempts before a
841 * disconnect, Unsigned 32 bit value
842 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
843 * Authentication Key Management Type used for the connected session.
844 * Signified by enum qca_wlan_auth_type
845 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
846 * connected Session, signified by enum qca_wlan_802_11_mode
847 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
848 * HS20 Indication Element
849 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
850 * Status Code Corresponding to the Association Failure.
851 * Unsigned 32 bit value.
Will Huang7c17db62017-07-13 18:05:34 +0800852 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
853 * Max phy rate of remote station
854 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
855 * TX packets to remote station
856 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
857 * TX bytes to remote station
858 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
859 * RX packets from remote station
860 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
861 * RX bytes from remote station
862 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
863 * Last TX rate with remote station
864 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
865 * Last RX rate with remote station
866 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
867 * Remote station enable/disable WMM
868 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
Jeff Johnson24d440b2018-05-12 11:41:14 -0700869 * Remote station connection mode
Will Huang7c17db62017-07-13 18:05:34 +0800870 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
871 * Remote station AMPDU enable/disable
872 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
873 * Remote station TX Space-time block coding enable/disable
874 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
875 * Remote station RX Space-time block coding enable/disable
876 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
877 * Remote station channel width
878 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
879 * Remote station short GI enable/disable
880 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
Srinivas Dasarif2145012020-02-16 18:07:20 +0530881 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
882 * containing the raw information elements from Beacon frames. Represents
883 * the Beacon frames of the current BSS in the connected state. When queried
884 * in the disconnected state, these IEs correspond to the last connected BSSID.
885 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
886 * disconnect reason for the last disconnection if the disconnection is
887 * triggered from the host driver. The values are referred from
888 * enum qca_disconnect_reason_codes. If the disconnect is from
889 * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
890 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
891 * Applicable in AP mode only. It contains the raw information elements
892 * from assoc request frame of the given peer station. User queries with the
893 * mac address of peer station when it disconnects. Host driver sends
894 * assoc request frame of the given station. Host driver doesn't provide
895 * the IEs when the peer station is still in connected state.
Vivek3e5a3ba2017-02-20 18:13:57 +0530896 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
897 */
898enum qca_wlan_vendor_attr_get_station_info {
899 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
900 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
901 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
902 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
903 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
904 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
905 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
906 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
907 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
908 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
Will Huang7c17db62017-07-13 18:05:34 +0800909 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
910 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
911 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
912 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
913 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
914 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
915 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
916 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
917 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
918 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
919 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
920 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
921 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
922 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
Will Huang7c17db62017-07-13 18:05:34 +0800923 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
Ashish Kumar Dhanotiya5e3af682018-07-10 18:54:41 +0530924 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
925 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
Srinivas Dasarif2145012020-02-16 18:07:20 +0530926 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
927 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
928 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
929 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
930 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
931 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
932 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
933 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
934 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
935 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
936 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
937 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
Ashish Kumar Dhanotiya5e3af682018-07-10 18:54:41 +0530938
Vivek3e5a3ba2017-02-20 18:13:57 +0530939 /* keep last */
940 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
941 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
942 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
943};
944
Vivek3e5a3ba2017-02-20 18:13:57 +0530945/**
946 * enum qca_nl80211_vendor_subcmds_index - vendor sub commands index
947 *
948 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX: Avoid frequency
949 * @QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX: Nan
950 * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX: Ext stats
951 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX: Ext scan start
952 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX: Ext scan stop
953 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX: Ext scan get
954 * capability
955 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX: Ext scan get
956 * cached results
957 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX: Ext scan
958 * results available
959 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX: Ext scan full
960 * scan result
961 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX: Ext scan event
962 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX: Ext scan hot list
963 * AP found
964 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX: Ext scan set
965 * bssid hotlist
966 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX: Ext scan reset
967 * bssid hotlist
968 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX: Ext scan
969 * significant change
970 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX: Ext scan
971 * set significant change
972 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX: Ext scan
973 * reset significant change
974 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX: Set stats
975 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX: Get stats
976 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX: Clear stats
977 * @QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX: Radio stats
978 * @QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX: Iface stats
979 * @QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX: Peer info stats
Zhang Qian7fc2e862017-03-23 17:49:43 +0800980 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT_INDEX: MAC layer counters
Vivek3e5a3ba2017-02-20 18:13:57 +0530981 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX: Ext tdls state change
982 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX: ACS command
983 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX: Pass Roam and Auth info
984 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX: hotlist ap lost
985 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX:
986 * pno network found index
987 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX:
988 * passpoint match found index
989 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX:
990 * set ssid hotlist index
991 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX:
992 * reset ssid hotlist index
993 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX:
994 * hotlist ssid found index
995 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX:
996 * hotlist ssid lost index
997 * @QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX
998 * dcc stats event index
999 * @QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX: vendor scan index
1000 * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX:
1001 * vendor scan complete event index
1002 * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX:
1003 * update gateway parameters index
Paul Zhangf9afcce2019-05-13 16:08:01 +08001004 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX:
1005 * update aps info which has interop issues events index
Vivek3e5a3ba2017-02-20 18:13:57 +05301006 * @QCA_NL80211_VENDOR_SUBCMD_TSF_INDEX: TSF response events index
1007 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX:
1008 * P2P listen offload index
1009 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH_INDEX: SAP
1010 * conditional channel switch index
Anurag Chouhand40d1d12017-09-11 14:56:30 +05301011 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET_INDEX: NUD DEBUG Stats index
Anurag Chouhan6e569862017-10-04 12:42:27 +05301012 * @QCA_NL80211_VENDOR_SUBCMD_HANG_REASON_INDEX: hang event reason index
Yeshwanth Sriram Guntuka64de3442018-02-23 12:17:41 +05301013 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO_INDEX: MAC mode info index
Nachiket Kukade30ed5c42018-12-03 18:30:46 +05301014 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT_INDEX: NAN Extended index
Abhinav Kumar88e3fc52019-05-03 00:21:11 +05301015 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX: Beacon reporting index
Ashish Kumar Dhanotiya33ff8de2020-01-20 19:29:53 +05301016 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_INDEX: Request SAR limit index
Vivek3e5a3ba2017-02-20 18:13:57 +05301017 */
1018
1019enum qca_nl80211_vendor_subcmds_index {
Vivek3e5a3ba2017-02-20 18:13:57 +05301020 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX = 0,
Vivek3e5a3ba2017-02-20 18:13:57 +05301021
Vivek3e5a3ba2017-02-20 18:13:57 +05301022 QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301023
1024#ifdef WLAN_FEATURE_STATS_EXT
1025 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX,
1026#endif /* WLAN_FEATURE_STATS_EXT */
1027
1028#ifdef FEATURE_WLAN_EXTSCAN
1029 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX,
1030 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX,
1031 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX,
1032 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX,
1033 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX,
1034 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX,
1035 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX,
1036 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX,
1037 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX,
1038 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX,
1039 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX,
1040 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX,
1041 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX,
1042#endif /* FEATURE_WLAN_EXTSCAN */
1043
1044#ifdef WLAN_FEATURE_LINK_LAYER_STATS
1045 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX,
1046 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX,
1047 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX,
1048 QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX,
1049 QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX,
1050 QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX,
Zhang Qian7fc2e862017-03-23 17:49:43 +08001051 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301052#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
1053
1054 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX,
1055 QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX,
1056#ifdef WLAN_FEATURE_ROAM_OFFLOAD
1057 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX,
1058#endif
1059 /* DFS */
1060 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED_INDEX,
1061 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED_INDEX,
1062 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED_INDEX,
1063 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED_INDEX,
1064 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED_INDEX,
1065#ifdef FEATURE_WLAN_EXTSCAN
1066 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX,
1067 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX,
1068 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX,
1069 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX,
1070 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX,
1071 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX,
1072 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX,
1073#endif /* FEATURE_WLAN_EXTSCAN */
Adil Saeed Musthafa65dabe42017-08-23 17:32:11 -07001074 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301075 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI_INDEX,
1076#ifdef WLAN_FEATURE_MEMDUMP
1077 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP_INDEX,
1078#endif /* WLAN_FEATURE_MEMDUMP */
1079 /* OCB events */
1080 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX,
1081 QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX,
1082 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX,
1083 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX,
Paul Zhangf9afcce2019-05-13 16:08:01 +08001084 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301085#ifdef WLAN_FEATURE_TSF
1086 QCA_NL80211_VENDOR_SUBCMD_TSF_INDEX,
1087#endif
Vivek3e5a3ba2017-02-20 18:13:57 +05301088 QCA_NL80211_VENDOR_SUBCMD_NDP_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301089 QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX,
1090 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH_INDEX,
1091 QCA_NL80211_VENDOR_SUBCMD_UPDATE_EXTERNAL_ACS_CONFIG,
Ravi Kumar Bokka4a517a22017-03-23 17:20:31 +05301092 QCA_NL80211_VENDOR_SUBCMD_PWR_SAVE_FAIL_DETECTED_INDEX,
Anurag Chouhand40d1d12017-09-11 14:56:30 +05301093 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET_INDEX,
Anurag Chouhan6e569862017-10-04 12:42:27 +05301094 QCA_NL80211_VENDOR_SUBCMD_HANG_REASON_INDEX,
Chaithanya Garrepalli30927c52017-11-22 14:31:47 +05301095 QCA_NL80211_VENDOR_SUBCMD_HTT_STATS_INDEX,
Yeshwanth Sriram Guntuka64de3442018-02-23 12:17:41 +05301096 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO_INDEX,
Nachiket Kukade30ed5c42018-12-03 18:30:46 +05301097 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT_INDEX,
Alok Kumardb0d4232018-11-08 19:08:13 +05301098 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT_INDEX,
Ashish Kumar Dhanotiya38a0c9f2018-01-19 20:17:02 +05301099 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES_INDEX,
Amir Patel62f72ed2019-03-11 20:13:53 +05301100 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH_INDEX,
Abhinav Kumar88e3fc52019-05-03 00:21:11 +05301101 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX,
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05301102 QCA_NL80211_VENDOR_SUBCMD_ROAM_INDEX,
Ashish Kumar Dhanotiya6078a892019-11-01 20:50:20 +05301103 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA_INDEX,
Ashish Kumar Dhanotiya33ff8de2020-01-20 19:29:53 +05301104 QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_INDEX,
Abhishek Amburef15d7762020-02-14 13:31:42 +05301105 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO_INDEX,
Vivek3e5a3ba2017-02-20 18:13:57 +05301106};
1107
1108/**
1109 * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
1110 *
1111 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
1112 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
1113 * value
1114 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
1115 * keep as unsigned for now
1116 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
1117 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
1118 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
1119 * in KBPS
1120 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
1121 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
1122 */
1123enum qca_wlan_vendor_attr_tdls_enable {
1124 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
1125 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
1126 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
1127 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
1128 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
1129 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
1130 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
1131 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
1132 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
1133};
1134
1135/**
1136 * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
1137 *
1138 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
1139 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
1140 * 8-bit value
1141 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
1142 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
1143 */
1144enum qca_wlan_vendor_attr_tdls_disable {
1145 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
1146 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
1147 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
1148 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
1149 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
1150};
1151
1152/**
Ravi Kumar Bokka4a517a22017-03-23 17:20:31 +05301153 * qca_chip_power_save_failure_reason: Power save failure reason
1154 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1155 * due to protocol/module.
1156 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1157 * due to hardware
1158 */
1159enum qca_chip_power_save_failure_reason {
1160 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1161 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1162};
1163
1164/**
1165 * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1166 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1167 * information leading to the power save failure.
1168 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1169 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1170 * represented by enum qca_chip_power_save_failure_reason
1171 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1172 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1173 */
1174enum qca_attr_chip_power_save_failure {
1175 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1176
1177 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1178
1179 /* keep last */
1180 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1181 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1182 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1183};
1184
1185
1186/**
Vivek3e5a3ba2017-02-20 18:13:57 +05301187 * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
1188 *
1189 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
1190 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
1191 * 8-bit value
1192 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
1193 * unsigned 32-bit value
1194 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
1195 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
1196 * unsigned 32-bit value
1197 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
1198 * class, unsigned 32-bit value
1199 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
1200 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
1201 */
1202enum qca_wlan_vendor_attr_tdls_get_status {
1203 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
1204 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
1205 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
1206 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
1207 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
1208 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
1209 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
1210 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
1211 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
1212};
1213
1214/**
1215 * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
1216 *
1217 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
1218 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
1219 * 8-bit value
1220 * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
1221 * unsigned 32-bit value
1222 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
1223 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
1224 * unsigned 32-bit value
1225 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
1226 * operating class, unsigned 32-bit value
1227 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
1228 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
1229 */
1230enum qca_wlan_vendor_attr_tdls_state {
1231 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
1232 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
1233 QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
1234 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
1235 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
1236 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
1237 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
1238 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
1239 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
1240};
1241
Jeff Johnson3a1832e2018-05-06 00:15:04 -07001242/* enum's to provide TDLS capabilities */
Vivek3e5a3ba2017-02-20 18:13:57 +05301243enum qca_wlan_vendor_attr_get_tdls_capabilities {
1244 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1245 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1246 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1247
1248 /* keep last */
1249 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1250 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1251 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1252};
1253
Vivek3e5a3ba2017-02-20 18:13:57 +05301254enum qca_wlan_vendor_attr {
1255 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301256 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1257 QCA_WLAN_VENDOR_ATTR_DFS = 1,
1258 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1259 QCA_WLAN_VENDOR_ATTR_NAN = 2,
1260 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1261 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
1262 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1263 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
1264 /*
1265 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1266 * by enum qca_roaming_policy.
1267 */
Vivek3e5a3ba2017-02-20 18:13:57 +05301268 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1269 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301270 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
Vivek3e5a3ba2017-02-20 18:13:57 +05301271 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301272 QCA_WLAN_VENDOR_ATTR_TEST = 8,
1273 /*
1274 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1275 * Unsigned 32-bit value.
1276 */
Vivek3e5a3ba2017-02-20 18:13:57 +05301277 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301278 /* Unsigned 32-bit value */
Vivek3e5a3ba2017-02-20 18:13:57 +05301279 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301280 /* Unsigned 32-bit value */
Vivek3e5a3ba2017-02-20 18:13:57 +05301281 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301282 /* Unsigned 32-bit value from enum qca_set_band. */
Vivek3e5a3ba2017-02-20 18:13:57 +05301283 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301284 /* Dummy (NOP) attribute for 64 bit padding */
1285 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1286 /*
1287 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1288 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1289 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1290 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1291 */
1292 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1293 /*
1294 * Indoor location capabilities, returned by
1295 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1296 * see enum qca_wlan_vendor_attr_loc_capa.
1297 */
1298 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1299 /*
1300 * Array of nested attributes containing information about each peer
1301 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1302 * for supported attributes for each peer.
1303 */
1304 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1305 /*
1306 * Array of nested attributes containing measurement results for
1307 * one or more peers, reported by the
1308 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1309 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1310 * attributes.
1311 */
1312 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1313 /* Flag attribute for enabling or disabling responder functionality. */
1314 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1315 /*
1316 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1317 * command to specify the LCI report that will be sent by
1318 * the responder during a measurement exchange. The format is
1319 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1320 */
1321 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1322 /*
1323 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1324 * command to specify the location civic report that will
1325 * be sent by the responder during a measurement exchange.
1326 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1327 */
1328 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1329 /*
1330 * Session/measurement completion status code,
1331 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1332 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1333 * see enum qca_vendor_attr_loc_session_status.
1334 */
1335 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1336 /*
1337 * Initial dialog token used by responder (0 if not specified),
1338 * unsigned 8 bit value.
1339 */
1340 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1341 /*
1342 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1343 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1344 * AOA measurements are needed as part of an FTM session.
1345 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1346 * enum qca_wlan_vendor_attr_aoa_type.
1347 */
1348 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1349 /*
1350 * A bit mask (unsigned 32 bit value) of antenna arrays used
1351 * by indoor location measurements. Refers to the antenna
1352 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1353 */
1354 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1355 /*
1356 * AOA measurement data. Its contents depends on the AOA measurement
1357 * type and antenna array mask:
1358 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1359 * phase of the strongest CIR path for each antenna in the measured
1360 * array(s).
1361 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1362 * values, phase and amplitude of the strongest CIR path for each
1363 * antenna in the measured array(s).
1364 */
1365 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1366 /*
1367 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1368 * to specify the chain number (unsigned 32 bit value) to inquire
1369 * the corresponding antenna RSSI value */
1370 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1371 /*
1372 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1373 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1374 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1375 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1376 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1377 /*
1378 * TSF timer value, unsigned 64 bit value.
1379 * May be returned by various commands.
1380 */
1381 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1382 /*
1383 * DMG RF sector index, unsigned 16 bit number. Valid values are
1384 * 0..127 for sector indices or 65535 as special value used to
1385 * unlock sector selection in
1386 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1387 */
1388 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1389 /*
1390 * DMG RF sector type, unsigned 8 bit value. One of the values
1391 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1392 */
1393 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1394 /*
1395 * Bitmask of DMG RF modules for which information is requested. Each
1396 * bit corresponds to an RF module with the same index as the bit
1397 * number. Unsigned 32 bit number but only low 8 bits can be set since
1398 * all DMG chips currently have up to 8 RF modules.
1399 */
1400 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1401 /*
1402 * Array of nested attributes where each entry is DMG RF sector
1403 * configuration for a single RF module.
1404 * Attributes for each entry are taken from enum
1405 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1406 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1407 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1408 */
1409 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1410 /*
1411 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1412 * to report frame aggregation statistics to userspace.
1413 */
1414 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1415 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1416 /*
1417 * Unsigned 8-bit value representing MBO transition reason code as
1418 * provided by the AP used by subcommand
1419 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1420 * specified by the userspace in the request to the driver.
1421 */
1422 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1423 /*
1424 * Array of nested attributes, BSSID and status code, used by subcommand
1425 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1426 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1427 * The userspace space specifies the list/array of candidate BSSIDs in
1428 * the order of preference in the request. The driver specifies the
1429 * status code, for each BSSID in the list, in the response. The
1430 * acceptable candidates are listed in the order preferred by the
1431 * driver.
1432 */
1433 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1434 /*
1435 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1436 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1437 */
1438 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1439 /*
1440 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1441 * to define the number of antennas to use for BRP.
1442 * different purpose in each ANT_LIMIT_MODE:
1443 * DISABLE - ignored
1444 * EFFECTIVE - upper limit to number of antennas to be used
1445 * FORCE - exact number of antennas to be used
1446 * unsigned 8 bit value
1447 */
1448 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1449 /*
1450 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1451 * to report the corresponding antenna index to the chain RSSI value
1452 */
1453 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
stonez2c6f4d12019-01-15 17:55:58 +08001454 /*
1455 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1456 * to report the specific antenna EVM value (unsigned 32 bit value).
1457 * With a determinate group of antennas, the driver specifies the
1458 * EVM value for each antenna ID, and application extract them
1459 * in user space.
1460 */
1461 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Qun Zhangaf8a0812019-02-01 11:30:34 +08001462 /*
1463 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1464 * wlan firmware current state. FW state is an unsigned 8 bit value,
1465 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1466 */
1467 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Vivek3e5a3ba2017-02-20 18:13:57 +05301468
1469 /* keep last */
1470 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1471 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1472};
1473
Vivek3e5a3ba2017-02-20 18:13:57 +05301474enum qca_wlan_vendor_attr_extscan_config_params {
1475 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1476
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301477 /* Unsigned 32-bit value */
1478 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05301479
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301480 /*
1481 * Attributes for data used by
1482 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1483 */
Vivek3e5a3ba2017-02-20 18:13:57 +05301484
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301485 /* Unsigned 32-bit value */
1486 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1487 = 2,
1488 /* Unsigned 32-bit value */
1489 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1490 = 3,
Vivek3e5a3ba2017-02-20 18:13:57 +05301491
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301492 /*
1493 * Attributes for input params used by
1494 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1495 */
Vivek3e5a3ba2017-02-20 18:13:57 +05301496
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301497 /* Unsigned 32-bit value; channel frequency */
1498 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1499 /* Unsigned 32-bit value; dwell time in ms. */
1500 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1501 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1502 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1503 /* Unsigned 8-bit value; channel class */
1504 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
Vivek3e5a3ba2017-02-20 18:13:57 +05301505
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301506 /* Unsigned 8-bit value; bucket index, 0 based */
1507 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1508 /* Unsigned 8-bit value; band. */
1509 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1510 /* Unsigned 32-bit value; desired period, in ms. */
1511 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1512 /* Unsigned 8-bit value; report events semantics. */
1513 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1514 /*
1515 * Unsigned 32-bit value. Followed by a nested array of
1516 * EXTSCAN_CHANNEL_SPEC_* attributes.
1517 */
1518 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
Vivek3e5a3ba2017-02-20 18:13:57 +05301519
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301520 /*
1521 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1522 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1523 */
1524 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
Vivek3e5a3ba2017-02-20 18:13:57 +05301525
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301526 /* Unsigned 32-bit value; base timer period in ms. */
1527 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1528 /*
1529 * Unsigned 32-bit value; number of APs to store in each scan in the
1530 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1531 */
1532 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1533 /*
1534 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1535 * up AP.
1536 */
1537 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1538 = 16,
Vivek3e5a3ba2017-02-20 18:13:57 +05301539
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301540 /*
1541 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1542 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1543 * of the array is determined by NUM_BUCKETS.
1544 */
1545 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
Vivek3e5a3ba2017-02-20 18:13:57 +05301546
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301547 /*
1548 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1549 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1550 */
1551 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
Vivek3e5a3ba2017-02-20 18:13:57 +05301552
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301553 /* Unsigned 8-bit value */
1554 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1555 = 19,
1556 /* Unsigned 32-bit value; maximum number of results to be returned. */
1557 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1558 = 20,
Vivek3e5a3ba2017-02-20 18:13:57 +05301559
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301560 /* An array of 6 x unsigned 8-bit value */
1561 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1562 /* Signed 32-bit value */
1563 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1564 /* Signed 32-bit value */
1565 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1566 /* Unsigned 32-bit value */
1567 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
Vivek3e5a3ba2017-02-20 18:13:57 +05301568
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301569 /*
1570 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1571 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1572 * array is determined by NUM_AP.
1573 */
1574 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
Vivek3e5a3ba2017-02-20 18:13:57 +05301575
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301576 /*
1577 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1578 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1579 */
1580 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
Vivek3e5a3ba2017-02-20 18:13:57 +05301581
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301582 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
1583 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1584 = 27,
1585 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
1586 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1587 = 28,
1588 /* Unsigned 32-bit value; number of APs breaching threshold. */
1589 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1590 /*
1591 * Unsigned 32-bit value; number of APs. Followed by an array of
1592 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1593 */
1594 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1595 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
1596 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1597 = 31,
1598 /*
1599 * Unsigned 32-bit value. If max_period is non zero or different than
1600 * period, then this bucket is an exponential backoff bucket.
1601 */
1602 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1603 /* Unsigned 32-bit value. */
1604 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1605 /*
1606 * Unsigned 32-bit value. For exponential back off bucket, number of
1607 * scans to perform for a given period.
1608 */
1609 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1610 /*
1611 * Unsigned 8-bit value; in number of scans, wake up AP after these
1612 * many scans.
1613 */
1614 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1615 = 35,
Vivek3e5a3ba2017-02-20 18:13:57 +05301616
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301617 /*
1618 * Attributes for data used by
1619 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1620 */
Vivek3e5a3ba2017-02-20 18:13:57 +05301621
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301622 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1623 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1624 = 36,
1625 /*
1626 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1627 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1628 * size of the array is determined by NUM_SSID.
1629 */
1630 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1631 /*
1632 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1633 * attributes.
1634 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1635 */
1636 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1637
1638 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1639 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1640 /* Unsigned 8-bit value */
1641 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1642 /* Signed 32-bit value */
1643 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1644 /* Signed 32-bit value */
1645 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1646 /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1647 */
1648 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1649
1650 /* keep last */
Vivek3e5a3ba2017-02-20 18:13:57 +05301651 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1652 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301653 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05301654};
1655
Vivek3e5a3ba2017-02-20 18:13:57 +05301656enum qca_wlan_vendor_attr_extscan_results {
1657 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1658
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301659 /*
1660 * Unsigned 32-bit value; must match the request Id supplied by
1661 * Wi-Fi HAL in the corresponding subcmd NL msg.
1662 */
1663 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05301664
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301665 /*
1666 * Unsigned 32-bit value; used to indicate the status response from
1667 * firmware/driver for the vendor sub-command.
1668 */
1669 QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
Vivek3e5a3ba2017-02-20 18:13:57 +05301670
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301671 /*
1672 * EXTSCAN Valid Channels attributes */
1673 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
1674 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
1675 /*
1676 * An array of NUM_CHANNELS x unsigned 32-bit value integers
1677 * representing channel numbers.
1678 */
1679 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
Vivek3e5a3ba2017-02-20 18:13:57 +05301680
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301681 /* EXTSCAN Capabilities attributes */
Vivek3e5a3ba2017-02-20 18:13:57 +05301682
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301683 /* Unsigned 32-bit value */
1684 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
1685 /* Unsigned 32-bit value */
1686 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
1687 /* Unsigned 32-bit value */
1688 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
1689 = 7,
1690 /* Unsigned 32-bit value */
1691 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
1692 = 8,
1693 /* Signed 32-bit value */
1694 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
1695 = 9,
1696 /* Unsigned 32-bit value */
1697 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
1698 /* Unsigned 32-bit value */
1699 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
1700 = 11,
1701 /* Unsigned 32-bit value */
1702 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
1703 = 12,
Vivek3e5a3ba2017-02-20 18:13:57 +05301704
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301705 /*
1706 * EXTSCAN Attributes used with
1707 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
Vivek3e5a3ba2017-02-20 18:13:57 +05301708 */
1709
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301710 /* Unsigned 32-bit value */
1711 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
1712
1713 /*
1714 * EXTSCAN attributes used with
1715 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
1716 */
1717
1718 /*
1719 * An array of NUM_RESULTS_AVAILABLE x
1720 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
1721 */
1722 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
1723
1724 /* Unsigned 64-bit value; age of sample at the time of retrieval */
1725 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
1726 /* 33 x unsigned 8-bit value; NULL terminated SSID */
1727 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
1728 /* An array of 6 x unsigned 8-bit value */
1729 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
1730 /* Unsigned 32-bit value; channel frequency in MHz */
1731 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
1732 /* Signed 32-bit value */
1733 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
1734 /* Unsigned 32-bit value */
1735 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
1736 /* Unsigned 32-bit value */
1737 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
1738 /* Unsigned 16-bit value */
1739 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
1740 /* Unsigned 16-bit value */
1741 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
1742 /* Unsigned 32-bit value; size of the IE DATA blob */
1743 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
1744 /*
1745 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
1746 * information elements found in the beacon; this data should be a
1747 * packed list of wifi_information_element objects, one after the
1748 * other.
1749 */
1750 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
1751
1752 /*
1753 * Unsigned 8-bit value; set by driver to indicate more scan results are
1754 * available.
1755 */
1756 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
1757
1758 /*
1759 * EXTSCAN attributes for
Vivek3e5a3ba2017-02-20 18:13:57 +05301760 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
1761 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301762 /* Unsigned 8-bit value */
1763 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
1764 /* Unsigned 32-bit value */
1765 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
Vivek3e5a3ba2017-02-20 18:13:57 +05301766
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301767 /*
1768 * EXTSCAN attributes for
Vivek3e5a3ba2017-02-20 18:13:57 +05301769 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
1770 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301771 /*
1772 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
Vivek3e5a3ba2017-02-20 18:13:57 +05301773 * to indicate number of results.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301774 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1775 * list of results.
Vivek3e5a3ba2017-02-20 18:13:57 +05301776 */
1777
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301778 /*
1779 * EXTSCAN attributes for
Vivek3e5a3ba2017-02-20 18:13:57 +05301780 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
1781 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301782 /* An array of 6 x unsigned 8-bit value */
1783 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
1784 /* Unsigned 32-bit value */
1785 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
1786 = 30,
1787 /* Unsigned 32-bit value. */
1788 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
1789 = 31,
1790 /*
1791 * A nested array of signed 32-bit RSSI values. Size of the array is
1792 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
1793 */
1794 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
1795 = 32,
Vivek3e5a3ba2017-02-20 18:13:57 +05301796
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301797 /*
1798 * EXTSCAN attributes used with
Vivek3e5a3ba2017-02-20 18:13:57 +05301799 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
1800 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301801 /*
1802 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1803 * to indicate number of extscan cached results returned.
1804 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
1805 * the list of extscan cached results.
Vivek3e5a3ba2017-02-20 18:13:57 +05301806 */
1807
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301808 /*
1809 * An array of NUM_RESULTS_AVAILABLE x
1810 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
1811 */
1812 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
1813 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
1814 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
1815 /*
1816 * Unsigned 32-bit value; a bitmask w/additional information about scan.
1817 */
1818 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
1819 /*
1820 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
Vivek3e5a3ba2017-02-20 18:13:57 +05301821 * to indicate number of wifi scan results/bssids retrieved by the scan.
1822 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1823 * list of wifi scan results returned for each cached result block.
1824 */
1825
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301826 /*
1827 * EXTSCAN attributes for
Vivek3e5a3ba2017-02-20 18:13:57 +05301828 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
1829 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301830 /*
1831 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
1832 * number of results.
Vivek3e5a3ba2017-02-20 18:13:57 +05301833 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
1834 * list of wifi scan results returned for each
1835 * wifi_passpoint_match_result block.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301836 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
Vivek3e5a3ba2017-02-20 18:13:57 +05301837 */
1838
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301839 /*
1840 * EXTSCAN attributes for
Vivek3e5a3ba2017-02-20 18:13:57 +05301841 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
1842 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301843 /* Unsigned 32-bit value */
1844 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
1845 = 36,
1846 /*
1847 * A nested array of
1848 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
1849 * attributes. Array size =
1850 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
1851 */
1852 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
1853
1854 /* Unsigned 32-bit value; network block id for the matched network */
1855 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
1856 /*
1857 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
Vivek3e5a3ba2017-02-20 18:13:57 +05301858 * list of wifi scan results returned for each
1859 * wifi_passpoint_match_result block.
1860 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301861 /* Unsigned 32-bit value */
1862 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
1863 /*
1864 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
1865 * ANQP data in the information_element format.
Vivek3e5a3ba2017-02-20 18:13:57 +05301866 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301867 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
Vivek3e5a3ba2017-02-20 18:13:57 +05301868
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301869 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1870 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
1871 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1872 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
1873 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1874 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
1875 = 43,
1876 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1877 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
1878 = 44,
1879
1880 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
1881 QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
Vivek3e5a3ba2017-02-20 18:13:57 +05301882
1883 /* keep last */
1884 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
1885 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05301886 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05301887};
Paul Zhangf9afcce2019-05-13 16:08:01 +08001888
1889/**
1890 * enum qca_vendor_interop_issues_ap_type - interop issues type
1891 * This enum defines the valid set of values of interop issues type. These
1892 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
1893 *
1894 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
1895 * when the STA's Qpower feature is enabled.
1896 */
1897enum qca_vendor_interop_issues_ap_type {
1898 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
1899 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
1900};
1901
1902/**
1903 * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
1904 * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
1905 *
1906 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
1907 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
1908 * 32-bit unsigned value, The type defined in enum
1909 * qca_vendor_interop_issues_ap_type are used.
1910 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
1911 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
1912 * it is present and mandatory for the command but is not used for
1913 * the event since only a single BSSID is reported in an event.
1914 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
1915 * 6-byte MAC address. It is used within the nested
1916 * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
1917 * and without such encapsulation in the event case.
1918 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
1919 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
1920 */
1921enum qca_vendor_attr_interop_issues_ap {
1922 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
1923 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
1924 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
1925 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
1926 /* keep last */
1927 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
1928 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
1929 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
1930};
Vivek3e5a3ba2017-02-20 18:13:57 +05301931
1932#ifdef WLAN_FEATURE_LINK_LAYER_STATS
1933
1934/**
1935 * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
1936 *
1937 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
1938 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
1939 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
1940 * Aggresive stats gathering
1941 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
1942 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
1943 */
1944enum qca_wlan_vendor_attr_ll_stats_set {
1945 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
1946 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
1947 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
1948 /* keep last */
1949 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
1950 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
1951 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
1952};
1953
1954/**
1955 * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
1956 *
1957 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
1958 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
1959 * provided by the caller issuing the GET stats command. When reporting
1960 * the stats results, the driver uses the same value to indicate which
1961 * GET request the results correspond to.
1962 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
1963 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
1964 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
1965 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
1966 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
1967 */
1968enum qca_wlan_vendor_attr_ll_stats_get {
1969 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
1970 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
1971 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
1972 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
1973 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
1974 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
1975};
1976
1977/**
1978 * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
1979 *
1980 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
1981 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
1982 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
1983 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
1984 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
1985 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
1986 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
1987 */
1988enum qca_wlan_vendor_attr_ll_stats_clr {
1989 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
1990 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
1991 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
1992 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
1993 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
1994 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
1995 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
1996 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
1997};
1998
1999/**
2000 * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
2001 *
2002 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
2003 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
2004 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
2005 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
2006 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
2007 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
2008 */
2009enum qca_wlan_vendor_attr_ll_stats_results_type {
2010 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
2011
2012 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
2013 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
2014 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
2015
2016 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
2017 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
2018 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
2019};
2020
2021/**
2022 * enum qca_wlan_vendor_attr_ll_stats_results - vendor attribute stats results
2023 *
2024 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are nested
2025 * within the interface stats.
2026 *
2027 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could be nested
2028 * within the interface stats.
2029 *
2030 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are nested
2031 * within the interface stats.
2032 *
2033 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* could be nested
2034 * within the peer info stats.
2035 *
2036 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could be
2037 * nested within the channel stats.
2038 *
2039 * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ could be nested
2040 * within the radio stats.
2041 *
2042 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID: Invalid initial value
2043 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID: Unsigned 32bit value
2044 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX: Unsigned 32bit value
2045 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX: Unsigned 32bit value
2046 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX: Unsigned 32bit value
2047 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX: Unsigned 32bit value
2048 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT: Unsigned 32bit value
2049 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA: Unsigned 32bit value
2050 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK: Unsigned 32bit value
2051 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE: Interface mode, e.g., STA,
2052 * SOFTAP, IBSS, etc. Type = enum wifi_interface_mode
2053 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR: Interface MAC address.
2054 * An array of 6 Unsigned int8_t
2055 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE:
2056 * Type = enum wifi_connection_state, e.g., DISCONNECTED, AUTHENTICATING,
2057 * etc. Valid for STA, CLI only
2058 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING:
2059 * Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2060 * (is that valid for STA only?)
2061 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES: Unsigned 32bit value.
2062 * WIFI_CAPABILITY_XXX
2063 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID: NULL terminated SSID. An
2064 * array of 33 Unsigned 8bit values
2065 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID: BSSID. An array of 6
2066 * Unsigned 8bit values
2067 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR: Country string
2068 * advertised by AP. An array of 3 Unsigned 8bit values
2069 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR: Country string for
2070 * this association. An array of 3 Unsigned 8bit values
2071 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC: Type = enum wifi_traffic_ac e.g.
2072 * V0, VI, BE and BK
2073 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU: Unsigned int 32 value
2074 * corresponding to respective AC
2075 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU: Unsigned int 32 value
2076 * corresponding to respective AC
2077 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST: Unsigned int 32 value
2078 * corresponding to respective AC
2079 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST: Unsigned int 32 value
2080 * corresponding to respective AC
2081 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU: Unsigned int 32 value
2082 * corresponding to respective AC
2083 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU: Unsigned int 32 value
2084 * corresponding to respective AC
2085 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST: Unsigned int 32 value
2086 * corresponding to respective AC
2087 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES: Unsigned int 32 value
2088 * corresponding to respective AC
2089 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT: Unsigned int 32 value
2090 * corresponding to respective AC
2091 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN: Unsigned int 32
2092 * value corresponding to respective AC
2093 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX: Unsigned int 32
2094 * value corresponding to respective AC
2095 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG: Unsigned int 32
2096 * value corresponding to respective AC
2097 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES: Unsigned int 32
2098 * value corresponding to respective AC
2099 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS: Unsigned int 32
2100 * value corresponding to respective AC
2101 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE: Type = enum wifi_peer_type
2102 * Peer type, e.g., STA, AP, P2P GO etc
2103 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS: MAC addr corresponding
2104 * to respective peer. An array of 6 Unsigned 8bit values
2105 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES: Unsigned int 32bit
2106 * value representing capabilities corresponding to respective peer.
2107 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES: Unsigned 32bit value.
2108 * Number of rates
2109 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE: Unsigned int 8bit value:
2110 * 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved
2111 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS: Unsigned int 8bit value:
2112 * 0:1x1, 1:2x2, 3:3x3, 4:4x4
2113 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW: Unsigned int 8bit value:
2114 * 0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz
2115 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX: Unsigned int 8bit value:
2116 * OFDM/CCK rate code would be as per IEEE Std in the units of 0.5mbps
2117 * HT/VHT it would be mcs index
2118 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE: Unsigned 32bit value.
2119 * Bit rate in units of 100Kbps
2120 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU: Unsigned int 32bit value.
2121 * Number of successfully transmitted data pkts i.e., with ACK received
2122 * corresponding to the respective rate
2123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU: Unsigned int 32bit value.
2124 * Number of received data pkts corresponding to the respective rate
2125 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST: Unsigned int 32bit value.
2126 * Number of data pkts losses, i.e., no ACK received corresponding to
2127 * the respective rate
2128 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES: Unsigned int 32bit value.
2129 * Total number of data pkt retries for the respective rate
2130 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT: Unsigned int 32bit value.
2131 * Total number of short data pkt retries for the respective rate
2132 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG: Unsigned int 32bit value.
2133 * Total number of long data pkt retries for the respective rate
2134 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID: Radio id
2135 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME: Unsigned 32bit value.
2136 * Total number of msecs the radio is awake accruing over time
2137 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME: Unsigned 32bit value.
2138 * Total number of msecs the radio is transmitting accruing over time
2139 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME: Unsigned 32bit value.
2140 * Total number of msecs the radio is in active receive accruing over time
2141 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN: Unsigned 32bit value.
2142 * Total number of msecs the radio is awake due to all scan accruing
2143 * over time
2144 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD: Unsigned 32bit value.
2145 * Total number of msecs the radio is awake due to NAN accruing over time.
2146 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN: Unsigned 32bit value.
2147 * Total number of msecs the radio is awake due to GSCAN accruing over time
2148 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN: Unsigned 32bit value.
2149 * Total number of msecs the radio is awake due to roam scan accruing over
2150 * time.
2151 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN: Unsigned 32bit value.
2152 * Total number of msecs the radio is awake due to PNO scan accruing over
2153 * time.
2154 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20: Unsigned 32bit value.
2155 * Total number of msecs the radio is awake due to HS2.0 scans and GAS
2156 * exchange accruing over time.
2157 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS: Unsigned 32bit value.
2158 * Number of channels
2159 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH:
2160 * Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80, etc.
2161 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ:
2162 * Unsigned 32bit value. Primary 20MHz channel.
2163 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0:
2164 * Unsigned 32bit value. Center frequency (MHz) first segment.
2165 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1:
2166 * Unsigned 32bit value. Center frequency (MHz) second segment.
2167 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME: Unsigned int 32bit value
2168 * representing total number of msecs the radio is awake on that channel
2169 * accruing over time, corresponding to the respective channel.
2170 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME: Unsigned int 32bit
2171 * value representing total number of msecs the CCA register is busy
2172 * accruing over time corresponding to the respective channel.
2173 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS: Number of radios
2174 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO: Channel info
2175 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO: Peer info
2176 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO: Peer rate info
2177 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO: WMM info
2178 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA: Unsigned 8bit value.
2179 * Used by the driver; if set to 1, it indicates that more stats, e.g.,
2180 * peers or radio, are to follow in the next
2181 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. Otherwise, it
2182 * is set to 0.
2183 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET: tsf offset
2184 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED: leaky ap detected
2185 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED:
2186 * average number of frames leaked
2187 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME: guard time
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302188 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE: Link Layer stats type
2189 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS: LL Radio Number of
2190 * Tx Levels
2191 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL:Number of msecs the
2192 * radio spent in transmitting for each power level
gaolezdb66e612017-03-16 18:32:15 +08002193 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT: RTS successful count
2194 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT: RTS fail count
2195 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT: PPDU successful count
2196 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT: PPDU fail count
Vivek3e5a3ba2017-02-20 18:13:57 +05302197 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST: After last
2198 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2199 */
2200
2201enum qca_wlan_vendor_attr_ll_stats_results {
2202 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2203 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2204
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302205 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2206 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2207 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2208 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2209 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2210 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2211 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2212 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2213 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2214 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2215 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2216 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2217 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2218 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2219 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2220 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
Vivek3e5a3ba2017-02-20 18:13:57 +05302221
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302222 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2223 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2224 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2225 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2226 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2227 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2228 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2229 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2230 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2231 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2232 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2233 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2234 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2235 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2236 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
Vivek3e5a3ba2017-02-20 18:13:57 +05302237
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302238 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
Vivek3e5a3ba2017-02-20 18:13:57 +05302239
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302240 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2241 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2242 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2243 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
Vivek3e5a3ba2017-02-20 18:13:57 +05302244
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302245 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2246 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2247 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2248 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2249 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
Vivek3e5a3ba2017-02-20 18:13:57 +05302250
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302251 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2252 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2253 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2254 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2255 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2256 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
Vivek3e5a3ba2017-02-20 18:13:57 +05302257
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302258 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2259 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2260 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2261 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2262 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2263 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2264 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2265 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2266 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2267 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2268 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
Vivek3e5a3ba2017-02-20 18:13:57 +05302269
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302270 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2271 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2272 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2273 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
Vivek3e5a3ba2017-02-20 18:13:57 +05302274
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302275 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2276 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
Vivek3e5a3ba2017-02-20 18:13:57 +05302277
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302278 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2279 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2280 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2281 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2282 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
Vivek3e5a3ba2017-02-20 18:13:57 +05302283
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302284 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
Vivek3e5a3ba2017-02-20 18:13:57 +05302285
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302286 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2287 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2288 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2289 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
Vivek3e5a3ba2017-02-20 18:13:57 +05302290
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302291 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
Vivek3e5a3ba2017-02-20 18:13:57 +05302292
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302293 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
Vivek3e5a3ba2017-02-20 18:13:57 +05302294
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302295 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2296
2297 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2298 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2299 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2300 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
Vivek3e5a3ba2017-02-20 18:13:57 +05302301
2302 /* keep last */
2303 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2304 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2305 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1
2306};
2307
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302308enum qca_wlan_vendor_attr_ll_stats_type {
2309 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2310 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2311 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2312 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2313
2314 /* keep last */
2315 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2316 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2317 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2318};
2319
Vivek3e5a3ba2017-02-20 18:13:57 +05302320#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2321
2322/**
2323 * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2324 *
2325 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2326 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2327 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2328 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2329 */
2330enum qca_wlan_vendor_attr_get_supported_features {
2331 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2332 QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2333 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2334 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2335 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2336};
2337
2338/**
2339 * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2340 *
2341 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2342 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2343 * value
2344 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2345 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2346 */
2347enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2348 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2349 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2350 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2351 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2352 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2353};
2354
2355/**
2356 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2357 *
2358 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2359 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2360 * with frequencies to be scanned (in MHz)
2361 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2362 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2363 * rates to be included
2364 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2365 * at non CCK rate in 2GHz band
2366 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2367 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2368 * driver for the specific scan request
2369 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2370 * request decoded as in enum scan_status
2371 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2372 * scan flag is set
2373 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2374 * randomisation
2375 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: BSSID provided to do scan for specific BSS
2376 */
2377enum qca_wlan_vendor_attr_scan {
2378 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2379 QCA_WLAN_VENDOR_ATTR_SCAN_IE,
2380 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
2381 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
2382 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
2383 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
2384 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
2385 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
2386 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
2387 QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
2388 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
2389 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID,
2390 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2391 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2392 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2393};
2394
2395/**
2396 * enum scan_status - Specifies the valid values the vendor scan attribute
2397 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2398 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2399 * new scan results
2400 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2401 */
2402enum scan_status {
2403 VENDOR_SCAN_STATUS_NEW_RESULTS,
2404 VENDOR_SCAN_STATUS_ABORTED,
2405 VENDOR_SCAN_STATUS_MAX,
2406};
2407
2408/**
2409 * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2410 *
2411 * NL attributes for data used by
2412 * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2413 *
2414 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2415 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2416 * Unsigned 32-bit value
2417 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2418 * Unsigned 32-bit value
2419 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2420 * array of SET_SIZE x Unsigned 32bit values representing concurrency
2421 * combinations
2422 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2423 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2424 */
2425enum qca_wlan_vendor_attr_get_concurrency_matrix {
2426 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
2427 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
2428 = 1,
2429 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
2430 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
2431 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
2432 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
2433 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
2434};
2435
2436/**
2437 * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
2438 *
2439 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
2440 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
2441 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
2442 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
2443 */
2444enum qca_wlan_vendor_attr_set_no_dfs_flag {
2445 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
2446 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
2447 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
2448 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
2449 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
2450};
2451
2452/**
2453 * enum qca_vendor_attr_wisa_cmd
2454 * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
2455 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
2456 * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
2457 * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
2458 * WISA setup vendor commands
2459 */
2460enum qca_vendor_attr_wisa_cmd {
2461 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2462 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2463 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2464 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2465 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2466};
2467
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05302468enum qca_roaming_policy {
2469 QCA_ROAMING_NOT_ALLOWED,
2470 QCA_ROAMING_ALLOWED_WITHIN_ESS,
2471};
2472
Vivek3e5a3ba2017-02-20 18:13:57 +05302473/**
sheenam mongaaf7c3c92019-04-03 17:48:19 +05302474 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
2475 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
2476 *
2477 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
2478 * reasons.
2479 *
2480 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
2481 * the configured threshold.
2482 *
2483 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
2484 * beacon misses from the then connected AP.
2485 *
2486 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
2487 * by the connected AP.
2488 *
2489 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
2490 * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
2491 * not poor.
2492 *
2493 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
2494 * or environment being very noisy / congested.
2495 *
2496 * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
2497 * from the user (user space).
2498 *
2499 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
2500 * connected AP.
2501 *
2502 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
2503 * breaching out the configured threshold.
2504 *
2505 */
2506enum qca_roam_reason {
2507 QCA_ROAM_REASON_UNKNOWN,
2508 QCA_ROAM_REASON_PER,
2509 QCA_ROAM_REASON_BEACON_MISS,
2510 QCA_ROAM_REASON_POOR_RSSI,
2511 QCA_ROAM_REASON_BETTER_RSSI,
2512 QCA_ROAM_REASON_CONGESTION,
2513 QCA_ROAM_REASON_USER_TRIGGER,
2514 QCA_ROAM_REASON_BTM,
2515 QCA_ROAM_REASON_BSS_LOAD,
2516};
2517
2518/**
Vivek3e5a3ba2017-02-20 18:13:57 +05302519 * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
2520 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
2521 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
2522 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
2523 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
2524 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
2525 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
2526 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
2527 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
Mukul Sharma9b53a472017-05-17 18:06:43 +05302528 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
2529 * Indicates the status of re-association requested by user space for
2530 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
2531 * Type u16.
2532 * Represents the status code from AP. Use
2533 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
2534 * real status code for failures.
2535 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
2536 * This attribute indicates that the old association was maintained when
2537 * a re-association is requested by user space and that re-association
2538 * attempt fails (i.e., cannot connect to the requested BSS, but can
2539 * remain associated with the BSS with which the association was in
2540 * place when being requested to roam). Used along with
2541 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
2542 * re-association status. Type flag.
2543 * This attribute is applicable only for re-association failure cases.
Vignesh Viswanathan051ef2e2017-09-25 14:36:38 +05302544 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
2545 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
2546 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
2547 * seq number
sheenam mongaaf7c3c92019-04-03 17:48:19 +05302548 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
2549 * representing the reasons for the roaming. Defined by enum
2550 * qca_roam_reason.
Vivek3e5a3ba2017-02-20 18:13:57 +05302551 */
2552enum qca_wlan_vendor_attr_roam_auth {
2553 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
2554 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
2555 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
2556 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
2557 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
2558 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
2559 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
2560 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
2561 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Mukul Sharma9b53a472017-05-17 18:06:43 +05302562 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
2563 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
Vignesh Viswanathan051ef2e2017-09-25 14:36:38 +05302564 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
2565 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
2566 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
sheenam mongaaf7c3c92019-04-03 17:48:19 +05302567 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
Vivek3e5a3ba2017-02-20 18:13:57 +05302568 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
2569 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
2570 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
2571};
2572
2573/**
2574 * enum qca_wlan_vendor_attr_wifi_config - wifi config
2575 *
2576 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
2577 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
2578 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
2579 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
2580 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
2581 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
2582 */
2583enum qca_wlan_vendor_attr_wifi_config {
2584 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
2585 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
2586 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
2587 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
2588
2589 /* keep last */
2590 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
2591 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
2592 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
2593};
2594
2595/**
2596 * enum qca_wlan_epno_type - the type of request to the EPNO command
2597 * @QCA_WLAN_EPNO: epno type request
2598 * @QCA_WLAN_PNO: pno type request
2599 */
2600enum qca_wlan_epno_type {
2601 QCA_WLAN_EPNO,
2602 QCA_WLAN_PNO
2603};
2604
2605/**
2606 * enum qca_wlan_vendor_attr_pno_config_params - pno config params
2607 *
2608 * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
2609 *
2610 * NL attributes for data used by
2611 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
2612 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
2613 * Unsigned 32-bit value; pno passpoint number of networks
2614 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
2615 * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
2616 * attributes. Array size =
2617 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
2618 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
2619 * Unsigned 32-bit value; network id
2620 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
2621 * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
2622 * realm, 0 if unspecified.
2623 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
2624 * An array of 16 x Unsigned 32-bit value; roaming consortium ids
2625 * to match, 0 if unspecified.
2626 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
2627 * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
2628 * unspecified.
2629 *
2630 * NL attributes for data used by
2631 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
2632 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
2633 * Unsigned 32-bit value; set pno number of networks
2634 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
2635 * Array of nested
2636 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
2637 * attributes. Array size =
2638 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
2639 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
2640 * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
2641 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
2642 * Signed 8-bit value; threshold for considering this SSID as found,
2643 * required granularity for this threshold is 4dBm to 8dBm
2644 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
2645 * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
2646 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
2647 * Unsigned 8-bit value; auth bit field for matching WPA IE
2648 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
2649 * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
2650 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
2651 * Nested attribute to send the channel list
2652 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
2653 * Unsigned 32-bit value; indicates the Interval between PNO scan
2654 * cycles in msec
2655 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
2656 * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
2657 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
2658 * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
2659 * This attribute is obsolete now.
2660 *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
2661 * Signed 32-bit value; the maximum score that a network
2662 * can have before bonuses
2663 *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
2664 * Signed 32-bit value; only report when there is a network's
2665 * score this much higher han the current connection
2666 *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
2667 * Signed 32-bit value; score bonus for all networks with
2668 * the same network flag
2669 *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
2670 * Signed 32-bit value; score bonus for networks that are not open
2671 *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
2672 * Signed 32-bit value; 5GHz RSSI score bonus applied to all
2673 * 5GHz networks
Ashish Kumar Dhanotiyacc0b0da2017-08-21 13:59:50 +05302674 *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
2675 * Unsigned 32-bit value, representing the PNO Request ID
Vivek3e5a3ba2017-02-20 18:13:57 +05302676 * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
2677 * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
2678 */
2679enum qca_wlan_vendor_attr_pno_config_params {
2680 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
2681
2682 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
2683 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
2684 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
2685 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
2686 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
2687 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
2688
2689 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
2690 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
2691 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
2692 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
2693 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
2694 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
2695 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
2696 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
2697 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
2698 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
2699 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
2700 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
2701 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
2702 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
2703 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
2704 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
2705
Ashish Kumar Dhanotiyacc0b0da2017-08-21 13:59:50 +05302706 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Vivek3e5a3ba2017-02-20 18:13:57 +05302707 /* keep last */
2708 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
2709 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
2710 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
2711};
2712
2713/**
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05302714 * enum qca_scan_freq_list_type: Frequency list types
2715 *
2716 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
2717 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
2718 * a preferred frequency list for roaming.
2719 *
2720 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
2721 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
2722 * a specific frequency list for roaming.
2723 */
2724enum qca_scan_freq_list_type {
2725 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
2726 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
2727};
2728
2729/**
2730 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
2731 *
2732 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
2733 * List of frequencies in MHz to be considered for a roam scan.
2734 *
2735 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
2736 * Type of frequency list scheme being configured/gotten as defined by the
2737 * enum qca_scan_freq_list_type.
2738 */
2739enum qca_vendor_attr_scan_freq_list_scheme {
2740 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
2741 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
2742
2743 /* keep last */
2744 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
2745 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
2746 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
2747};
2748
2749/*
2750 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
2751 *
2752 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
2753 * a bad packet error rates (PER).
2754 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
2755 * based on beacon misses from the connected AP.
2756 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
2757 * due to poor RSSI of the connected AP.
2758 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
2759 * upon finding a BSSID with a better RSSI than the connected BSSID.
2760 * Here the RSSI of the current BSSID need not be poor.
2761 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
2762 * by triggering a periodic scan to find a better AP to roam.
2763 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
2764 * when the connected channel environment is too noisy/congested.
2765 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
2766 * when BTM Request frame is received from the connected AP.
2767 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
2768 * when the channel utilization is goes above the configured threshold.
2769 *
2770 * Set the corresponding roam trigger reason bit to consider it for roam
2771 * trigger.
2772 * Userspace can set multiple bits and send to the driver. The driver shall
2773 * consider all of them to trigger/initiate a roam scan.
2774 */
2775enum qca_vendor_roam_triggers {
2776 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
2777 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
2778 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
2779 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
2780 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
2781 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
2782 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
2783 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
2784};
2785
2786/**
2787 * enum qca_vendor_attr_roam_candidate_selection_criteria:
2788 *
2789 * Each attribute carries a weightage in percentage (%).
2790 *
2791 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
2792 * Represents the weightage to be given for the RSSI selection
2793 * criteria among other parameters.
2794 *
2795 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
2796 * Represents the weightage to be given for the rate selection
2797 * criteria among other parameters.
2798 *
2799 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
2800 * Represents the weightage to be given for the band width selection
2801 * criteria among other parameters.
2802 *
2803 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
2804 * Represents the weightage to be given for the band selection
2805 * criteria among other parameters.
2806 *
2807 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
2808 * Represents the weightage to be given for the NSS selection
2809 * criteria among other parameters.
2810 *
2811 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
2812 * Represents the weightage to be given for the channel congestion
2813 * selection criteria among other parameters.
2814 *
2815 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
2816 * Represents the weightage to be given for the beamforming selection
2817 * criteria among other parameters.
2818 *
2819 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
2820 * Represents the weightage to be given for the OCE selection
2821 * criteria among other parameters.
2822 */
2823enum qca_vendor_attr_roam_candidate_selection_criteria {
2824 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
2825 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
2826 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
2827 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
2828 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
2829 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
2830 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
2831 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
2832
2833 /* keep last */
2834 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
2835 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
2836 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
2837};
2838
2839/**
2840 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
2841 * The following attributes are used to set/get/clear the respective
2842 * configurations to/from the driver.
2843 * For the get, the attribute for the configuration to be queried shall
2844 * carry any of its acceptable values to the driver. In return, the driver
2845 * shall send the configured values within the same attribute to the user
2846 * space.
2847 *
2848 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
2849 * Signifies to enable/disable roam control in driver.
2850 * 1-enable, 0-disable
2851 * Enable: Mandates the driver to do the further roams using the
2852 * configuration parameters set through
2853 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
2854 * Disable: Disables the driver/firmware roaming triggered through
2855 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
2856 * expected to continue with the default configurations.
2857 *
2858 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
2859 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
2860 * Roam control status is obtained through this attribute.
2861 *
2862 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
2863 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
2864 * is to be cleared in the driver.
2865 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
2866 * and shall be ignored if used with other sub commands.
2867 * If this attribute is specified along with subcmd
2868 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
2869 * all other attributes, if there are any.
2870 * If this attribute is not specified when the subcmd
2871 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
2872 * clear the data corresponding to the attributes specified.
2873 *
2874 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
2875 * list of frequencies and its type, represented by
2876 * enum qca_vendor_attr_scan_freq_list_scheme.
2877 * Frequency list and its type are mandatory for this attribute to set
2878 * the frequencies.
2879 * Frequency type is mandatory for this attribute to get the frequencies
2880 * and the frequency list is obtained through
2881 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
2882 * Frequency list type is mandatory for this attribute to clear the
2883 * frequencies.
2884 *
2885 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
2886 * Carries the value of scan period in seconds to set.
2887 * The value of scan period is obtained with the same attribute for get.
2888 * Clears the scan period in the driver when specified with clear command.
2889 * Scan period is the idle time in seconds between each subsequent
2890 * channel scans.
2891 *
2892 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
2893 * Carries the value of full scan period in seconds to set.
2894 * The value of full scan period is obtained with the same attribute for
2895 * get.
2896 * Clears the full scan period in the driver when specified with clear
2897 * command. Full scan period is the idle period in seconds between two
2898 * successive full channel roam scans.
2899 *
2900 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
2901 * Carries a bitmap of the roam triggers specified in
2902 * enum qca_vendor_roam_triggers.
2903 * The driver shall enable roaming by enabling corresponding roam triggers
2904 * based on the trigger bits sent with this attribute.
2905 * If this attribute is not configured, the driver shall proceed with
2906 * default behavior.
2907 * The bitmap configured is obtained with the same attribute for get.
2908 * Clears the bitmap configured in driver when specified with clear
2909 * command.
2910 *
2911 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
2912 * weightage in percentage (%) to be given for each selection criteria.
2913 * Different roam candidate selection criteria are represented by
2914 * enum qca_vendor_attr_roam_candidate_selection_criteria.
2915 * The driver shall select the roam candidate based on corresponding
2916 * candidate selection scores sent.
2917 *
2918 * An empty nested attribute is used to indicate that no specific
2919 * preference score/criteria is configured (i.e., to disable this mechanism
2920 * in the set case and to show that the mechanism is disabled in the get
2921 * case).
2922 *
2923 * Userspace can send multiple attributes out of this enum to the driver.
2924 * Since this attribute represents the weight/percentage of preference for
2925 * the respective selection criteria, it is preferred to configure 100%
2926 * total weightage. The value in each attribute or cumulative weight of the
2927 * values in all the nested attributes should not exceed 100%. The driver
2928 * shall reject such configuration.
2929 *
2930 * If the weights configured through this attribute are less than 100%,
2931 * the driver shall honor the weights (x%) passed for the corresponding
2932 * selection criteria and choose/distribute rest of the weight (100-x)%
2933 * for the other selection criteria, based on its internal logic.
2934 *
2935 * The selection criteria configured is obtained with the same
2936 * attribute for get.
2937 *
2938 * Clears the selection criteria configured in the driver when specified
2939 * with clear command.
2940 */
2941enum qca_vendor_attr_roam_control {
2942 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
2943 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
2944 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
2945 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
2946 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
2947 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
2948 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
2949 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
2950
2951 /* keep last */
2952 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
2953 QCA_ATTR_ROAM_CONTROL_MAX =
2954 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
2955};
2956
2957/**
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05302958 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
2959 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
Vivek3e5a3ba2017-02-20 18:13:57 +05302960 *
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05302961 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
2962 * Represents the different roam sub commands referred by
Srinivas Dasari30c93402019-08-13 11:45:04 +05302963 * enum qca_wlan_vendor_roaming_subcmd.
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05302964 *
2965 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
2966 * Represents the Request ID for the specific set of commands.
2967 * This also helps to map specific set of commands to the respective
2968 * ID / client. e.g., helps to identify the user entity configuring the
2969 * Blacklist BSSID and accordingly clear the respective ones with the
2970 * matching ID.
2971 *
2972 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
2973 * 32-bit value.Represents the number of whitelist SSIDs configured.
2974 *
2975 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
2976 * to carry the list of Whitelist SSIDs.
2977 *
2978 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
2979 * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
2980 * represent the list of SSIDs to which the firmware/driver can consider
2981 * to roam to.
2982 *
2983 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
2984 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
2985 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
Srinivas Dasari30c93402019-08-13 11:45:04 +05302986 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05302987 *
2988 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
2989 * value, RSSI threshold above which 5GHz RSSI is favored.
2990 *
2991 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
2992 * value, RSSI threshold below which 5GHz RSSI is penalized.
2993 *
2994 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
2995 * value, factor by which 5GHz RSSI is boosted.
2996 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
2997 *
2998 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
2999 * value, factor by which 5GHz RSSI is penalized.
3000 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3001 *
3002 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3003 * value, maximum boost that can be applied to a 5GHz RSSI.
3004 *
3005 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3006 * value, boost applied to current BSSID to ensure the currently
3007 * associated BSSID is favored so as to prevent ping-pong situations.
3008 *
3009 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3010 * value, RSSI below which "Alert" roam is enabled.
3011 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3012 * because the RSSI is low, or because many successive beacons have been
3013 * lost or other bad link conditions.
3014 *
3015 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3016 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3017 * firmware is hunting for a better BSSID or white listed SSID even though
3018 * the RSSI of the link is good. The parameters enabling the roaming are
3019 * configured through the PARAM_A_BAND_XX attrbutes.
3020 *
3021 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3022 * represents the BSSIDs preferred over others while evaluating them
3023 * for the roaming.
3024 *
3025 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3026 * 32-bit value. Represents the number of preferred BSSIDs set.
3027 *
3028 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3029 * address representing the BSSID to be preferred.
3030 *
3031 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3032 * 32-bit value, representing the modifier to be applied to the RSSI of
3033 * the BSSID for the purpose of comparing it with other roam candidate.
3034 *
3035 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3036 * represents the BSSIDs to get blacklisted for roaming.
3037 *
3038 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3039 * 32-bit value, represents the number of blacklisted BSSIDs.
3040 *
3041 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3042 * address representing the Blacklisted BSSID.
3043 *
3044 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3045 * indicates this BSSID blacklist as a hint to the driver. The driver can
3046 * select this BSSID in the worst case (when no other BSSIDs are better).
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05303047 *
3048 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3049 * set/get/clear the roam control config as
3050 * defined @enum qca_vendor_attr_roam_control.
3051 *
Vivek3e5a3ba2017-02-20 18:13:57 +05303052 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
3053 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
3054 */
3055enum qca_wlan_vendor_attr_roaming_config_params {
3056 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3057
3058 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3059 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3060
3061 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3062 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3063 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3064
3065 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3066 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3067 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3068 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3069 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3070 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3071 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3072
3073 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3074
3075 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3076 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3077 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3078 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3079
3080 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3081 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3082 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
gaurank kathpalia9f525cb2019-05-28 18:21:18 +05303083 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Vivek3e5a3ba2017-02-20 18:13:57 +05303084
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05303085 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3086
Vivek3e5a3ba2017-02-20 18:13:57 +05303087 /* keep last */
3088 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3089 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3090 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3091};
3092
3093/**
Srinivas Dasari30c93402019-08-13 11:45:04 +05303094 * enum qca_wlan_vendor_roaming_subcmd: Referred by
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303095 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
Vivek3e5a3ba2017-02-20 18:13:57 +05303096 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303097 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303098 * configure the white list SSIDs. These are configured through
3099 * the following attributes.
3100 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3101 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3102 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3103 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303104 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303105 * configure the Roam params. These parameters are evaluated on the extscan
3106 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
3107 * params.
3108 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303109 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303110 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3111 * to enable/disable Lazy roam.
3112 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303113 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303114 * preference. Contains the attribute
3115 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3116 * preference.
3117 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303118 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303119 *
Srinivas Dasari30c93402019-08-13 11:45:04 +05303120 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
Srinivas Dasarib72b2d72019-08-13 11:41:36 +05303121 * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
3122 * set the same.
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05303123 *
3124 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
3125 * roam control config to the driver with the attribute
3126 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3127 *
3128 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
3129 * roam control config from driver with the attribute
3130 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3131 * For the get, the attribute for the configuration to be queried shall
3132 * carry any of its acceptable value to the driver. In return, the driver
3133 * shall send the configured values within the same attribute to the user
3134 * space.
3135 *
3136 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
3137 * roam control config in the driver with the attribute
3138 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3139 * The driver shall continue with its default roaming behavior when data
3140 * corresponding to an attribute is cleared.
Vivek3e5a3ba2017-02-20 18:13:57 +05303141 */
Srinivas Dasari30c93402019-08-13 11:45:04 +05303142enum qca_wlan_vendor_roaming_subcmd {
3143 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
3144 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
3145 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
3146 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
3147 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
3148 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
Srinivas Dasaria75e44c2019-08-13 15:27:04 +05303149 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
3150 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
3151 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Vivek3e5a3ba2017-02-20 18:13:57 +05303152};
3153
3154/**
3155 * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
3156 *
3157 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
3158 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
3159 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
3160 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
3161 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
3162 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
3163 */
3164enum qca_wlan_vendor_attr_get_wifi_info {
3165 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3166 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
3167 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
3168 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
3169
3170 /* KEEP LAST */
3171 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3172 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
3173 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3174};
3175
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303176enum qca_wlan_vendor_attr_logger_results {
3177 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3178
3179 /*
3180 * Unsigned 32-bit value; must match the request Id supplied by
3181 * Wi-Fi HAL in the corresponding subcmd NL msg.
3182 */
3183 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3184
3185 /*
3186 * Unsigned 32-bit value; used to indicate the size of memory
3187 * dump to be allocated.
3188 */
3189 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3190
3191 /* keep last */
3192 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3193 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3194 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3195};
3196
3197/**
3198 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3199 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3200 */
3201enum qca_wlan_vendor_channel_prop_flags {
3202 /* Bits 0, 1, 2, and 3 are reserved */
3203
3204 /* Turbo channel */
3205 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
3206 /* CCK channel */
3207 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
3208 /* OFDM channel */
3209 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
3210 /* 2.4 GHz spectrum channel. */
3211 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
3212 /* 5 GHz spectrum channel */
3213 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
3214 /* Only passive scan allowed */
3215 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
3216 /* Dynamic CCK-OFDM channel */
3217 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
3218 /* GFSK channel (FHSS PHY) */
3219 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
3220 /* Radar found on channel */
3221 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
3222 /* 11a static turbo channel only */
3223 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
3224 /* Half rate channel */
3225 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
3226 /* Quarter rate channel */
3227 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
3228 /* HT 20 channel */
3229 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
3230 /* HT 40 with extension channel above */
3231 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
3232 /* HT 40 with extension channel below */
3233 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
3234 /* HT 40 intolerant */
3235 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
3236 /* VHT 20 channel */
3237 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
3238 /* VHT 40 with extension channel above */
3239 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
3240 /* VHT 40 with extension channel below */
3241 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
3242 /* VHT 80 channel */
3243 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
3244 /* HT 40 intolerant mark bit for ACS use */
3245 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3246 /* Channel temporarily blocked due to noise */
3247 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
3248 /* VHT 160 channel */
3249 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
3250 /* VHT 80+80 channel */
3251 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Krishna Raoddd81ae2017-09-23 14:54:24 +05303252 /* HE 20 channel */
3253 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
3254 /* HE 40 with extension channel above */
3255 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
3256 /* HE 40 with extension channel below */
3257 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
3258 /* HE 40 intolerant */
3259 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
3260};
3261
3262/**
3263 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3264 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3265 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3266 */
3267enum qca_wlan_vendor_channel_prop_flags_2 {
3268 /* HE 40 intolerant mark bit for ACS use */
3269 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3270 /* HE 80 channel */
3271 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
3272 /* HE 160 channel */
3273 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
3274 /* HE 80+80 channel */
3275 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303276};
3277
3278/**
3279 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3280 * each channel. This is used by
3281 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3282 */
3283enum qca_wlan_vendor_channel_prop_flags_ext {
3284 /* Radar found on channel */
3285 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
3286 /* DFS required on channel */
3287 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
3288 /* DFS required on channel for 2nd band of 80+80 */
3289 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
3290 /* If channel has been checked for DFS */
3291 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
3292 /* Excluded in 802.11d */
3293 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
3294 /* Channel Switch Announcement received on this channel */
3295 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
3296 /* Ad-hoc is not allowed */
3297 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
3298 /* Station only channel */
3299 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3300 /* DFS radar history for slave device (STA mode) */
3301 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
3302 /* DFS CAC valid for slave device (STA mode) */
3303 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
3304};
3305
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303306/**
3307 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3308 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3309 * information to start/stop the NUD statistics collection.
3310 */
3311enum qca_attr_nud_stats_set {
3312 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
3313
3314 /*
3315 * Flag to start/stop the NUD statistics collection.
3316 * Start - If included, Stop - If not included
3317 */
3318 QCA_ATTR_NUD_STATS_SET_START = 1,
3319 /* IPv4 address of the default gateway (in network byte order) */
3320 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Poddar, Siddarth69744982018-01-22 13:08:23 +05303321 /*
3322 * Represents the data packet type to be monitored.
3323 * Host driver tracks the stats corresponding to each data frame
3324 * represented by these flags.
3325 * These data packets are represented by
3326 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
3327 */
3328 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303329 /* keep last */
3330 QCA_ATTR_NUD_STATS_SET_LAST,
3331 QCA_ATTR_NUD_STATS_SET_MAX =
3332 QCA_ATTR_NUD_STATS_SET_LAST - 1,
3333};
3334
3335/**
Poddar, Siddarth69744982018-01-22 13:08:23 +05303336 * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
3337 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3338 * information to start / stop the NUD stats collection.
3339 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
3340 * Bitmap to Flag to Start / Stop the NUD stats collection
3341 * Start - If included , Stop - If not included
3342 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
3343 * IPv4 address of Default Gateway (in network byte order)
3344 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3345 * information to start / stop the NUD stats collection.
3346 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
3347 * Flag to Start / Stop the NUD stats collection
3348 * Start - If included , Stop - If not included
3349 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
3350 * IPv4 address of Default Gateway (in network byte order)
3351 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3352 * information to start / stop the NUD stats collection.
3353 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
3354 * Flag to Start / Stop the NUD stats collection
3355 * Start - If included , Stop - If not included
3356 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
3357 * IPv4 address of Default Gateway (in network byte order)
3358 */
3359enum qca_attr_connectivity_check_stats_set {
3360 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
3361 QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
3362 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
3363 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
3364 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
3365 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
3366 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
3367 /* keep last */
3368 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
3369 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
3370 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
3371};
3372
3373/**
3374 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
3375 * data types for which the stats have to get collected.
3376 */
3377enum qca_wlan_vendor_connectivity_check_pkt_flags {
3378 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
3379 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
3380 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
3381 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
3382 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
3383 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
3384 * to represent the stats of respective data type.
3385 */
3386 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
3387 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
3388 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
3389};
3390
3391enum qca_attr_connectivity_check_stats {
3392 QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
3393 /* Data packet type for which the stats are collected.
3394 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
3395 */
3396 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
3397 /* ID corresponding to the DNS frame for which the respective DNS stats
3398 * are monitored (u32).
3399 */
3400 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
3401 /* source / destination port on which the respective proto stats are
3402 * collected (u32).
3403 */
3404 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
3405 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
3406 /* IPv4/IPv6 address for which the destined data packets are
3407 * monitored. (in network byte order)
3408 */
3409 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
3410 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
3411 /* Data packet Request count received from netdev */
3412 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
3413 /* Data packet Request count sent to lower MAC from upper MAC */
3414 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
3415 /* Data packet Request count received by lower MAC from upper MAC */
3416 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
3417 /* Data packet Request count successfully transmitted by the device */
3418 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
3419 /* Data packet Response count received by lower MAC */
3420 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
3421 /* Data packet Response count received by upper MAC */
3422 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
3423 /* Data packet Response count delivered to netdev */
3424 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
3425 /* Data Packet Response count that are dropped out of order */
3426 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
3427
3428 /* keep last */
3429 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
3430 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
3431 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
3432};
3433
3434/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303435 * qca_attr_nud_stats_get: Attributes to vendor subcmd
3436 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
3437 * NUD statistics collected when queried.
3438 */
3439enum qca_attr_nud_stats_get {
3440 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
3441 /* ARP Request count from netdev */
3442 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
3443 /* ARP Request count sent to lower MAC from upper MAC */
3444 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
3445 /* ARP Request count received by lower MAC from upper MAC */
3446 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
3447 /* ARP Request count successfully transmitted by the device */
3448 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
3449 /* ARP Response count received by lower MAC */
3450 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
3451 /* ARP Response count received by upper MAC */
3452 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
3453 /* ARP Response count delivered to netdev */
3454 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
3455 /* ARP Response count delivered to netdev */
3456 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
3457 /*
3458 * Flag indicating if the station's link to the AP is active.
3459 * Active Link - If included, Inactive link - If not included
3460 */
3461 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
3462 /*
3463 * Flag indicating if there is any duplicate address detected (DAD).
3464 * Yes - If detected, No - If not detected.
3465 */
3466 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Poddar, Siddarth69744982018-01-22 13:08:23 +05303467 /*
3468 * List of Data types for which the stats are requested.
3469 * This list does not carry ARP stats as they are done by the
3470 * above attributes. Represented by enum qca_attr_nud_data_stats.
3471 */
3472 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303473 /* keep last */
3474 QCA_ATTR_NUD_STATS_GET_LAST,
3475 QCA_ATTR_NUD_STATS_GET_MAX =
3476 QCA_ATTR_NUD_STATS_GET_LAST - 1,
3477};
3478
3479enum qca_wlan_btm_candidate_status {
3480 QCA_STATUS_ACCEPT = 0,
3481 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
3482 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
3483 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
3484 QCA_STATUS_REJECT_LOW_RSSI = 4,
3485 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
3486 QCA_STATUS_REJECT_UNKNOWN = 6,
3487};
3488
3489enum qca_wlan_vendor_attr_btm_candidate_info {
3490 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
3491
3492 /* 6-byte MAC address representing the BSSID of transition candidate */
3493 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
3494 /*
3495 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
3496 * returned by the driver. It says whether the BSSID provided in
3497 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
3498 * the driver, if not it specifies the reason for rejection.
3499 * Note that the user-space can overwrite the transition reject reason
3500 * codes provided by driver based on more information.
3501 */
3502 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
3503
3504 /* keep last */
3505 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
3506 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
3507 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
3508};
3509
3510enum qca_attr_trace_level {
3511 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
3512 /*
3513 * Nested array of the following attributes:
3514 * QCA_ATTR_TRACE_LEVEL_MODULE,
3515 * QCA_ATTR_TRACE_LEVEL_MASK.
3516 */
3517 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
3518 /*
3519 * Specific QCA host driver module. Please refer to the QCA host
3520 * driver implementation to get the specific module ID.
3521 */
3522 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
3523 /* Different trace level masks represented in the QCA host driver. */
3524 QCA_ATTR_TRACE_LEVEL_MASK = 3,
3525
3526 /* keep last */
3527 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
3528 QCA_ATTR_TRACE_LEVEL_MAX =
3529 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
3530};
3531
Vivek3e5a3ba2017-02-20 18:13:57 +05303532/**
3533 * enum qca_wlan_vendor_attr_get_logger_features - value for logger
3534 * supported features
3535 * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
3536 * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
3537 * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
3538 * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
3539 *
3540 * enum values are used for NL attributes for data used by
3541 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
3542 */
3543enum qca_wlan_vendor_attr_get_logger_features {
3544 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
3545 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
3546
3547 /* keep last */
3548 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
3549 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
3550 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
3551};
3552
3553/**
3554 * enum qca_wlan_vendor_attr_link_properties - link properties
3555 *
3556 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
3557 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
3558 * specify the number of spatial streams negotiated
3559 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
3560 * to specify negotiated rate flags i.e. ht, vht and channel width
3561 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
3562 * specify the operating frequency
Ashish Kumar Dhanotiya38a0c9f2018-01-19 20:17:02 +05303563 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
3564 * (STA / AP ) for the connected link.
3565 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
3566 * &struct nl80211_sta_flag_update for the respective connected link. MAC
3567 * address of the peer represented by
3568 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
Vivek3e5a3ba2017-02-20 18:13:57 +05303569 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
3570 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
3571 */
3572enum qca_wlan_vendor_attr_link_properties {
3573 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
3574 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
3575 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
3576 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
Ashish Kumar Dhanotiya38a0c9f2018-01-19 20:17:02 +05303577 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
3578 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
Vivek3e5a3ba2017-02-20 18:13:57 +05303579
3580 /* KEEP LAST */
3581 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
3582 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
3583 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
3584};
3585
3586/**
3587 * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
3588 *
3589 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
3590 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
3591 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
3592 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
3593 *
3594 * enum values are used for NL attributes for data used by
3595 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
3596 */
3597enum qca_wlan_vendor_attr_nd_offload {
3598 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
3599 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
3600
3601 /* Keep last */
3602 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
3603 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
3604 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
3605};
3606
3607/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303608 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
3609 *
Vivek3e5a3ba2017-02-20 18:13:57 +05303610 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303611 * management offload, a mechanism where the station's firmware
3612 * does the exchange with the AP to establish the temporal keys
3613 * after roaming, rather than having the user space wpa_supplicant do it.
3614 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
3615 * band selection based on channel selection results.
Vivek3e5a3ba2017-02-20 18:13:57 +05303616 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303617 * simultaneous off-channel operations.
3618 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
3619 * Listen offload; a mechanism where the station's firmware takes care of
3620 * responding to incoming Probe Request frames received from other P2P
3621 * Devices whilst in Listen state, rather than having the user space
3622 * wpa_supplicant do it. Information from received P2P requests are
3623 * forwarded from firmware to host whenever the host processor wakes up.
yeshwanth sriram guntuka8bdb0692017-07-18 13:30:42 +05303624 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303625 * specific features.
yeshwanth sriram guntuka8bdb0692017-07-18 13:30:42 +05303626 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
3627 * features.
3628 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
3629 * specific features only. If a Device sets this bit but not the
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303630 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
yeshwanth sriram guntuka8bdb0692017-07-18 13:30:42 +05303631 * this Device may not support all OCE AP functionalities but can support
3632 * only OCE STA-CFON functionalities.
Kiran Kumar Lokere76da7992018-04-23 18:47:04 -07003633 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
3634 * managed regulatory.
Ashish Kumar Dhanotiya50400f92019-03-27 14:56:42 +05303635 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303636 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
3637 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Pankaj Singh1e0b3242020-01-20 18:42:52 +05303638 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
3639 * and applying thermal configuration through
3640 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
3641 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
3642 * userspace.
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303643 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
Vivek3e5a3ba2017-02-20 18:13:57 +05303644 */
3645enum qca_wlan_vendor_features {
3646 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
3647 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
3648 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303649 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
yeshwanth sriram guntuka8bdb0692017-07-18 13:30:42 +05303650 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
3651 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
3652 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Kiran Kumar Lokere76da7992018-04-23 18:47:04 -07003653 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Ashish Kumar Dhanotiya50400f92019-03-27 14:56:42 +05303654 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303655 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
3656 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Pankaj Singh1e0b3242020-01-20 18:42:52 +05303657 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303658
3659 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
Vivek3e5a3ba2017-02-20 18:13:57 +05303660};
3661
3662/**
3663 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
3664 * conditional channel switch
3665 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
3666 * value
3667 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
3668 * frequency list (an array of u32 values in host byte order)
3669 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
3670 * conditional switch (u32)- 0: Success, Non-zero: Failure
3671 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
3672 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
3673 */
3674enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
3675 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
3676 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
3677 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
3678
3679 /* Keep Last */
3680 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
3681 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
3682 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
3683};
3684
3685/**
3686 * enum wifi_logger_supported_features - values for supported logger features
Srinivas Girigowdace25ca32018-01-22 17:44:55 -08003687 * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
3688 * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
3689 * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
3690 * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
3691 * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
3692 * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
3693 * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
3694 * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
Vivek3e5a3ba2017-02-20 18:13:57 +05303695 */
3696enum wifi_logger_supported_features {
3697 WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
3698 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
3699 WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
3700 WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
3701 WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
3702 WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
3703 WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
Srinivas Girigowdace25ca32018-01-22 17:44:55 -08003704 WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
3705 WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
Vivek3e5a3ba2017-02-20 18:13:57 +05303706};
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303707
Vivek3e5a3ba2017-02-20 18:13:57 +05303708/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303709 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
3710 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
Vivek3e5a3ba2017-02-20 18:13:57 +05303711 *
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303712 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
3713 * Used with event to notify the primary channel number selected in ACS
3714 * operation.
3715 * Note: If both the driver and user-space application supports the 6 GHz band,
3716 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
3717 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
3718 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
3719 * is still used if either of the driver or user space application doesn't
3720 * support the 6 GHz band.
3721 *
3722 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
3723 * Used with event to notify the secondary channel number selected in ACS
3724 * operation.
3725 * Note: If both the driver and user-space application supports the 6 GHz band,
3726 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
3727 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
3728 * To maintain backward compatibility,
3729 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
3730 * the driver or user space application doesn't support 6 GHz band.
3731 *
3732 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
3733 * (a) Used with command to configure hw_mode from
3734 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
3735 * (b) Also used with event to notify the hw_mode of selected primary channel
3736 * in ACS operation.
3737 *
3738 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
3739 * Used with command to configure ACS operation for HT mode.
3740 * Disable (flag attribute not present) - HT disabled and
3741 * Enable (flag attribute present) - HT enabled.
3742 *
3743 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
3744 * Used with command to configure ACS operation for HT40 mode.
3745 * Disable (flag attribute not present) - HT40 disabled and
3746 * Enable (flag attribute present) - HT40 enabled.
3747 *
3748 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
3749 * Used with command to configure ACS operation for VHT mode.
3750 * Disable (flag attribute not present) - VHT disabled and
3751 * Enable (flag attribute present) - VHT enabled.
3752 *
3753 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
3754 * mandatory with event.
3755 * If specified in command path, ACS operation is configured with the given
3756 * channel width (in MHz).
3757 * In event path, specifies the channel width of the primary channel selected.
3758 *
3759 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
3760 * Used with command to configure channel list using an array of
3761 * channel numbers (u8).
3762 * Note: If both the driver and user-space application supports the 6 GHz band,
3763 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
3764 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
3765 *
3766 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
3767 * Used with event to notify the VHT segment 0 center channel number selected in
3768 * ACS operation.
3769 * Note: If both the driver and user-space application supports the 6 GHz band,
3770 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
3771 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
3772 * To maintain backward compatibility,
3773 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
3774 * the driver or user space application doesn't support the 6 GHz band.
3775 *
3776 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
3777 * Used with event to notify the VHT segment 1 center channel number selected in
3778 * ACS operation.
3779 * Note: If both the driver and user-space application supports the 6 GHz band,
3780 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
3781 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
3782 * To maintain backward compatibility,
3783 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
3784 * the driver or user space application doesn't support the 6 GHz band.
3785 *
3786 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
3787 * Used with command to configure the channel list using an array of channel
3788 * center frequencies in MHz (u32).
3789 * Note: If both the driver and user-space application supports the 6 GHz band,
3790 * the driver first parses the frequency list and if it fails to get a frequency
3791 * list, parses the channel list specified using
3792 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
3793 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
3794 *
3795 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
3796 * Used with event to notify the primary channel center frequency (MHz) selected
3797 * in ACS operation.
3798 * Note: If the driver supports the 6 GHz band, the event sent from the driver
3799 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
3800 *
3801 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
3802 * Used with event to notify the secondary channel center frequency (MHz)
3803 * selected in ACS operation.
3804 * Note: If the driver supports the 6 GHz band, the event sent from the driver
3805 * includes this attribute along with
3806 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
3807 *
3808 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
3809 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
3810 * selected in ACS operation.
3811 * Note: If the driver supports the 6 GHz band, the event sent from the driver
3812 * includes this attribute along with
3813 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
3814 *
3815 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
3816 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
3817 * selected in ACS operation.
3818 * Note: If the driver supports the 6 GHz band, the event sent from the driver
3819 * includes this attribute along with
3820 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Vivek3e5a3ba2017-02-20 18:13:57 +05303821 */
3822enum qca_wlan_vendor_attr_acs_offload {
3823 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303824 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
3825 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
3826 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
3827 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
3828 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
3829 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
3830 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
3831 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
3832 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
3833 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
3834 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
3835 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
3836 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
3837 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
3838 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
3839
Vivek3e5a3ba2017-02-20 18:13:57 +05303840 /* keep last */
3841 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
3842 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303843 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
Vivek3e5a3ba2017-02-20 18:13:57 +05303844};
3845
3846/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303847 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
3848 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
Vivek3e5a3ba2017-02-20 18:13:57 +05303849 *
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303850 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
3851 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
3852 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
3853 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
3854 * @QCA_ACS_MODE_IEEE80211ANY: all modes
3855 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
Vivek3e5a3ba2017-02-20 18:13:57 +05303856 */
3857enum qca_wlan_vendor_acs_hw_mode {
3858 QCA_ACS_MODE_IEEE80211B,
3859 QCA_ACS_MODE_IEEE80211G,
3860 QCA_ACS_MODE_IEEE80211A,
3861 QCA_ACS_MODE_IEEE80211AD,
3862 QCA_ACS_MODE_IEEE80211ANY,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05303863 QCA_ACS_MODE_IEEE80211AX,
Vivek3e5a3ba2017-02-20 18:13:57 +05303864};
3865
3866/**
3867 * enum qca_access_policy - access control policy
3868 *
3869 * Access control policy is applied on the configured IE
3870 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
3871 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
3872 *
3873 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
3874 *» with the specific configuration (IE) set, i.e. allow all the
3875 *» connections which do not match the configuration.
3876 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
3877 *» with the specific configuration (IE) set, i.e. deny all the
3878 *» connections which do not match the configuration.
3879 */
3880enum qca_access_policy {
3881 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
3882 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
3883};
3884
3885/**
3886 * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
3887 *
3888 * The valid values for the ignore assoc disallowed
3889 *
3890 * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
3891 * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
3892 *
3893 */
3894enum qca_ignore_assoc_disallowed {
3895 QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
3896 QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
3897};
3898
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303899/* Attributes for data used by
3900 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
3901 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Vivek3e5a3ba2017-02-20 18:13:57 +05303902 */
sheenam mongabe592312020-02-24 16:51:20 +05303903#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
3904 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
3905#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
3906 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
3907#define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
3908 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303909enum qca_wlan_vendor_attr_config {
Vivek3e5a3ba2017-02-20 18:13:57 +05303910 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303911 /*
3912 * Unsigned 32-bit value to set the DTIM period.
3913 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
3914 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
3915 * DTIM beacons.
3916 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303917 QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303918 /*
3919 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
3920 * used to calculate statistics like average the TSF offset or average
3921 * number of frame leaked.
3922 * For instance, upon Beacon frame reception:
3923 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
3924 * For instance, when evaluating leaky APs:
3925 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
3926 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303927 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303928 /*
3929 * Unsigned 32-bit value to configure guard time, i.e., when
3930 * implementing IEEE power management based on frame control PM bit, how
3931 * long the driver waits before shutting down the radio and after
3932 * receiving an ACK frame for a Data frame with PM bit set.
3933 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303934 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303935 /* Unsigned 32-bit value to change the FTM capability dynamically */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303936 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
3937 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
3938 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303939 /*
3940 * Unsigned 32-bit value to configure the number of continuous
3941 * Beacon Miss which shall be used by the firmware to penalize
3942 * the RSSI.
3943 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303944 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303945 /*
3946 * Unsigned 8-bit value to configure the channel avoidance indication
3947 * behavior. Firmware to send only one indication and ignore duplicate
3948 * indications when set to avoid multiple Apps wakeups.
3949 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303950 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303951 /*
3952 * 8-bit unsigned value to configure the maximum TX MPDU for
3953 * aggregation.
3954 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303955 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303956 /*
3957 * 8-bit unsigned value to configure the maximum RX MPDU for
3958 * aggregation.
3959 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303960 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303961 /*
3962 * 8-bit unsigned value to configure the Non aggregrate/11g sw
Vivek3e5a3ba2017-02-20 18:13:57 +05303963 * retry threshold (0 disable, 31 max).
3964 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303965 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303966 /*
3967 * 8-bit unsigned value to configure the aggregrate sw
Vivek3e5a3ba2017-02-20 18:13:57 +05303968 * retry threshold (0 disable, 31 max).
3969 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303970 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303971 /*
3972 * 8-bit unsigned value to configure the MGMT frame
Vivek3e5a3ba2017-02-20 18:13:57 +05303973 * retry threshold (0 disable, 31 max).
3974 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303975 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303976 /*
3977 * 8-bit unsigned value to configure the CTRL frame
Vivek3e5a3ba2017-02-20 18:13:57 +05303978 * retry threshold (0 disable, 31 max).
3979 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303980 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303981 /*
3982 * 8-bit unsigned value to configure the propagation delay for
Vivek3e5a3ba2017-02-20 18:13:57 +05303983 * 2G/5G band (0~63, units in us)
3984 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303985 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303986 /*
3987 * Unsigned 32-bit value to configure the number of unicast TX fail
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05303988 * packet count. The peer is disconnected once this threshold is
3989 * reached.
3990 */
3991 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05303992 /*
3993 * Attribute used to set scan default IEs to the driver.
Vivek3e5a3ba2017-02-20 18:13:57 +05303994 *
3995 * These IEs can be used by scan operations that will be initiated by
3996 * the driver/firmware.
3997 *
3998 * For further scan requests coming to the driver, these IEs should be
3999 * merged with the IEs received along with scan request coming to the
4000 * driver. If a particular IE is present in the scan default IEs but not
4001 * present in the scan request, then that IE should be added to the IEs
4002 * sent in the Probe Request frames for that scan request.
4003 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05304004 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Vivek3e5a3ba2017-02-20 18:13:57 +05304005 /* Unsigned 32-bit attribute for generic commands */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05304006 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Vivek3e5a3ba2017-02-20 18:13:57 +05304007 /* Unsigned 32-bit value attribute for generic commands */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05304008 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Vivek3e5a3ba2017-02-20 18:13:57 +05304009 /* Unsigned 32-bit data attribute for generic command response */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05304010 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304011 /*
4012 * Unsigned 32-bit length attribute for
Vivek3e5a3ba2017-02-20 18:13:57 +05304013 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4014 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05304015 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304016 /*
4017 * Unsigned 32-bit flags attribute for
Vivek3e5a3ba2017-02-20 18:13:57 +05304018 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4019 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05304020 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304021 /*
4022 * Unsigned 32-bit, defining the access policy.
Vivek3e5a3ba2017-02-20 18:13:57 +05304023 * See enum qca_access_policy. Used with
4024 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
4025 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05304026 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304027 /*
4028 * Sets the list of full set of IEs for which a specific access policy
Vivek3e5a3ba2017-02-20 18:13:57 +05304029 * has to be applied. Used along with
4030 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
4031 * Zero length payload can be used to clear this access constraint.
4032 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05304033 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304034 /*
4035 * Unsigned 32-bit, specifies the interface index (netdev) for which the
Vivek3e5a3ba2017-02-20 18:13:57 +05304036 * corresponding configurations are applied. If the interface index is
4037 * not specified, the configurations are attributed to the respective
4038 * wiphy.
4039 */
Selvaraj, Sridhar2a0301a2017-03-07 11:02:26 +05304040 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304041 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Vivek3e5a3ba2017-02-20 18:13:57 +05304042 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304043 /*
4044 * 8-bit unsigned value to configure the driver and below layers to
4045 * ignore the assoc disallowed set by APs while connecting
4046 * 1-Ignore, 0-Don't ignore
4047 */
Vivek3e5a3ba2017-02-20 18:13:57 +05304048 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304049 /*
4050 * 32-bit unsigned value to trigger antenna diversity features:
4051 * 1-Enable, 0-Disable
4052 */
4053 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
4054 /* 32-bit unsigned value to configure specific chain antenna */
4055 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
4056 /*
4057 * 32-bit unsigned value to trigger cycle selftest
4058 * 1-Enable, 0-Disable
4059 */
4060 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
4061 /*
4062 * 32-bit unsigned to configure the cycle time of selftest
4063 * the unit is micro-second
4064 */
4065 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
4066 /* 32-bit unsigned value to set reorder timeout for AC_VO */
4067 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
4068 /* 32-bit unsigned value to set reorder timeout for AC_VI */
4069 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
4070 /* 32-bit unsigned value to set reorder timeout for AC_BE */
4071 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
4072 /* 32-bit unsigned value to set reorder timeout for AC_BK */
4073 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
4074 /* 6-byte MAC address to point out the specific peer */
4075 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
4076 /* 32-bit unsigned value to set window size for specific peer */
4077 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
4078 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
4079 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
4080 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
4081 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
4082 /*
4083 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
4084 * station device while in disconnect state. The attribute use the
4085 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
4086 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
4087 * 10 MHz channel width, the station will not connect to a BSS using 20
4088 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
4089 * clear this constraint.
4090 */
4091 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
4092 /*
4093 * 32-bit unsigned value to configure the propagation absolute delay
4094 * for 2G/5G band (units in us)
4095 */
Zhang Qianb83f9e72017-04-17 13:04:33 +08004096 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304097 /* 32-bit unsigned value to set probe period */
4098 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
4099 /* 32-bit unsigned value to set stay period */
4100 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
4101 /* 32-bit unsigned value to set snr diff */
4102 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
4103 /* 32-bit unsigned value to set probe dwell time */
4104 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
4105 /* 32-bit unsigned value to set mgmt snr weight */
4106 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
4107 /* 32-bit unsigned value to set data snr weight */
4108 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
4109 /* 32-bit unsigned value to set ack snr weight */
4110 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
Ajit Pal Singh83eddc52017-05-23 16:22:05 +05304111 /*
Mukul Sharma7d978532017-05-17 17:14:08 +05304112 * 32-bit unsigned value to configure the listen interval.
4113 * This is in units of beacon intervals. This configuration alters
4114 * the negotiated listen interval with the AP during the connection.
4115 * It is highly recommended to configure a value less than or equal to
4116 * the one negotiated during the association. Configuring any greater
4117 * value can have adverse effects (frame loss, AP disassociating STA,
4118 * etc.).
4119 */
4120 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
4121 /*
Ajit Pal Singh83eddc52017-05-23 16:22:05 +05304122 * 8 bit unsigned value that is set on an AP/GO virtual interface to
4123 * disable operations that would cause the AP/GO to leave its operating
4124 * channel.
4125 *
4126 * This will restrict the scans to the AP/GO operating channel and the
4127 * channels of the other band, if DBS is supported.A STA/CLI interface
4128 * brought up after this setting is enabled, will be restricted to
4129 * connecting to devices only on the AP/GO interface's operating channel
4130 * or on the other band in DBS case. P2P supported channel list is
4131 * modified, to only include AP interface's operating-channel and the
4132 * channels of the other band if DBS is supported.
4133 *
4134 * These restrictions are only applicable as long as the AP/GO interface
4135 * is alive. If the AP/GO interface is brought down then this
4136 * setting/restriction is forgotten.
4137 *
4138 * If this variable is set on an AP/GO interface while a multi-channel
4139 * concurrent session is active, it has no effect on the operation of
4140 * the current interfaces, other than restricting the scan to the AP/GO
4141 * operating channel and the other band channels if DBS is supported.
4142 * However, if the STA is brought down and restarted then the new STA
4143 * connection will either be formed on the AP/GO channel or on the
4144 * other band in a DBS case. This is because of the scan being
4145 * restricted on these channels as mentioned above.
4146 *
4147 * 1-Disable offchannel operations, 0-Enable offchannel operations.
4148 */
4149 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
Zhang Qianb83f9e72017-04-17 13:04:33 +08004150
Sandeep Puligilla4296edb2017-10-14 00:41:44 -07004151 /*
Poddar, Siddarth0a174212017-10-30 14:42:05 +05304152 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
4153 * on an interface.
4154 * 1 - Enable , 0 - Disable.
4155 */
4156 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
4157
4158 /*
Sandeep Puligilla4296edb2017-10-14 00:41:44 -07004159 * 8 bit unsigned value to globally enable/disable scan
4160 * 1 - Enable, 0 - Disable.
4161 */
4162 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
4163
Nachiket Kukade6e3ecc02017-07-28 19:24:11 +05304164 /* 8-bit unsigned value to set the total beacon miss count */
4165 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
4166
Vignesh Viswanathan3c11bdd2017-10-30 18:13:55 +05304167 /*
4168 * Unsigned 32-bit value to configure the number of continuous
4169 * Beacon Miss which shall be used by the firmware to penalize
4170 * the RSSI for BTC.
4171 */
4172 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
4173
4174 /*
4175 * 8-bit unsigned value to configure the driver and below layers to
4176 * enable/disable all fils features.
4177 * 0-enable, 1-disable
4178 */
4179 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
4180
Paul Zhangd6d16352017-12-08 16:08:00 +08004181 /* 16-bit unsigned value to configure the level of WLAN latency
4182 * module. See enum qca_wlan_vendor_attr_config_latency_level.
4183 */
4184 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
4185
Abhishek Singhd4212c22017-12-20 15:01:00 +05304186 /*
4187 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
4188 * the connect interface. Exclusively used for the scenarios where the
4189 * device is used as a test bed device with special functionality and
4190 * not recommended for production. This helps driver to not validate the
4191 * RSNE passed from user space and thus allow arbitrary IE data to be
4192 * used for testing purposes.
4193 * 1-enable, 0-disable.
4194 * Applications set/reset this configuration. If not reset, this
4195 * parameter remains in use until the driver is unloaded.
4196 */
4197 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
4198
Ashish Kumar Dhanotiya6f00d692018-06-15 11:35:41 +05304199 /*
4200 * 8-bit unsigned value to trigger green Tx power saving.
4201 * 1-Enable, 0-Disable
4202 */
4203 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
4204
Srinivas Dasarif4667d42019-07-01 16:22:13 +05304205 /*
4206 * Attribute to configure disconnect IEs to the driver.
4207 * This carries an array of unsigned 8-bit characters.
4208 *
4209 * If this is configured, driver shall fill the IEs in disassoc/deauth
4210 * frame.
4211 * These IEs are expected to be considered only for the next
4212 * immediate disconnection (disassoc/deauth frame) originated by
4213 * the DUT, irrespective of the entity (user space/driver/firmware)
4214 * triggering the disconnection.
4215 * The host drivers are not expected to use the IEs set through
4216 * this interface for further disconnections after the first immediate
4217 * disconnection initiated post the configuration.
4218 * If the IEs are also updated through cfg80211 interface (after the
4219 * enhancement to cfg80211_disconnect), host driver is expected to
4220 * take the union of IEs from both of these interfaces and send in
4221 * further disassoc/deauth frames.
4222 */
sheenam mongabe592312020-02-24 16:51:20 +05304223 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Srinivas Dasarif4667d42019-07-01 16:22:13 +05304224
Paul Zhange1b64ab2019-06-23 22:11:11 +08004225 /* 8-bit unsigned value for ELNA bypass.
4226 * 1-Enable, 0-Disable
4227 */
4228 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
4229
sheenam mongabe592312020-02-24 16:51:20 +05304230 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
4231
4232 /* 8-bit unsigned value. This attribute enables/disables the host driver
4233 * to send roam reason information in the reassociation request to the
4234 * AP. 1-Enable, 0-Disable.
4235 */
4236 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
4237
Vivek3e5a3ba2017-02-20 18:13:57 +05304238 /* keep last */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304239 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
Vivek3e5a3ba2017-02-20 18:13:57 +05304240 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304241 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05304242};
4243
4244/**
4245 * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
4246 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
4247 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
4248 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
4249 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
4250 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
4251 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
4252 */
4253enum qca_wlan_vendor_attr_wifi_logger_start {
4254 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4255 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4256 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4257 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4258 /* keep last */
4259 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4260 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
4261 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4262};
4263
4264/*
4265 * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
4266 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
4267 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
4268 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
4269 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
4270 */
4271enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
4272 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
4273 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
4274 /* keep last */
4275 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
4276 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
4277 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
4278};
4279
4280#ifdef WLAN_FEATURE_OFFLOAD_PACKETS
4281/**
4282 * enum wlan_offloaded_packets_control - control commands
4283 * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
4284 * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
4285 *
4286 */
4287enum wlan_offloaded_packets_control {
4288 WLAN_START_OFFLOADED_PACKETS = 1,
4289 WLAN_STOP_OFFLOADED_PACKETS = 2
4290};
4291
4292/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304293 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
4294 *
4295 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
4296 * the offloaded data.
4297 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
4298 * data.
4299 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
4300 * indication.
4301 */
4302enum qca_wlan_vendor_attr_data_offload_ind {
4303 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
4304 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
4305 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
4306 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
4307
4308 /* keep last */
4309 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
4310 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
4311 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
4312};
4313
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304314
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304315/**
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304316 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
4317 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
Vivek3e5a3ba2017-02-20 18:13:57 +05304318 */
4319enum qca_wlan_vendor_attr_offloaded_packets {
4320 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304321 /*
4322 * Takes valid value from the enum
4323 * qca_wlan_offloaded_packets_sending_control
4324 * Unsigned 32-bit value
4325 **/
Vivek3e5a3ba2017-02-20 18:13:57 +05304326 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304327 /* Unsigned 32-bit value */
Vivek3e5a3ba2017-02-20 18:13:57 +05304328 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304329 /* array of u8 len: Max packet size */
Vivek3e5a3ba2017-02-20 18:13:57 +05304330 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304331 /* 6-byte MAC address used to represent source MAC address */
Vivek3e5a3ba2017-02-20 18:13:57 +05304332 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304333 /* 6-byte MAC address used to represent destination MAC address */
Vivek3e5a3ba2017-02-20 18:13:57 +05304334 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304335 /* Unsigned 32-bit value, in milli seconds */
Vivek3e5a3ba2017-02-20 18:13:57 +05304336 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304337 /*
4338 * This attribute is used and optional for specifying
4339 * ethernet protocol type, if not specified it will default to ipv4
4340 * Unsigned 16-bit value
4341 **/
4342 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Vivek3e5a3ba2017-02-20 18:13:57 +05304343
4344 /* keep last */
4345 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
4346 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
4347 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
4348};
Arun Kumar Khandavalli330e6c32019-02-27 16:18:13 +05304349
Vivek3e5a3ba2017-02-20 18:13:57 +05304350#endif
4351
4352/**
4353 * enum qca_wlan_rssi_monitoring_control - rssi control commands
4354 * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
4355 * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
4356 * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
4357 */
4358enum qca_wlan_rssi_monitoring_control {
4359 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
4360 QCA_WLAN_RSSI_MONITORING_START,
4361 QCA_WLAN_RSSI_MONITORING_STOP,
4362};
4363
4364/**
4365 * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
4366 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
4367 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
4368 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
4369 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
4370 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
4371 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
4372 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
4373 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
4374 */
4375enum qca_wlan_vendor_attr_rssi_monitoring {
4376 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
4377
4378 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
4379 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
4380
4381 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
4382 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
4383
4384 /* attributes to be used/received in callback */
4385 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
4386 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
4387
4388 /* keep last */
4389 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
4390 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
4391 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
4392};
4393
4394/**
Naveen Rawat6b44ef32018-05-09 11:09:41 -07004395 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
4396 * QCA_NL80211_VENDOR_SUBCMD_NDP.
4397 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
4398 * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
4399 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
4400 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
4401 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
4402 * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
4403 * address
4404 * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
4405 * created
4406 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
4407 * NCS_SK_TYPE/PMK/SCID instead
4408 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
4409 * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
4410 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
4411 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
4412 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
4413 * code: accept/reject
4414 * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
4415 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
4416 * driver
4417 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
4418 * driver
4419 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
4420 * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
4421 * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
4422 * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
4423 * PMKID
4424 * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
4425 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
4426 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
4427 * update:
4428 * BIT_0: NSS Update
4429 * BIT_1: Channel list update
4430 * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
4431 * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
4432 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
4433 * 0:20 MHz,
4434 * 1:40 MHz,
4435 * 2:80 MHz,
4436 * 3:160 MHz
4437 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
4438 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
4439 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
Naveen Rawat46f13622018-05-17 14:45:45 -07004440 * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
4441 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
4442 * transport port used by NDP.
4443 * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
4444 * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
4445 * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
Naveen Rawat6b44ef32018-05-09 11:09:41 -07004446*/
4447enum qca_wlan_vendor_attr_ndp_params {
4448 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
Naveen Rawat46f13622018-05-17 14:45:45 -07004449 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
4450 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
4451 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
4452 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
4453 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
4454 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
4455 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
4456 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
4457 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
4458 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
4459 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
4460 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
4461 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
4462 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
4463 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
4464 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
4465 QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
4466 QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
4467 QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
4468 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
4469 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
4470 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
4471 QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
4472 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
4473 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
4474 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
4475 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
4476 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
4477 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Naveen Rawat6b44ef32018-05-09 11:09:41 -07004478
4479 /* keep last */
4480 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
4481 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
4482 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
4483};
4484
4485/**
4486 * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
4487 * QCA_NL80211_VENDOR_SUBCMD_NDP.
4488 * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
4489 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: create a ndi
4490 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: delete a ndi
4491 * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST: initiate a ndp session
4492 * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
4493 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
4494 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
4495 * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
4496 * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
4497 * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
4498 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
4499 * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
4500 * being received
4501 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
4502 * update
4503 */
4504enum qca_wlan_ndp_sub_cmd {
4505 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
4506 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
4507 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
4508 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
4509 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
4510 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
4511 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
4512 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
4513 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
4514 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
4515 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
4516 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
4517 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
4518};
4519
4520/**
Vivek3e5a3ba2017-02-20 18:13:57 +05304521 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
4522 * information. These attributes are sent as part of
4523 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
4524 * attributes correspond to a single channel.
4525 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
4526 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
4527 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
4528 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
4529 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
4530 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
4531 * regulatory transmission power
4532 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
4533 * transmission power
4534 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
4535 * transmission power
4536 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
4537 * class id
4538 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
4539 * antenna gain in dbm
4540 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
4541 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05304542 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
4543 * segment 0 in center freq in MHz.
4544 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
4545 * segment 1 in center freq in MHz.
Vivek3e5a3ba2017-02-20 18:13:57 +05304546 *
4547 */
4548enum qca_wlan_vendor_external_acs_event_chan_info_attr {
4549 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
4550
4551 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
4552 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
4553 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
4554 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
4555 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
4556 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
4557 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
4558 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
4559 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
4560 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Krishna Raoddd81ae2017-09-23 14:54:24 +05304561 /*
4562 * A bitmask (u32) with flags specified in
4563 * enum qca_wlan_vendor_channel_prop_flags_2.
4564 */
4565 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Vivek3e5a3ba2017-02-20 18:13:57 +05304566
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05304567 /*
4568 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
4569 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
4570 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4571 * along with
4572 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
4573 *
4574 * If both the driver and user-space application supports the 6 GHz
4575 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
4576 * is deprecated and
4577 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4578 * should be used.
4579 *
4580 * To maintain backward compatibility,
4581 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4582 * is still used if either of the driver or user space application
4583 * doesn't support the 6 GHz band.
4584 */
4585 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
4586
4587 /*
4588 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
4589 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
4590 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4591 * along with
4592 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
4593 *
4594 * If both the driver and user-space application supports the 6 GHz
4595 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
4596 * is deprecated and
4597 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4598 * should be considered.
4599 *
4600 * To maintain backward compatibility,
4601 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4602 * is still used if either of the driver or user space application
4603 * doesn't support the 6 GHz band.
4604 */
4605 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
4606
Vivek3e5a3ba2017-02-20 18:13:57 +05304607 /* keep last */
4608 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
4609 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
4610 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
4611};
4612
4613/**
4614 * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
4615 * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
4616 * driver.
4617 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
4618 * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
4619 * ACS need to be started
4620 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
4621 * driver supports spectral scanning or not
4622 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
4623 * offloaded to firmware.
4624 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
4625 * provides additional channel capability as part of scan operation.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304626 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
4627 * interface status is UP
Vivek3e5a3ba2017-02-20 18:13:57 +05304628 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
4629 * interface. It takes one of nl80211_iftype values.
Vivek3e5a3ba2017-02-20 18:13:57 +05304630 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
4631 * of chan width. ACS logic should try to get a channel with specified width
4632 * if not found then look for lower values.
Vivek3e5a3ba2017-02-20 18:13:57 +05304633 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
4634 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
4635 * a/b/g/n/ac.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304636 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
4637 * among which ACS should choose best frequency.
Vivek3e5a3ba2017-02-20 18:13:57 +05304638 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
4639 * driver which will have <channel(u8), weight(u8)> format as array of
4640 * nested values.
4641 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
4642 * for each channel. It takes attr as defined in
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304643 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
4644 * PCL mandatory, PCL preferred, etc.It uses values defined in enum
4645 * qca_wlan_vendor_attr_external_acs_policy.
Krishna Raofcb834f2017-11-11 20:38:29 +05304646 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
4647 * Operating Parameter (RROP) availability information (u16). It uses values
4648 * defined in enum qca_wlan_vendor_attr_rropavail_info.
Vivek3e5a3ba2017-02-20 18:13:57 +05304649 */
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304650enum qca_wlan_vendor_attr_external_acs_event {
Vivek3e5a3ba2017-02-20 18:13:57 +05304651 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
4652 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
4653 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
4654 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
4655 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304656 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
4657 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
Vivek3e5a3ba2017-02-20 18:13:57 +05304658 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304659 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
4660 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
4661 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
4662 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
4663 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
4664 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Krishna Raofcb834f2017-11-11 20:38:29 +05304665 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Vivek3e5a3ba2017-02-20 18:13:57 +05304666
4667 /* keep last */
4668 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
4669 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
4670 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
4671};
4672
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304673enum qca_iface_type {
4674 QCA_IFACE_TYPE_STA,
4675 QCA_IFACE_TYPE_AP,
4676 QCA_IFACE_TYPE_P2P_CLIENT,
4677 QCA_IFACE_TYPE_P2P_GO,
4678 QCA_IFACE_TYPE_IBSS,
4679 QCA_IFACE_TYPE_TDLS,
4680};
4681
Vivek3e5a3ba2017-02-20 18:13:57 +05304682/**
4683 * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
Jayachandran Sreekumaran203cf902019-01-08 13:36:52 +05304684 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
4685 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Vivek3e5a3ba2017-02-20 18:13:57 +05304686 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
4687 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
4688 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
Jayachandran Sreekumaran203cf902019-01-08 13:36:52 +05304689 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
4690 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
Vivek3e5a3ba2017-02-20 18:13:57 +05304691 */
4692enum qca_wlan_vendor_attr_pcl_config {
Kapil Guptac4278412017-05-18 20:58:01 +05304693 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
4694 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
4695 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Jayachandran Sreekumaran203cf902019-01-08 13:36:52 +05304696 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
4697 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Vivek3e5a3ba2017-02-20 18:13:57 +05304698};
4699
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304700enum qca_set_band {
4701 QCA_SETBAND_AUTO,
4702 QCA_SETBAND_5G,
4703 QCA_SETBAND_2G,
4704};
4705
Vivek3e5a3ba2017-02-20 18:13:57 +05304706/**
4707 * enum set_reset_packet_filter - set packet filter control commands
4708 * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
4709 * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
Nachiket Kukadeb29adc42018-05-25 14:52:55 +05304710 * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
4711 * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
4712 * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
4713 * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
Vivek3e5a3ba2017-02-20 18:13:57 +05304714 */
4715enum set_reset_packet_filter {
4716 QCA_WLAN_SET_PACKET_FILTER = 1,
4717 QCA_WLAN_GET_PACKET_FILTER = 2,
Nachiket Kukadeb29adc42018-05-25 14:52:55 +05304718 QCA_WLAN_WRITE_PACKET_FILTER = 3,
4719 QCA_WLAN_READ_PACKET_FILTER = 4,
4720 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
4721 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
Vivek3e5a3ba2017-02-20 18:13:57 +05304722};
4723
4724/**
Nachiket Kukadea52b8182018-05-22 12:17:15 +05304725 * enum qca_wlan_vendor_attr_packet_filter - APF control commands
Vivek3e5a3ba2017-02-20 18:13:57 +05304726 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
4727 * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
4728 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
4729 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
4730 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
Nachiket Kukadea52b8182018-05-22 12:17:15 +05304731 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
Nachiket Kukadeb29adc42018-05-25 14:52:55 +05304732 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
4733 * section in packet filter buffer
Vivek3e5a3ba2017-02-20 18:13:57 +05304734 */
4735enum qca_wlan_vendor_attr_packet_filter {
4736 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
4737 QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
4738 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
4739 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
4740 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
4741 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
4742 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
Nachiket Kukadeb29adc42018-05-25 14:52:55 +05304743 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
Vivek3e5a3ba2017-02-20 18:13:57 +05304744
4745 /* keep last */
4746 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
4747 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
4748 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
4749};
4750
4751/**
4752 * enum qca_wlan_vendor_attr_wake_stats - wake lock stats
4753 * @QCA_WLAN_VENDOR_ATTR_GET_WAKE_STATS_INVALID: invalid
4754 * @QCA_WLAN_VENDOR_ATTR_TOTAL_CMD_EVENT_WAKE:
4755 * @QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_PTR:
4756 * @QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_SZ:
4757 * @QCA_WLAN_VENDOR_ATTR_TOTAL_DRIVER_FW_LOCAL_WAKE:
4758 * @QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_PTR:
4759 * @QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_SZ:
4760 * @QCA_WLAN_VENDOR_ATTR_TOTAL_RX_DATA_WAKE:
4761 * total rx wakeup count
4762 * @QCA_WLAN_VENDOR_ATTR_RX_UNICAST_CNT:
4763 * Total rx unicast packet which woke up host
4764 * @QCA_WLAN_VENDOR_ATTR_RX_MULTICAST_CNT:
4765 * Total rx multicast packet which woke up host
4766 * @QCA_WLAN_VENDOR_ATTR_RX_BROADCAST_CNT:
4767 * Total rx broadcast packet which woke up host
4768 * @QCA_WLAN_VENDOR_ATTR_ICMP_PKT:
4769 * wake icmp packet count
4770 * @QCA_WLAN_VENDOR_ATTR_ICMP6_PKT:
4771 * wake icmp6 packet count
4772 * @QCA_WLAN_VENDOR_ATTR_ICMP6_RA:
4773 * wake icmp6 RA packet count
4774 * @QCA_WLAN_VENDOR_ATTR_ICMP6_NA:
4775 * wake icmp6 NA packet count
4776 * @QCA_WLAN_VENDOR_ATTR_ICMP6_NS:
4777 * wake icmp6 NS packet count
4778 * @QCA_WLAN_VENDOR_ATTR_ICMP4_RX_MULTICAST_CNT:
4779 * Rx wake packet count due to ipv4 multicast
4780 * @QCA_WLAN_VENDOR_ATTR_ICMP6_RX_MULTICAST_CNT:
4781 * Rx wake packet count due to ipv6 multicast
4782 * @QCA_WLAN_VENDOR_ATTR_OTHER_RX_MULTICAST_CNT:
4783 * Rx wake packet count due to non-ipv4 and non-ipv6 packets
4784 * @QCA_WLAN_VENDOR_ATTR_RSSI_BREACH_CNT:
4785 * wake rssi breach packet count
4786 * @QCA_WLAN_VENDOR_ATTR_LOW_RSSI_CNT:
4787 * wake low rssi packet count
4788 * @QCA_WLAN_VENDOR_ATTR_GSCAN_CNT:
4789 * wake gscan packet count
4790 * @QCA_WLAN_VENDOR_ATTR_PNO_COMPLETE_CNT:
4791 * wake pno complete packet count
4792 * @QCA_WLAN_VENDOR_ATTR_PNO_MATCH_CNT:
4793 * wake pno match packet count
4794 */
4795enum qca_wlan_vendor_attr_wake_stats {
4796 QCA_WLAN_VENDOR_ATTR_GET_WAKE_STATS_INVALID = 0,
4797 QCA_WLAN_VENDOR_ATTR_TOTAL_CMD_EVENT_WAKE,
4798 QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_PTR,
4799 QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_SZ,
4800 QCA_WLAN_VENDOR_ATTR_TOTAL_DRIVER_FW_LOCAL_WAKE,
4801 QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
4802 QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
4803 QCA_WLAN_VENDOR_ATTR_TOTAL_RX_DATA_WAKE,
4804 QCA_WLAN_VENDOR_ATTR_RX_UNICAST_CNT,
4805 QCA_WLAN_VENDOR_ATTR_RX_MULTICAST_CNT,
4806 QCA_WLAN_VENDOR_ATTR_RX_BROADCAST_CNT,
4807 QCA_WLAN_VENDOR_ATTR_ICMP_PKT,
4808 QCA_WLAN_VENDOR_ATTR_ICMP6_PKT,
4809 QCA_WLAN_VENDOR_ATTR_ICMP6_RA,
4810 QCA_WLAN_VENDOR_ATTR_ICMP6_NA,
4811 QCA_WLAN_VENDOR_ATTR_ICMP6_NS,
4812 QCA_WLAN_VENDOR_ATTR_ICMP4_RX_MULTICAST_CNT,
4813 QCA_WLAN_VENDOR_ATTR_ICMP6_RX_MULTICAST_CNT,
4814 QCA_WLAN_VENDOR_ATTR_OTHER_RX_MULTICAST_CNT,
4815 QCA_WLAN_VENDOR_ATTR_RSSI_BREACH_CNT,
4816 QCA_WLAN_VENDOR_ATTR_LOW_RSSI_CNT,
4817 QCA_WLAN_VENDOR_ATTR_GSCAN_CNT,
4818 QCA_WLAN_VENDOR_ATTR_PNO_COMPLETE_CNT,
4819 QCA_WLAN_VENDOR_ATTR_PNO_MATCH_CNT,
4820 /* keep last */
4821 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
4822 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
4823 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
4824};
4825
4826/**
Pankaj Singh1e0b3242020-01-20 18:42:52 +05304827 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
4828 * configured by userspace to the driver/firmware. The values will be
4829 * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
4830 * The driver/firmware takes necessary actions requested by userspace
4831 * such as throttling wifi tx etc. in order to mitigate high temperature.
4832 *
4833 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
4834 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
4835 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
4836 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
4837 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
4838 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
4839 */
4840enum qca_wlan_vendor_thermal_level {
4841 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
4842 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
4843 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
4844 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
4845 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
4846 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
4847};
4848
4849/**
4850 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
4851 * cmd value. Used for NL attributes for data used by
4852 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
4853 */
4854enum qca_wlan_vendor_attr_thermal_cmd {
4855 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
4856 /*
4857 * The value of command, driver will implement different operations
4858 * according to this value. It uses values defined in
4859 * enum qca_wlan_vendor_attr_thermal_cmd_type.
4860 * u32 attribute.
4861 */
4862 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
4863 /*
4864 * Userspace uses this attribute to configure thermal level to
4865 * driver/firmware. Used in request, u32 attribute, possible values
4866 * are defined in enum qca_wlan_vendor_thermal_level.
4867 */
4868 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
4869 /*
4870 * Userspace uses this attribute to configure the time in which the
4871 * driver/firmware should complete applying settings it received from
4872 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
4873 * command type. Used in request, u32 attribute, value is in milli
4874 * seconds. A value of zero indicates to apply the settings
4875 * immediately. The driver/firmware can delay applying the configured
4876 * thermal settings within the time specified in this attribute if
4877 * there is any critical ongoing operation.
4878 */
4879 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
4880 /* keep last */
4881 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
4882 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
4883 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
4884};
4885
4886/**
4887 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
4888 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
4889 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
4890 * thermal command types sent to driver.
4891 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
4892 * get thermal shutdown configuration parameters for display. Parameters
4893 * responded from driver are defined in
4894 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
4895 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
4896 * get temperature. Host should respond with a temperature data. It is defined
4897 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
4898 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
4899 * suspend action.
4900 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
4901 * resume action.
4902 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
4903 * the driver/firmware.
4904 */
4905enum qca_wlan_vendor_attr_thermal_cmd_type {
4906 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
4907 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
4908 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
4909 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
4910 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
4911};
4912
4913/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05304914 * enum qca_vendor_element_id - QCA Vendor Specific element types
4915 *
4916 * These values are used to identify QCA Vendor Specific elements. The
4917 * payload of the element starts with the three octet OUI (OUI_QCA) and
4918 * is followed by a single octet type which is defined by this enum.
4919 *
4920 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
4921 * This element can be used to specify preference order for supported
4922 * channels. The channels in this list are in preference order (the first
4923 * one has the highest preference) and are described as a pair of
4924 * (global) Operating Class and Channel Number (each one octet) fields.
4925 *
4926 * This extends the standard P2P functionality by providing option to have
4927 * more than one preferred operating channel. When this element is present,
4928 * it replaces the preference indicated in the Operating Channel attribute.
4929 * For supporting other implementations, the Operating Channel attribute is
4930 * expected to be used with the highest preference channel. Similarly, all
4931 * the channels included in this Preferred channel list element are
4932 * expected to be included in the Channel List attribute.
4933 *
4934 * This vendor element may be included in GO Negotiation Request, P2P
4935 * Invitation Request, and Provision Discovery Request frames.
4936 *
4937 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
4938 * This element can be used for pre-standard publication testing of HE
4939 * before P802.11ax draft assigns the element ID. The payload of this
4940 * vendor specific element is defined by the latest P802.11ax draft.
4941 * Please note that the draft is still work in progress and this element
4942 * payload is subject to change.
4943 *
4944 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
4945 * This element can be used for pre-standard publication testing of HE
4946 * before P802.11ax draft assigns the element ID. The payload of this
4947 * vendor specific element is defined by the latest P802.11ax draft.
4948 * Please note that the draft is still work in progress and this element
4949 * payload is subject to change.
4950 *
4951 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
4952 * element).
4953 * This element can be used for pre-standard publication testing of HE
4954 * before P802.11ax draft assigns the element ID extension. The payload of
4955 * this vendor specific element is defined by the latest P802.11ax draft
4956 * (not including the Element ID Extension field). Please note that the
4957 * draft is still work in progress and this element payload is subject to
4958 * change.
4959 *
4960 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
4961 * This element can be used for pre-standard publication testing of HE
4962 * before P802.11ax draft assigns the element ID extension. The payload of
4963 * this vendor specific element is defined by the latest P802.11ax draft
4964 * (not including the Element ID Extension field). Please note that the
4965 * draft is still work in progress and this element payload is subject to
4966 * change.
4967 *
4968 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
4969 * This element can be used for pre-standard publication testing of HE
4970 * before P802.11ax draft assigns the element ID extension. The payload of
4971 * this vendor specific element is defined by the latest P802.11ax draft
4972 * (not including the Element ID Extension field). Please note that the
4973 * draft is still work in progress and this element payload is subject to
4974 * change.
4975 */
4976enum qca_vendor_element_id {
4977 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
4978 QCA_VENDOR_ELEM_HE_CAPAB = 1,
4979 QCA_VENDOR_ELEM_HE_OPER = 2,
4980 QCA_VENDOR_ELEM_RAPS = 3,
4981 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
4982 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
4983};
4984
4985/**
Vivek3e5a3ba2017-02-20 18:13:57 +05304986 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
4987 * @QCA_WLAN_VENDOR_ATTR_TSF_INVALID: Invalid attribute value
4988 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
4989 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
4990 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
4991 * SOC timer value at TSF capture
4992 * @QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST: after last
4993 * @QCA_WLAN_VENDOR_ATTR_TSF_MAX: Max value
4994 */
4995enum qca_vendor_attr_tsf_cmd {
4996 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
4997 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
4998 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
4999 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
5000 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
5001 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
5002 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
5003};
5004
5005/**
5006 * enum qca_tsf_operation: TSF driver commands
5007 * @QCA_TSF_CAPTURE: Initiate TSF Capture
5008 * @QCA_TSF_GET: Get TSF capture value
5009 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
5010 */
5011enum qca_tsf_cmd {
5012 QCA_TSF_CAPTURE,
5013 QCA_TSF_GET,
5014 QCA_TSF_SYNC_GET,
5015};
5016
5017/**
5018 * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
5019 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
5020 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
5021 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
Jayachandran Sreekumaran203cf902019-01-08 13:36:52 +05305022 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
Vivek3e5a3ba2017-02-20 18:13:57 +05305023 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
5024 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
5025 */
5026enum qca_vendor_attr_get_preferred_freq_list {
5027 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
5028 /* A 32-unsigned value; the interface type/mode for which the preferred
5029 * frequency list is requested (see enum qca_iface_type for possible
5030 * values); used in both south- and north-bound.
5031 */
5032 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
5033 /* An array of 32-unsigned values; values are frequency (MHz); used
5034 * in north-bound only.
5035 */
5036 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Jayachandran Sreekumaran203cf902019-01-08 13:36:52 +05305037 /* An array of nested values as per enum
5038 * qca_wlan_vendor_attr_pcl_config attribute.
5039 * Each element contains frequency (MHz), weight, and flag
5040 * bit mask indicating how the frequency should be used in P2P
5041 * negotiation.
5042 */
5043 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Vivek3e5a3ba2017-02-20 18:13:57 +05305044 /* keep last */
5045 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
5046 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
5047 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
5048};
5049
5050/**
5051 * enum qca_vendor_attr_probable_oper_channel - channel hint
5052 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
5053 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
5054 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
5055 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
5056 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
5057 */
5058enum qca_vendor_attr_probable_oper_channel {
5059 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
5060 /* 32-bit unsigned value; indicates the connection/iface type likely to
5061 * come on this channel (see enum qca_iface_type).
5062 */
5063 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
5064 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
5065 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
5066 /* keep last */
5067 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
5068 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
5069 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
5070};
5071
5072/**
5073 * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
5074 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
5075 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
5076 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
5077 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
5078 */
5079enum qca_wlan_vendor_attr_gw_param_config {
5080 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
5081 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
5082 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
5083 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
5084 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
5085 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
5086 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
5087};
5088
5089/**
5090 * enum drv_dbs_capability - DBS capability
5091 * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
5092 * @DRV_DBS_CAPABILITY_1X1: 1x1
5093 * @DRV_DBS_CAPABILITY_2X2: 2x2
5094 */
5095enum drv_dbs_capability {
5096 DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
5097 DRV_DBS_CAPABILITY_1X1,
5098 DRV_DBS_CAPABILITY_2X2,
5099};
5100
5101/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305102 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
5103 *
5104 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
5105 */
5106enum qca_vendor_attr_txpower_decr_db {
5107 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
5108 /*
5109 * 8-bit unsigned value to indicate the reduction of TX power in dB for
5110 * a virtual interface.
5111 */
5112 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
5113 /* keep last */
5114 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
5115 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
5116 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
5117};
5118
5119/**
Vivek3e5a3ba2017-02-20 18:13:57 +05305120 * enum qca_vendor_attr_ota_test - Enable OTA test
5121 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
5122 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
5123 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
5124 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
5125 */
5126enum qca_vendor_attr_ota_test {
5127 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
5128 /* 8-bit unsigned value to indicate if OTA test is enabled */
5129 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
5130 /* keep last */
5131 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
5132 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
5133 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
5134};
5135
5136/** enum qca_vendor_attr_txpower_scale - vendor sub commands index
5137 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
5138 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
5139 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
5140 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
5141 */
5142enum qca_vendor_attr_txpower_scale {
5143 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
5144 /* 8-bit unsigned value to indicate the scaling of tx power */
5145 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
5146 /* keep last */
5147 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
5148 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
5149 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
5150};
5151
5152/**
5153 * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
5154 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
5155 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
5156 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
5157 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
5158 */
5159enum qca_vendor_attr_txpower_scale_decr_db {
5160 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
5161 /* 8-bit unsigned value to indicate the scaling of tx power */
5162 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
5163 /* keep last */
5164 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
5165 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
5166 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
5167};
5168
5169/**
5170 * enum dfs_mode - state of DFS mode
5171 * @DFS_MODE_NONE: DFS mode attribute is none
5172 * @DFS_MODE_ENABLE: DFS mode is enabled
5173 * @DFS_MODE_DISABLE: DFS mode is disabled
5174 * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
5175 */
5176enum dfs_mode {
5177 DFS_MODE_NONE,
5178 DFS_MODE_ENABLE,
5179 DFS_MODE_DISABLE,
5180 DFS_MODE_DEPRIORITIZE
5181};
5182
5183/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05305184 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
5185 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
5186 *
5187 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
5188 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
5189 *
5190 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
5191 * channel number hint for ACS operation, if valid channel is specified then
5192 * ACS operation gives priority to this channel.
5193 * Note: If both the driver and user space application supports the 6 GHz band,
5194 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
5195 * should be used.
5196 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
5197 * is still used if either of the driver or user space application doesn't
5198 * support the 6 GHz band.
5199 *
5200 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
5201 * Channel center frequency (MHz) hint for ACS operation, if a valid center
5202 * frequency is specified, ACS operation gives priority to this channel.
Vivek3e5a3ba2017-02-20 18:13:57 +05305203 */
5204enum qca_wlan_vendor_attr_acs_config {
5205 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05305206 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
5207 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
5208 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
Vivek3e5a3ba2017-02-20 18:13:57 +05305209
5210 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
5211 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
5212 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05305213};
5214
5215/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305216 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
5217 */
5218enum qca_wlan_vendor_attr_get_hw_capability {
5219 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
5220 /*
5221 * Antenna isolation
5222 * An attribute used in the response.
5223 * The content of this attribute is encoded in a byte array. Each byte
5224 * value is an antenna isolation value. The array length is the number
5225 * of antennas.
5226 */
5227 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
5228 /*
5229 * Request HW capability
5230 * An attribute used in the request.
5231 * The content of this attribute is a u32 array for one or more of
5232 * hardware capabilities (attribute IDs) that are being requested. Each
5233 * u32 value has a value from this
5234 * enum qca_wlan_vendor_attr_get_hw_capability
5235 * identifying which capabilities are requested.
5236 */
5237 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
5238
5239 /* keep last */
5240 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
5241 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
5242 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
5243};
5244
5245/**
Vivek3e5a3ba2017-02-20 18:13:57 +05305246 * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
5247 * config params for sta roam policy
5248 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
5249 * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
5250 * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
5251 * If sta should skip unsafe channels or not in scanning
5252 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
5253 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
5254 */
5255enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
5256 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
5257 QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
5258 QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
5259
5260 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
5261 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
5262 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
5263};
5264
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305265/* Attributes for FTM commands and events */
5266
5267/**
5268 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
5269 *
5270 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
5271 * enum qca_wlan_vendor_attr_loc_capa_flags.
5272 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
5273 * of measurement sessions that can run concurrently.
5274 * Default is one session (no session concurrency).
5275 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
5276 * peers that are supported in running sessions. For example,
5277 * if the value is 8 and maximum number of sessions is 2, you can
5278 * have one session with 8 unique peers, or 2 sessions with 4 unique
5279 * peers each, and so on.
5280 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
5281 * of bursts per peer, as an exponent (2^value). Default is 0,
5282 * meaning no multi-burst support.
5283 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
5284 * of measurement exchanges allowed in a single burst.
5285 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
5286 * types. A bit mask (unsigned 32 bit value), each bit corresponds
5287 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
5288 */
5289enum qca_wlan_vendor_attr_loc_capa {
5290 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
5291 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
5292 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
5293 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
5294 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
5295 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
5296 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
5297 /* keep last */
5298 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
5299 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
5300 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
5301};
5302
5303/**
5304 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
5305 *
5306 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
5307 * can be configured as an FTM responder (for example, an AP that
5308 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
5309 * will be supported if set.
5310 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
5311 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
5312 * will be supported if set.
5313* @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
5314 * supports immediate (ASAP) response.
5315 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
5316 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
5317 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
5318 * requesting AOA measurements as part of an FTM session.
5319 */
5320enum qca_wlan_vendor_attr_loc_capa_flags {
5321 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
5322 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
5323 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
5324 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
5325 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
5326};
Vivek3e5a3ba2017-02-20 18:13:57 +05305327
5328/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05305329 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
5330 *
5331 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
5332 * Channel number on which Access Point should restart.
5333 * Note: If both the driver and user space application supports the 6 GHz band,
5334 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
5335 * should be used.
5336 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
5337 * is still used if either of the driver or user space application doesn't
5338 * support the 6 GHz band.
5339 *
5340 * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
5341 * Nested attribute to hold list of center frequencies on which AP is
5342 * expected to operate. This is irrespective of ACS configuration.
5343 * This list is a priority based one and is looked for before the AP is
5344 * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
5345 * co-exist in the system.
5346 *
5347 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
5348 * Channel center frequency (MHz) on which the access point should restart.
Vivek3e5a3ba2017-02-20 18:13:57 +05305349 */
5350enum qca_wlan_vendor_attr_sap_config {
5351 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05305352 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
Vivek3e5a3ba2017-02-20 18:13:57 +05305353 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05305354 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
5355
5356 /* Keep last */
Vivek3e5a3ba2017-02-20 18:13:57 +05305357 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
5358 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
5359 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
5360};
5361
5362/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305363 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
5364 * a single peer in a measurement session.
5365 *
5366 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
5367 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
5368 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
5369 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
5370 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
5371 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
5372 * list of supported attributes.
5373 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
5374 * secure measurement.
5375 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
5376 * measurement every <value> bursts. If 0 or not specified,
5377 * AOA measurements will be disabled for this peer.
5378 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
5379 * the measurement frames are exchanged. Optional; if not
5380 * specified, try to locate the peer in the kernel scan
5381 * results cache and use frequency from there.
5382 */
5383enum qca_wlan_vendor_attr_ftm_peer_info {
5384 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
5385 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
5386 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
5387 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
5388 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
5389 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
5390 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
5391 /* keep last */
5392 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
5393 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
5394 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
5395};
5396
5397/**
5398 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
5399 * per-peer
5400 *
5401 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
5402 * immediate (ASAP) response from peer.
5403 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
5404 * LCI report from peer. The LCI report includes the absolute
5405 * location of the peer in "official" coordinates (similar to GPS).
5406 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
5407 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
5408 * Location civic report from peer. The LCR includes the location
5409 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
5410 * 11.24.6.7 for more information.
5411 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
5412 * request a secure measurement.
5413 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
5414 */
5415enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
5416 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
5417 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
5418 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
5419 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
5420};
5421
5422/**
5423 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
5424 *
5425 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
5426 * to perform in a single burst.
5427 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
5428 * perform, specified as an exponent (2^value).
5429 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
5430 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
5431 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
5432 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
5433 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
5434 */
5435enum qca_wlan_vendor_attr_ftm_meas_param {
5436 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
5437 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
5438 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
5439 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
5440 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
5441 /* keep last */
5442 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
5443 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
5444 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
5445};
5446
5447/**
5448 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
5449 *
5450 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
5451 * peer.
5452 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
5453 * request for this peer.
5454 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
5455 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
5456 * to measurement results for this peer.
5457 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
5458 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
5459 * request failed and peer requested not to send an additional request
5460 * for this number of seconds.
5461 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
5462 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
5463 * 9.4.2.22.10.
5464 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
5465 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
5466 * 9.4.2.22.13.
5467 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
5468 * overridden some measurement request parameters. See
5469 * enum qca_wlan_vendor_attr_ftm_meas_param.
5470 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
5471 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
5472 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
5473 * results. Each entry is a nested attribute defined
5474 * by enum qca_wlan_vendor_attr_ftm_meas.
5475 */
5476enum qca_wlan_vendor_attr_ftm_peer_result {
5477 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
5478 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
5479 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
5480 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
5481 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
5482 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
5483 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
5484 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
5485 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
5486 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
5487 /* keep last */
5488 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
5489 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
5490 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
5491};
5492
5493/**
5494 * enum qca_wlan_vendor_attr_ftm_peer_result_status
5495 *
5496 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
5497 * will be provided. Peer may have overridden some measurement parameters,
5498 * in which case overridden parameters will be report by
5499 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
5500 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
5501 * of performing the measurement request. No more results will be sent
5502 * for this peer in this session.
5503 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
5504 * failed, and requested not to send an additional request for number
5505 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
5506 * attribute.
5507 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
5508 * failed. Request was not sent over the air.
5509 */
5510enum qca_wlan_vendor_attr_ftm_peer_result_status {
5511 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
5512 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
5513 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
5514 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
5515};
5516
5517/**
5518 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
5519 * for measurement result, per-peer
5520 *
5521 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
5522 * measurement completed for this peer. No more results will be reported
5523 * for this peer in this session.
5524 */
5525enum qca_wlan_vendor_attr_ftm_peer_result_flags {
5526 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
5527};
5528
5529/**
5530 * enum qca_vendor_attr_loc_session_status: Session completion status code
5531 *
5532 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
5533 * successfully.
5534 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
5535 * by request.
5536 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
5537 * was invalid and was not started.
5538 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
5539 * and did not complete normally (for example out of resources).
5540 */
5541enum qca_vendor_attr_loc_session_status {
5542 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
5543 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
5544 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
5545 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
5546};
5547
5548/**
5549 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
5550 *
5551 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
5552 * recorded by responder, in picoseconds.
5553 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5554 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
5555 * initiator, in picoseconds.
5556 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5557 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
5558 * initiator, in picoseconds.
5559 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5560 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
5561 * responder, in picoseconds.
5562 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5563 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
5564 * during this measurement exchange. Optional and will be provided if
5565 * the hardware can measure it.
5566 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
5567 * responder. Not always provided.
5568 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5569 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
5570 * responder. Not always provided.
5571 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5572 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
5573 * initiator. Not always provided.
5574 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5575 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
5576 * initiator. Not always provided.
5577 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5578 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
5579 */
5580enum qca_wlan_vendor_attr_ftm_meas {
5581 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
5582 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
5583 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
5584 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
5585 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
5586 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
5587 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
5588 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
5589 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
5590 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
5591 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
5592 /* keep last */
5593 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
5594 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
5595 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
5596};
5597
5598/**
Vivek3e5a3ba2017-02-20 18:13:57 +05305599 * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
5600 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
5601 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
5602 * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
5603 * of the social channels.
5604 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
5605 * A 32-bit unsigned value; the P2P listen offload period (ms).
5606 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
5607 * A 32-bit unsigned value; the P2P listen interval duration (ms).
5608 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
5609 * A 32-bit unsigned value; number of interval times the Firmware needs
5610 * to run the offloaded P2P listen operation before it stops.
5611 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
5612 * An array of unsigned 8-bit characters; vendor information elements.
5613 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
5614 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
5615 * A 32-bit unsigned value; a control flag to indicate whether listen
5616 * results need to be flushed to wpa_supplicant.
5617 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
5618 * A 8-bit unsigned value; reason code for P2P listen offload stop
5619 * event.
5620 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
5621 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
5622 */
5623enum qca_wlan_vendor_attr_p2p_listen_offload {
5624 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
5625 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
5626 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
5627 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
5628 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
5629 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
5630 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
5631 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
5632 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
5633 /* keep last */
5634 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
5635 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
5636 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
5637};
5638
5639/**
5640 * enum qca_wlan_vendor_drv_info - WLAN driver info
5641 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
5642 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
5643 * between Firmware & Host.
5644 */
5645enum qca_wlan_vendor_drv_info {
5646 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
5647 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
5648
5649 /* keep last */
5650 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
5651 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
5652 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
5653};
5654
5655/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305656 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
5657 *
5658 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
5659 * CIR (channel impulse response) path for each antenna.
5660 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
5661 * of the strongest CIR path for each antenna.
5662 */
5663enum qca_wlan_vendor_attr_aoa_type {
5664 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
5665 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
5666 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
5667};
5668
5669/**
Vivek3e5a3ba2017-02-20 18:13:57 +05305670 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
5671 * validate encryption engine
5672 *
5673 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
5674 * This will be included if the request is for decryption; if not included,
5675 * the request is treated as a request for encryption by default.
5676 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
5677 * indicating the key cipher suite. Takes same values as
5678 * NL80211_ATTR_KEY_CIPHER.
5679 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
5680 * Key Id to be used for encryption
5681 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
5682 * Key (TK) to be used for encryption/decryption
5683 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
5684 * Packet number to be specified for encryption/decryption
5685 * 6 bytes for TKIP/CCMP/GCMP.
5686 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
5687 * representing the 802.11 packet (header + payload + FCS) that
5688 * needs to be encrypted/decrypted.
5689 * Encrypted/decrypted response from the driver will also be sent
5690 * to userspace with the same attribute.
5691 */
5692enum qca_wlan_vendor_attr_encryption_test {
5693 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
5694 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
5695 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
5696 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
5697 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
5698 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
5699 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
5700
5701 /* keep last */
5702 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
5703 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
5704 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
5705};
5706
5707/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305708 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
5709 * sector for DMG RF sector operations.
5710 *
5711 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
5712 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
5713 */
5714enum qca_wlan_vendor_attr_dmg_rf_sector_type {
5715 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
5716 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
5717 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
5718};
5719
5720/**
Qun Zhangaf8a0812019-02-01 11:30:34 +08005721 * enum qca_wlan_vendor_attr_fw_state - State of firmware
5722 *
5723 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
5724 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
5725 */
5726enum qca_wlan_vendor_attr_fw_state {
5727 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
5728 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
5729 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
5730};
5731
5732/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05305733 * BRP antenna limit mode
5734 *
5735 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
5736 * antenna limit, BRP will be performed as usual.
5737 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
5738 * antennas limit. the hardware may use less antennas than the
5739 * maximum limit.
5740 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
5741 * use exactly the specified number of antennas for BRP.
5742 */
5743enum qca_wlan_vendor_attr_brp_ant_limit_mode {
5744 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
5745 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
5746 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
5747 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
5748};
5749
5750/**
5751 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
5752 * DMG RF sector configuration for a single RF module.
5753 * The values are defined in a compact way which closely matches
5754 * the way it is stored in HW registers.
5755 * The configuration provides values for 32 antennas and 8 distribution
5756 * amplifiers, and together describes the characteristics of the RF
5757 * sector - such as a beam in some direction with some gain.
5758 *
5759 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
5760 * of RF module for this configuration.
5761 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
5762 * amplifier gain index. Unsigned 32 bit number containing
5763 * bits for all 32 antennas.
5764 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
5765 * amplifier gain index. Unsigned 32 bit number containing
5766 * bits for all 32 antennas.
5767 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
5768 * amplifier gain index. Unsigned 32 bit number containing
5769 * bits for all 32 antennas.
5770 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
5771 * for first 16 antennas, 2 bits per antenna.
5772 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
5773 * for last 16 antennas, 2 bits per antenna.
5774 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
5775 * DTYPE values (3 bits) for each distribution amplifier, followed
5776 * by X16 switch bits for each distribution amplifier. There are
5777 * total of 8 distribution amplifiers.
5778 */
5779enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
5780 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
5781 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
5782 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
5783 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
5784 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
5785 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
5786 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
5787 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
5788
5789 /* keep last */
5790 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
5791 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
5792 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
5793};
5794
5795/**
Vivek3e5a3ba2017-02-20 18:13:57 +05305796 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
5797 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
5798 *
5799 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
5800 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
5801 * represents the different TDLS trigger modes.
5802 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
5803 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
5804 * of packets shall meet the criteria for implicit TDLS setup.
5805 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
5806 * packets within a duration.
5807 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
5808 * a TDLS setup.
5809 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
5810 * a TDLS Discovery to the Peer.
5811 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
5812 * discovery attempts to know the TDLS capability of the peer. A peer is
5813 * marked as TDLS not capable if there is no response for all the attempts.
5814 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
5815 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
5816 * number of TX / RX frames meet the criteria for TDLS teardown.
Jeff Johnson24d440b2018-05-12 11:41:14 -07005817 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
Vivek3e5a3ba2017-02-20 18:13:57 +05305818 * (u32) of Tx/Rx packets within a duration
5819 * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
5820 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
5821 * corresponding to the RSSI of the peer below which a TDLS
5822 * setup is triggered.
5823 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
5824 * corresponding to the RSSI of the peer above which
5825 * a TDLS teardown is triggered.
5826 */
5827enum qca_wlan_vendor_attr_tdls_configuration {
5828 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
5829 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
5830
5831 /* Attributes configuring the TDLS Implicit Trigger */
5832 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
5833 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
5834 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
5835 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
5836 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
5837 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
5838 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
5839 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
5840
5841 /* keep last */
5842 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
5843 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
5844 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
5845};
5846
5847/**
5848 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
5849 * the driver.
5850 *
5851 * The following are the different values for
5852 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
5853 *
5854 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
5855 * initiate/teardown the TDLS connection to a respective peer comes
5856 * from the user space. wpa_supplicant provides the commands
5857 * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
5858 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
5859 * setup/teardown to the eligible peer once the configured criteria
5860 * (such as TX/RX threshold, RSSI) is met. The attributes
5861 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
5862 * the different configuration criteria for the TDLS trigger from the
5863 * host driver.
5864 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
5865 * the TDLS setup / teardown through the implicit mode, only to the
5866 * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
5867 * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
5868 * External mode works on top of the implicit mode, thus the host Driver
5869 * is expected to be configured in TDLS Implicit mode too to operate in
5870 * External mode. Configuring External mode alone without Implicit
5871 * mode is invalid.
5872 *
5873 * All the above implementations work as expected only when the host driver
5874 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
5875 * representing that the TDLS message exchange is not internal to the host
5876 * driver, but depends on wpa_supplicant to do the message exchange.
5877 */
5878enum qca_wlan_vendor_tdls_trigger_mode {
5879 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
5880 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
5881 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
5882};
5883
5884/**
5885 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
5886 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
5887 * that is hard-coded in the Board Data File (BDF).
5888 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
5889 * that is hard-coded in the Board Data File (BDF).
5890 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
5891 * that is hard-coded in the Board Data File (BDF).
5892 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
5893 * that is hard-coded in the Board Data File (BDF).
5894 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
5895 * that is hard-coded in the Board Data File (BDF).
5896 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
5897 * source of SAR power limits, thereby disabling the SAR power
5898 * limit feature.
5899 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
5900 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Kabilan Kannan762ad5d2018-06-21 16:55:47 -07005901 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
5902 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Vivek3e5a3ba2017-02-20 18:13:57 +05305903 *
5904 * This enumerates the valid set of values that may be supplied for
5905 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Jeff Johnsonf2f8dea2017-12-18 15:49:20 -08005906 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
5907 * the response to an instance of the
5908 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Vivek3e5a3ba2017-02-20 18:13:57 +05305909 */
5910enum qca_vendor_attr_sar_limits_selections {
5911 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
5912 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
5913 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
5914 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
5915 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
5916 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
5917 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Kabilan Kannan762ad5d2018-06-21 16:55:47 -07005918 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Vivek3e5a3ba2017-02-20 18:13:57 +05305919};
5920
5921/**
5922 * enum qca_vendor_attr_sar_limits_spec_modulations -
5923 * SAR limits specification modulation
5924 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
5925 * CCK modulation
5926 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
5927 * OFDM modulation
5928 *
5929 * This enumerates the valid set of values that may be supplied for
5930 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
5931 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
5932 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Jeff Johnsonf2f8dea2017-12-18 15:49:20 -08005933 * command or in the response to an instance of the
5934 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Vivek3e5a3ba2017-02-20 18:13:57 +05305935 */
5936enum qca_vendor_attr_sar_limits_spec_modulations {
5937 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
5938 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
5939};
5940
5941/**
5942 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
5943 *
5944 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
5945 * select which SAR power limit table should be used. Valid
5946 * values are enumerated in enum
5947 * %qca_vendor_attr_sar_limits_selections. The existing SAR
5948 * power limit selection is unchanged if this attribute is not
5949 * present.
5950 *
5951 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
5952 * which specifies the number of SAR power limit specifications
5953 * which will follow.
5954 *
5955 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
5956 * limit specifications. The number of specifications is
5957 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
5958 * specification contains a set of
5959 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
5960 * specification is uniquely identified by the attributes
5961 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
5962 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
5963 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
5964 * contains as a payload the attribute
5965 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
Kabilan Kannan762ad5d2018-06-21 16:55:47 -07005966 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
5967 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
5968 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
5969 * needed based upon the value of
5970 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Vivek3e5a3ba2017-02-20 18:13:57 +05305971 *
5972 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
5973 * indicate for which band this specification applies. Valid
5974 * values are enumerated in enum %nl80211_band (although not all
5975 * bands may be supported by a given device). If the attribute is
5976 * not supplied then the specification will be applied to all
5977 * supported bands.
5978 *
5979 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
5980 * to indicate for which antenna chain this specification
5981 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
5982 * attribute is not supplied then the specification will be
5983 * applied to all chains.
5984 *
5985 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
5986 * value to indicate for which modulation scheme this
5987 * specification applies. Valid values are enumerated in enum
5988 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
5989 * is not supplied then the specification will be applied to all
5990 * modulation schemes.
5991 *
5992 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
Kabilan Kannan762ad5d2018-06-21 16:55:47 -07005993 * value to specify the actual power limit value in units of 0.5
5994 * dBm (i.e., a value of 11 represents 5.5 dBm).
5995 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5996 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
5997 *
5998 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
5999 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
6000 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
6001 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
Vivek3e5a3ba2017-02-20 18:13:57 +05306002 *
Jeff Johnsonf2f8dea2017-12-18 15:49:20 -08006003 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
6004 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Vivek3e5a3ba2017-02-20 18:13:57 +05306005 */
6006enum qca_vendor_attr_sar_limits {
6007 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
6008 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
6009 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
6010 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
6011 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
6012 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
6013 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
6014 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Kabilan Kannan762ad5d2018-06-21 16:55:47 -07006015 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Vivek3e5a3ba2017-02-20 18:13:57 +05306016
6017 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
6018 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
6019 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
6020};
6021
6022/**
Zhang Qian7fc2e862017-03-23 17:49:43 +08006023 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
6024 * offload which is an extension for LL_STATS.
6025 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
6026 * If MAC counters do not exceed the threshold, FW will report monitored
6027 * link layer counters periodically as this setting. The first report is
6028 * always triggered by this timer.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306029 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
Zhang Qian7fc2e862017-03-23 17:49:43 +08006030 * For each MAC layer counter, FW holds two copies. One is the current value.
6031 * The other is the last report. Once a current counter's increment is larger
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306032 * than the threshold, FW will indicate that counter to host even if the
Zhang Qian7fc2e862017-03-23 17:49:43 +08006033 * monitoring timer does not expire.
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306034 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
6035 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
6036 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
Zhang Qian7fc2e862017-03-23 17:49:43 +08006037 * failure code.
6038 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
6039 * 1: TX packet discarded
6040 * 2: No ACK
6041 * 3: Postpone
6042 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
6043 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
Zhang Qian9d973df2017-04-26 15:10:46 +08006044 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
6045 * Threshold for all monitored parameters. If per counter dedicated threshold
6046 * is not enabled, this threshold will take effect.
6047 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
6048 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
6049 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
6050 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
6051 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
6052 * Bit0: TX counter unit in MSDU
6053 * Bit1: TX counter unit in MPDU
6054 * Bit2: TX counter unit in PPDU
6055 * Bit3: TX counter unit in byte
6056 * Bit4: Dropped MSDUs
6057 * Bit5: Dropped Bytes
6058 * Bit6: MPDU retry counter
6059 * Bit7: MPDU failure counter
6060 * Bit8: PPDU failure counter
6061 * Bit9: MPDU aggregation counter
6062 * Bit10: MCS counter for ACKed MPDUs
6063 * Bit11: MCS counter for Failed MPDUs
6064 * Bit12: TX Delay counter
6065 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
6066 * Bit0: MAC RX counter unit in MPDU
6067 * Bit1: MAC RX counter unit in byte
6068 * Bit2: PHY RX counter unit in PPDU
6069 * Bit3: PHY RX counter unit in byte
6070 * Bit4: Disorder counter
6071 * Bit5: Retry counter
6072 * Bit6: Duplication counter
6073 * Bit7: Discard counter
6074 * Bit8: MPDU aggregation size counter
6075 * Bit9: MCS counter
6076 * Bit10: Peer STA power state change (wake to sleep) counter
6077 * Bit11: Peer STA power save counter, total time in PS mode
6078 * Bit12: Probe request counter
6079 * Bit13: Other management frames counter
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306080 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
Zhang Qian9d973df2017-04-26 15:10:46 +08006081 * Bit0: Idle time
6082 * Bit1: TX time
6083 * Bit2: time RX in current bss
6084 * Bit3: Out of current bss time
6085 * Bit4: Wireless medium busy time
6086 * Bit5: RX in bad condition time
6087 * Bit6: TX in bad condition time
6088 * Bit7: time wlan card not available
6089 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
6090 * Bit0: Per channel SNR counter
6091 * Bit1: Per channel noise floor counter
Zhang Qian7fc2e862017-03-23 17:49:43 +08006092 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
Zhang Qian9d973df2017-04-26 15:10:46 +08006093 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
6094 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
6095 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
6096 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
6097 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
6098 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
6099 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
6100 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
6101 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
6102 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
6103 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
6104 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
6105 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
6106 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
6107 * aggregation stats buffer length
6108 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
6109 * buffer for ACKed MPDUs.
6110 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
6111 * buffer for failed MPDUs.
6112 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
6113 * length of delay stats array.
6114 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
6115 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
6116 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
6117 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
6118 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
6119 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
6120 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
6121 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
6122 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
6123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
6124 * flagged as retransmissions
6125 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
6126 * flagged as duplicated
6127 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
6128 * packets discarded
6129 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
6130 * stats buffer.
6131 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
6132 * stats buffer.
6133 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
6134 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
6135 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
6136 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
6137 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
6138 * requests received
6139 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
6140 * frames received
6141 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
6142 * there is no TX, nor RX, nor interference.
6143 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
6144 * transmitting packets.
6145 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
6146 * for receiving.
6147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
6148 * interference detected.
6149 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
6150 * receiving packets with errors.
6151 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
6152 * TX no-ACK.
6153 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
6154 * the chip is unable to work in normal conditions.
6155 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
6156 * receiving packets in current BSS.
6157 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
6158 * receiving packets not in current BSS.
6159 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
6160 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
6161 * This is a container for per antenna signal stats.
6162 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
6163 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
6164 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
6165 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
6166 */
Zhang Qian7fc2e862017-03-23 17:49:43 +08006167enum qca_wlan_vendor_attr_ll_stats_ext {
6168 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
6169
6170 /* Attributes for configurations */
6171 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
6172 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
6173
6174 /* Peer STA power state change */
6175 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
6176
6177 /* TX failure event */
6178 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
6179 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
6180 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
6181
6182 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
6183 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
Zhang Qian9d973df2017-04-26 15:10:46 +08006184
6185 /* MAC counters */
6186 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
6187 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
6188 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
6189 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
6190 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
6191 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
6192 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
6193 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
Zhang Qian7fc2e862017-03-23 17:49:43 +08006194 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
Zhang Qian9d973df2017-04-26 15:10:46 +08006195 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
6196 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
6197 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
6198
6199 /* Sub-attributes for PEER_AC_TX */
6200 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
6201 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
6202 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
6203 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
6204 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
6205 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
6206 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
6207 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
6208 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
6209 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
6210 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
6211 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
6212 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
6213 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
6214 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
6215 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
6216 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
6217
6218 /* Sub-attributes for PEER_AC_RX */
6219 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
6220 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
6221 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
6222 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
6223 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
6224 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
6225 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
6226 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
6227 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
6228 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
6229 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
6230 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
6231 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
6232 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
6233 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
6234 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
6235
6236 /* Sub-attributes for CCA_BSS */
6237 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
6238 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
6239 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
6240 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
6241 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
6242 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
6243 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
6244
6245 /* sub-attribute for BSS_RX_TIME */
6246 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
6247 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
6248
6249 /* Sub-attributes for PEER_SIGNAL */
6250 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
6251 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
6252 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
6253 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
6254
6255 /* Sub-attributes for IFACE_BSS */
6256 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
6257 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
Zhang Qian7fc2e862017-03-23 17:49:43 +08006258
6259 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
6260 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
6261 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
6262};
6263
6264/**
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306265 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
6266 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
6267 * in priority order as decided after ACS operation in userspace.
6268 *
6269 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
6270 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
6271 *
6272 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
6273 * Array of nested values for each channel with following attributes:
Vivek3e5a3ba2017-02-20 18:13:57 +05306274 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6275 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6276 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6277 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6278 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306279 * Note: If both the driver and user-space application supports the 6 GHz band,
6280 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
6281 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
6282 * To maintain backward compatibility,
6283 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
6284 * is still used if either of the driver or user space application doesn't
6285 * support the 6 GHz band.
6286 *
6287 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
6288 * Primary channel number
6289 * Note: If both the driver and user-space application supports the 6 GHz band,
6290 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
6291 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
6292 * To maintain backward compatibility,
6293 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
6294 * is still used if either of the driver or user space application doesn't
6295 * support the 6 GHz band.
6296 *
6297 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
6298 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
6299 * Note: If both the driver and user-space application supports the 6 GHz band,
6300 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
6301 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
6302 * To maintain backward compatibility,
6303 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
6304 * is still used if either of the driver or user space application
6305 * doesn't support the 6 GHz band.
6306 *
6307 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
6308 * VHT seg0 channel number
6309 * Note: If both the driver and user-space application supports the 6 GHz band,
6310 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
6311 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
6312 * To maintain backward compatibility,
6313 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
6314 * is still used if either of the driver or user space application
6315 * doesn't support the 6 GHz band.
6316 *
6317 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
6318 * VHT seg1 channel number
6319 * Note: If both the driver and user-space application supports the 6 GHz band,
6320 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
6321 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
6322 * To maintain backward compatibility,
6323 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
6324 * is still used if either of the driver or user space application
6325 * doesn't support the 6 GHz band.
6326 *
6327 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
6328 * Takes one of enum nl80211_chan_width values.
6329 *
6330 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
6331 * Array of nested values for each channel with following attributes:
6332 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
6333 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
6334 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
6335 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
6336 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6337 * Note: If user-space application has no support of the 6 GHz band, this
6338 * attribute is optional.
6339 *
6340 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
6341 * Primary channel frequency in MHz
6342 * Note: If user-space application has no support of the 6 GHz band, this
6343 * attribute is optional.
6344 *
6345 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
6346 * Secondary channel frequency in MHz used for HT 40 MHz channels.
6347 * Note: If user-space application has no support of the 6 GHz band, this
6348 * attribute is optional.
6349 *
6350 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
6351 * VHT seg0 channel frequency in MHz
6352 * Note: If user-space application has no support of the 6GHz band, this
6353 * attribute is optional.
6354 *
6355 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
6356 * VHT seg1 channel frequency in MHz
6357 * Note: If user-space application has no support of the 6 GHz band, this
6358 * attribute is optional.
Vivek3e5a3ba2017-02-20 18:13:57 +05306359 */
6360enum qca_wlan_vendor_attr_external_acs_channels {
6361 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
6362
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306363 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
6364 */
Vivek3e5a3ba2017-02-20 18:13:57 +05306365 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306366
6367 /* Array of nested values for each channel with following attributes:
6368 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
6369 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6370 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6371 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6372 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6373 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6374 */
Kapil Guptac4278412017-05-18 20:58:01 +05306375 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306376 /* This (u8) will hold values of one of enum nl80211_bands */
Kapil Guptac4278412017-05-18 20:58:01 +05306377 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306378 /* Primary channel (u8) */
Vivek3e5a3ba2017-02-20 18:13:57 +05306379 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306380 /* Secondary channel (u8) used for HT 40 MHz channels */
Vivek3e5a3ba2017-02-20 18:13:57 +05306381 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306382 /* VHT seg0 channel (u8) */
Vivek3e5a3ba2017-02-20 18:13:57 +05306383 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306384 /* VHT seg1 channel (u8) */
Vivek3e5a3ba2017-02-20 18:13:57 +05306385 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306386 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
Vivek3e5a3ba2017-02-20 18:13:57 +05306387 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
6388
Rajeev Kumar Sirasanagandlab339eda2019-09-23 18:11:41 +05306389 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
6390 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
6391 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
6392 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
6393 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
6394
Vivek3e5a3ba2017-02-20 18:13:57 +05306395 /* keep last */
6396 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
6397 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
6398 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
6399};
6400
6401/**
6402 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
Krishna Rao365029b2019-08-16 18:16:56 +05306403 * the ACS has to be triggered. These values are used by
Vivek3e5a3ba2017-02-20 18:13:57 +05306404 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
Krishna Rao365029b2019-08-16 18:16:56 +05306405 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
Vivek3e5a3ba2017-02-20 18:13:57 +05306406 */
6407enum qca_wlan_vendor_acs_select_reason {
Krishna Rao365029b2019-08-16 18:16:56 +05306408 /* Represents the reason that the ACS triggered during the AP start */
Vivek3e5a3ba2017-02-20 18:13:57 +05306409 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
Krishna Rao365029b2019-08-16 18:16:56 +05306410 /* Represents the reason that DFS found with the current channel */
Vivek3e5a3ba2017-02-20 18:13:57 +05306411 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
Krishna Rao365029b2019-08-16 18:16:56 +05306412 /* Represents the reason that LTE co-exist in the current band. */
Vivek3e5a3ba2017-02-20 18:13:57 +05306413 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Krishna Rao365029b2019-08-16 18:16:56 +05306414 /* Represents the reason that generic, uncategorized interference has
6415 * been found in the current channel.
6416 */
6417 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
6418 /* Represents the reason that excessive 802.11 interference has been
6419 * found in the current channel.
6420 */
6421 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
6422 /* Represents the reason that generic Continuous Wave (CW) interference
6423 * has been found in the current channel.
6424 */
6425 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
6426 /* Represents the reason that Microwave Oven (MWO) interference has been
6427 * found in the current channel.
6428 */
6429 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
6430 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
6431 * (FHSS) interference has been found in the current channel. This may
6432 * include 802.11 waveforms.
6433 */
6434 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
6435 /* Represents the reason that non-802.11 generic Frequency-Hopping
6436 * Spread Spectrum (FHSS) interference has been found in the current
6437 * channel.
6438 */
6439 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
6440 /* Represents the reason that generic Wideband (WB) interference has
6441 * been found in the current channel. This may include 802.11 waveforms.
6442 */
6443 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
6444 /* Represents the reason that non-802.11 generic Wideband (WB)
6445 * interference has been found in the current channel.
6446 */
6447 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
6448 /* Represents the reason that Jammer interference has been found in the
6449 * current channel.
6450 */
6451 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Vivek3e5a3ba2017-02-20 18:13:57 +05306452};
Om Prakash Tripathi7d867d62017-04-26 16:52:09 +05306453
6454/**
6455 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
6456 */
6457enum qca_wlan_gpio_attr {
6458 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
6459 /* Unsigned 32-bit attribute for GPIO command */
6460 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
6461 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
6462 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
6463 /* Unsigned 32-bit attribute for GPIO value to configure */
6464 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
6465 /* Unsigned 32-bit attribute for GPIO pull type */
6466 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
6467 /* Unsigned 32-bit attribute for GPIO interrupt mode */
6468 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
6469
6470 /* keep last */
6471 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
6472 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
6473 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
6474};
6475
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306476/**
Venkateswara Swamy Bandaruce6b9442018-02-20 14:24:49 +05306477 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
6478 * MSDUQ depth threshold per peer per tid in the target
6479 *
6480 * Associated Vendor Command:
6481 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
6482 */
6483enum qca_wlan_set_qdepth_thresh_attr {
6484 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
6485 /* 6-byte MAC address */
6486 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
6487 /* Unsigned 32-bit attribute for holding the TID */
6488 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
6489 /* Unsigned 32-bit attribute for holding the update mask
6490 * bit 0 - Update high priority msdu qdepth threshold
6491 * bit 1 - Update low priority msdu qdepth threshold
6492 * bit 2 - Update UDP msdu qdepth threshold
6493 * bit 3 - Update Non UDP msdu qdepth threshold
6494 * rest of bits are reserved
6495 */
6496 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
6497 /* Unsigned 32-bit attribute for holding the threshold value */
6498 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
6499
6500 /* keep last */
6501 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
6502 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
6503 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
6504};
6505
6506/**
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306507 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
6508 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
6509 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
6510 * external ACS policies to select the channels w.r.t. the PCL weights.
6511 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
6512 * their PCL weights.)
6513 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
6514 * select a channel with non-zero PCL weight.
6515 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
6516 * channel with non-zero PCL weight.
6517 *
6518 */
6519enum qca_wlan_vendor_attr_external_acs_policy {
6520 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
6521 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
6522};
6523
6524/**
6525 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6526 */
6527enum qca_wlan_vendor_attr_spectral_scan {
6528 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6529 /*
6530 * Number of times the chip enters spectral scan mode before
6531 * deactivating spectral scans. When set to 0, chip will enter spectral
6532 * scan mode continuously. u32 attribute.
6533 */
6534 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6535 /*
6536 * Spectral scan period. Period increment resolution is 256*Tclk,
6537 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6538 */
6539 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6540 /* Spectral scan priority. u32 attribute. */
6541 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6542 /* Number of FFT data points to compute. u32 attribute. */
6543 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6544 /*
6545 * Enable targeted gain change before starting the spectral scan FFT.
6546 * u32 attribute.
6547 */
6548 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6549 /* Restart a queued spectral scan. u32 attribute. */
6550 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6551 /*
6552 * Noise floor reference number for the calculation of bin power.
6553 * u32 attribute.
6554 */
6555 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6556 /*
6557 * Disallow spectral scan triggers after TX/RX packets by setting
6558 * this delay value to roughly SIFS time period or greater.
6559 * u32 attribute.
6560 */
6561 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6562 /*
6563 * Number of strong bins (inclusive) per sub-channel, below
6564 * which a signal is declared a narrow band tone. u32 attribute.
6565 */
6566 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6567 /*
6568 * Specify the threshold over which a bin is declared strong (for
6569 * scan bandwidth analysis). u32 attribute.
6570 */
6571 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6572 /* Spectral scan report mode. u32 attribute. */
6573 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6574 /*
6575 * RSSI report mode, if the ADC RSSI is below
6576 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6577 * then FFTs will not trigger, but timestamps and summaries get
6578 * reported. u32 attribute.
6579 */
6580 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6581 /*
6582 * ADC RSSI must be greater than or equal to this threshold (signed dB)
6583 * to ensure spectral scan reporting with normal error code.
6584 * u32 attribute.
6585 */
6586 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6587 /*
6588 * Format of frequency bin magnitude for spectral scan triggered FFTs:
6589 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6590 * u32 attribute.
6591 */
6592 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6593 /*
6594 * Format of FFT report to software for spectral scan triggered FFTs.
6595 * 0: No FFT report (only spectral scan summary report)
6596 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6597 * report
6598 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6599 * bins (in-band) per FFT + spectral scan summary report
6600 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6601 * bins (all) per FFT + spectral scan summary report
6602 * u32 attribute.
6603 */
6604 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6605 /*
6606 * Number of LSBs to shift out in order to scale the FFT bins.
6607 * u32 attribute.
6608 */
6609 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6610 /*
6611 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6612 * in dBm power. u32 attribute.
6613 */
6614 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6615 /*
6616 * Per chain enable mask to select input ADC for search FFT.
6617 * u32 attribute.
6618 */
6619 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6620 /*
6621 * An unsigned 64-bit integer provided by host driver to identify the
6622 * spectral scan request. This attribute is included in the scan
6623 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6624 * and used as an attribute in
6625 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6626 * specific scan to be stopped.
6627 */
6628 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +05306629 /* Skip interval for FFT reports. u32 attribute */
6630 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6631 /* Set to report only one set of FFT results.
6632 * u32 attribute.
6633 */
6634 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6635 /* Debug level for spectral module in driver.
6636 * 0 : Verbosity level 0
6637 * 1 : Verbosity level 1
6638 * 2 : Verbosity level 2
6639 * 3 : Matched filterID display
6640 * 4 : One time dump of FFT report
6641 * u32 attribute.
6642 */
6643 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6644 /* Type of spectral scan request. u32 attribute.
6645 * It uses values defined in enum
6646 * qca_wlan_vendor_attr_spectral_scan_request_type.
6647 */
6648 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Edayilliam Jayadevdb962692019-04-24 16:41:58 +05306649 /* This specifies the frequency span over which spectral
6650 * scan would be carried out. Its value depends on the
6651 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6652 * the relation is as follows.
6653 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6654 * Not applicable. Spectral scan would happen in the
6655 * operating span.
6656 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6657 * Center frequency (in MHz) of the span of interest or
6658 * for convenience, center frequency (in MHz) of any channel
6659 * in the span of interest. If agile spectral scan is initiated
6660 * without setting a valid frequency it returns the error code
6661 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
6662 * u32 attribute.
6663 */
6664 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
6665 /* Spectral scan mode. u32 attribute.
6666 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6667 * If this attribute is not present, it is assumed to be
6668 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
6669 */
6670 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
6671 /* Spectral scan error code. u32 attribute.
6672 * It uses values defined in enum
6673 * qca_wlan_vendor_spectral_scan_error_code.
6674 * This attribute is included only in failure scenarios.
6675 */
6676 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
Shiva Krishna Pittalaefbe2e92019-06-06 15:26:55 +05306677 /* 8-bit unsigned value to enable/disable debug of the
6678 * Spectral DMA ring.
6679 * 1-enable, 0-disable
6680 */
6681 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
6682 /* 8-bit unsigned value to enable/disable debug of the
6683 * Spectral DMA buffers.
6684 * 1-enable, 0-disable
6685 */
6686 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Edayilliam Jayadevdb962692019-04-24 16:41:58 +05306687
SaidiReddy Yenugae8deb192017-04-17 16:53:30 +05306688 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
6689 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
6690 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
6691};
6692
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +05306693/**
6694 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
6695 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
6696 */
6697enum qca_wlan_vendor_attr_spectral_diag_stats {
6698 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
6699 /* Number of spectral TLV signature mismatches.
6700 * u64 attribute.
6701 */
6702 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
6703 /* Number of spectral phyerror events with insufficient length when
6704 * parsing for secondary 80 search FFT report. u64 attribute.
6705 */
6706 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
6707 /* Number of spectral phyerror events without secondary 80
6708 * search FFT report. u64 attribute.
6709 */
6710 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
6711 /* Number of spectral phyerror events with vht operation segment 1 id
6712 * mismatches in search fft report. u64 attribute.
6713 */
6714 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
6715 /* Number of spectral phyerror events with vht operation segment 2 id
6716 * mismatches in search fft report. u64 attribute.
6717 */
6718 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
6719
6720 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
6721 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
6722 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
6723};
6724
6725/**
6726 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
6727 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
6728 */
6729enum qca_wlan_vendor_attr_spectral_cap {
6730 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
6731 /* Flag attribute to indicate phydiag capability */
6732 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
6733 /* Flag attribute to indicate radar detection capability */
6734 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
6735 /* Flag attribute to indicate spectral capability */
6736 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
6737 /* Flag attribute to indicate advanced spectral capability */
6738 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
Edayilliam Jayadev0a04a142018-05-07 10:46:25 +05306739 /* Spectral hardware generation. u32 attribute.
6740 * It uses values defined in enum
6741 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
6742 */
6743 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Edayilliam Jayadev83da2272018-12-17 17:03:15 +05306744 /* Spectral bin scaling formula ID. u16 attribute.
6745 * It uses values defined in enum
6746 * qca_wlan_vendor_spectral_scan_cap_formula_id.
6747 */
6748 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
6749 /* Spectral bin scaling param - low level offset.
6750 * s16 attribute.
6751 */
6752 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
6753 /* Spectral bin scaling param - high level offset.
6754 * s16 attribute.
6755 */
6756 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
6757 /* Spectral bin scaling param - RSSI threshold.
6758 * s16 attribute.
6759 */
6760 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
6761 /* Spectral bin scaling param - default AGC max gain.
6762 * u8 attribute.
6763 */
6764 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Edayilliam Jayadev8feb8252019-10-09 15:44:24 +05306765 /* Flag attribute to indicate agile spectral scan capability
6766 * for 20/40/80 MHz modes.
6767 */
Edayilliam Jayadevdb962692019-04-24 16:41:58 +05306768 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Edayilliam Jayadev8feb8252019-10-09 15:44:24 +05306769 /* Flag attribute to indicate agile spectral scan capability
6770 * for 160 MHz mode.
6771 */
6772 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
6773 /* Flag attribute to indicate agile spectral scan capability
6774 * for 80+80 MHz mode.
6775 */
6776 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +05306777
6778 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
6779 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
6780 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
6781};
6782
6783/**
6784 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
6785 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
6786 */
6787enum qca_wlan_vendor_attr_spectral_scan_status {
6788 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
6789 /* Flag attribute to indicate whether spectral scan is enabled */
6790 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
6791 /* Flag attribute to indicate whether spectral scan is in progress*/
6792 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Edayilliam Jayadevdb962692019-04-24 16:41:58 +05306793 /* Spectral scan mode. u32 attribute.
6794 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6795 * If this attribute is not present, normal mode
6796 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
6797 * requested.
6798 */
6799 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +05306800
6801 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
6802 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
6803 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
6804};
6805
6806/**
Paul Zhangd6d16352017-12-08 16:08:00 +08006807 * enum qca_wlan_vendor_attr_config_latency_level - Level for
6808 * wlan latency module.
6809 *
6810 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
6811 * power saving which would causing data exchange out of service, this
6812 * would be a big impact on latency. For latency sensitive applications over
6813 * Wi-Fi are intolerant to such operations and thus would configure them
6814 * to meet their respective needs. It is well understood by such applications
6815 * that altering the default behavior would degrade the Wi-Fi functionality
6816 * w.r.t the above pointed WLAN operations.
6817 *
6818 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
6819 * Default WLAN operation level which throughput orientated.
6820 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
6821 * Use moderate level to improve latency by limit scan duration.
6822 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
6823 * Use low latency level to benifit application like concurrent
6824 * downloading or video streaming via constraint scan/adaptive PS.
6825 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
6826 * Use ultra low latency level to benefit for gaming/voice
6827 * application via constraint scan/roaming/adaptive PS.
6828 */
6829enum qca_wlan_vendor_attr_config_latency_level {
6830 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
6831 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
6832 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
6833 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
6834 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
6835
6836 /* keep last */
6837 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
6838 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
6839 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
6840};
6841
6842/**
Edayilliam Jayadev20edcbb2017-11-06 15:22:04 +05306843 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
6844 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
6845 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
6846 * spectral scan request types.
6847 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
6848 * set the spectral parameters and start scan.
6849 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
6850 * only set the spectral parameters.
6851 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
6852 * only start the spectral scan.
6853 */
6854enum qca_wlan_vendor_attr_spectral_scan_request_type {
6855 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
6856 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
6857 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
6858};
6859
Krishna Raofcb834f2017-11-11 20:38:29 +05306860/**
Edayilliam Jayadevdb962692019-04-24 16:41:58 +05306861 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
6862 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
6863 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
6864 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
6865 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
6866 * spectral scan modes.
6867 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
6868 * spectral scan in the current operating span.
6869 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
6870 * spectral scan in the configured agile span.
6871 */
6872enum qca_wlan_vendor_spectral_scan_mode {
6873 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
6874 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
6875};
6876
6877/**
6878 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
6879 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
6880 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
6881 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
6882 * of a parameter is not supported.
6883 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
6884 * mode is not supported.
6885 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
6886 * has invalid value.
6887 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
6888 * is not initialized.
6889 */
6890enum qca_wlan_vendor_spectral_scan_error_code {
6891 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
6892 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
6893 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
6894 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
6895};
6896
6897/**
Edayilliam Jayadev0a04a142018-05-07 10:46:25 +05306898 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
6899 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
6900 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6901 * spectral hardware generation.
6902 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
6903 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
6904 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
6905 */
6906enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
6907 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
6908 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
6909 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
6910};
6911
6912/**
Edayilliam Jayadev83da2272018-12-17 17:03:15 +05306913 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
6914 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
6915 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6916 * Spectral bin scaling formula ID.
6917 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
6918 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
6919 * and RSSI threshold based formula.
6920 */
6921enum qca_wlan_vendor_spectral_scan_cap_formula_id {
6922 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
6923 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
6924};
6925
6926/**
Krishna Raofcb834f2017-11-11 20:38:29 +05306927 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
6928 * RF Operating Parameter (RROP) information is available, and if so, at which
6929 * point in the application-driver interaction sequence it can be retrieved by
6930 * the application from the driver. This point may vary by architecture and
6931 * other factors. This is a u16 value.
6932 */
6933enum qca_wlan_vendor_attr_rropavail_info {
6934 /* RROP information is unavailable. */
6935 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
6936 /* RROP information is available and the application can retrieve the
6937 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
6938 * event from the driver.
6939 */
6940 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
6941 /* RROP information is available only after a vendor specific scan
6942 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
6943 * successfully completed. The application can retrieve the information
6944 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
6945 * the driver.
6946 */
6947 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
6948};
6949
6950/**
6951 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
6952 * Representative RF Operating Parameter (RROP) information. It is sent for the
6953 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
6954 * intended for use by external Auto Channel Selection applications. It provides
6955 * guidance values for some RF parameters that are used by the system during
6956 * operation. These values could vary by channel, band, radio, and so on.
6957 */
6958enum qca_wlan_vendor_attr_rrop_info {
6959 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
6960
6961 /* Representative Tx Power List (RTPL) which has an array of nested
6962 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
6963 */
6964 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
6965
6966 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
6967 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
6968 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
6969};
6970
6971/**
6972 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
6973 * entry instances in the Representative Tx Power List (RTPL). It provides
6974 * simplified power values intended for helping external Auto channel Selection
6975 * applications compare potential Tx power performance between channels, other
6976 * operating conditions remaining identical. These values are not necessarily
6977 * the actual Tx power values that will be used by the system. They are also not
6978 * necessarily the max or average values that will be used. Instead, they are
6979 * relative, summarized keys for algorithmic use computed by the driver or
6980 * underlying firmware considering a number of vendor specific factors.
6981 */
6982enum qca_wlan_vendor_attr_rtplinst {
6983 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
6984
Krishna Rao58454952020-01-29 17:10:26 +05306985 /* Primary channel number (u8).
6986 * Note: If both the driver and user space application support the
6987 * 6 GHz band, this attribute is deprecated and
6988 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
6989 * maintain backward compatibility,
6990 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
6991 * driver or user space application or both do not support the 6 GHz
6992 * band.
6993 */
Krishna Raofcb834f2017-11-11 20:38:29 +05306994 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
6995 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
6996 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
6997 /* Representative Tx power in dBm (s32) with emphasis on range. */
6998 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Krishna Rao58454952020-01-29 17:10:26 +05306999 /* Primary channel center frequency (u32) in MHz */
7000 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Krishna Raofcb834f2017-11-11 20:38:29 +05307001
7002 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
7003 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
7004 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
7005};
7006
Yeshwanth Sriram Guntuka64de3442018-02-23 12:17:41 +05307007/**
7008 * enum qca_wlan_vendor_attr_mac - Used by the vendor command
7009 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7010 *
7011 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
7012 * array of nested values as per attributes in
7013 * enum qca_wlan_vendor_attr_mac_mode_info.
7014 */
7015enum qca_wlan_vendor_attr_mac {
7016 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
7017 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
7018
7019 /* keep last */
7020 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
7021 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
7022 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
7023};
7024
7025/**
7026 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
7027 * WiFi netdev interface on a respective MAC. Used by the attribute
7028 * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
7029 *
7030 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
7031 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
7032 * the connected Wi-Fi interface(u32).
7033 */
7034enum qca_wlan_vendor_attr_mac_iface_info {
7035 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
7036 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
7037 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
7038
7039 /* keep last */
7040 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
7041 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
7042 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
7043};
7044
7045/**
7046 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
7047 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
7048 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7049 *
7050 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
7051 * MAC (u32)
7052 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
7053 * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
7054 * in enum nl80211_band.
7055 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
7056 * interfaces associated with this MAC. Represented by enum
7057 * qca_wlan_vendor_attr_mac_iface_info.
7058 */
7059enum qca_wlan_vendor_attr_mac_info {
7060 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
7061 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
7062 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
7063 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
7064
7065 /* keep last */
7066 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
7067 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
7068 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
7069
7070};
7071
Vivek3e5a3ba2017-02-20 18:13:57 +05307072#if !(defined (SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC)) && \
7073 (LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)) && \
7074 !(defined(WITH_BACKPORTS))
7075
7076static inline struct sk_buff *
7077backported_cfg80211_vendor_event_alloc(struct wiphy *wiphy,
7078 struct wireless_dev *wdev,
7079 int approxlen,
7080 int event_idx, gfp_t gfp)
7081{
7082 struct sk_buff *skb;
7083
7084 skb = cfg80211_vendor_event_alloc(wiphy, approxlen, event_idx, gfp);
7085
7086 if (skb && wdev) {
7087 struct nlattr *attr;
7088 u32 ifindex = wdev->netdev->ifindex;
7089
7090 nla_nest_cancel(skb, ((void **)skb->cb)[2]);
7091 if (nla_put_u32(skb, NL80211_ATTR_IFINDEX, ifindex))
7092 goto nla_fail;
7093
7094 attr = nla_nest_start(skb, NL80211_ATTR_VENDOR_DATA);
7095 ((void **)skb->cb)[2] = attr;
7096 }
7097
7098 return skb;
7099
7100nla_fail:
7101 kfree_skb(skb);
7102
7103 return NULL;
7104}
7105#define cfg80211_vendor_event_alloc backported_cfg80211_vendor_event_alloc
7106#endif
7107
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -08007108/**
7109 * enum he_fragmentation_val - HE fragmentation support values
7110 * Indicates level of dynamic fragmentation that is supported by
7111 * a STA as a recipient.
7112 * HE fragmentation values are defined as per 11ax spec and are used in
7113 * HE capability IE to advertise the support. These values are validated
7114 * in the driver to check the device capability and advertised in the HE
7115 * capability element.
7116 *
7117 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
7118 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
7119 * contained within an MPDU or S-MPDU, no support for dynamic fragments
7120 * within an A-MPDU that is not an S-MPDU.
7121 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
7122 * contained within an MPDU or S-MPDU and support for up to one dynamic
7123 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
7124 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
7125 * MPDU or S-MPDU.
7126 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
7127 * contained within an MPDU or S-MPDU and support for multiple dynamic
7128 * fragments for each MSDU and for each A-MSDU if supported by the
7129 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
7130 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
7131 */
7132enum he_fragmentation_val {
7133 HE_FRAG_DISABLE,
7134 HE_FRAG_LEVEL1,
7135 HE_FRAG_LEVEL2,
7136 HE_FRAG_LEVEL3,
7137};
7138
7139/**
7140 * enum he_mcs_config - HE MCS support configuration
7141 *
7142 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
7143 * These values are used in driver to configure the HE MCS map to advertise
7144 * Tx/Rx MCS map in HE capability and these values are applied for all the
7145 * streams supported by the device. To configure MCS for different bandwidths,
7146 * vendor command needs to be sent using this attribute with appropriate value.
7147 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
7148 * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
7149 * for HE_160_MCS0_11 send this command using HE MCS config attribute with
7150 * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
7151 *
7152 * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
7153 * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
7154 * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
7155 * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
7156 * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
7157 * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
7158 * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
7159 * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
7160 * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
7161 */
7162enum he_mcs_config {
7163 HE_80_MCS0_7 = 0,
7164 HE_80_MCS0_9 = 1,
7165 HE_80_MCS0_11 = 2,
7166 HE_160_MCS0_7 = 4,
7167 HE_160_MCS0_9 = 5,
7168 HE_160_MCS0_11 = 6,
7169 HE_80p80_MCS0_7 = 8,
7170 HE_80p80_MCS0_9 = 9,
7171 HE_80p80_MCS0_11 = 10,
7172};
7173
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007174/**
7175 * enum qca_wlan_ba_session_config - BA session configuration
7176 *
7177 * Indicates the configuration values for BA session configuration attribute.
7178 *
7179 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
7180 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
7181 */
7182enum qca_wlan_ba_session_config {
7183 QCA_WLAN_ADD_BA = 1,
7184 QCA_WLAN_DELETE_BA = 2,
7185};
7186
7187/**
7188 * enum qca_wlan_ac_type - access category type
7189 *
7190 * Indicates the access category type value.
7191 *
7192 * @QCA_WLAN_AC_BE: BE access category
7193 * @QCA_WLAN_AC_BK: BK access category
7194 * @QCA_WLAN_AC_VI: VI access category
7195 * @QCA_WLAN_AC_VO: VO access category
7196 * @QCA_WLAN_AC_ALL: All ACs
7197 */
7198enum qca_wlan_ac_type {
7199 QCA_WLAN_AC_BE = 0,
7200 QCA_WLAN_AC_BK = 1,
7201 QCA_WLAN_AC_VI = 2,
7202 QCA_WLAN_AC_VO = 3,
7203 QCA_WLAN_AC_ALL = 4,
7204};
7205
Kiran Kumar Lokerecbb21ca2018-03-08 19:34:24 -08007206/**
7207 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
7208 *
7209 * Indicates the HE LTF configuration value.
7210 *
7211 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
7212 * the mandatory HE-LTF based on the GI setting
7213 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
7214 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
7215 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
7216 */
7217enum qca_wlan_he_ltf_cfg {
7218 QCA_WLAN_HE_LTF_AUTO = 0,
7219 QCA_WLAN_HE_LTF_1X = 1,
7220 QCA_WLAN_HE_LTF_2X = 2,
7221 QCA_WLAN_HE_LTF_4X = 3,
7222};
7223
Kiran Kumar Lokere8b60f1e2018-07-05 15:57:01 -07007224/**
7225 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
7226 *
7227 * Indicates the HE trigger frame MAC padding duration value.
7228 *
7229 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
7230 * process the trigger frame.
7231 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
7232 * trigger frame.
7233 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
7234 * trigger frame.
7235 */
7236enum qca_wlan_he_mac_padding_dur {
7237 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
7238 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
7239 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
7240};
7241
Kiran Kumar Lokerefd7bd582018-09-21 18:28:17 -07007242/**
7243 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
7244 *
7245 * Indicates the HE Operating mode control channel width setting value.
7246 *
7247 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
7248 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
7249 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
7250 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
7251 */
7252enum qca_wlan_he_om_ctrl_ch_bw {
7253 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
7254 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
7255 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
7256 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
7257};
7258
Kiran Kumar Lokerebd60ad32018-12-10 19:02:50 -08007259/**
7260 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
7261 * HE operating mode control transmit request. These attributes are
7262 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
7263 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7264 *
7265 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
7266 * indicates the maximum number of spatial streams, NSS, that the STA
7267 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
7268 * and is set to NSS - 1.
7269 *
7270 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
7271 * indicates the operating channel width supported by the STA for both
7272 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
7273 *
7274 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
7275 * indicates the all trigger based UL MU operations by the STA.
7276 * 0 - UL MU operations are enabled by the STA.
7277 * 1 - All triggered UL MU transmissions are suspended by the STA.
7278 *
7279 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
7280 * indicates the maximum number of space-time streams, NSTS, that
7281 * the STA supports in transmission and is set to NSTS - 1.
Kiran Kumar Lokere55ec2b92019-02-06 14:17:11 -08007282 *
7283 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
7284 * combined with the UL MU Disable subfield and the recipient's setting
7285 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
7286 * capabilities to determine which HE TB PPDUs are possible by the
7287 * STA to transmit.
7288 * 0 - UL MU data operations are enabled by the STA.
7289 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
7290 * bit is not set, else UL MU Tx is suspended.
7291 *
Kiran Kumar Lokerebd60ad32018-12-10 19:02:50 -08007292 */
7293enum qca_wlan_vendor_attr_he_omi_tx {
7294 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
7295 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
7296 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
7297 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
7298 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Kiran Kumar Lokere55ec2b92019-02-06 14:17:11 -08007299 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Kiran Kumar Lokerebd60ad32018-12-10 19:02:50 -08007300
7301 /* keep last */
7302 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
7303 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
7304 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
7305};
7306
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -08007307/* Attributes for data used by
7308 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
7309 */
7310enum qca_wlan_vendor_attr_wifi_test_config {
7311 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
7312 /* 8-bit unsigned value to configure the driver to enable/disable
7313 * WMM feature. This attribute is used to configure testbed device.
7314 * 1-enable, 0-disable
7315 */
7316 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
7317
7318 /* 8-bit unsigned value to configure the driver to accept/reject
7319 * the addba request from peer. This attribute is used to configure
7320 * the testbed device.
7321 * 1-accept addba, 0-reject addba
7322 */
7323 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
7324
7325 /* 8-bit unsigned value to configure the driver to send or not to
7326 * send the addba request to peer.
7327 * This attribute is used to configure the testbed device.
7328 * 1-send addba, 0-do not send addba
7329 */
7330 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
7331
7332 /* 8-bit unsigned value to indicate the HE fragmentation support.
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007333 * Uses enum he_fragmentation_val values.
7334 * This attribute is used to configure the testbed device to
7335 * allow the advertised hardware capabilities to be downgraded
7336 * for testing purposes.
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -08007337 */
7338 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
7339
7340 /* 8-bit unsigned value to indicate the HE MCS support.
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007341 * Uses enum he_mcs_config values.
7342 * This attribute is used to configure the testbed device to
7343 * allow the advertised hardware capabilities to be downgraded
7344 * for testing purposes.
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -08007345 */
7346 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
7347
Kiran Kumar Lokere2a450cc2018-02-26 15:09:18 -08007348 /* 8-bit unsigned value to configure the driver to allow or not to
7349 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
7350 * This attribute is used to configure the testbed device.
7351 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
7352 */
7353 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
7354
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007355 /* 8-bit unsigned value to configure the driver to add a
7356 * new BA session or delete the existing BA session for
7357 * given TID. ADDBA command uses the buffer size and tid
7358 * configuration if user specifies the values else default
7359 * value for buffer size is used for all tids if the tid
7360 * also not specified. For DEL_BA command TID value is
7361 * required to process the command.
7362 * Uses enum qca_wlan_ba_session_config values.
7363 * This attribute is used to configure the testbed device.
7364 */
7365 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
7366
Kiran Kumar Lokere7ba00f32018-08-29 18:27:34 -07007367 /* 16-bit unsigned value to configure the buffer size in addba
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007368 * request and response frames.
7369 * This attribute is used to configure the testbed device.
Kiran Kumar Lokere7ba00f32018-08-29 18:27:34 -07007370 * The range of the value is 0 to 256.
Kiran Kumar Lokere42398af2018-02-27 20:01:29 -08007371 */
7372 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
7373
7374 /* 8-bit unsigned value to configure the buffer size in addba
7375 * request and response frames.
7376 * This attribute is used to configure the testbed device.
7377 */
7378 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
7379
7380 /* 8-bit unsigned value to configure the no ack policy.
7381 * To configure no ack policy, access category value
7382 * is required to process the command.
7383 * This attribute is used to configure the testbed device.
7384 * 1 - enable no ack, 0 - disable no ack
7385 */
7386 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
7387
7388 /* 8-bit unsigned value to configure the AC for no ack policy
7389 * This attribute is used to configure the testbed device.
7390 * uses the enum qca_wlan_ac_type values
7391 */
7392 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
7393
Kiran Kumar Lokerecbb21ca2018-03-08 19:34:24 -08007394 /* 8-bit unsigned value to configure the HE LTF
7395 * This attribute is used to configure the testbed device.
7396 * Uses the enum qca_wlan_he_ltf_cfg values.
7397 */
7398 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
7399
Kiran Kumar Lokere993a3842018-05-14 18:17:18 -07007400 /* 8-bit unsigned value to configure the tx beamformee.
7401 * This attribute is used to configure the testbed device.
7402 * 1 - enable, 0 - disable.
7403 */
7404 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
7405
Kiran Kumar Lokere9c0d0e02018-06-27 15:27:01 -07007406 /* 8-bit unsigned value to configure the tx beamformee number of
7407 * space-time streams.
7408 * This attribute is used to configure the testbed device.
7409 * The range of the value is 0 to 8
7410 */
7411 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
7412
Kiran Kumar Lokere0c66f3e2018-07-05 15:46:49 -07007413 /* 8-bit unsigned value to configure the MU EDCA params for given AC
7414 * This attribute is used to configure the testbed device.
7415 * Uses the enum qca_wlan_ac_type values.
7416 */
7417 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
7418
7419 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
7420 * To configure MU EDCA AIFSN value, MU EDCA access category value
7421 * is required to process the command.
7422 * This attribute is used to configure the testbed device.
7423 */
7424 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
7425
7426 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
7427 * given AC.
7428 * To configure MU EDCA ECW min value, MU EDCA access category value
7429 * is required to process the command.
7430 * This attribute is used to configure the testbed device.
7431 */
7432 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
7433
7434 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
7435 * given AC.
7436 * To configure MU EDCA ECW max value, MU EDCA access category value
7437 * is required to process the command.
7438 * This attribute is used to configure the testbed device.
7439 */
7440 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
7441
7442 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
7443 * To configure MU EDCA timer value, MU EDCA access category value
7444 * is required to process the command.
7445 * This attribute is used to configure the testbed device.
7446 */
7447 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
7448
Kiran Kumar Lokere8b60f1e2018-07-05 15:57:01 -07007449 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
7450 * duration.
7451 * This attribute is used to configure the testbed device.
7452 * Uses the enum qca_wlan_he_mac_padding_dur values.
7453 */
7454 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
7455
Kiran Kumar Lokerecb0c0a12018-07-24 13:36:59 -07007456 /* 8-bit unsigned value to override the MU EDCA params to defaults
7457 * regardless of the AP beacon MU EDCA params. If it is enabled use
7458 * the default values else use the MU EDCA params from AP beacon.
7459 * This attribute is used to configure the testbed device.
7460 * 1 - enable override, 0 - disable.
7461 */
7462 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
7463
Kiran Kumar Lokere7ba00f32018-08-29 18:27:34 -07007464 /* 8-bit unsigned value to configure the support for receiving
7465 * an MPDU that contains an operating mode control subfield.
7466 * This attribute is used to configure the testbed device.
7467 * 1-enable, 0-disable.
7468 */
7469 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
7470
Varun Reddy Yeturu49149e82018-09-22 18:52:40 -07007471 /* Nested attribute values required to setup the TWT session.
7472 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
7473 * information to set up the session. It contains broadcast flags,
7474 * set_up flags, trigger value, flow type, flow ID, wake interval
7475 * exponent, protection, target wake time, wake duration, wake interval
7476 * mantissa. These nested attributes are used to setup a host triggered
7477 * TWT session.
7478 */
7479 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
7480
7481 /* This nested attribute is used to terminate the current TWT session.
7482 * It does not currently carry any attributes.
7483 */
7484 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
7485
7486 /* This nested attribute is used to suspend the current TWT session.
7487 * It does not currently carry any attributes.
7488 */
7489 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
7490
7491 /* Nested attribute values to indicate the request for resume.
7492 * This attribute is used to resume the TWT session.
7493 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
7494 * parameters required to resume the TWT session.
7495 */
7496 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
7497
Kiran Kumar Lokerefd7bd582018-09-21 18:28:17 -07007498 /* 8-bit unsigned value to set the HE operating mode control
7499 * (OM CTRL) Channel Width subfield.
7500 * The Channel Width subfield indicates the operating channel width
7501 * supported by the STA for both reception and transmission.
7502 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
7503 * This setting is cleared with the
7504 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7505 * flag attribute to reset defaults.
7506 * This attribute is used to configure the testbed device.
7507 */
7508 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
7509
7510 /* 8-bit unsigned value to configure the number of spatial
7511 * streams in HE operating mode control field.
7512 * This setting is cleared with the
7513 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7514 * flag attribute to reset defaults.
7515 * This attribute is used to configure the testbed device.
7516 */
7517 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
7518
7519 /* Flag attribute to configure the UL MU disable bit in
7520 * HE operating mode control field.
7521 * This setting is cleared with the
7522 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7523 * flag attribute to reset defaults.
7524 * This attribute is used to configure the testbed device.
7525 */
7526 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
7527
7528 /* Flag attribute to clear the previously set HE operating mode
7529 * control field configuration.
7530 * This attribute is used to configure the testbed device to reset
7531 * defaults to clear any previously set HE operating mode control
7532 * field configuration.
7533 */
7534 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
7535
Kiran Kumar Lokere82ba8702018-09-25 18:16:47 -07007536 /* 8-bit unsigned value to configure HE single user PPDU
7537 * transmission. By default this setting is disabled and it
7538 * is disabled in the reset defaults of the device configuration.
7539 * This attribute is used to configure the testbed device.
7540 * 1-enable, 0-disable
7541 */
7542 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
7543
Kiran Kumar Lokere7b5131b2018-09-25 18:28:42 -07007544 /* 8-bit unsigned value to configure action frame transmission
7545 * in HE trigger based PPDU transmission.
7546 * By default this setting is disabled and it is disabled in
7547 * the reset defaults of the device configuration.
7548 * This attribute is used to configure the testbed device.
7549 * 1-enable, 0-disable
7550 */
7551 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
7552
Kiran Kumar Lokerebd60ad32018-12-10 19:02:50 -08007553 /* Nested attribute to indicate HE operating mode control field
7554 * transmission. It contains operating mode control field Nss,
7555 * channel bandwidth, Tx Nsts and UL MU disable attributes.
7556 * These nested attributes are used to send HE operating mode control
7557 * with configured values.
7558 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
7559 * This attribute is used to configure the testbed device.
7560 */
7561 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
7562
7563 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
7564 * support for the reception of a frame that carries an HE variant
7565 * HT Control field.
7566 * This attribute is used to configure the testbed device.
7567 * 1-enable, 0-disable
7568 */
7569 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
7570
Kiran Kumar Lokere47eba662019-02-06 14:38:19 -08007571 /* 8-bit unsigned value to configure VHT support in 2.4G band.
7572 * This attribute is used to configure the testbed device.
7573 * 1-enable, 0-disable
7574 */
7575 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
7576
Kiran Kumar Lokere2d26d822019-02-24 21:44:00 -08007577 /* 8-bit unsigned value to configure HE testbed defaults.
7578 * This attribute is used to configure the testbed device.
7579 * 1-set the device HE capabilities to testbed defaults.
7580 * 0-reset the device HE capabilities to supported config.
7581 */
7582 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
7583
Arif Hussain1d9aae02019-03-12 14:30:51 -07007584 /* 8-bit unsigned value to configure twt request support.
7585 * This attribute is used to configure the testbed device.
7586 * 1-enable, 0-disable.
7587 */
7588 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
7589
Kiran Kumar Lokereddf7f882018-02-02 18:06:45 -08007590 /* keep last */
7591 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
7592 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
7593 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
7594};
7595
Varun Reddy Yeturu49149e82018-09-22 18:52:40 -07007596/**
7597 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
7598 * TWT (Target Wake Time) setup request. These attributes are sent as part of
7599 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
7600 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7601 *
7602 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
7603 * Disable (flag attribute not present) - Individual TWT
7604 * Enable (flag attribute present) - Broadcast TWT.
7605 * Individual means the session is between the STA and the AP.
7606 * This session is established using a separate negotiation between
7607 * STA and AP.
7608 * Broadcast means the session is across multiple STAs and an AP. The
7609 * configuration parameters are announced in Beacon frames by the AP.
7610 *
7611 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
7612 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
7613 * specify the TWT request type
7614 *
7615 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
7616 * Enable (flag attribute present) - TWT with trigger support.
7617 * Disable (flag attribute not present) - TWT without trigger support.
7618 * Trigger means the AP will send the trigger frame to allow STA to send data.
7619 * Without trigger, the STA will wait for the MU EDCA timer before
7620 * transmitting the data.
7621 *
7622 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
7623 * 0 - Announced TWT - In this mode, STA may skip few service periods to
7624 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
7625 * NULL frame to AP.
7626 * 1 - Unannounced TWT - The STA will wakeup during every SP.
7627 *
7628 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
7629 * Flow ID is the unique identifier for each TWT session.
7630 * Currently this is not required and dialog ID will be set to zero.
7631 *
7632 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
7633 * This attribute (exp) is used along with the mantissa to derive the
7634 * wake interval using the following formula:
7635 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
7636 * Wake interval is the interval between 2 successive SP.
7637 *
7638 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
7639 * Enable (flag attribute present) - Protection required.
7640 * Disable (flag attribute not present) - Protection not required.
7641 * If protection is enabled, then the AP will use protection
7642 * mechanism using RTS/CTS to self to reserve the airtime.
7643 *
7644 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
7645 * This attribute is used as the SP offset which is the offset from
7646 * TSF after which the wake happens. The units are in microseconds. If
7647 * this attribute is not provided, then the value will be set to zero.
7648 *
7649 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
7650 * This is the duration of the service period. The units are in TU.
7651 *
7652 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
7653 * This attribute is used to configure wake interval mantissa.
7654 * The units are in TU.
7655 */
7656enum qca_wlan_vendor_attr_twt_setup {
7657 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
7658 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
7659 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
7660 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
7661 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
7662 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
7663 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
7664 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
7665 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
7666 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
7667 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
7668
7669 /* keep last */
7670 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
7671 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
7672 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
7673};
7674
7675/**
7676 * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for
7677 * TWT (Target Wake Time) resume request. These attributes are sent as part of
7678 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
7679 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7680 *
7681 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
7682 * This attribute is used as the SP offset which is the offset from
7683 * TSF after which the wake happens. The units are in microseconds.
7684 * If this attribute is not provided, then the value will be set to
7685 * zero.
7686 *
7687 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
7688 * This attribute represents the next TWT subfield size.
7689 */
7690enum qca_wlan_vendor_attr_twt_resume {
7691 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
7692 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
7693 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
7694
7695 /* keep last */
7696 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
7697 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
7698 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
7699};
7700
7701/**
7702 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
7703 * Represents the setup type being requested for TWT.
7704 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
7705 * parameters but relying on AP to fill the parameters during the negotiation.
7706 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
7707 * values which the AP may accept or AP may provide alternative parameters
7708 * which the STA may accept.
7709 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
7710 * alternate parameters than the requested ones.
7711 */
7712enum qca_wlan_vendor_twt_setup_req_type {
7713 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
7714 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
7715 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
7716};
7717
Alok Kumardb0d4232018-11-08 19:08:13 +05307718/**
7719 * enum qca_wlan_throughput_level - Current throughput level
7720 *
7721 * Indicates the current level of throughput calculated by driver. The driver
7722 * may choose different thresholds to decide whether the throughput level is
7723 * low or medium or high based on variety of parameters like physical link
7724 * capacity of current connection, number of pakcets being dispatched per
7725 * second etc. The throughput level events might not be consistent with the
7726 * actual current throughput value being observed.
7727 *
7728 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
7729 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
7730 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
7731 */
7732enum qca_wlan_throughput_level {
7733 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
7734 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
7735 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
7736};
7737
7738/**
7739 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
7740 * report throughput changes from driver to user space. enum values are used
7741 * for NL attributes sent with
7742 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
7743 */
7744enum qca_wlan_vendor_attr_throughput_change {
7745 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
7746 /*
7747 * Indicates the direction of throughput in which the change is being
7748 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
7749 */
7750 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
7751
7752 /*
7753 * Indicates the newly observed throughput level.
7754 * qca_wlan_throughput_level describes the possible range of values.
7755 * u8 attribute.
7756 */
7757 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
7758
7759 /*
7760 * Indicates the driver's guidance on the new value to be set to
7761 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
7762 * may optionally include this attribute.
7763 */
7764 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
7765
7766 /*
7767 * Indicates the driver's guidance on the new value to be set to
7768 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
7769 * values are from -31 to 31. Driver may optionally include this
7770 * attribute.
7771 */
7772 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
7773
7774 /*
7775 * Indicates the driver's guidance on the new value to be set to
7776 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
7777 * optionally include this attribute.
7778 */
7779 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
7780
7781 /* keep last */
7782 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
7783 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
7784 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
7785};
7786
Nachiket Kukade30ed5c42018-12-03 18:30:46 +05307787/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
7788 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
7789 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
7790 */
7791enum qca_wlan_nan_ext_subcmd_type {
7792 /* Subcmd of type NAN Enable Request */
7793 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
7794 /* Subcmd of type NAN Disable Request */
7795 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
7796};
7797
7798/**
7799 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
7800 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
7801 */
7802enum qca_wlan_vendor_attr_nan_params {
7803 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
7804 /* Carries NAN command for firmware component. Every vendor command
7805 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
7806 * payload containing the NAN command. NLA_BINARY attribute.
7807 */
7808 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
7809 /* Indicates the type of NAN command sent with
7810 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
7811 * describes the possible range of values. This attribute is mandatory
7812 * if the command being issued is either
7813 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
7814 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
7815 */
7816 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
7817 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
7818 * band. This attribute is mandatory when command type is
7819 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
7820 */
7821 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
7822 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
7823 * band. This attribute is optional and should be included when command
7824 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
7825 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
7826 */
7827 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
7828
7829 /* keep last */
7830 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
7831 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
7832 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
7833};
Amir Patel62f72ed2019-03-11 20:13:53 +05307834
7835/**
Jiani Liu19f4cb02019-03-04 16:47:21 +08007836 * enum qca_coex_config_profiles - This enum defines different types of
7837 * traffic streams that can be prioritized one over the other during coex
7838 * scenarios.
7839 * The types defined in this enum are categorized in the below manner.
7840 * 0 - 31 values corresponds to WLAN
7841 * 32 - 63 values corresponds to BT
7842 * 64 - 95 values corresponds to Zigbee
7843 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
7844 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
7845 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
7846 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
7847 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
7848 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
7849 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
7850 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
7851 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
7852 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
7853 * @QCA_BT_A2DP: Prioritize BT A2DP
7854 * @QCA_BT_BLE: Prioritize BT BLE
7855 * @QCA_BT_SCO: Prioritize BT SCO
7856 * @QCA_ZB_LOW: Prioritize Zigbee Low
7857 * @QCA_ZB_HIGH: Prioritize Zigbee High
7858 */
7859enum qca_coex_config_profiles {
7860 /* 0 - 31 corresponds to WLAN */
7861 QCA_WIFI_STA_DISCOVERY = 0,
7862 QCA_WIFI_STA_CONNECTION = 1,
7863 QCA_WIFI_STA_CLASS_3_MGMT = 2,
7864 QCA_WIFI_STA_DATA = 3,
7865 QCA_WIFI_STA_ALL = 4,
7866 QCA_WIFI_SAP_DISCOVERY = 5,
7867 QCA_WIFI_SAP_CONNECTION = 6,
7868 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
7869 QCA_WIFI_SAP_DATA = 8,
7870 QCA_WIFI_SAP_ALL = 9,
7871 QCA_WIFI_CASE_MAX = 31,
7872 /* 32 - 63 corresponds to BT */
7873 QCA_BT_A2DP = 32,
7874 QCA_BT_BLE = 33,
7875 QCA_BT_SCO = 34,
7876 QCA_BT_CASE_MAX = 63,
7877 /* 64 - 95 corresponds to Zigbee */
7878 QCA_ZB_LOW = 64,
7879 QCA_ZB_HIGH = 65,
7880 QCA_ZB_CASE_MAX = 95,
7881 /* 0xff is default value if the u8 profile value is not set. */
7882 QCA_PROFILE_DEFAULT_VALUE = 255
7883};
7884
7885/**
7886 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
7887 * This enum defines the valid set of values of coex configuration types. These
7888 * values may used by attribute
7889 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
7890 *
7891 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
7892 * weights to default values.
7893 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
7894 * weights with configurability value.
7895 */
7896enum qca_vendor_attr_coex_config_types {
7897 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
7898 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
7899 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
7900 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
7901};
7902
7903/**
7904 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
7905 * attributes
7906 * Attributes for data used by
7907 * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
7908 *
7909 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
7910 * Indicate config type.
7911 * the config types are 32-bit values from qca_vendor_attr_coex_config_types
7912 *
7913 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
7914 * Indicate the Priority 1 profiles.
7915 * the profiles are 8-bit values from enum qca_coex_config_profiles
7916 * In same priority level, maximum to 4 profiles can be set here.
7917 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
7918 * Indicate the Priority 2 profiles.
7919 * the profiles are 8-bit values from enum qca_coex_config_profiles
7920 * In same priority level, maximum to 4 profiles can be set here.
7921 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
7922 * Indicate the Priority 3 profiles.
7923 * the profiles are 8-bit values from enum qca_coex_config_profiles
7924 * In same priority level, maximum to 4 profiles can be set here.
7925 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
7926 * Indicate the Priority 4 profiles.
7927 * the profiles are 8-bit values from enum qca_coex_config_profiles
7928 * In same priority level, maximum to 4 profiles can be set here.
7929 * NOTE:
7930 * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
7931 * arrangement:
7932 * 1: In the same u32 attribute(priority x), the profiles enum values own
7933 * same priority level.
7934 * 2: 0xff is default value if the u8 profile value is not set.
7935 * 3: max to 4 rules/profiles in same priority level.
7936 * 4: max to 4 priority level (priority 1 - priority 4)
7937 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
7938 * hybrid rules not support.
7939 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
7940 * remain blank to reset all parameters.
7941 * For example:
7942 *
7943 * If the attributes as follow:
7944 * priority 1:
7945 * ------------------------------------
7946 * | 0xff | 0 | 1 | 2 |
7947 * ------------------------------------
7948 * priority 2:
7949 * -------------------------------------
7950 * | 0xff | 0xff | 0xff | 32 |
7951 * -------------------------------------
7952 * priority 3:
7953 * -------------------------------------
7954 * | 0xff | 0xff | 0xff | 65 |
7955 * -------------------------------------
7956 * then it means:
7957 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
7958 * owns same priority level.
7959 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
7960 * has priority over BT_A2DP and ZB_HIGH.
7961 * 3: BT_A2DP has priority over ZB_HIGH.
7962 */
7963
7964enum qca_vendor_attr_coex_config_three_way {
7965 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
7966 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
7967 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
7968 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
7969 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
7970 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
7971
7972 /* Keep last */
7973 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
7974 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
7975 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
7976};
7977
7978/**
Amir Patel62f72ed2019-03-11 20:13:53 +05307979 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
7980 * This enum defines the valid set of values of peer stats cache types. These
7981 * values are used by attribute
7982 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
7983 *
7984 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
7985 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
7986 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
7987 * statistics
7988 */
7989enum qca_vendor_attr_peer_stats_cache_type {
7990 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
7991
7992 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
7993 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
7994 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
7995};
7996
7997/**
7998 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
7999 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
8000 * Attributes are required to flush peer rate statistics from driver to
8001 * user application.
8002 *
8003 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
8004 * Indicate peer stats cache type.
8005 * The statistics types are 32-bit values from
8006 * qca_vendor_attr_peer_stats_cache_type
8007 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
8008 * of size 6, representing peer mac address.
8009 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
8010 * containing buffer of statistics to send event to application layer entity.
8011 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
8012 * representing cookie for peer unique session.
8013 */
8014enum qca_wlan_vendor_attr_peer_stats_cache_params {
8015 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
8016
8017 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
8018 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
8019 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
8020 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
8021
8022 /* Keep last */
8023 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
8024 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
8025 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
8026};
stoneza558be12019-03-11 13:59:57 +08008027
8028/**
8029 * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
8030 * this enum defines all the possible state of zigbee, which can be
8031 * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
8032 *
8033 * @ZIGBEE_IDLE: zigbee in idle state
8034 * @ZIGBEE_FORM_NETWORK: zibee forming network
8035 * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
8036 * @ZIGBEE_JOIN: zigbee joining network
8037 * @ZIGBEE_NETWORK_UP: zigbee network is up
8038 * @ZIGBEE_HMI: zigbee in HMI mode
8039 */
8040enum qca_mpta_helper_attr_zigbee_state {
8041 ZIGBEE_IDLE = 0,
8042 ZIGBEE_FORM_NETWORK = 1,
8043 ZIGBEE_WAIT_JOIN = 2,
8044 ZIGBEE_JOIN = 3,
8045 ZIGBEE_NETWORK_UP = 4,
8046 ZIGBEE_HMI = 5,
8047};
8048
8049/**
8050 * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
8051 * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
8052 */
8053enum qca_mpta_helper_vendor_attr {
8054 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
8055 /* Optional attribute used to update zigbee state.
8056 * enum qca_mpta_helper_attr_zigbee_state.
8057 * NLA_U32 attribute.
8058 */
8059 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
8060 /* Optional attribute used to configure wlan duration for Shape-OCS
8061 * during interrupt.
8062 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
8063 * Value range 0 ~ 300 (ms).
8064 * NLA_U32 attribute.
8065 */
8066 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
8067 /* Optional attribute used to configure non wlan duration for Shape-OCS
8068 * during interrupt.
8069 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
8070 * Value range 0 ~ 300 (ms).
8071 * NLA_U32 attribute.
8072 */
8073 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
8074 /* Optional attribute used to configure wlan duration for Shape-OCS
8075 * monitor period.
8076 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
8077 * Value range 0 ~ 300 (ms)
8078 * NLA_U32 attribute
8079 */
8080 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
8081 /* Optional attribute used to configure non wlan duration for Shape-OCS
8082 * monitor period.
8083 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
8084 * Value range 0 ~ 300 (ms)
8085 * NLA_U32 attribute
8086 */
8087 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
8088 /* Optional attribute used to configure ocs interrupt duration.
8089 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
8090 * Value range 1000 ~ 20000 (ms)
8091 * NLA_U32 attribute
8092 */
8093 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
8094 /* Optional attribute used to configure ocs monitor duration.
8095 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
8096 * Value range 1000 ~ 20000 (ms)
8097 * NLA_U32 attribute
8098 */
8099 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
8100 /* Optional attribute used to notify wlan FW current zigbee channel.
8101 * Value range 11 ~ 26
8102 * NLA_U32 attribute
8103 */
8104 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
8105 /* Optional attribute used to configure wlan mute duration.
8106 * Value range 0 ~ 400 (ms)
8107 * NLA_U32 attribute
8108 */
8109 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
8110
8111 /* keep last */
8112 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
8113 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
8114 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
8115};
Abhinav Kumar88e3fc52019-05-03 00:21:11 +05308116
8117/**
8118 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
8119 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
8120 * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
8121 *
8122 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
8123 * to request the driver to start reporting Beacon frames.
8124 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
8125 * to request the driver to stop reporting Beacon frames.
8126 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
8127 * userspace to report received Beacon frames.
8128 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
8129 * to indicate that the driver is going to pause reporting Beacon frames.
8130 */
8131enum qca_wlan_vendor_beacon_reporting_op_types {
8132 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
8133 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
8134 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
8135 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
8136};
8137
8138/**
8139 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
8140 * types of reasons for which the driver is pausing reporting Beacon frames.
8141 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
8142 *
8143 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
8144 * reasons.
8145 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
8146 * driver/firmware is starting a scan.
8147 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
8148 * driver/firmware disconnects from the ESS and indicates the disconnection to
8149 * userspace (non-seamless roaming case). This reason code will be used by the
8150 * driver/firmware to indicate stopping of beacon report events. Userspace
8151 * will need to start beacon reporting again (if desired) by sending vendor
8152 * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
8153 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
8154 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
8155 * completed.
8156 */
8157enum qca_wlan_vendor_beacon_reporting_pause_reasons {
8158 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
8159 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
8160 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
8161};
8162
8163/*
8164 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
8165 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
8166 */
8167enum qca_wlan_vendor_attr_beacon_reporting_params {
8168 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
8169 /* Specifies the type of operation that the vendor command/event is
8170 * intended for. Possible values for this attribute are defined in
8171 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
8172 */
8173 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
8174 /* Optionally set by userspace to request the driver to report Beacon
8175 * frames using asynchronous vendor events when the
8176 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8177 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
8178 * If this flag is not set, the driver will only update Beacon frames
8179 * in cfg80211 scan cache but not send any vendor events.
8180 */
8181 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
8182 /* Optionally used by userspace to request the driver/firmware to
8183 * report Beacon frames periodically when the
8184 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8185 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
8186 * u32 attribute, indicates the period of Beacon frames to be reported
8187 * and in the units of beacon interval.
8188 * If this attribute is missing in the command, then the default value
8189 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
8190 * Zero is an invalid value.
8191 * If a valid value is received for this attribute, the driver will
8192 * update the cfg80211 scan cache periodically as per the value
8193 * received in this attribute in addition to updating the cfg80211 scan
8194 * cache when there is significant change in Beacon frame IEs.
8195 */
8196 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
8197 /* Used by the driver to encapsulate the SSID when the
8198 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8199 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8200 * u8 array with a maximum size of 32.
8201 *
8202 * When generating beacon report from non-MBSSID Beacon frame, the SSID
8203 * will be taken from the SSID element of the received Beacon frame.
8204 *
8205 * When generating beacon report from Multiple BSSID Beacon frame and
8206 * if the BSSID of the current connected BSS matches the BSSID of the
8207 * transmitting BSS, the SSID will be taken from the SSID element of
8208 * the received Beacon frame.
8209 *
8210 * When generating beacon report from Multiple BSSID Beacon frame and
8211 * if the BSSID of the current connected BSS matches the BSSID of one
8212 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
8213 * field included in the nontransmitted BSS profile whose derived BSSI
8214 * is same as the BSSID of the current connected BSS. When there is no
8215 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
8216 * of current connected* BSS, this attribute will not be present.
8217 */
8218 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
8219 /* Used by the driver to encapsulate the BSSID of the AP to which STA
8220 * is currently connected to when the
8221 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8222 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
8223 * fixed size of 6 bytes.
8224 *
8225 * When generating beacon report from a Multiple BSSID beacon and the
8226 * current connected BSSID matches one of the nontransmitted BSSIDs in
8227 * a Multiple BSSID set, this BSSID will be that particular
8228 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
8229 * transmitting address of the Beacon frame).
8230 */
8231 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
8232 /* Used by the driver to encapsulate the frequency in MHz on which
8233 * the Beacon frame was received when the
8234 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
8235 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8236 * u32 attribute.
8237 */
8238 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
8239 /* Used by the driver to encapsulate the Beacon interval
8240 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8241 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8242 * u16 attribute. The value will be copied from the Beacon frame and
8243 * the units are TUs.
8244 */
8245 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
8246 /* Used by the driver to encapsulate the Timestamp field from the
8247 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
8248 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8249 * u64 attribute.
8250 */
8251 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
8252 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
8253 * Beacon frame is received in the driver when the
8254 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8255 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
8256 * the units of nanoseconds. This value is expected to have accuracy of
8257 * about 10 ms.
8258 */
8259 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
8260 /* Used by the driver to encapsulate the IEs of the Beacon frame from
8261 * which this event is generated when the
8262 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8263 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
8264 */
8265 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
8266 /* Used by the driver to specify the reason for the driver/firmware to
8267 * pause sending beacons to userspace when the
8268 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8269 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
8270 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
8271 * attribute.
8272 */
8273 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
8274 /* Used by the driver to specify whether the driver will automatically
8275 * resume reporting beacon events to userspace later (for example after
8276 * the ongoing off-channel activity is completed etc.) when the
8277 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8278 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
8279 */
8280 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
Bala Venkatesh3b0dee82019-06-12 11:41:17 +05308281 /* Optionally set by userspace to request the driver not to resume
8282 * beacon reporting after a pause is completed, when the
8283 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8284 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
8285 * If this flag is set, the driver will not resume beacon reporting
8286 * after any pause in beacon reporting is completed. Userspace has to
8287 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
8288 * to initiate beacon reporting again. If this flag is set in the recent
8289 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
8290 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
8291 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
8292 * set by the driver. Setting this flag until and unless there is a
8293 * specific need is not recommended as there is a chance of some beacons
8294 * received after pause command and next start command being not
8295 * reported.
8296 */
8297 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
Abhinav Kumar88e3fc52019-05-03 00:21:11 +05308298
8299 /* Keep last */
8300 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
8301 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
8302 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
8303};
8304
Paul Zhang71b1d142019-06-23 21:15:21 +08008305/*
8306 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
8307 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
8308 *
8309 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: The binary blob for the vendor
8310 * command QCA_NL80211_VENDOR_SUBCMD_OEM_DATA are carried through this
8311 * attribute.
8312 * NLA_BINARY attribute, the max size is 1024 bytes.
8313 */
8314enum qca_wlan_vendor_attr_oem_data_params {
8315 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
8316 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
8317
8318 /* keep last */
8319 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
8320 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
8321 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
8322};
Shiva Sankar Gajula0f1216e2019-10-18 10:35:31 +05308323
Rajeev Kumar Sirasanagandla90f0c5e2019-09-23 19:31:48 +05308324/**
8325 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
8326 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
8327 *
8328 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
8329 * Nested attribute containing multiple ranges with following attributes:
8330 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
8331 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
8332 *
8333 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
8334 * Starting center frequency in MHz.
8335 *
8336 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
8337 * Ending center frequency in MHz.
8338 */
8339enum qca_wlan_vendor_attr_avoid_frequency_ext {
8340 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
8341 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
8342 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
8343 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
8344
8345 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
8346 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
8347 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
8348};
8349
Shiva Sankar Gajula0f1216e2019-10-18 10:35:31 +05308350/*
8351 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
8352 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
8353 */
8354enum qca_wlan_vendor_attr_add_sta_node_params {
8355 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
8356 /* 6 byte MAC address of STA */
8357 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
8358 /* Authentication algorithm used by the station of size u16;
8359 * defined in enum nl80211_auth_type.
8360 */
8361 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
8362
8363 /* keep last */
8364 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
8365 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
8366 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
8367};
Yu Wang2b952042019-10-16 09:06:55 +08008368
8369/**
8370 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
8371 * This enum defines the valid set of values of BT coex chain mode.
8372 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
8373 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
8374 *
8375 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
8376 * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
8377 */
8378enum qca_btc_chain_mode {
8379 QCA_BTC_CHAIN_SHARED = 0,
8380 QCA_BTC_CHAIN_SEPARATED = 1,
8381};
8382
8383/**
8384 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
8385 * chain mode.
8386 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
8387 *
8388 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
8389 * Indicates the BT coex chain mode, are 32-bit values from
8390 * enum qca_btc_chain_mode. This attribute is mandatory.
8391 *
8392 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
8393 * If set, vdev should be restarted when BT coex chain mode is updated.
8394 * This attribute is optional.
8395 */
8396enum qca_vendor_attr_btc_chain_mode {
8397 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
8398 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
8399 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
8400
8401 /* Keep last */
8402 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
8403 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
8404 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
8405};
8406
Srinivas Dasari73660c52020-02-16 17:33:36 +05308407/**
8408 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
8409 * Used when the driver triggers the STA to disconnect from the AP.
8410 *
8411 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
8412 * disconnection with the AP due to unspecified reasons.
8413 *
8414 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
8415 * disconnection with the AP due to a roaming failure. This roaming is triggered
8416 * internally (host driver/firmware).
8417 *
8418 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
8419 * the AP when the user/external triggered roaming fails.
8420 *
8421 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
8422 * by the host driver whenever gateway reachability failure is detected and the
8423 * driver disconnects with AP.
8424 *
8425 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
8426 * the AP on a channel switch announcement from it with an unsupported channel.
8427 *
8428 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
8429 * with indoor channels disabled and if the STA is connected on one of these
8430 * disabled channels, the host driver disconnected the STA with this reason
8431 * code.
8432 *
8433 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
8434 * explicit request from the user to disable the current operating channel.
8435 *
8436 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
8437 * the internal host driver/firmware recovery.
8438 *
8439 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
8440 * a timeout for the key installations from the user space.
8441 *
8442 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
8443 * STA on a band change request from the user space to a different band from the
8444 * current operation channel/band.
8445 *
8446 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
8447 * interface down trigger from the user space.
8448 *
8449 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
8450 * STA on getting continuous transmission failures for multiple Data frames.
8451 *
8452 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
8453 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
8454 * represents inactivity from AP on such transmissions.
8455
8456 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
8457 * disconnection when SA Query times out (AP does not respond to SA Query).
8458 *
8459 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
8460 * STA on missing the beacons continuously from the AP.
8461 *
8462 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
8463 * able to move to the channel mentioned by the AP in CSA.
8464 *
8465 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
8466 */
8467enum qca_disconnect_reason_codes {
8468 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
8469 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
8470 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
8471 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
8472 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
8473 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
8474 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
8475 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
8476 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
8477 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
8478 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
8479 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
8480 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
8481 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
8482 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
8483 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
8484 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
8485};
8486
8487/**
8488 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
8489 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
8490 *
8491 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
8492 * This attribute represents the driver specific reason codes (local
8493 * driver/firmware initiated reasons for disconnection) defined
8494 * in enum qca_disconnect_reason_codes.
8495 */
8496enum qca_wlan_vendor_attr_driver_disconnect_reason {
8497 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
8498 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
8499
8500 /* keep last */
8501 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
8502 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
8503 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
8504};
Vivek3e5a3ba2017-02-20 18:13:57 +05308505#endif