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