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