1 /* 2 * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /** 21 * DOC: declares vendor commands interfacing with linux kernel 22 */ 23 24 25 #ifndef _WLAN_QCA_VENDOR_H_ 26 #define _WLAN_QCA_VENDOR_H_ 27 28 /* Vendor id to be used in vendor specific command and events 29 * to user space. 30 * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID, 31 * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and 32 * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in 33 * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that 34 */ 35 36 #define QCA_NL80211_VENDOR_ID 0x001374 37 38 #ifndef BIT 39 #define BIT(x) (1U << (x)) 40 #endif 41 42 /** 43 * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command 44 * 45 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified 46 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test 47 * Sub commands 2 to 8 are not used 48 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming 49 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency. 50 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability 51 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass 52 * NAN Request/Response and NAN Indication messages. These messages are 53 * interpreted between the framework and the firmware component. While 54 * sending the command from userspace to the driver, payload is not 55 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN 56 * is used when receiving vendor events in userspace from the driver. 57 * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats 58 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set 59 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get 60 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear 61 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio 62 * results 63 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface 64 * results 65 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer 66 * results 67 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start 68 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop 69 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid 70 * channels 71 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability 72 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached 73 * results 74 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results 75 * available. Used when report_threshold is reached in scan cache. 76 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan 77 * result. Used to report scan results when each probe rsp. is received, 78 * if report_events enabled in wifi_scan_cmd_params. 79 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target. 80 * Indicates progress of scanning state-machine. 81 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist 82 * ap found 83 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist 84 * bssid 85 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset 86 * hotlist bssid 87 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant 88 * change 89 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set 90 * significant change 91 * ap found 92 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset 93 * significant change 94 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable 95 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable 96 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status 97 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state 98 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features 99 * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui 100 * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag 101 * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix 102 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys 103 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the 104 * roaming and auth information. 105 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule 106 * 107 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to 108 * invoke the ACS function in device and pass selected channels to 109 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes. 110 * 111 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the 112 * driver. 113 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver 114 * started CAC on DFS channel 115 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver 116 * completed the CAC check on DFS channel 117 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC 118 * check was aborted by the driver 119 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the 120 * driver completed NOP 121 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the 122 * driver detected radar signal on the current operating channel 123 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information 124 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger 125 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request 126 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set 127 * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam 128 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist 129 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST: 130 * extscan reset ssid hotlist 131 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found 132 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost 133 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list 134 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list 135 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST: 136 * reset passpoint list 137 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found 138 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND: 139 * passpoint network found 140 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config 141 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config 142 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features 143 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties 144 * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters 145 * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel 146 list 147 * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint 148 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band 149 * to the host driver. This command sets the band through either 150 * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or 151 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE 152 * refers enum qca_set_band as unsigned integer values and 153 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask 154 * values. Also, the acceptable values for 155 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further 156 * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The 157 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the 158 * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the 159 * implementations configure using both the attributes, the configurations 160 * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the 161 * precedence. 162 * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command 163 * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete 164 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan 165 * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test 166 * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage 167 * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB 168 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration 169 * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command 170 * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration 171 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to 172 * start the P2P Listen Offload function in device and pass the listen 173 * channel, period, interval, count, number of device types, device 174 * types and vendor information elements to device driver and firmware. 175 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to 176 * indicate stop request/response of the P2P Listen Offload function in 177 * device. As an event, it indicates either the feature stopped after it 178 * was already running or feature has actually failed to start. 179 * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information 180 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts 181 * beaconing, this sub command provides the driver, the frequencies on the 182 * 5 GHz to check for any radar activity. Driver selects one channel from 183 * this priority list provided through 184 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts 185 * to check for radar activity on it. If no radar activity is detected 186 * during the channel availability check period, driver internally switches 187 * to the selected frequency of operation. If the frequency is zero, driver 188 * internally selects a channel. The status of this conditional switch is 189 * indicated through an event using the same sub command through 190 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are 191 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch 192 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config 193 * indication period and threshold for MAC layer counters. 194 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior 195 * in the host driver. The different TDLS configurations are defined 196 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration. 197 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities 198 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate 199 * (SAR) power limits. A critical regulation for FCC compliance, OEMs 200 * require methods to set SAR limits on TX power of WLAN/WWAN. 201 * enum qca_vendor_attr_sar_limits attributes are used with this command. 202 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set 203 * configuration of vendor ACS. 204 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the 205 * requisite information leading to a power save failure. The information 206 * carried as part of this event is represented by the 207 * enum qca_attr_chip_power_save_failure attributes. 208 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics 209 * collection. Uses attributes defined in enum qca_attr_nud_stats_set. 210 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These 211 * statistics are represented by the enum qca_attr_nud_stats_get 212 * attributes. 213 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch 214 * the BSS transition status, whether accept or reject, for a list of 215 * candidate BSSIDs provided by the userspace. This uses the vendor 216 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and 217 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify 218 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an 219 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in 220 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response 221 * the driver shall specify array of 222 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and 223 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in 224 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. 225 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a 226 * specific QCA module. The trace levels are represented by 227 * enum qca_attr_trace_level attributes. 228 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement 229 * Protocol antenna limit in different modes. See enum 230 * qca_wlan_vendor_attr_brp_ant_limit_mode. 231 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan 232 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan. 233 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) 234 * identifying the operation in success case. In failure cases an 235 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE) 236 * describing the reason for the failure is returned. 237 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses 238 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from 239 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to 240 * be stopped. 241 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the 242 * specific interface. This can be used to modify some of the low level 243 * scan parameters (off channel dwell time, home channel time) in the 244 * driver/firmware. These parameters are maintained within the host 245 * driver. 246 * This command is valid only when the interface is in the connected 247 * state. 248 * These scan parameters shall be reset by the driver/firmware once 249 * disconnected. The attributes used with this command are defined in 250 * enum qca_wlan_vendor_attr_active_tos. 251 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the 252 * driver has detected an internal failure. This event carries the 253 * information indicating the reason that triggered this detection. The 254 * attributes for this command are defined in 255 * enum qca_wlan_vendor_attr_hang. 256 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values 257 * of spectral parameters used. The spectral scan parameters are specified 258 * by enum qca_wlan_vendor_attr_spectral_scan. 259 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats 260 * for spectral scan functionality. The debug stats are specified by 261 * enum qca_wlan_vendor_attr_spectral_diag_stats. 262 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral 263 * scan system capabilities. The capabilities are specified 264 * by enum qca_wlan_vendor_attr_spectral_cap. 265 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current 266 * status of spectral scan. The status values are specified 267 * by enum qca_wlan_vendor_attr_spectral_scan_status. 268 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush 269 * peer pending packets. Specify the peer MAC address in 270 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets 271 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed 272 * in enum qca_wlan_vendor_attr_flush_pending. 273 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative 274 * RF Operating Parameter (RROP) information. The attributes for this 275 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is 276 * intended for use by external Auto Channel Selection applications. 277 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate 278 * (SAR) power limits. This is a companion to the command 279 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the 280 * settings currently in use. The attributes returned by this command are 281 * defined by enum qca_vendor_attr_sar_limits. 282 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of 283 * the WLAN hardware MAC's associated with each WLAN netdev interface. 284 * This works both as a query (user space asks the current mode) or event 285 * interface (driver advertizing the current mode to the user space). 286 * Driver does not trigger this event for temporary hardware mode changes. 287 * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion, 288 * channel change etc ) are updated with this event. Attributes for this 289 * interface are defined in enum qca_wlan_vendor_attr_mac. 290 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold 291 * per peer per TID. Attributes for this command are define in 292 * enum qca_wlan_set_qdepth_thresh_attr 293 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action 294 * guide for WLAN driver. Request to suspend of driver and FW if the 295 * temperature is higher than the suspend threshold; resume action is 296 * requested to driver if the temperature is lower than the resume 297 * threshold. In user poll mode, request temperature data by user. For test 298 * purpose, getting thermal shutdown configuration parameters is needed. 299 * Attributes for this interface are defined in 300 * enum qca_wlan_vendor_attr_thermal_cmd. 301 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from 302 * driver. Thermal temperature and indication of resume completion are 303 * reported as thermal events. The attributes for this command are defined 304 * in enum qca_wlan_vendor_attr_thermal_event. 305 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi 306 * test configuration. Attributes for this command are defined in 307 * enum qca_wlan_vendor_attr_wifi_test_config. 308 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor 309 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN, 310 * carried a payload which was a binary blob of data. The command was not 311 * extendable to send more information. The newer version carries the 312 * legacy blob encapsulated within an attribute and can be extended with 313 * additional vendor attributes that can enhance the NAN command 314 * interface. 315 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to 316 * configure parameters per peer to capture Channel Frequency Response 317 * (CFR) and enable Periodic CFR capture. The attributes for this command 318 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command 319 * can also be used to send CFR data from the driver to userspace when 320 * netlink events are used to send CFR data. 321 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state. 322 * The returned firmware state is specified in the attribute 323 * QCA_WLAN_VENDOR_ATTR_FW_STATE. 324 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand 325 * is used by host driver to flush per-peer cached statistics to user space 326 * application. This interface is used as an event from host driver to 327 * user space application. Attributes for this event are specified in 328 * enum qca_wlan_vendor_attr_peer_stats_cache_params. 329 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be 330 * sent as event from host driver. 331 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to 332 * improve the success rate of Zigbee joining network. 333 * Due to PTA master limitation, zigbee joining network success rate is 334 * low while wlan is working. Wlan host driver need to configure some 335 * parameters including Zigbee state and specific WLAN periods to enhance 336 * PTA master. All this parameters are delivered by the NetLink attributes 337 * defined in "enum qca_mpta_helper_vendor_attr". 338 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to 339 * implement Beacon frame reporting feature. 340 * 341 * Userspace can request the driver/firmware to periodically report 342 * received Beacon frames whose BSSID is same as the current connected 343 * BSS's MAC address. 344 * 345 * In case the STA seamlessly (without sending disconnect indication to 346 * userspace) roams to a different BSS, Beacon frame reporting will be 347 * automatically enabled for the Beacon frames whose BSSID is same as the 348 * MAC address of the new BSS. Beacon reporting will be stopped when the 349 * STA is disconnected (when the disconnect indication is sent to 350 * userspace) and need to be explicitly enabled by userspace for next 351 * connection. 352 * 353 * When a Beacon frame matching configured conditions is received, and if 354 * userspace has requested to send asynchronous beacon reports, the 355 * driver/firmware will encapsulate the details of the Beacon frame in an 356 * event and send it to userspace along with updating the BSS information 357 * in cfg80211 scan cache, otherwise driver will only update the cfg80211 358 * scan cache with the information from the received Beacon frame but 359 * will not send any active report to userspace. 360 * 361 * The userspace can request the driver/firmware to stop reporting Beacon 362 * frames. If the driver/firmware is not able to receive Beacon frames 363 * due to other Wi-Fi operations such as off-channel activities, etc., 364 * the driver/firmware will send a pause event to userspace and stop 365 * reporting Beacon frames. Whether the beacon reporting will be 366 * automatically resumed or not by the driver/firmware later will be 367 * reported to userspace using the 368 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon 369 * reporting shall be resumed for all the cases except either when 370 * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag 371 * in the command which triggered the current beacon reporting or during 372 * any disconnection case as indicated by setting 373 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to 374 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the 375 * driver. 376 * 377 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received 378 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 379 * flag not set, the next first 380 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver 381 * shall be considered as un-pause event. 382 * 383 * All the attributes used with this command are defined in 384 * enum qca_wlan_vendor_attr_beacon_reporting_params. 385 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have 386 * interop issues with the DUT. This sub command is used to transfer the 387 * ap info between driver and user space. This works both as a command 388 * or event. As a command, it configs the stored list of aps from user 389 * space to firmware; as an event, it indicates the ap info detected by 390 * firmware to user space for persistent storage. The attributes defined 391 * in enum qca_vendor_attr_interop_issues_ap are used to deliver the 392 * parameters. 393 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data 394 * binary blobs from application/service to firmware. The attributes 395 * defined in enum qca_wlan_vendor_attr_oem_data_params are used to 396 * deliver the parameters. 397 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used 398 * to send/receive avoid frequency data using 399 * enum qca_wlan_vendor_attr_avoid_frequency_ext. 400 * This new command is alternative to existing command 401 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event 402 * is using stream of bytes instead of structured data using vendor 403 * attributes. User space sends unsafe frequency ranges to the driver using 404 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On 405 * reception of this command, the driver shall check if an interface is 406 * operating on an unsafe frequency and the driver shall try to move to a 407 * safe channel when needed. If the driver is not able to find a safe 408 * channel the interface can keep operating on an unsafe channel with the 409 * TX power limit derived based on internal configurations like 410 * regulatory/SAR rules. 411 * 412 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to 413 * add the STA node details in driver/firmware. Attributes for this event 414 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params. 415 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT 416 * coex chain mode from application/service. 417 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used 418 * to deliver the parameters. 419 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to 420 * get information of a station from driver to userspace. This command can 421 * be used in both STA and AP modes. For STA mode, it provides information 422 * of the current association when in connected state or the last 423 * association when in disconnected state. For AP mode, only information 424 * of the currently connected stations is available. This command uses 425 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info. 426 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event. 427 * Host drivers can request the user space entity to set the SAR power 428 * limits with this event. Accordingly, the user space entity is expected 429 * to set the SAR power limits. Host drivers can retry this event to the 430 * user space for the SAR power limits configuration from user space. If 431 * the driver does not get the SAR power limits from user space for all 432 * the retried attempts, it can configure a default SAR power limit. 433 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and 434 * is used to update the information about the station from the driver to 435 * userspace. Uses attributes from enum 436 * qca_wlan_vendor_attr_update_sta_info. 437 * 438 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event. 439 * The host driver initiates the disconnection for scenarios such as beacon 440 * miss, NUD failure, peer kick out, etc. The disconnection indication 441 * through cfg80211_disconnected() expects the reason codes from enum 442 * ieee80211_reasoncode which does not signify these various reasons why 443 * the driver has triggered the disconnection. This event will be used to 444 * send the driver specific reason codes by the host driver to userspace. 445 * Host drivers should trigger this event and pass the respective reason 446 * code immediately prior to triggering cfg80211_disconnected(). The 447 * attributes used with this event are defined in enum 448 * qca_wlan_vendor_attr_driver_disconnect_reason. 449 * 450 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to 451 * add/delete TSPEC for each AC. One command is for one specific AC only. 452 * This command can only be used in STA mode and the STA must be 453 * associated with an AP when the command is issued. Uses attributes 454 * defined in enum qca_wlan_vendor_attr_config_tspec. 455 * 456 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT. 457 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt. 458 * 459 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from 460 * the host driver. The band configurations obtained are referred through 461 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. 462 * 463 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium 464 * assessment. 465 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess. 466 * 467 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is 468 * used to update SSID information in hostapd when it is updated in the 469 * driver. Uses the attribute NL80211_ATTR_SSID. 470 * 471 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by 472 * the driver to send opaque data from the firmware to userspace. The 473 * driver sends an event to userspace whenever such data is received from 474 * the firmware. 475 * 476 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to 477 * send this opaque data for this event. 478 * 479 * The format of the opaque data is specific to the particular firmware 480 * version and there is no guarantee of the format remaining same. 481 * 482 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event. 483 * The host driver selects Tx VDEV, and notifies user. The attributes 484 * used with this event are defined in enum 485 * qca_wlan_vendor_attr_mbssid_tx_vdev_status. 486 * This event contains Tx VDEV group information contains other VDEVs 487 * interface index and status information. 488 * 489 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to 490 * configure the concurrent session policies when multiple STA interfaces 491 * are (getting) active. The attributes used by this command are defined 492 * in enum qca_wlan_vendor_attr_concurrent_sta_policy. 493 * 494 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command 495 * to query usable channels for different interface types such as STA, 496 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable 497 * channels in the response based on country code, different static 498 * configurations, concurrency combinations, etc. The attributes used 499 * with this command are defined in 500 * enum qca_wlan_vendor_attr_usable_channels. 501 * 502 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used 503 * to get DFS radar history from the driver to userspace. The driver 504 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an 505 * array of nested entries. 506 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to 507 * enable/disable mDNS offload to the firmware. The attributes used with 508 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload. 509 * 510 * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send 511 * important debug events that are required for various issues. The 512 * attributes used with this command are defined in 513 * enum qca_wlan_vendor_attr_diag. 514 * This command is defined for temporary usage until this interface is 515 * moved to the existing diag infra with cnss diag events. This command 516 * will be deprecated soon and it is not recommended to do any further 517 * enhancements to this command. 518 * 519 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used 520 * to set packet monitor mode that aims to send the specified set of TX and 521 * RX frames on the current client interface to an active monitor interface. 522 * If this Monitor mode is set, the driver will send the configured frames, 523 * from the interface on which the command is issued, to an active monitor 524 * interface. The attributes used with this command are defined in 525 * enum qca_wlan_vendor_attr_set_monitor_mode. 526 * 527 * Though the monitor mode is configured for the respective data/mgmt/ctrl 528 * frames, it is up to the respective WLAN driver/firmware/hardware designs 529 * to consider the possibility of sending these frames over the monitor 530 * interface. For example, the control frames are handled with in the 531 * hardware and thus passing such frames over the monitor interface is left 532 * to the respective designs. 533 * 534 * Also, this monitor mode is governed to behave accordingly in 535 * suspend/resume states. If the firmware handles any of such frames 536 * in suspend state without waking up the host and if the monitor mode 537 * is configured to notify all such frames, then the firmware is expected 538 * to resume the host and forward the respective frames to the monitor 539 * interface. Please note that such a request to get the frames over the 540 * monitor interface will have a definite power implications. 541 * 542 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both 543 * as a request to set the driver/firmware with the parameters to trigger 544 * the roaming events, and also used by the driver/firmware to pass on the 545 * various roam events to userspace. 546 * Applicable only for the STA mode. The attributes used with this command 547 * are defined in enum qca_wlan_vendor_attr_roam_events. 548 * 549 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the 550 * rate mask config for a list of phy types. Userspace shall provide 551 * an array of the vendor attributes defined in 552 * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS. 553 * 554 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs 555 * when two interfaces are active on the same band, using two different 556 * home channels, and only supported by a single radio. In this scenario 557 * the device must split the use of the radio between the two interfaces. 558 * The percentage of time allocated to a given interface is the quota. 559 * Depending on the configuration, the quota can either be fixed or 560 * dynamic. 561 * 562 * When used as an event, the device will report the quota type, and for 563 * all interfaces operating in MCC it will report the current quota. 564 * When used as a command, the device can be configured for a specific 565 * quota type, and in the case of a fixed quota, the quota to apply to one 566 * of the interfaces. 567 * 568 * Applications can use the event to do TX bitrate control based on the 569 * information, and can use the command to explicitly set the quota to 570 * enhance performance in specific scenarios. 571 * 572 * The attributes used with this command are defined in 573 * enum qca_wlan_vendor_attr_mcc_quota. 574 * 575 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the 576 * user space that the driver is ready for operations again after 577 * recovering from internal failures. This occurs following a failure 578 * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG. 579 * 580 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to 581 * get the WLAN radio combinations matrix supported by the device which 582 * provides the device simultaneous radio configurations such as 583 * standalone, dual band simultaneous, and single band simultaneous. 584 * 585 * The attributes used with this command are defined in 586 * enum qca_wlan_vendor_attr_radio_combination_matrix. 587 * 588 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation 589 * security negotiation and key generation to user space. 590 * 591 * When used as an event, the driver requests userspace to trigger the PASN 592 * authentication or dropping of a PTKSA for the indicated peer devices. 593 * When used as a command response, userspace indicates a consolidated 594 * status report for all the peers that were requested for. 595 * 596 * The attributes used with this command are defined in 597 * enum qca_wlan_vendor_attr_pasn. 598 * 599 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set 600 * secure ranging context such as TK and LTF keyseed for each peer 601 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event. 602 * 603 * The attributes used with this command are defined in 604 * enum qca_wlan_vendor_attr_secure_ranging_ctx. 605 * 606 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to 607 * enable/disable offload processing in firmware during system/runtime 608 * suspend for CoAP messages (see RFC7252: The Constrained Application 609 * Protocol) and fetch information of the CoAP messages cached during 610 * offload processing. 611 * 612 * The attributes used with this command are defined in 613 * enum qca_wlan_vendor_attr_coap_offload. 614 * 615 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure 616 * (add, remove, or change) a Stream Classification Service (SCS) rule. 617 * 618 * The attributes used with this event are defined in 619 * enum qca_wlan_vendor_attr_scs_rule_config. 620 * 621 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities 622 * supported by the WLAN firmware. 623 * 624 * The attributes used with this command are defined in 625 * enum qca_wlan_vendor_attr_sar_capability. 626 */ 627 628 enum qca_nl80211_vendor_subcmds { 629 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, 630 QCA_NL80211_VENDOR_SUBCMD_TEST = 1, 631 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, 632 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, 633 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, 634 QCA_NL80211_VENDOR_SUBCMD_NAN = 12, 635 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, 636 637 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, 638 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, 639 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, 640 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, 641 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, 642 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, 643 644 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20, 645 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21, 646 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22, 647 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23, 648 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24, 649 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25, 650 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26, 651 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27, 652 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28, 653 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29, 654 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30, 655 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31, 656 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32, 657 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33, 658 659 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, 660 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, 661 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, 662 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, 663 664 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, 665 666 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, 667 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, 668 669 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41, 670 671 /* Get Concurrency Matrix */ 672 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, 673 674 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, 675 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, 676 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, 677 678 /* Deprecated */ 679 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53, 680 681 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, 682 683 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, 684 685 /* Off loaded DFS events */ 686 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, 687 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, 688 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, 689 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, 690 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, 691 692 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, 693 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, 694 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, 695 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, 696 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65, 697 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66, 698 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67, 699 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68, 700 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69, 701 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70, 702 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71, 703 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72, 704 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73, 705 706 /* Wi-Fi Configuration subcommands */ 707 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, 708 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, 709 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, 710 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, 711 712 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, 713 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, 714 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, 715 QCA_NL80211_VENDOR_SUBCMD_NDP = 81, 716 717 /* NS Offload enable/disable cmd */ 718 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, 719 720 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, 721 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, 722 723 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, 724 725 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, 726 /* OCB commands */ 727 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, 728 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, 729 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, 730 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, 731 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, 732 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, 733 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, 734 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, 735 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, 736 737 /* subcommand to get link properties */ 738 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, 739 /* LFR Subnet Detection */ 740 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, 741 742 /* DBS subcommands */ 743 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, 744 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, 745 746 /* Vendor setband command */ 747 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, 748 749 /* Vendor scan commands */ 750 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, 751 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, 752 753 /* OTA test subcommand */ 754 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, 755 /* Tx power scaling subcommands */ 756 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, 757 /* Tx power scaling in db subcommands */ 758 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115, 759 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116, 760 QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117, 761 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, 762 QCA_NL80211_VENDOR_SUBCMD_TSF = 119, 763 QCA_NL80211_VENDOR_SUBCMD_WISA = 120, 764 QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121, 765 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, 766 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, 767 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, 768 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, 769 770 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, 771 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, 772 /* FTM/indoor location subcommands */ 773 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, 774 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, 775 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, 776 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, 777 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, 778 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, 779 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, 780 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, 781 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, 782 783 /* Encrypt/Decrypt command */ 784 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, 785 786 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, 787 /* DMG low level RF sector operations */ 788 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, 789 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, 790 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, 791 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, 792 793 /* Configure the TDLS mode from user space */ 794 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, 795 796 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, 797 798 /* Vendor abort scan command */ 799 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, 800 801 /* Set Specific Absorption Rate(SAR) Power Limits */ 802 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, 803 804 /* External Auto channel configuration setting */ 805 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, 806 807 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, 808 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, 809 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, 810 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, 811 812 /* Set the trace level for QDF */ 813 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, 814 815 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, 816 817 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, 818 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, 819 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, 820 QCA_NL80211_VENDOR_SUBCMD_HANG = 157, 821 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, 822 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, 823 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, 824 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, 825 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162, 826 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, 827 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, 828 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, 829 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, 830 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167, 831 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168, 832 /* Wi-Fi test configuration subcommand */ 833 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, 834 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, 835 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, 836 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, 837 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, 838 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177, 839 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178, 840 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179, 841 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180, 842 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181, 843 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182, 844 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183, 845 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, 846 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, 847 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186, 848 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187, 849 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188, 850 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189, 851 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190, 852 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191, 853 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192, 854 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193, 855 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194, 856 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195, 857 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196, 858 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197, 859 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198, 860 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199, 861 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200, 862 QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201, 863 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202, 864 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203, 865 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204, 866 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205, 867 /* 206..212 - reserved for QCA */ 868 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213, 869 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214, 870 QCA_NL80211_VENDOR_SUBCMD_PASN = 215, 871 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216, 872 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217, 873 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218, 874 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219, 875 }; 876 877 enum qca_wlan_vendor_tos { 878 QCA_WLAN_VENDOR_TOS_BK = 0, 879 QCA_WLAN_VENDOR_TOS_BE = 1, 880 QCA_WLAN_VENDOR_TOS_VI = 2, 881 QCA_WLAN_VENDOR_TOS_VO = 3, 882 }; 883 884 /** 885 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command 886 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. 887 */ 888 enum qca_wlan_vendor_attr_active_tos { 889 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, 890 /* Type Of Service - Represented by qca_wlan_vendor_tos */ 891 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, 892 /* Flag attribute representing the start (attribute included) or stop 893 * (attribute not included) of the respective TOS. 894 */ 895 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, 896 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3, 897 }; 898 899 enum qca_wlan_vendor_hang_reason { 900 /* Unspecified reason */ 901 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, 902 /* No Map for the MAC entry for the received frame */ 903 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, 904 /* peer deletion timeout happened */ 905 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, 906 /* peer unmap timeout */ 907 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, 908 /* Scan request timed out */ 909 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, 910 /* Consecutive Scan attempt failures */ 911 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, 912 /* Unable to get the message buffer */ 913 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, 914 /* Current command processing is timedout */ 915 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, 916 /* Timeout for an ACK from FW for suspend request */ 917 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, 918 /* Timeout for an ACK from FW for resume request */ 919 QCA_WLAN_HANG_RESUME_TIMEOUT = 9, 920 /* Transmission timeout for consecutive data frames */ 921 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, 922 /* Timeout for the TX completion status of data frame */ 923 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, 924 /* DXE failure for tx/Rx, DXE resource unavailability */ 925 QCA_WLAN_HANG_DXE_FAILURE = 12, 926 /* WMI pending commands exceed the maximum count */ 927 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, 928 /* Timeout for peer STA connection accept command's response from the 929 * FW in AP mode. This command is triggered when a STA (peer) connects 930 * to AP (DUT). 931 */ 932 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14, 933 /* Timeout for the AP connection accept command's response from the FW 934 * in STA mode. This command is triggered when the STA (DUT) connects 935 * to an AP (peer). 936 */ 937 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15, 938 /* Timeout waiting for the response to the MAC HW mode change command 939 * sent to FW as a part of MAC mode switch among DBS (Dual Band 940 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi 941 * Channel Concurrency) mode. 942 */ 943 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16, 944 /* Timeout waiting for the response from FW to configure the MAC HW's 945 * mode. This operation is to configure the single/two MACs in either 946 * SCC/MCC/DBS mode. 947 */ 948 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17, 949 /* Timeout waiting for response of VDEV start command from the FW */ 950 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18, 951 /* Timeout waiting for response of VDEV restart command from the FW */ 952 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19, 953 /* Timeout waiting for response of VDEV stop command from the FW */ 954 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20, 955 /* Timeout waiting for response of VDEV delete command from the FW */ 956 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21, 957 /* Timeout waiting for response of peer all delete request command to 958 * the FW on a specific VDEV. 959 */ 960 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22, 961 /* WMI sequence mismatch between WMI command and Tx completion */ 962 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23, 963 /* Write to Device HAL register failed */ 964 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24, 965 /* No credit left to send the wow_wakeup_from_sleep to firmware */ 966 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25, 967 /* Bus failure */ 968 QCA_WLAN_HANG_BUS_FAILURE = 26, 969 /* tasklet/credit latency found */ 970 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27, 971 }; 972 973 /** 974 * enum qca_wlan_vendor_attr_hang - Used by the vendor command 975 * QCA_NL80211_VENDOR_SUBCMD_HANG. 976 */ 977 enum qca_wlan_vendor_attr_hang { 978 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, 979 /* 980 * Reason for the Hang - Represented by enum 981 * qca_wlan_vendor_hang_reason. 982 */ 983 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, 984 /* The binary blob data associated with the hang reason specified by 985 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to 986 * contain the required dump to analyze the reason for the hang. 987 * NLA_BINARY attribute, the max size is 1024 bytes. 988 */ 989 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2, 990 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, 991 QCA_WLAN_VENDOR_ATTR_HANG_MAX = 992 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, 993 }; 994 995 /** 996 * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level 997 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level 998 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters 999 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace 1000 level needs to be updated. 1001 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need 1002 * to be set. 1003 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last. 1004 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute. 1005 */ 1006 enum qca_vendor_attr_set_trace_level { 1007 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0, 1008 /* 1009 * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM 1010 * attributes. 1011 */ 1012 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1, 1013 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2, 1014 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3, 1015 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST, 1016 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX = 1017 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1, 1018 }; 1019 1020 /** 1021 * enum qca_wlan_vendor_attr_get_station - Sub commands used by 1022 * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding 1023 * station information. The information obtained through these 1024 * commands signify the current info in connected state and 1025 * latest cached information during the connected state , if queried 1026 * when in disconnected state. 1027 * 1028 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute 1029 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info 1030 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason 1031 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info 1032 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last 1033 */ 1034 enum qca_wlan_vendor_attr_get_station { 1035 QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0, 1036 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO, 1037 QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON, 1038 QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE, 1039 1040 /* keep last */ 1041 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST, 1042 QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX = 1043 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1, 1044 }; 1045 1046 /** 1047 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes 1048 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command. 1049 * 1050 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC. 1051 * Used in STA mode. This attribute represents the list of channel center 1052 * frequencies in MHz (u32) the station has learnt during the last connection 1053 * or roaming attempt. This information shall not signify the channels for 1054 * an explicit scan request from the user space. Host drivers can update this 1055 * information to the user space in both connected and disconnected state. 1056 * In the disconnected state this information shall signify the channels 1057 * scanned in the last connection/roam attempt that lead to the disconnection. 1058 */ 1059 enum qca_wlan_vendor_attr_update_sta_info { 1060 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0, 1061 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1, 1062 1063 /* keep last */ 1064 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST, 1065 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX = 1066 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1, 1067 }; 1068 1069 /** 1070 * enum qca_wlan_802_11_mode - dot11 mode 1071 * @QCA_WLAN_802_11_MODE_11B: mode B 1072 * @QCA_WLAN_802_11_MODE_11G: mode G 1073 * @QCA_WLAN_802_11_MODE_11N: mode N 1074 * @QCA_WLAN_802_11_MODE_11A: mode A 1075 * @QCA_WLAN_802_11_MODE_11AC: mode AC 1076 * @QCA_WLAN_802_11_MODE_11AX: mode AX 1077 * @QCA_WLAN_802_11_MODE_11BE: mode BE 1078 * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode 1079 */ 1080 enum qca_wlan_802_11_mode { 1081 QCA_WLAN_802_11_MODE_11B, 1082 QCA_WLAN_802_11_MODE_11G, 1083 QCA_WLAN_802_11_MODE_11N, 1084 QCA_WLAN_802_11_MODE_11A, 1085 QCA_WLAN_802_11_MODE_11AC, 1086 QCA_WLAN_802_11_MODE_11AX, 1087 QCA_WLAN_802_11_MODE_11BE, 1088 QCA_WLAN_802_11_MODE_INVALID, 1089 }; 1090 1091 /** 1092 * enum qca_wlan_auth_type - Authentication key management type 1093 * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type 1094 * @QCA_WLAN_AUTH_TYPE_OPEN: Open key 1095 * @QCA_WLAN_AUTH_TYPE_SHARED: shared key 1096 * @QCA_WLAN_AUTH_TYPE_WPA: wpa key 1097 * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key 1098 * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key 1099 * @QCA_WLAN_AUTH_TYPE_RSN: rsn key 1100 * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key 1101 * @QCA_WLAN_AUTH_TYPE_FT: ft key 1102 * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key 1103 * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key 1104 * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk 1105 * @QCA_WLAN_AUTH_TYPE_WAI: wai key 1106 * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key 1107 * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key 1108 * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key 1109 * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key 1110 * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm 1111 * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384 1112 * @QCA_WLAN_AUTH_TYPE_SAE: SAE key 1113 * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key 1114 * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key 1115 * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key 1116 * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key 1117 * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key 1118 * @QCA_WLAN_AUTH_TYPE_OWE: owe key 1119 * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key 1120 * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key 1121 */ 1122 enum qca_wlan_auth_type { 1123 QCA_WLAN_AUTH_TYPE_INVALID, 1124 QCA_WLAN_AUTH_TYPE_OPEN, 1125 QCA_WLAN_AUTH_TYPE_SHARED, 1126 QCA_WLAN_AUTH_TYPE_WPA, 1127 QCA_WLAN_AUTH_TYPE_WPA_PSK, 1128 QCA_WLAN_AUTH_TYPE_WPA_NONE, 1129 QCA_WLAN_AUTH_TYPE_RSN, 1130 QCA_WLAN_AUTH_TYPE_RSN_PSK, 1131 QCA_WLAN_AUTH_TYPE_FT, 1132 QCA_WLAN_AUTH_TYPE_FT_PSK, 1133 QCA_WLAN_AUTH_TYPE_SHA256, 1134 QCA_WLAN_AUTH_TYPE_SHA256_PSK, 1135 QCA_WLAN_AUTH_TYPE_WAI, 1136 QCA_WLAN_AUTH_TYPE_WAI_PSK, 1137 QCA_WLAN_AUTH_TYPE_CCKM_WPA, 1138 QCA_WLAN_AUTH_TYPE_CCKM_RSN, 1139 QCA_WLAN_AUTH_TYPE_AUTOSWITCH, 1140 QCA_WLAN_AUTH_TYPE_FT_SAE, 1141 QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384, 1142 QCA_WLAN_AUTH_TYPE_SAE, 1143 QCA_WLAN_AUTH_TYPE_FILS_SHA256, 1144 QCA_WLAN_AUTH_TYPE_FILS_SHA384, 1145 QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256, 1146 QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384, 1147 QCA_WLAN_AUTH_TYPE_DPP_RSN, 1148 QCA_WLAN_AUTH_TYPE_OWE, 1149 QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256, 1150 QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384, 1151 }; 1152 1153 /** 1154 * enum qca_wlan_vendor_attr_get_station_info - Station Info queried 1155 * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION. 1156 * 1157 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute 1158 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR: 1159 * Get the standard NL attributes Nested with this attribute. 1160 * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link - 1161 * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) / 1162 * NL80211_ATTR_STA_INFO 1163 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR: 1164 * Get the standard NL attributes Nested with this attribute. 1165 * Ex : Query HT/VHT Capability advertized by the AP. 1166 * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY 1167 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT: 1168 * Number of successful Roam attempts before a 1169 * disconnect, Unsigned 32 bit value 1170 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM: 1171 * Authentication Key Management Type used for the connected session. 1172 * Signified by enum qca_wlan_auth_type 1173 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the 1174 * connected Session, signified by enum qca_wlan_802_11_mode 1175 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION: 1176 * HS20 Indication Element 1177 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON: 1178 * Status Code Corresponding to the Association Failure. 1179 * Unsigned 32 bit value. 1180 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE: 1181 * Max phy rate of remote station 1182 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS: 1183 * TX packets to remote station 1184 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES: 1185 * TX bytes to remote station 1186 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS: 1187 * RX packets from remote station 1188 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES: 1189 * RX bytes from remote station 1190 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE: 1191 * Last TX rate with remote station 1192 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE: 1193 * Last RX rate with remote station 1194 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM: 1195 * Remote station enable/disable WMM 1196 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE: 1197 * Remote station connection mode 1198 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU: 1199 * Remote station AMPDU enable/disable 1200 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC: 1201 * Remote station TX Space-time block coding enable/disable 1202 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC: 1203 * Remote station RX Space-time block coding enable/disable 1204 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH: 1205 * Remote station channel width 1206 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE: 1207 * Remote station short GI enable/disable 1208 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding 1209 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute 1210 * containing the raw information elements from Beacon frames. Represents 1211 * the Beacon frames of the current BSS in the connected state. When queried 1212 * in the disconnected state, these IEs correspond to the last connected BSSID. 1213 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver 1214 * disconnect reason for the last disconnection if the disconnection is 1215 * triggered from the host driver. The values are referred from 1216 * enum qca_disconnect_reason_codes. If the disconnect is from 1217 * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED. 1218 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute 1219 * Applicable in AP mode only. It contains the raw information elements 1220 * from assoc request frame of the given peer station. User queries with the 1221 * mac address of peer station when it disconnects. Host driver sends 1222 * assoc request frame of the given station. Host driver doesn't provide 1223 * the IEs when the peer station is still in connected state. 1224 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for 1225 * sending HE operation info. 1226 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last 1227 * 1228 */ 1229 enum qca_wlan_vendor_attr_get_station_info { 1230 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0, 1231 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR, 1232 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR, 1233 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT, 1234 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM, 1235 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE, 1236 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION, 1237 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION, 1238 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION, 1239 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON, 1240 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE, 1241 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS, 1242 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES, 1243 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS, 1244 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES, 1245 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE, 1246 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE, 1247 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM, 1248 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE, 1249 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU, 1250 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC, 1251 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC, 1252 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH, 1253 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE, 1254 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD, 1255 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT, 1256 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT, 1257 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE, 1258 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN, 1259 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED, 1260 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI, 1261 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY, 1262 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST, 1263 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW, 1264 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW, 1265 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW, 1266 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES, 1267 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON, 1268 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES, 1269 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION, 1270 1271 /* keep last */ 1272 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST, 1273 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX = 1274 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1, 1275 }; 1276 1277 /** 1278 * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute 1279 * 1280 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value 1281 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit 1282 * value 1283 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets 1284 * keep as unsigned for now 1285 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class 1286 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms 1287 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth 1288 * in KBPS 1289 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last 1290 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value 1291 */ 1292 enum qca_wlan_vendor_attr_tdls_enable { 1293 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, 1294 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR, 1295 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL, 1296 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS, 1297 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS, 1298 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS, 1299 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, 1300 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = 1301 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, 1302 }; 1303 1304 /** 1305 * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute 1306 * 1307 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value 1308 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned 1309 * 8-bit value 1310 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last 1311 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value 1312 */ 1313 enum qca_wlan_vendor_attr_tdls_disable { 1314 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, 1315 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR, 1316 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, 1317 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = 1318 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, 1319 }; 1320 1321 /** 1322 * qca_chip_power_save_failure_reason: Power save failure reason 1323 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure 1324 * due to protocol/module. 1325 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure 1326 * due to hardware 1327 */ 1328 enum qca_chip_power_save_failure_reason { 1329 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, 1330 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, 1331 }; 1332 1333 /** 1334 * qca_attr_chip_power_save_failure: attributes to vendor subcmd 1335 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite 1336 * information leading to the power save failure. 1337 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid 1338 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason 1339 * represented by enum qca_chip_power_save_failure_reason 1340 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last 1341 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value 1342 */ 1343 enum qca_attr_chip_power_save_failure { 1344 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, 1345 1346 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, 1347 1348 /* keep last */ 1349 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, 1350 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = 1351 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, 1352 }; 1353 1354 1355 /** 1356 * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute 1357 * 1358 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value 1359 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned 1360 * 8-bit value 1361 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state, 1362 * unsigned 32-bit value 1363 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason 1364 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel, 1365 * unsigned 32-bit value 1366 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating 1367 * class, unsigned 32-bit value 1368 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last 1369 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value 1370 */ 1371 enum qca_wlan_vendor_attr_tdls_get_status { 1372 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, 1373 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR, 1374 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE, 1375 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON, 1376 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL, 1377 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS, 1378 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, 1379 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = 1380 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, 1381 }; 1382 1383 /** 1384 * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute 1385 * 1386 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value 1387 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned 1388 * 8-bit value 1389 * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state, 1390 * unsigned 32-bit value 1391 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason 1392 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel, 1393 * unsigned 32-bit value 1394 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state 1395 * operating class, unsigned 32-bit value 1396 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last 1397 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value 1398 */ 1399 enum qca_wlan_vendor_attr_tdls_state { 1400 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, 1401 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR, 1402 QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE, 1403 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON, 1404 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL, 1405 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS, 1406 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, 1407 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = 1408 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, 1409 }; 1410 1411 /* enum's to provide TDLS capabilities */ 1412 enum qca_wlan_vendor_attr_get_tdls_capabilities { 1413 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, 1414 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1, 1415 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2, 1416 1417 /* keep last */ 1418 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, 1419 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = 1420 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, 1421 }; 1422 1423 enum qca_wlan_vendor_attr { 1424 QCA_WLAN_VENDOR_ATTR_INVALID = 0, 1425 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ 1426 QCA_WLAN_VENDOR_ATTR_DFS = 1, 1427 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */ 1428 QCA_WLAN_VENDOR_ATTR_NAN = 2, 1429 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1430 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, 1431 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1432 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, 1433 /* 1434 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined 1435 * by enum qca_roaming_policy. 1436 */ 1437 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, 1438 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, 1439 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1440 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, 1441 QCA_WLAN_VENDOR_ATTR_TEST = 8, 1442 /* 1443 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES 1444 * Unsigned 32-bit value. 1445 */ 1446 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, 1447 /* Unsigned 32-bit value */ 1448 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, 1449 /* Unsigned 32-bit value */ 1450 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, 1451 /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable 1452 * value for this attribute are only till QCA_SETBAND_2G. This attribute 1453 * is deprecated. Recommendation is to use 1454 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured 1455 * using both the attributes, the ones configured through 1456 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence. 1457 */ 1458 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, 1459 /* Dummy (NOP) attribute for 64 bit padding */ 1460 QCA_WLAN_VENDOR_ATTR_PAD = 13, 1461 /* 1462 * Unique FTM session cookie (Unsigned 64 bit). Specified in 1463 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in 1464 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and 1465 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. 1466 */ 1467 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, 1468 /* 1469 * Indoor location capabilities, returned by 1470 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. 1471 * see enum qca_wlan_vendor_attr_loc_capa. 1472 */ 1473 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, 1474 /* 1475 * Array of nested attributes containing information about each peer 1476 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info 1477 * for supported attributes for each peer. 1478 */ 1479 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, 1480 /* 1481 * Array of nested attributes containing measurement results for 1482 * one or more peers, reported by the 1483 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. 1484 * See enum qca_wlan_vendor_attr_peer_result for list of supported 1485 * attributes. 1486 */ 1487 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, 1488 /* Flag attribute for enabling or disabling responder functionality. */ 1489 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, 1490 /* 1491 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1492 * command to specify the LCI report that will be sent by 1493 * the responder during a measurement exchange. The format is 1494 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. 1495 */ 1496 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, 1497 /* 1498 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1499 * command to specify the location civic report that will 1500 * be sent by the responder during a measurement exchange. 1501 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. 1502 */ 1503 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, 1504 /* 1505 * Session/measurement completion status code, 1506 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and 1507 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT 1508 * see enum qca_vendor_attr_loc_session_status. 1509 */ 1510 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, 1511 /* 1512 * Initial dialog token used by responder (0 if not specified), 1513 * unsigned 8 bit value. 1514 */ 1515 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, 1516 /* 1517 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS 1518 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if 1519 * AOA measurements are needed as part of an FTM session. 1520 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See 1521 * enum qca_wlan_vendor_attr_aoa_type. 1522 */ 1523 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, 1524 /* 1525 * A bit mask (unsigned 32 bit value) of antenna arrays used 1526 * by indoor location measurements. Refers to the antenna 1527 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. 1528 */ 1529 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, 1530 /* 1531 * AOA measurement data. Its contents depends on the AOA measurement 1532 * type and antenna array mask: 1533 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, 1534 * phase of the strongest CIR path for each antenna in the measured 1535 * array(s). 1536 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 1537 * values, phase and amplitude of the strongest CIR path for each 1538 * antenna in the measured array(s). 1539 */ 1540 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, 1541 /* 1542 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1543 * to specify the chain number (unsigned 32 bit value) to inquire 1544 * the corresponding antenna RSSI value */ 1545 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, 1546 /* 1547 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1548 * to report the specific antenna RSSI value (unsigned 32 bit value) */ 1549 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, 1550 /* Frequency in MHz, various uses. Unsigned 32 bit value */ 1551 QCA_WLAN_VENDOR_ATTR_FREQ = 28, 1552 /* 1553 * TSF timer value, unsigned 64 bit value. 1554 * May be returned by various commands. 1555 */ 1556 QCA_WLAN_VENDOR_ATTR_TSF = 29, 1557 /* 1558 * DMG RF sector index, unsigned 16 bit number. Valid values are 1559 * 0..127 for sector indices or 65535 as special value used to 1560 * unlock sector selection in 1561 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. 1562 */ 1563 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, 1564 /* 1565 * DMG RF sector type, unsigned 8 bit value. One of the values 1566 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. 1567 */ 1568 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, 1569 /* 1570 * Bitmask of DMG RF modules for which information is requested. Each 1571 * bit corresponds to an RF module with the same index as the bit 1572 * number. Unsigned 32 bit number but only low 8 bits can be set since 1573 * all DMG chips currently have up to 8 RF modules. 1574 */ 1575 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, 1576 /* 1577 * Array of nested attributes where each entry is DMG RF sector 1578 * configuration for a single RF module. 1579 * Attributes for each entry are taken from enum 1580 * qca_wlan_vendor_attr_dmg_rf_sector_cfg. 1581 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG 1582 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. 1583 */ 1584 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, 1585 /* 1586 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command 1587 * to report frame aggregation statistics to userspace. 1588 */ 1589 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, 1590 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, 1591 /* 1592 * Unsigned 8-bit value representing MBO transition reason code as 1593 * provided by the AP used by subcommand 1594 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is 1595 * specified by the userspace in the request to the driver. 1596 */ 1597 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, 1598 /* 1599 * Array of nested attributes, BSSID and status code, used by subcommand 1600 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each 1601 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. 1602 * The userspace space specifies the list/array of candidate BSSIDs in 1603 * the order of preference in the request. The driver specifies the 1604 * status code, for each BSSID in the list, in the response. The 1605 * acceptable candidates are listed in the order preferred by the 1606 * driver. 1607 */ 1608 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, 1609 /* 1610 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1611 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. 1612 */ 1613 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, 1614 /* 1615 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1616 * to define the number of antennas to use for BRP. 1617 * different purpose in each ANT_LIMIT_MODE: 1618 * DISABLE - ignored 1619 * EFFECTIVE - upper limit to number of antennas to be used 1620 * FORCE - exact number of antennas to be used 1621 * unsigned 8 bit value 1622 */ 1623 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, 1624 /* 1625 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1626 * to report the corresponding antenna index to the chain RSSI value 1627 */ 1628 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, 1629 /* 1630 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1631 * to report the specific antenna EVM value (unsigned 32 bit value). 1632 * With a determinate group of antennas, the driver specifies the 1633 * EVM value for each antenna ID, and application extract them 1634 * in user space. 1635 */ 1636 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41, 1637 /* 1638 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report 1639 * wlan firmware current state. FW state is an unsigned 8 bit value, 1640 * one of the values in enum qca_wlan_vendor_attr_fw_state. 1641 */ 1642 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42, 1643 1644 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the 1645 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the 1646 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid. 1647 * This attribute shall consider the bitmask combinations to define 1648 * the respective Band combinations and always takes precedence over 1649 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE. 1650 */ 1651 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43, 1652 1653 /* keep last */ 1654 QCA_WLAN_VENDOR_ATTR_AFTER_LAST, 1655 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1 1656 }; 1657 1658 enum qca_wlan_vendor_attr_extscan_config_params { 1659 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, 1660 1661 /* Unsigned 32-bit value */ 1662 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, 1663 1664 /* 1665 * Attributes for data used by 1666 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command. 1667 */ 1668 1669 /* Unsigned 32-bit value */ 1670 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND 1671 = 2, 1672 /* Unsigned 32-bit value */ 1673 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS 1674 = 3, 1675 1676 /* 1677 * Attributes for input params used by 1678 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command. 1679 */ 1680 1681 /* Unsigned 32-bit value; channel frequency */ 1682 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4, 1683 /* Unsigned 32-bit value; dwell time in ms. */ 1684 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5, 1685 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ 1686 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6, 1687 /* Unsigned 8-bit value; channel class */ 1688 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7, 1689 1690 /* Unsigned 8-bit value; bucket index, 0 based */ 1691 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8, 1692 /* Unsigned 8-bit value; band. */ 1693 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9, 1694 /* Unsigned 32-bit value; desired period, in ms. */ 1695 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10, 1696 /* Unsigned 8-bit value; report events semantics. */ 1697 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, 1698 /* 1699 * Unsigned 32-bit value. Followed by a nested array of 1700 * EXTSCAN_CHANNEL_SPEC_* attributes. 1701 */ 1702 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, 1703 1704 /* 1705 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes. 1706 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 1707 */ 1708 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13, 1709 1710 /* Unsigned 32-bit value; base timer period in ms. */ 1711 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, 1712 /* 1713 * Unsigned 32-bit value; number of APs to store in each scan in the 1714 * BSSID/RSSI history buffer (keep the highest RSSI APs). 1715 */ 1716 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, 1717 /* 1718 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake 1719 * up AP. 1720 */ 1721 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT 1722 = 16, 1723 1724 /* 1725 * Unsigned 8-bit value; number of scan bucket specs; followed by a 1726 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size 1727 * of the array is determined by NUM_BUCKETS. 1728 */ 1729 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, 1730 1731 /* 1732 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes. 1733 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS 1734 */ 1735 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18, 1736 1737 /* Unsigned 8-bit value */ 1738 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH 1739 = 19, 1740 /* Unsigned 32-bit value; maximum number of results to be returned. */ 1741 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX 1742 = 20, 1743 1744 /* An array of 6 x unsigned 8-bit value */ 1745 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21, 1746 /* Signed 32-bit value */ 1747 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, 1748 /* Signed 32-bit value */ 1749 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, 1750 /* Unsigned 32-bit value */ 1751 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, 1752 1753 /* 1754 * Number of hotlist APs as unsigned 32-bit value, followed by a nested 1755 * array of AP_THRESHOLD_PARAM attributes and values. The size of the 1756 * array is determined by NUM_AP. 1757 */ 1758 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, 1759 1760 /* 1761 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes. 1762 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 1763 */ 1764 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26, 1765 1766 /* Unsigned 32-bit value; number of samples for averaging RSSI. */ 1767 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE 1768 = 27, 1769 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 1770 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE 1771 = 28, 1772 /* Unsigned 32-bit value; number of APs breaching threshold. */ 1773 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, 1774 /* 1775 * Unsigned 32-bit value; number of APs. Followed by an array of 1776 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. 1777 */ 1778 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, 1779 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 1780 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE 1781 = 31, 1782 /* 1783 * Unsigned 32-bit value. If max_period is non zero or different than 1784 * period, then this bucket is an exponential backoff bucket. 1785 */ 1786 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32, 1787 /* Unsigned 32-bit value. */ 1788 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33, 1789 /* 1790 * Unsigned 32-bit value. For exponential back off bucket, number of 1791 * scans to perform for a given period. 1792 */ 1793 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34, 1794 /* 1795 * Unsigned 8-bit value; in number of scans, wake up AP after these 1796 * many scans. 1797 */ 1798 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS 1799 = 35, 1800 1801 /* 1802 * Attributes for data used by 1803 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command. 1804 */ 1805 1806 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ 1807 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE 1808 = 36, 1809 /* 1810 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a 1811 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The 1812 * size of the array is determined by NUM_SSID. 1813 */ 1814 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, 1815 /* 1816 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_* 1817 * attributes. 1818 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID 1819 */ 1820 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38, 1821 1822 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 1823 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39, 1824 /* Unsigned 8-bit value */ 1825 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40, 1826 /* Signed 32-bit value */ 1827 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, 1828 /* Signed 32-bit value */ 1829 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, 1830 /* Unsigned 32-bit value; a bitmask with additional extscan config flag. 1831 */ 1832 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43, 1833 1834 /* keep last */ 1835 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, 1836 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX = 1837 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, 1838 }; 1839 1840 enum qca_wlan_vendor_attr_extscan_results { 1841 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0, 1842 1843 /* 1844 * Unsigned 32-bit value; must match the request Id supplied by 1845 * Wi-Fi HAL in the corresponding subcmd NL msg. 1846 */ 1847 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1, 1848 1849 /* 1850 * Unsigned 32-bit value; used to indicate the status response from 1851 * firmware/driver for the vendor sub-command. 1852 */ 1853 QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2, 1854 1855 /* 1856 * EXTSCAN Valid Channels attributes */ 1857 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ 1858 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3, 1859 /* 1860 * An array of NUM_CHANNELS x unsigned 32-bit value integers 1861 * representing channel numbers. 1862 */ 1863 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4, 1864 1865 /* EXTSCAN Capabilities attributes */ 1866 1867 /* Unsigned 32-bit value */ 1868 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, 1869 /* Unsigned 32-bit value */ 1870 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, 1871 /* Unsigned 32-bit value */ 1872 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN 1873 = 7, 1874 /* Unsigned 32-bit value */ 1875 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE 1876 = 8, 1877 /* Signed 32-bit value */ 1878 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD 1879 = 9, 1880 /* Unsigned 32-bit value */ 1881 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, 1882 /* Unsigned 32-bit value */ 1883 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS 1884 = 11, 1885 /* Unsigned 32-bit value */ 1886 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES 1887 = 12, 1888 1889 /* 1890 * EXTSCAN Attributes used with 1891 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command. 1892 */ 1893 1894 /* Unsigned 32-bit value */ 1895 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, 1896 1897 /* 1898 * EXTSCAN attributes used with 1899 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command. 1900 */ 1901 1902 /* 1903 * An array of NUM_RESULTS_AVAILABLE x 1904 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_* 1905 */ 1906 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14, 1907 1908 /* Unsigned 64-bit value; age of sample at the time of retrieval */ 1909 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, 1910 /* 33 x unsigned 8-bit value; NULL terminated SSID */ 1911 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16, 1912 /* An array of 6 x unsigned 8-bit value */ 1913 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17, 1914 /* Unsigned 32-bit value; channel frequency in MHz */ 1915 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, 1916 /* Signed 32-bit value */ 1917 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19, 1918 /* Unsigned 32-bit value */ 1919 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20, 1920 /* Unsigned 32-bit value */ 1921 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, 1922 /* Unsigned 16-bit value */ 1923 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, 1924 /* Unsigned 16-bit value */ 1925 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, 1926 /* Unsigned 32-bit value; size of the IE DATA blob */ 1927 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, 1928 /* 1929 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the 1930 * information elements found in the beacon; this data should be a 1931 * packed list of wifi_information_element objects, one after the 1932 * other. 1933 */ 1934 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, 1935 1936 /* 1937 * Unsigned 8-bit value; set by driver to indicate more scan results are 1938 * available. 1939 */ 1940 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, 1941 1942 /* 1943 * EXTSCAN attributes for 1944 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command. 1945 */ 1946 /* Unsigned 8-bit value */ 1947 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27, 1948 /* Unsigned 32-bit value */ 1949 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28, 1950 1951 /* 1952 * EXTSCAN attributes for 1953 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command. 1954 */ 1955 /* 1956 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 1957 * to indicate number of results. 1958 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the 1959 * list of results. 1960 */ 1961 1962 /* 1963 * EXTSCAN attributes for 1964 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command. 1965 */ 1966 /* An array of 6 x unsigned 8-bit value */ 1967 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, 1968 /* Unsigned 32-bit value */ 1969 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL 1970 = 30, 1971 /* Unsigned 32-bit value. */ 1972 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI 1973 = 31, 1974 /* 1975 * A nested array of signed 32-bit RSSI values. Size of the array is 1976 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. 1977 */ 1978 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST 1979 = 32, 1980 1981 /* 1982 * EXTSCAN attributes used with 1983 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command. 1984 */ 1985 /* 1986 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 1987 * to indicate number of extscan cached results returned. 1988 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate 1989 * the list of extscan cached results. 1990 */ 1991 1992 /* 1993 * An array of NUM_RESULTS_AVAILABLE x 1994 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_* 1995 */ 1996 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33, 1997 /* Unsigned 32-bit value; a unique identifier for the scan unit. */ 1998 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34, 1999 /* 2000 * Unsigned 32-bit value; a bitmask w/additional information about scan. 2001 */ 2002 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35, 2003 /* 2004 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2005 * to indicate number of wifi scan results/bssids retrieved by the scan. 2006 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the 2007 * list of wifi scan results returned for each cached result block. 2008 */ 2009 2010 /* 2011 * EXTSCAN attributes for 2012 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. 2013 */ 2014 /* 2015 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for 2016 * number of results. 2017 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested 2018 * list of wifi scan results returned for each 2019 * wifi_passpoint_match_result block. 2020 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE. 2021 */ 2022 2023 /* 2024 * EXTSCAN attributes for 2025 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. 2026 */ 2027 /* Unsigned 32-bit value */ 2028 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES 2029 = 36, 2030 /* 2031 * A nested array of 2032 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_* 2033 * attributes. Array size = 2034 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. 2035 */ 2036 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, 2037 2038 /* Unsigned 32-bit value; network block id for the matched network */ 2039 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, 2040 /* 2041 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested 2042 * list of wifi scan results returned for each 2043 * wifi_passpoint_match_result block. 2044 */ 2045 /* Unsigned 32-bit value */ 2046 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, 2047 /* 2048 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; 2049 * ANQP data in the information_element format. 2050 */ 2051 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, 2052 2053 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2054 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, 2055 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2056 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, 2057 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2058 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID 2059 = 43, 2060 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2061 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID 2062 = 44, 2063 2064 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45, 2065 QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46, 2066 2067 /* keep last */ 2068 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST, 2069 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX = 2070 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1, 2071 }; 2072 2073 /** 2074 * enum qca_vendor_interop_issues_ap_type - interop issues type 2075 * This enum defines the valid set of values of interop issues type. These 2076 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE. 2077 * 2078 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue 2079 * when the STA's Qpower feature is enabled. 2080 */ 2081 enum qca_vendor_interop_issues_ap_type { 2082 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0, 2083 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1, 2084 }; 2085 2086 /** 2087 * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues 2088 * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP. 2089 * 2090 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value 2091 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type 2092 * 32-bit unsigned value, The type defined in enum 2093 * qca_vendor_interop_issues_ap_type are used. 2094 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container 2095 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes, 2096 * it is present and mandatory for the command but is not used for 2097 * the event since only a single BSSID is reported in an event. 2098 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid 2099 * 6-byte MAC address. It is used within the nested 2100 * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case 2101 * and without such encapsulation in the event case. 2102 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value 2103 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value 2104 */ 2105 enum qca_vendor_attr_interop_issues_ap { 2106 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID, 2107 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE, 2108 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST, 2109 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID, 2110 /* keep last */ 2111 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST, 2112 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = 2113 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 2114 }; 2115 2116 #ifdef WLAN_FEATURE_LINK_LAYER_STATS 2117 2118 /** 2119 * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats 2120 * 2121 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value 2122 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold 2123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING: 2124 * Aggresive stats gathering 2125 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last 2126 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value 2127 */ 2128 enum qca_wlan_vendor_attr_ll_stats_set { 2129 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, 2130 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, 2131 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING, 2132 /* keep last */ 2133 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, 2134 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = 2135 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1 2136 }; 2137 2138 /** 2139 * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats 2140 * 2141 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value 2142 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value 2143 * provided by the caller issuing the GET stats command. When reporting 2144 * the stats results, the driver uses the same value to indicate which 2145 * GET request the results correspond to. 2146 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask 2147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask 2148 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response 2149 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last 2150 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value 2151 */ 2152 enum qca_wlan_vendor_attr_ll_stats_get { 2153 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, 2154 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID, 2155 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK, 2156 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, 2157 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = 2158 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1 2159 }; 2160 2161 /** 2162 * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats 2163 * 2164 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value 2165 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask 2166 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask 2167 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask 2168 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response 2169 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last 2170 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value 2171 */ 2172 enum qca_wlan_vendor_attr_ll_stats_clr { 2173 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, 2174 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK, 2175 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ, 2176 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK, 2177 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP, 2178 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, 2179 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = 2180 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1 2181 }; 2182 2183 /** 2184 * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type 2185 * 2186 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value 2187 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio 2188 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface 2189 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer 2190 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value 2191 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value 2192 */ 2193 enum qca_wlan_vendor_attr_ll_stats_results_type { 2194 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0, 2195 2196 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1, 2197 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE, 2198 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER, 2199 2200 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST, 2201 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX = 2202 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1 2203 }; 2204 2205 enum qca_wlan_vendor_attr_ll_stats_results { 2206 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, 2207 /* Unsigned 32bit value. Used by the driver; must match the request id 2208 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. 2209 */ 2210 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, 2211 2212 /* Unsigned 32 bit value */ 2213 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, 2214 /* Unsigned 32 bit value */ 2215 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, 2216 /* Unsigned 32 bit value */ 2217 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, 2218 /* Unsigned 32 bit value */ 2219 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, 2220 /* Signed 32 bit value */ 2221 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, 2222 /* Signed 32 bit value */ 2223 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, 2224 /* Signed 32 bit value */ 2225 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, 2226 2227 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are 2228 * nested within the interface stats. 2229 */ 2230 2231 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. 2232 * Type = enum wifi_interface_mode. 2233 */ 2234 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, 2235 /* Interface MAC address. An array of 6 Unsigned int8 */ 2236 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, 2237 /* Type = enum wifi_connection_state, e.g., DISCONNECTED, 2238 * AUTHENTICATING, etc. valid for STA, CLI only. 2239 */ 2240 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, 2241 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE 2242 */ 2243 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, 2244 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ 2245 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, 2246 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ 2247 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, 2248 /* BSSID. An array of 6 unsigned 8 bit values */ 2249 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, 2250 /* Country string advertised by AP. An array of 3 unsigned 8 bit 2251 * values. 2252 */ 2253 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, 2254 /* Country string for this association. An array of 3 unsigned 8 bit 2255 * values. 2256 */ 2257 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, 2258 2259 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could 2260 * be nested within the interface stats. 2261 */ 2262 2263 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ 2264 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, 2265 /* Unsigned int 32 value corresponding to respective AC */ 2266 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, 2267 /* Unsigned int 32 value corresponding to respective AC */ 2268 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, 2269 /* Unsigned int 32 value corresponding to respective AC */ 2270 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, 2271 /* Unsigned int 32 value corresponding to respective AC */ 2272 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, 2273 /* Unsigned int 32 value corresponding to respective AC */ 2274 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, 2275 /* Unsigned int 32 value corresponding to respective AC */ 2276 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, 2277 /* Unsigned int 32 value corresponding to respective AC */ 2278 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, 2279 /* Unsigned int 32 value corresponding to respective AC */ 2280 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, 2281 /* Unsigned int 32 value corresponding to respective AC */ 2282 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, 2283 /* Unsigned int 32 values corresponding to respective AC */ 2284 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, 2285 /* Unsigned int 32 values corresponding to respective AC */ 2286 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, 2287 /* Unsigned int 32 values corresponding to respective AC */ 2288 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, 2289 /* Unsigned int 32 values corresponding to respective AC */ 2290 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, 2291 /* Unsigned int 32 values corresponding to respective AC */ 2292 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, 2293 /* Unsigned 32 bit value. Number of peers */ 2294 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, 2295 2296 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are 2297 * nested within the interface stats. 2298 */ 2299 2300 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ 2301 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, 2302 /* MAC addr corresponding to respective peer. An array of 6 unsigned 2303 * 8 bit values. 2304 */ 2305 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, 2306 /* Unsigned int 32 bit value representing capabilities corresponding 2307 * to respective peer. 2308 */ 2309 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, 2310 /* Unsigned 32 bit value. Number of rates */ 2311 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, 2312 2313 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2314 * are nested within the rate stat. 2315 */ 2316 2317 /* Wi-Fi Rate - separate attributes defined for individual fields */ 2318 2319 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ 2320 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, 2321 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ 2322 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, 2323 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ 2324 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, 2325 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std 2326 * in the units of 0.5 Mbps HT/VHT it would be MCS index 2327 */ 2328 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, 2329 2330 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ 2331 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, 2332 2333 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be 2334 * nested within the peer info stats. 2335 */ 2336 2337 /* Unsigned int 32 bit value. Number of successfully transmitted data 2338 * packets, i.e., with ACK received corresponding to the respective 2339 * rate. 2340 */ 2341 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, 2342 /* Unsigned int 32 bit value. Number of received data packets 2343 * corresponding to the respective rate. 2344 */ 2345 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, 2346 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK 2347 * received corresponding to the respective rate. 2348 */ 2349 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, 2350 /* Unsigned int 32 bit value. Total number of data packet retries for 2351 * the respective rate. 2352 */ 2353 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, 2354 /* Unsigned int 32 bit value. Total number of short data packet retries 2355 * for the respective rate. 2356 */ 2357 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, 2358 /* Unsigned int 32 bit value. Total number of long data packet retries 2359 * for the respective rate. 2360 */ 2361 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, 2362 2363 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, 2364 /* Unsigned 32 bit value. Total number of msecs the radio is awake 2365 * accruing over time. 2366 */ 2367 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, 2368 /* Unsigned 32 bit value. Total number of msecs the radio is 2369 * transmitting accruing over time. 2370 */ 2371 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, 2372 /* Unsigned 32 bit value. Total number of msecs the radio is in active 2373 * receive accruing over time. 2374 */ 2375 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, 2376 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2377 * to all scan accruing over time. 2378 */ 2379 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, 2380 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2381 * to NAN accruing over time. 2382 */ 2383 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, 2384 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2385 * to GSCAN accruing over time. 2386 */ 2387 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, 2388 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2389 * to roam scan accruing over time. 2390 */ 2391 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, 2392 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2393 * to PNO scan accruing over time. 2394 */ 2395 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, 2396 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2397 * to Hotspot 2.0 scans and GAS exchange accruing over time. 2398 */ 2399 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, 2400 /* Unsigned 32 bit value. Number of channels. */ 2401 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, 2402 2403 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could 2404 * be nested within the channel stats. 2405 */ 2406 2407 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ 2408 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, 2409 /* Unsigned 32 bit value. Primary 20 MHz channel. */ 2410 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, 2411 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ 2412 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, 2413 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ 2414 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, 2415 2416 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be 2417 * nested within the radio stats. 2418 */ 2419 2420 /* Unsigned int 32 bit value representing total number of msecs the 2421 * radio is awake on that channel accruing over time, corresponding to 2422 * the respective channel. 2423 */ 2424 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, 2425 /* Unsigned int 32 bit value representing total number of msecs the CCA 2426 * register is busy accruing over time corresponding to the respective 2427 * channel. 2428 */ 2429 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, 2430 2431 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, 2432 2433 /* Signifies the nested list of channel attributes 2434 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* 2435 */ 2436 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, 2437 2438 /* Signifies the nested list of peer info attributes 2439 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* 2440 */ 2441 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, 2442 2443 /* Signifies the nested list of rate info attributes 2444 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2445 */ 2446 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, 2447 2448 /* Signifies the nested list of wmm info attributes 2449 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 2450 */ 2451 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, 2452 2453 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates 2454 * that more stats, e.g., peers or radio, are to follow in the next 2455 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. 2456 * Otherwise, it is set to 0. 2457 */ 2458 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, 2459 2460 /* Unsigned 64 bit value */ 2461 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, 2462 2463 /* Unsigned 32 bit value */ 2464 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, 2465 2466 /* Unsigned 32 bit value */ 2467 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, 2468 2469 /* Unsigned 32 bit value */ 2470 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, 2471 2472 /* Unsigned 32 bit value */ 2473 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, 2474 2475 /* Unsigned 32 bit value */ 2476 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, 2477 2478 /* Number of msecs the radio spent in transmitting for each power level 2479 */ 2480 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, 2481 2482 /* Unsigned 32 bit value */ 2483 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, 2484 /* Unsigned 32 bit value */ 2485 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, 2486 /* Unsigned 32 bit value */ 2487 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, 2488 /* Unsigned 32 bit value */ 2489 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, 2490 2491 /* Unsigned int 32 value. 2492 * Pending MSDUs corresponding to respective AC. 2493 */ 2494 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83, 2495 2496 /* u32 value representing total time in milliseconds for which the radio 2497 * is transmitting on this channel. This attribute will be nested 2498 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 2499 */ 2500 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84, 2501 /* u32 value representing total time in milliseconds for which the radio 2502 * is receiving all 802.11 frames intended for this device on this 2503 * channel. This attribute will be nested within 2504 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 2505 */ 2506 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85, 2507 /* u8 value representing the channel load percentage. Possible values 2508 * are 0-100. 2509 */ 2510 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86, 2511 /* u8 value representing the time slicing duty cycle percentage. 2512 * Possible values are 0-100. 2513 */ 2514 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87, 2515 /* Unsigned 32 bit value. The number of Beacon frames which are received 2516 * from the associated AP and indicate buffered unicast frame(s) for us 2517 * in the TIM element. 2518 */ 2519 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88, 2520 /* Unsigned 32 bit value. The total number of Beacon frames received 2521 * from the associated AP that have wrongly indicated buffered unicast 2522 * traffic in the TIM element for us. 2523 * Below scenarios will be considered as wrong TIM element beacon: 2524 * 1) The related TIM element is set in the beacon for STA but STA 2525 * doesn’t receive any unicast data after this beacon. 2526 * 2) The related TIM element is still set in the beacon for STA 2527 * after STA has indicated power save exit by QoS Null Data frame. 2528 */ 2529 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89, 2530 2531 /* keep last */ 2532 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, 2533 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = 2534 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, 2535 }; 2536 2537 enum qca_wlan_vendor_attr_ll_stats_type { 2538 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, 2539 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, 2540 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, 2541 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, 2542 2543 /* keep last */ 2544 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, 2545 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = 2546 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, 2547 }; 2548 2549 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ 2550 2551 /** 2552 * enum qca_wlan_vendor_attr_get_supported_features - get supported feature 2553 * 2554 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value 2555 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value 2556 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last 2557 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value 2558 */ 2559 enum qca_wlan_vendor_attr_get_supported_features { 2560 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0, 2561 QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1, 2562 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST, 2563 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX = 2564 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1, 2565 }; 2566 2567 /** 2568 * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui 2569 * 2570 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value 2571 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit 2572 * value 2573 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last 2574 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value 2575 */ 2576 enum qca_wlan_vendor_attr_set_scanning_mac_oui { 2577 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0, 2578 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1, 2579 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST, 2580 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX = 2581 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1, 2582 }; 2583 2584 /** 2585 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the 2586 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take. 2587 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority 2588 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority 2589 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority 2590 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority 2591 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority 2592 */ 2593 enum qca_wlan_vendor_scan_priority { 2594 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0, 2595 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1, 2596 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2, 2597 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3, 2598 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4, 2599 }; 2600 2601 /** 2602 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes 2603 * 2604 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan 2605 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes 2606 * with frequencies to be scanned (in MHz) 2607 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned 2608 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported 2609 * rates to be included 2610 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests 2611 * at non CCK rate in 2GHz band 2612 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags 2613 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the 2614 * driver for the specific scan request 2615 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan 2616 * request decoded as in enum scan_status 2617 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation 2618 * scan flag is set 2619 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with 2620 * randomisation 2621 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the 2622 * specific BSSID to scan for. 2623 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in 2624 * microseconds. This is a common value which applies across all 2625 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES. 2626 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to 2627 * other scan requests. It is a u32 attribute and takes values from enum 2628 * qca_wlan_vendor_scan_priority. This is an optional attribute. 2629 * If this attribute is not configured, the driver shall use 2630 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan. 2631 */ 2632 enum qca_wlan_vendor_attr_scan { 2633 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, 2634 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1, 2635 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2, 2636 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3, 2637 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4, 2638 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5, 2639 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6, 2640 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7, 2641 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8, 2642 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9, 2643 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10, 2644 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11, 2645 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12, 2646 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, 2647 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, 2648 QCA_WLAN_VENDOR_ATTR_SCAN_MAX = 2649 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 2650 }; 2651 2652 /** 2653 * enum scan_status - Specifies the valid values the vendor scan attribute 2654 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take 2655 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with 2656 * new scan results 2657 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between 2658 */ 2659 enum scan_status { 2660 VENDOR_SCAN_STATUS_NEW_RESULTS, 2661 VENDOR_SCAN_STATUS_ABORTED, 2662 VENDOR_SCAN_STATUS_MAX, 2663 }; 2664 2665 /** 2666 * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix 2667 * 2668 * NL attributes for data used by 2669 * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command. 2670 * 2671 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value 2672 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX: 2673 * Unsigned 32-bit value 2674 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE: 2675 * Unsigned 32-bit value 2676 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An 2677 * array of SET_SIZE x Unsigned 32bit values representing concurrency 2678 * combinations 2679 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last 2680 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value 2681 */ 2682 enum qca_wlan_vendor_attr_get_concurrency_matrix { 2683 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0, 2684 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX 2685 = 1, 2686 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2, 2687 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3, 2688 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST, 2689 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX = 2690 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1, 2691 }; 2692 2693 /** 2694 * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag 2695 * 2696 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value 2697 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value 2698 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last 2699 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value 2700 */ 2701 enum qca_wlan_vendor_attr_set_no_dfs_flag { 2702 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0, 2703 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1, 2704 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST, 2705 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX = 2706 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1, 2707 }; 2708 2709 /** 2710 * enum qca_vendor_attr_wisa_cmd 2711 * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr 2712 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32) 2713 * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last 2714 * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value 2715 * WISA setup vendor commands 2716 */ 2717 enum qca_vendor_attr_wisa_cmd { 2718 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, 2719 QCA_WLAN_VENDOR_ATTR_WISA_MODE, 2720 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, 2721 QCA_WLAN_VENDOR_ATTR_WISA_MAX = 2722 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 2723 }; 2724 2725 enum qca_roaming_policy { 2726 QCA_ROAMING_NOT_ALLOWED, 2727 QCA_ROAMING_ALLOWED_WITHIN_ESS, 2728 }; 2729 2730 /** 2731 * enum qca_roam_reason - Represents the reason codes for roaming. Used by 2732 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON. 2733 * 2734 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below 2735 * reasons. 2736 * 2737 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached 2738 * the configured threshold. 2739 * 2740 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured 2741 * beacon misses from the then connected AP. 2742 * 2743 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported 2744 * by the connected AP. 2745 * 2746 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a 2747 * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is 2748 * not poor. 2749 * 2750 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel 2751 * or environment being very noisy / congested. 2752 * 2753 * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request 2754 * from the user (user space). 2755 * 2756 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from 2757 * connected AP. 2758 * 2759 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization 2760 * breaching out the configured threshold. 2761 * 2762 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS 2763 * transition request. 2764 * 2765 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, 2766 * there is no data activity with the AP and the current rssi falls below a 2767 * certain threshold. 2768 * 2769 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to 2770 * deauthentication or disassociation frames received from the connected AP. 2771 * 2772 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic 2773 * scan that happens when there is no candiate AP found during the poor 2774 * RSSI scan trigger. 2775 * 2776 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan 2777 * results obtained from an external scan (not aimed at roaming). 2778 * 2779 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth 2780 * connection is established when the station is connected in 2.4 Ghz band. 2781 */ 2782 enum qca_roam_reason { 2783 QCA_ROAM_REASON_UNKNOWN, 2784 QCA_ROAM_REASON_PER, 2785 QCA_ROAM_REASON_BEACON_MISS, 2786 QCA_ROAM_REASON_POOR_RSSI, 2787 QCA_ROAM_REASON_BETTER_RSSI, 2788 QCA_ROAM_REASON_CONGESTION, 2789 QCA_ROAM_REASON_USER_TRIGGER, 2790 QCA_ROAM_REASON_BTM, 2791 QCA_ROAM_REASON_BSS_LOAD, 2792 QCA_ROAM_REASON_WTC, 2793 QCA_ROAM_REASON_IDLE, 2794 QCA_ROAM_REASON_DISCONNECTION, 2795 QCA_ROAM_REASON_PERIODIC_TIMER, 2796 QCA_ROAM_REASON_BACKGROUND_SCAN, 2797 QCA_ROAM_REASON_BT_ACTIVITY, 2798 }; 2799 2800 /** 2801 * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming 2802 * 2803 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE 2804 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE 2805 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status 2806 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter 2807 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK 2808 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK 2809 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status 2810 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS: 2811 * Indicates the status of re-association requested by user space for 2812 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. 2813 * Type u16. 2814 * Represents the status code from AP. Use 2815 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the 2816 * real status code for failures. 2817 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION: 2818 * This attribute indicates that the old association was maintained when 2819 * a re-association is requested by user space and that re-association 2820 * attempt fails (i.e., cannot connect to the requested BSS, but can 2821 * remain associated with the BSS with which the association was in 2822 * place when being requested to roam). Used along with 2823 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current 2824 * re-association status. Type flag. 2825 * This attribute is applicable only for re-association failure cases. 2826 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK 2827 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID 2828 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next 2829 * seq number 2830 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value 2831 * representing the reasons for the roaming. Defined by enum 2832 * qca_roam_reason. 2833 */ 2834 enum qca_wlan_vendor_attr_roam_auth { 2835 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, 2836 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address 2837 * of the roamed AP for MLO roaming. 2838 */ 2839 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, 2840 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, 2841 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, 2842 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, 2843 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, 2844 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, 2845 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, 2846 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, 2847 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, 2848 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, 2849 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK, 2850 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID, 2851 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM, 2852 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON, 2853 /* A nested attribute containing per-link information of all the links 2854 * of MLO connection done while roaming. The attributes used inside this 2855 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links. 2856 */ 2857 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15, 2858 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, 2859 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = 2860 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 2861 }; 2862 2863 /** 2864 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside 2865 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS. 2866 * 2867 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link. 2868 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link. 2869 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link. 2870 */ 2871 enum qca_wlan_vendor_attr_mlo_links { 2872 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0, 2873 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1, 2874 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2, 2875 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3, 2876 2877 /* Keep last */ 2878 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST, 2879 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX = 2880 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1, 2881 }; 2882 2883 /** 2884 * enum qca_wlan_vendor_attr_wifi_config - wifi config 2885 * 2886 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value 2887 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM 2888 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor 2889 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time 2890 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last 2891 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value 2892 */ 2893 enum qca_wlan_vendor_attr_wifi_config { 2894 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0, 2895 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1, 2896 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2, 2897 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3, 2898 2899 /* keep last */ 2900 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST, 2901 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX = 2902 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1, 2903 }; 2904 2905 /** 2906 * enum qca_wlan_epno_type - the type of request to the EPNO command 2907 * @QCA_WLAN_EPNO: epno type request 2908 * @QCA_WLAN_PNO: pno type request 2909 */ 2910 enum qca_wlan_epno_type { 2911 QCA_WLAN_EPNO, 2912 QCA_WLAN_PNO 2913 }; 2914 2915 /** 2916 * enum qca_wlan_vendor_attr_pno_config_params - pno config params 2917 * 2918 * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value 2919 * 2920 * NL attributes for data used by 2921 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. 2922 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM: 2923 * Unsigned 32-bit value; pno passpoint number of networks 2924 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY: 2925 * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* 2926 * attributes. Array size = 2927 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. 2928 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID: 2929 * Unsigned 32-bit value; network id 2930 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM: 2931 * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded 2932 * realm, 0 if unspecified. 2933 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID: 2934 * An array of 16 x Unsigned 32-bit value; roaming consortium ids 2935 * to match, 0 if unspecified. 2936 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN: 2937 * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if 2938 * unspecified. 2939 * 2940 * NL attributes for data used by 2941 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. 2942 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS: 2943 * Unsigned 32-bit value; set pno number of networks 2944 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST: 2945 * Array of nested 2946 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* 2947 * attributes. Array size = 2948 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS 2949 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID: 2950 * An array of 33 x Unsigned 8-bit value; NULL terminated SSID 2951 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD: 2952 * Signed 8-bit value; threshold for considering this SSID as found, 2953 * required granularity for this threshold is 4dBm to 8dBm 2954 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS: 2955 * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX 2956 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT: 2957 * Unsigned 8-bit value; auth bit field for matching WPA IE 2958 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE 2959 * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type 2960 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST 2961 * Nested attribute to send the channel list 2962 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL 2963 * Unsigned 32-bit value; indicates the Interval between PNO scan 2964 * cycles in msec 2965 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI 2966 * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered 2967 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI 2968 * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered 2969 * This attribute is obsolete now. 2970 *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX 2971 * Signed 32-bit value; the maximum score that a network 2972 * can have before bonuses 2973 *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS 2974 * Signed 32-bit value; only report when there is a network's 2975 * score this much higher han the current connection 2976 *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS 2977 * Signed 32-bit value; score bonus for all networks with 2978 * the same network flag 2979 *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS 2980 * Signed 32-bit value; score bonus for networks that are not open 2981 *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS 2982 * Signed 32-bit value; 5GHz RSSI score bonus applied to all 2983 * 5GHz networks 2984 *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID 2985 * Unsigned 32-bit value, representing the PNO Request ID 2986 * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last 2987 * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max 2988 */ 2989 enum qca_wlan_vendor_attr_pno_config_params { 2990 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, 2991 2992 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, 2993 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, 2994 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, 2995 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, 2996 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, 2997 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, 2998 2999 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, 3000 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, 3001 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, 3002 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10, 3003 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, 3004 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, 3005 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, 3006 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, 3007 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, 3008 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, 3009 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, 3010 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, 3011 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, 3012 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, 3013 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, 3014 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, 3015 3016 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, 3017 /* keep last */ 3018 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, 3019 QCA_WLAN_VENDOR_ATTR_PNO_MAX = 3020 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, 3021 }; 3022 3023 /** 3024 * enum qca_scan_freq_list_type: Frequency list types 3025 * 3026 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list 3027 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 3028 * a preferred frequency list for roaming. 3029 * 3030 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list 3031 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 3032 * a specific frequency list for roaming. 3033 */ 3034 enum qca_scan_freq_list_type { 3035 QCA_PREFERRED_SCAN_FREQ_LIST = 1, 3036 QCA_SPECIFIC_SCAN_FREQ_LIST = 2, 3037 }; 3038 3039 /** 3040 * enum qca_roam_scan_scheme: scan scheme 3041 * 3042 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan. 3043 * Indicates the driver to not scan on a Roam Trigger scenario, but 3044 * Disconnect.e.g., On a BTM request from the AP driver/firmware shall 3045 * disconnect from the current connected AP by notifying a failure 3046 * code in the BTM response. 3047 * 3048 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to 3049 * trigger partial frequency scans. These frequencies are the ones learnt 3050 * or maintained by the driver based on the probability of finding the 3051 * BSSID's in the ESS for which the roaming is triggered. 3052 * 3053 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to 3054 * trigger the scan on all the valid frequencies to find the better 3055 * candidates to roam. 3056 */ 3057 enum qca_roam_scan_scheme { 3058 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0, 3059 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1, 3060 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2, 3061 }; 3062 3063 /** 3064 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme 3065 * 3066 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values. 3067 * List of frequencies in MHz to be considered for a roam scan. 3068 * 3069 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value. 3070 * Type of frequency list scheme being configured/gotten as defined by the 3071 * enum qca_scan_freq_list_type. 3072 */ 3073 enum qca_vendor_attr_scan_freq_list_scheme { 3074 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1, 3075 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2, 3076 3077 /* keep last */ 3078 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST, 3079 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX = 3080 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1, 3081 }; 3082 3083 /* 3084 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers 3085 * 3086 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on 3087 * a bad packet error rates (PER). 3088 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered 3089 * based on beacon misses from the connected AP. 3090 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered 3091 * due to poor RSSI of the connected AP. 3092 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered 3093 * upon finding a BSSID with a better RSSI than the connected BSSID. 3094 * Here the RSSI of the current BSSID need not be poor. 3095 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered 3096 * by triggering a periodic scan to find a better AP to roam. 3097 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered 3098 * when the connected channel environment is too noisy/congested. 3099 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered 3100 * when BTM Request frame is received from the connected AP. 3101 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered 3102 * when the channel utilization is goes above the configured threshold. 3103 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered 3104 * based on the request from the user (space). 3105 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when 3106 * device receives Deauthentication/Disassociation frame from connected 3107 * AP. 3108 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the 3109 * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI 3110 * is determined to be a poor one. 3111 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered 3112 * based on continuous TX Data Frame failures to the connected AP. 3113 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered 3114 * based on the scan results obtained from an external scan (not 3115 * triggered to aim roaming) 3116 * 3117 * Set the corresponding roam trigger reason bit to consider it for roam 3118 * trigger. 3119 * Userspace can set multiple bits and send to the driver. The driver shall 3120 * consider all of them to trigger/initiate a roam scan. 3121 */ 3122 enum qca_vendor_roam_triggers { 3123 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0, 3124 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1, 3125 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2, 3126 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3, 3127 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4, 3128 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5, 3129 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6, 3130 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7, 3131 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8, 3132 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9, 3133 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10, 3134 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11, 3135 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12, 3136 }; 3137 3138 /* 3139 * enum qca_vendor_roam_fail_reasons: Defines the various roam 3140 * fail reasons. This enum value is used in 3141 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute. 3142 * 3143 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not 3144 * able to trigger the scan. 3145 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan. 3146 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam 3147 * scan. 3148 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host. 3149 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame. 3150 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error 3151 * status code. 3152 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received. 3153 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request 3154 * frame. 3155 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame 3156 * with error status code. 3157 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not 3158 * received. 3159 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan. 3160 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication 3161 * frame. 3162 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped 3163 * internally before transmission. 3164 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation 3165 * Request frame. 3166 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is 3167 * dropped internally. 3168 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and 3169 * times out. 3170 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame. 3171 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped 3172 * internally. 3173 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key 3174 * M2 frame. 3175 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received. 3176 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame. 3177 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped 3178 * internally. 3179 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4 3180 * frame. 3181 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not 3182 * started for final beacon miss case. 3183 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame 3184 * received from the AP during roaming handoff. 3185 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps 3186 * or host is suspended and gives the indication of the last roamed AP only 3187 * when the Apps is resumed. If the Apps is resumed while the roaming is in 3188 * progress, this ongoing roaming is aborted and the last roamed AP is 3189 * indicated to host. 3190 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID. 3191 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times 3192 * out. 3193 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails. 3194 */ 3195 enum qca_vendor_roam_fail_reasons { 3196 QCA_ROAM_FAIL_REASON_NONE = 0, 3197 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1, 3198 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2, 3199 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3, 3200 QCA_ROAM_FAIL_REASON_HOST = 4, 3201 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5, 3202 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6, 3203 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7, 3204 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8, 3205 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9, 3206 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10, 3207 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11, 3208 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12, 3209 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13, 3210 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14, 3211 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15, 3212 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16, 3213 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17, 3214 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18, 3215 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19, 3216 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20, 3217 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21, 3218 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22, 3219 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23, 3220 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24, 3221 QCA_ROAM_FAIL_REASON_DISCONNECT = 25, 3222 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26, 3223 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27, 3224 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28, 3225 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29, 3226 }; 3227 3228 /* 3229 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam 3230 * invoke fail reasons. This enum value is used in 3231 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute. 3232 * 3233 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed 3234 * in roam invoke command. 3235 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not 3236 * enabled. 3237 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID 3238 * length is invalid. 3239 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already 3240 * in progress. 3241 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response 3242 * of the AP in the roam invoke command to firmware. This reason is sent by the 3243 * firmware when the given AP is configured to be ignored or SSID/security 3244 * does not match. 3245 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of 3246 * firmware internal reasons. 3247 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled. 3248 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke. 3249 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail. 3250 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid. 3251 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to. 3252 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed. 3253 */ 3254 enum qca_vendor_roam_invoke_fail_reasons { 3255 QCA_ROAM_INVOKE_STATUS_NONE = 0, 3256 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1, 3257 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2, 3258 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3, 3259 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4, 3260 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5, 3261 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6, 3262 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7, 3263 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8, 3264 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9, 3265 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10, 3266 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11, 3267 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12, 3268 3269 }; 3270 3271 /** 3272 * enum qca_vendor_attr_roam_candidate_selection_criteria: 3273 * 3274 * Each attribute carries a weightage in percentage (%). 3275 * 3276 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value. 3277 * Represents the weightage to be given for the RSSI selection 3278 * criteria among other parameters. 3279 * 3280 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value. 3281 * Represents the weightage to be given for the rate selection 3282 * criteria among other parameters. 3283 * 3284 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value. 3285 * Represents the weightage to be given for the band width selection 3286 * criteria among other parameters. 3287 * 3288 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value. 3289 * Represents the weightage to be given for the band selection 3290 * criteria among other parameters. 3291 * 3292 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value. 3293 * Represents the weightage to be given for the NSS selection 3294 * criteria among other parameters. 3295 * 3296 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value. 3297 * Represents the weightage to be given for the channel congestion 3298 * selection criteria among other parameters. 3299 * 3300 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value. 3301 * Represents the weightage to be given for the beamforming selection 3302 * criteria among other parameters. 3303 * 3304 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value. 3305 * Represents the weightage to be given for the OCE selection 3306 * criteria among other parameters. 3307 */ 3308 enum qca_vendor_attr_roam_candidate_selection_criteria { 3309 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1, 3310 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2, 3311 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3, 3312 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4, 3313 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5, 3314 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6, 3315 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7, 3316 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8, 3317 3318 /* keep last */ 3319 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST, 3320 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX = 3321 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1, 3322 }; 3323 3324 /** 3325 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration 3326 * The following attributes are used to set/get/clear the respective 3327 * configurations to/from the driver. 3328 * For the get, the attribute for the configuration to be queried shall 3329 * carry any of its acceptable values to the driver. In return, the driver 3330 * shall send the configured values within the same attribute to the user 3331 * space. 3332 * 3333 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value. 3334 * Signifies to enable/disable roam control in driver. 3335 * 1-enable, 0-disable 3336 * Enable: Mandates the driver to do the further roams using the 3337 * configuration parameters set through 3338 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. 3339 * Disable: Disables the driver/firmware roaming triggered through 3340 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is 3341 * expected to continue with the default configurations. 3342 * 3343 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value. 3344 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET. 3345 * Roam control status is obtained through this attribute. 3346 * 3347 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the 3348 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET 3349 * is to be cleared in the driver. 3350 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR 3351 * and shall be ignored if used with other sub commands. 3352 * If this attribute is specified along with subcmd 3353 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore 3354 * all other attributes, if there are any. 3355 * If this attribute is not specified when the subcmd 3356 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall 3357 * clear the data corresponding to the attributes specified. 3358 * 3359 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the 3360 * list of frequencies and its type, represented by 3361 * enum qca_vendor_attr_scan_freq_list_scheme. 3362 * Frequency list and its type are mandatory for this attribute to set 3363 * the frequencies. 3364 * Frequency type is mandatory for this attribute to get the frequencies 3365 * and the frequency list is obtained through 3366 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST. 3367 * Frequency list type is mandatory for this attribute to clear the 3368 * frequencies. 3369 * 3370 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value. 3371 * Carries the value of scan period in seconds to set. 3372 * The value of scan period is obtained with the same attribute for get. 3373 * Clears the scan period in the driver when specified with clear command. 3374 * Scan period is the idle time in seconds between each subsequent 3375 * channel scans. 3376 * 3377 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value. 3378 * Carries the value of full scan period in seconds to set. 3379 * The value of full scan period is obtained with the same attribute for 3380 * get. 3381 * Clears the full scan period in the driver when specified with clear 3382 * command. Full scan period is the idle period in seconds between two 3383 * successive full channel roam scans. 3384 * 3385 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value. 3386 * Carries a bitmap of the roam triggers specified in 3387 * enum qca_vendor_roam_triggers. 3388 * The driver shall enable roaming by enabling corresponding roam triggers 3389 * based on the trigger bits sent with this attribute. 3390 * If this attribute is not configured, the driver shall proceed with 3391 * default behavior. 3392 * The bitmap configured is obtained with the same attribute for get. 3393 * Clears the bitmap configured in driver when specified with clear 3394 * command. 3395 * 3396 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the 3397 * weightage in percentage (%) to be given for each selection criteria. 3398 * Different roam candidate selection criteria are represented by 3399 * enum qca_vendor_attr_roam_candidate_selection_criteria. 3400 * The driver shall select the roam candidate based on corresponding 3401 * candidate selection scores sent. 3402 * 3403 * An empty nested attribute is used to indicate that no specific 3404 * preference score/criteria is configured (i.e., to disable this mechanism 3405 * in the set case and to show that the mechanism is disabled in the get 3406 * case). 3407 * 3408 * Userspace can send multiple attributes out of this enum to the driver. 3409 * Since this attribute represents the weight/percentage of preference for 3410 * the respective selection criteria, it is preferred to configure 100% 3411 * total weightage. The value in each attribute or cumulative weight of the 3412 * values in all the nested attributes should not exceed 100%. The driver 3413 * shall reject such configuration. 3414 * 3415 * If the weights configured through this attribute are less than 100%, 3416 * the driver shall honor the weights (x%) passed for the corresponding 3417 * selection criteria and choose/distribute rest of the weight (100-x)% 3418 * for the other selection criteria, based on its internal logic. 3419 * 3420 * The selection criteria configured is obtained with the same 3421 * attribute for get. 3422 * 3423 * Clears the selection criteria configured in the driver when specified 3424 * with clear command. 3425 * 3426 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value. 3427 * Represents value of scan frequency scheme from 3428 * enum qca_roam_scan_scheme. 3429 * 3430 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm, 3431 * signifying the RSSI threshold of the current connected AP, indicating 3432 * the driver to trigger roam only when the current connected AP's RSSI 3433 * is lesser than this threshold. 3434 * 3435 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm, 3436 * signifying the RSSI threshold of the candidate AP, indicating 3437 * the driver to trigger roam only to the candidate AP with RSSI 3438 * better than this threshold. If RSSI thresholds for candidate APs found 3439 * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using 3440 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ, 3441 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or 3442 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values 3443 * will take precedence over the value configured using 3444 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute. 3445 * 3446 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the 3447 * user triggered reason code to be sent to the AP in response to AP's 3448 * request to trigger the roam if the roaming cannot be triggered. 3449 * Applies to all the scenarios of AP assisted roaming (e.g., BTM). 3450 * 3451 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value. 3452 * Carries a bitmap of the roam triggers specified in 3453 * enum qca_vendor_roam_triggers. 3454 * Represents the roam triggers for which the specific scan scheme from 3455 * enum qca_roam_scan_scheme has to be applied. 3456 * It's an optional attribute. If this attribute is not configured, but 3457 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme 3458 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for 3459 * all the roams. 3460 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and 3461 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the 3462 * driver shall proceed with the default behavior. 3463 * 3464 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value 3465 * in dBm, signifying the RSSI threshold of the candidate AP found in 3466 * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate 3467 * AP found in 2.4GHz band only if it's RSSI value is better than this 3468 * threshold. Optional attribute. If this attribute is not included, then 3469 * threshold value specified by the 3470 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3471 * 3472 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in 3473 * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz 3474 * band. The driver/firmware shall trigger roaming to the candidate AP 3475 * found in 5GHz band only if it's RSSI value is better than this 3476 * threshold. Optional attribute. If this attribute is not included, then 3477 * threshold value specified by the 3478 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3479 * 3480 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in 3481 * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz 3482 * band. The driver/firmware shall trigger roaming to the candidate AP 3483 * found in 6GHz band only if it's RSSI value is better than this 3484 * threshold. Optional attribute. If this attribute is not included, then 3485 * threshold value specified by the 3486 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3487 * 3488 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value. 3489 * Carries bitmask value of bits from &enum qca_set_band and represents 3490 * all the bands in which roaming is allowed. The configuration is valid 3491 * until next disconnection. If this attribute is not present, the 3492 * existing configuration shall be used. By default, roaming is allowed 3493 * on all bands supported by local device. When the value is set to 3494 * %QCA_SETBAND_AUTO, all supported bands shall be enabled. 3495 * 3496 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps. 3497 * Optional parameter. RX link speed threshold to disable roaming. 3498 * If the current RX link speed is above the threshold, roaming is not 3499 * needed. If this attribute is not configured, or if it is set to 0, the 3500 * driver will not consider the RX link speed in the roaming decision. 3501 */ 3502 enum qca_vendor_attr_roam_control { 3503 QCA_ATTR_ROAM_CONTROL_ENABLE = 1, 3504 QCA_ATTR_ROAM_CONTROL_STATUS = 2, 3505 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3, 3506 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4, 3507 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5, 3508 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6, 3509 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7, 3510 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8, 3511 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9, 3512 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10, 3513 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11, 3514 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12, 3515 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13, 3516 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14, 3517 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15, 3518 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16, 3519 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, 3520 QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24, 3521 3522 /* keep last */ 3523 QCA_ATTR_ROAM_CONTROL_AFTER_LAST, 3524 QCA_ATTR_ROAM_CONTROL_MAX = 3525 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1, 3526 }; 3527 3528 /** 3529 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by 3530 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. 3531 * 3532 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. 3533 * Represents the different roam sub commands referred by 3534 * enum qca_wlan_vendor_roaming_subcmd. 3535 * 3536 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. 3537 * Represents the Request ID for the specific set of commands. 3538 * This also helps to map specific set of commands to the respective 3539 * ID / client. e.g., helps to identify the user entity configuring the 3540 * Blacklist BSSID and accordingly clear the respective ones with the 3541 * matching ID. 3542 * 3543 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned 3544 * 32-bit value.Represents the number of whitelist SSIDs configured. 3545 * 3546 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute 3547 * to carry the list of Whitelist SSIDs. 3548 * 3549 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute, 3550 * 0..32 octets). Represents the white list SSID. Whitelist SSIDs 3551 * represent the list of SSIDs to which the firmware/driver can consider 3552 * to roam to. 3553 * 3554 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when 3555 * comparing with a 2.4GHz BSSID. They are not applied when comparing two 3556 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - 3557 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS. 3558 * 3559 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit 3560 * value, RSSI threshold above which 5GHz RSSI is favored. 3561 * 3562 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit 3563 * value, RSSI threshold below which 5GHz RSSI is penalized. 3564 * 3565 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit 3566 * value, factor by which 5GHz RSSI is boosted. 3567 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor 3568 * 3569 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit 3570 * value, factor by which 5GHz RSSI is penalized. 3571 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor 3572 * 3573 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit 3574 * value, maximum boost that can be applied to a 5GHz RSSI. 3575 * 3576 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit 3577 * value, boost applied to current BSSID to ensure the currently 3578 * associated BSSID is favored so as to prevent ping-pong situations. 3579 * 3580 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit 3581 * value, RSSI below which "Alert" roam is enabled. 3582 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID 3583 * because the RSSI is low, or because many successive beacons have been 3584 * lost or other bad link conditions. 3585 * 3586 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit 3587 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where 3588 * firmware is hunting for a better BSSID or white listed SSID even though 3589 * the RSSI of the link is good. The parameters enabling the roaming are 3590 * configured through the PARAM_A_BAND_XX attrbutes. 3591 * 3592 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute, 3593 * represents the BSSIDs preferred over others while evaluating them 3594 * for the roaming. 3595 * 3596 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned 3597 * 32-bit value. Represents the number of preferred BSSIDs set. 3598 * 3599 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC 3600 * address representing the BSSID to be preferred. 3601 * 3602 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed 3603 * 32-bit value, representing the modifier to be applied to the RSSI of 3604 * the BSSID for the purpose of comparing it with other roam candidate. 3605 * 3606 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute, 3607 * represents the BSSIDs to get blacklisted for roaming. 3608 * 3609 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned 3610 * 32-bit value, represents the number of blacklisted BSSIDs. 3611 * 3612 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC 3613 * address representing the Blacklisted BSSID. 3614 * 3615 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute, 3616 * indicates this BSSID blacklist as a hint to the driver. The driver can 3617 * select this BSSID in the worst case (when no other BSSIDs are better). 3618 * 3619 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to 3620 * set/get/clear the roam control config as 3621 * defined @enum qca_vendor_attr_roam_control. 3622 * 3623 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last 3624 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max 3625 */ 3626 enum qca_wlan_vendor_attr_roaming_config_params { 3627 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, 3628 3629 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, 3630 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, 3631 3632 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3, 3633 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4, 3634 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5, 3635 3636 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, 3637 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, 3638 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, 3639 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, 3640 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, 3641 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, 3642 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, 3643 3644 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, 3645 3646 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, 3647 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, 3648 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, 3649 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, 3650 3651 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, 3652 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, 3653 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, 3654 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21, 3655 3656 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22, 3657 3658 /* keep last */ 3659 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, 3660 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = 3661 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, 3662 }; 3663 3664 /** 3665 * enum qca_wlan_vendor_roaming_subcmd: Referred by 3666 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. 3667 * 3668 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to 3669 * configure the white list SSIDs. These are configured through 3670 * the following attributes. 3671 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS, 3672 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST, 3673 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID 3674 * 3675 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to 3676 * configure the Roam params. These parameters are evaluated on the extscan 3677 * results. Refers the attributes PARAM_A_BAND_XX above to configure the 3678 * params. 3679 * 3680 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses 3681 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE 3682 * to enable/disable Lazy roam. 3683 * 3684 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID 3685 * preference. Contains the attribute 3686 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID 3687 * preference. 3688 * 3689 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params 3690 * 3691 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist 3692 * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to 3693 * set the same. 3694 * 3695 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the 3696 * roam control config to the driver with the attribute 3697 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 3698 * 3699 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the 3700 * roam control config from driver with the attribute 3701 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 3702 * For the get, the attribute for the configuration to be queried shall 3703 * carry any of its acceptable value to the driver. In return, the driver 3704 * shall send the configured values within the same attribute to the user 3705 * space. 3706 * 3707 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the 3708 * roam control config in the driver with the attribute 3709 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 3710 * The driver shall continue with its default roaming behavior when data 3711 * corresponding to an attribute is cleared. 3712 */ 3713 enum qca_wlan_vendor_roaming_subcmd { 3714 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1, 3715 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2, 3716 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, 3717 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, 3718 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, 3719 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6, 3720 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7, 3721 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8, 3722 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9, 3723 }; 3724 3725 /** 3726 * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information 3727 * 3728 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value 3729 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version 3730 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version 3731 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index 3732 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last 3733 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max 3734 */ 3735 enum qca_wlan_vendor_attr_get_wifi_info { 3736 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, 3737 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, 3738 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, 3739 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3, 3740 3741 /* KEEP LAST */ 3742 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, 3743 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = 3744 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, 3745 }; 3746 3747 enum qca_wlan_vendor_attr_logger_results { 3748 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, 3749 3750 /* 3751 * Unsigned 32-bit value; must match the request Id supplied by 3752 * Wi-Fi HAL in the corresponding subcmd NL msg. 3753 */ 3754 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, 3755 3756 /* 3757 * Unsigned 32-bit value; used to indicate the size of memory 3758 * dump to be allocated. 3759 */ 3760 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, 3761 3762 /* keep last */ 3763 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, 3764 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = 3765 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, 3766 }; 3767 3768 /** 3769 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. 3770 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. 3771 */ 3772 enum qca_wlan_vendor_channel_prop_flags { 3773 /* Bits 0, 1, 2, and 3 are reserved */ 3774 3775 /* Turbo channel */ 3776 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, 3777 /* CCK channel */ 3778 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, 3779 /* OFDM channel */ 3780 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, 3781 /* 2.4 GHz spectrum channel. */ 3782 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, 3783 /* 5 GHz spectrum channel */ 3784 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, 3785 /* Only passive scan allowed */ 3786 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, 3787 /* Dynamic CCK-OFDM channel */ 3788 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, 3789 /* GFSK channel (FHSS PHY) */ 3790 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, 3791 /* Radar found on channel */ 3792 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, 3793 /* 11a static turbo channel only */ 3794 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, 3795 /* Half rate channel */ 3796 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, 3797 /* Quarter rate channel */ 3798 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, 3799 /* HT 20 channel */ 3800 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, 3801 /* HT 40 with extension channel above */ 3802 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, 3803 /* HT 40 with extension channel below */ 3804 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, 3805 /* HT 40 intolerant */ 3806 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, 3807 /* VHT 20 channel */ 3808 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, 3809 /* VHT 40 with extension channel above */ 3810 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, 3811 /* VHT 40 with extension channel below */ 3812 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, 3813 /* VHT 80 channel */ 3814 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, 3815 /* HT 40 intolerant mark bit for ACS use */ 3816 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, 3817 /* Channel temporarily blocked due to noise */ 3818 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, 3819 /* VHT 160 channel */ 3820 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, 3821 /* VHT 80+80 channel */ 3822 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, 3823 /* HE 20 channel */ 3824 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, 3825 /* HE 40 with extension channel above */ 3826 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, 3827 /* HE 40 with extension channel below */ 3828 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, 3829 /* HE 40 intolerant */ 3830 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31, 3831 }; 3832 3833 /** 3834 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a 3835 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is 3836 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. 3837 */ 3838 enum qca_wlan_vendor_channel_prop_flags_2 { 3839 /* HE 40 intolerant mark bit for ACS use */ 3840 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, 3841 /* HE 80 channel */ 3842 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, 3843 /* HE 160 channel */ 3844 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, 3845 /* HE 80+80 channel */ 3846 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, 3847 }; 3848 3849 /** 3850 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for 3851 * each channel. This is used by 3852 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. 3853 */ 3854 enum qca_wlan_vendor_channel_prop_flags_ext { 3855 /* Radar found on channel */ 3856 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, 3857 /* DFS required on channel */ 3858 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, 3859 /* DFS required on channel for 2nd band of 80+80 */ 3860 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, 3861 /* If channel has been checked for DFS */ 3862 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, 3863 /* Excluded in 802.11d */ 3864 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, 3865 /* Channel Switch Announcement received on this channel */ 3866 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, 3867 /* Ad-hoc is not allowed */ 3868 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, 3869 /* Station only channel */ 3870 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, 3871 /* DFS radar history for slave device (STA mode) */ 3872 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, 3873 /* DFS CAC valid for slave device (STA mode) */ 3874 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, 3875 }; 3876 3877 /** 3878 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd 3879 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite 3880 * information to start/stop the NUD statistics collection. 3881 */ 3882 enum qca_attr_nud_stats_set { 3883 QCA_ATTR_NUD_STATS_SET_INVALID = 0, 3884 3885 /* 3886 * Flag to start/stop the NUD statistics collection. 3887 * Start - If included, Stop - If not included 3888 */ 3889 QCA_ATTR_NUD_STATS_SET_START = 1, 3890 /* IPv4 address of the default gateway (in network byte order) */ 3891 QCA_ATTR_NUD_STATS_GW_IPV4 = 2, 3892 /* 3893 * Represents the data packet type to be monitored. 3894 * Host driver tracks the stats corresponding to each data frame 3895 * represented by these flags. 3896 * These data packets are represented by 3897 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info. 3898 */ 3899 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, 3900 /* keep last */ 3901 QCA_ATTR_NUD_STATS_SET_LAST, 3902 QCA_ATTR_NUD_STATS_SET_MAX = 3903 QCA_ATTR_NUD_STATS_SET_LAST - 1, 3904 }; 3905 3906 /** 3907 * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd 3908 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 3909 * information to start / stop the NUD stats collection. 3910 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats 3911 * Bitmap to Flag to Start / Stop the NUD stats collection 3912 * Start - If included , Stop - If not included 3913 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address 3914 * IPv4 address of Default Gateway (in network byte order) 3915 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 3916 * information to start / stop the NUD stats collection. 3917 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats 3918 * Flag to Start / Stop the NUD stats collection 3919 * Start - If included , Stop - If not included 3920 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address 3921 * IPv4 address of Default Gateway (in network byte order) 3922 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 3923 * information to start / stop the NUD stats collection. 3924 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats 3925 * Flag to Start / Stop the NUD stats collection 3926 * Start - If included , Stop - If not included 3927 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address 3928 * IPv4 address of Default Gateway (in network byte order) 3929 */ 3930 enum qca_attr_connectivity_check_stats_set { 3931 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0, 3932 QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1, 3933 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2, 3934 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3, 3935 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4, 3936 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5, 3937 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6, 3938 /* keep last */ 3939 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST, 3940 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX = 3941 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1, 3942 }; 3943 3944 /** 3945 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various 3946 * data types for which the stats have to get collected. 3947 */ 3948 enum qca_wlan_vendor_connectivity_check_pkt_flags { 3949 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0, 3950 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1, 3951 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2, 3952 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3, 3953 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4, 3954 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get 3955 * to represent the stats of respective data type. 3956 */ 3957 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5, 3958 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6, 3959 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7, 3960 }; 3961 3962 enum qca_attr_connectivity_check_stats { 3963 QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0, 3964 /* Data packet type for which the stats are collected. 3965 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags 3966 */ 3967 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1, 3968 /* ID corresponding to the DNS frame for which the respective DNS stats 3969 * are monitored (u32). 3970 */ 3971 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2, 3972 /* source / destination port on which the respective proto stats are 3973 * collected (u32). 3974 */ 3975 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3, 3976 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4, 3977 /* IPv4/IPv6 address for which the destined data packets are 3978 * monitored. (in network byte order) 3979 */ 3980 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5, 3981 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6, 3982 /* Data packet Request count received from netdev */ 3983 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, 3984 /* Data packet Request count sent to lower MAC from upper MAC */ 3985 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, 3986 /* Data packet Request count received by lower MAC from upper MAC */ 3987 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, 3988 /* Data packet Request count successfully transmitted by the device */ 3989 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, 3990 /* Data packet Response count received by lower MAC */ 3991 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, 3992 /* Data packet Response count received by upper MAC */ 3993 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, 3994 /* Data packet Response count delivered to netdev */ 3995 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, 3996 /* Data Packet Response count that are dropped out of order */ 3997 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, 3998 3999 /* keep last */ 4000 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST, 4001 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX = 4002 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1, 4003 }; 4004 4005 /** 4006 * qca_attr_nud_stats_get: Attributes to vendor subcmd 4007 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite 4008 * NUD statistics collected when queried. 4009 */ 4010 enum qca_attr_nud_stats_get { 4011 QCA_ATTR_NUD_STATS_GET_INVALID = 0, 4012 /* ARP Request count from netdev */ 4013 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, 4014 /* ARP Request count sent to lower MAC from upper MAC */ 4015 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, 4016 /* ARP Request count received by lower MAC from upper MAC */ 4017 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, 4018 /* ARP Request count successfully transmitted by the device */ 4019 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, 4020 /* ARP Response count received by lower MAC */ 4021 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, 4022 /* ARP Response count received by upper MAC */ 4023 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, 4024 /* ARP Response count delivered to netdev */ 4025 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, 4026 /* ARP Response count delivered to netdev */ 4027 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, 4028 /* 4029 * Flag indicating if the station's link to the AP is active. 4030 * Active Link - If included, Inactive link - If not included 4031 */ 4032 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, 4033 /* 4034 * Flag indicating if there is any duplicate address detected (DAD). 4035 * Yes - If detected, No - If not detected. 4036 */ 4037 QCA_ATTR_NUD_STATS_IS_DAD = 10, 4038 /* 4039 * List of Data types for which the stats are requested. 4040 * This list does not carry ARP stats as they are done by the 4041 * above attributes. Represented by enum qca_attr_nud_data_stats. 4042 */ 4043 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, 4044 /* keep last */ 4045 QCA_ATTR_NUD_STATS_GET_LAST, 4046 QCA_ATTR_NUD_STATS_GET_MAX = 4047 QCA_ATTR_NUD_STATS_GET_LAST - 1, 4048 }; 4049 4050 enum qca_wlan_btm_candidate_status { 4051 QCA_STATUS_ACCEPT = 0, 4052 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, 4053 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, 4054 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, 4055 QCA_STATUS_REJECT_LOW_RSSI = 4, 4056 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, 4057 QCA_STATUS_REJECT_UNKNOWN = 6, 4058 }; 4059 4060 enum qca_wlan_vendor_attr_btm_candidate_info { 4061 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, 4062 4063 /* 6-byte MAC address representing the BSSID of transition candidate */ 4064 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, 4065 /* 4066 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status 4067 * returned by the driver. It says whether the BSSID provided in 4068 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by 4069 * the driver, if not it specifies the reason for rejection. 4070 * Note that the user-space can overwrite the transition reject reason 4071 * codes provided by driver based on more information. 4072 */ 4073 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, 4074 4075 /* keep last */ 4076 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, 4077 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = 4078 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, 4079 }; 4080 4081 enum qca_attr_trace_level { 4082 QCA_ATTR_TRACE_LEVEL_INVALID = 0, 4083 /* 4084 * Nested array of the following attributes: 4085 * QCA_ATTR_TRACE_LEVEL_MODULE, 4086 * QCA_ATTR_TRACE_LEVEL_MASK. 4087 */ 4088 QCA_ATTR_TRACE_LEVEL_PARAM = 1, 4089 /* 4090 * Specific QCA host driver module. Please refer to the QCA host 4091 * driver implementation to get the specific module ID. 4092 */ 4093 QCA_ATTR_TRACE_LEVEL_MODULE = 2, 4094 /* Different trace level masks represented in the QCA host driver. */ 4095 QCA_ATTR_TRACE_LEVEL_MASK = 3, 4096 4097 /* keep last */ 4098 QCA_ATTR_TRACE_LEVEL_AFTER_LAST, 4099 QCA_ATTR_TRACE_LEVEL_MAX = 4100 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, 4101 }; 4102 4103 /** 4104 * enum qca_wlan_vendor_attr_get_logger_features - value for logger 4105 * supported features 4106 * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid 4107 * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features 4108 * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum 4109 * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type 4110 * 4111 * enum values are used for NL attributes for data used by 4112 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command. 4113 */ 4114 enum qca_wlan_vendor_attr_get_logger_features { 4115 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, 4116 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, 4117 4118 /* keep last */ 4119 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, 4120 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = 4121 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, 4122 }; 4123 4124 /** 4125 * enum qca_wlan_vendor_attr_link_properties - link properties 4126 * 4127 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value 4128 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to 4129 * specify the number of spatial streams negotiated 4130 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value 4131 * to specify negotiated rate flags i.e. ht, vht and channel width 4132 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to 4133 * specify the operating frequency 4134 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer 4135 * (STA / AP ) for the connected link. 4136 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a 4137 * &struct nl80211_sta_flag_update for the respective connected link. MAC 4138 * address of the peer represented by 4139 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. 4140 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last 4141 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value 4142 */ 4143 enum qca_wlan_vendor_attr_link_properties { 4144 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, 4145 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1, 4146 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2, 4147 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3, 4148 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, 4149 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, 4150 4151 /* KEEP LAST */ 4152 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, 4153 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX = 4154 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, 4155 }; 4156 4157 /** 4158 * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support 4159 * 4160 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid 4161 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload 4162 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum 4163 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type 4164 * 4165 * enum values are used for NL attributes for data used by 4166 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command. 4167 */ 4168 enum qca_wlan_vendor_attr_nd_offload { 4169 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, 4170 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, 4171 4172 /* Keep last */ 4173 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, 4174 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = 4175 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, 4176 }; 4177 4178 /** 4179 * enum qca_wlan_vendor_features - Vendor device/driver feature flags 4180 * 4181 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key 4182 * management offload, a mechanism where the station's firmware 4183 * does the exchange with the AP to establish the temporal keys 4184 * after roaming, rather than having the user space wpa_supplicant do it. 4185 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic 4186 * band selection based on channel selection results. 4187 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports 4188 * simultaneous off-channel operations. 4189 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P 4190 * Listen offload; a mechanism where the station's firmware takes care of 4191 * responding to incoming Probe Request frames received from other P2P 4192 * Devices whilst in Listen state, rather than having the user space 4193 * wpa_supplicant do it. Information from received P2P requests are 4194 * forwarded from firmware to host whenever the host processor wakes up. 4195 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA 4196 * specific features. 4197 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific 4198 * features. 4199 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON 4200 * specific features only. If a Device sets this bit but not the 4201 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that 4202 * this Device may not support all OCE AP functionalities but can support 4203 * only OCE STA-CFON functionalities. 4204 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self 4205 * managed regulatory. 4206 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time). 4207 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE) 4208 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation 4209 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving 4210 * and applying thermal configuration through 4211 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and 4212 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from 4213 * userspace. 4214 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r. 4215 * With Adaptive 11r feature, access points advertise the vendor 4216 * specific IEs and MDE but do not include FT AKM in the RSNE. 4217 * The Adaptive 11r supported stations are expected to identify 4218 * such vendor specific IEs and connect to the AP in FT mode though 4219 * the profile is configured in non-FT mode. 4220 * The driver-based SME cases also need to have this support for 4221 * Adaptive 11r to handle the connection and roaming scenarios. 4222 * This flag indicates the support for the same to the user space. 4223 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports 4224 * concurrent network sessions on different Wi-Fi Bands. This feature 4225 * capability is attributed to the hardware's capability to support 4226 * the same (e.g., DBS). 4227 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the 4228 * responses for the respective TWT operations are asynchronous (separate) 4229 * event message) from the driver. If not specified, the responses are 4230 * synchronous (in vendor command reply) to the request. Each TWT 4231 * operation is specifically mentioned (against its respective) 4232 * documentation) to support either of these or both modes. 4233 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates 4234 * that the driver requires add/del virtual interface path using the 4235 * generic nl80211 commands for NDP interface create/delete and to 4236 * register/unregister the netdev instead of creating/deleting the NDP 4237 * interface using the vendor commands 4238 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and 4239 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel 4240 * (5.12 version onward), interface creation/deletion is not allowed using 4241 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK 4242 * during the register/unregister of netdev. Create and delete NDP 4243 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE 4244 * commands respectively if the driver advertises this capability set. 4245 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in 4246 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is 4247 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored. 4248 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP 4249 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then 4250 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored. 4251 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in 4252 * station mode supports secure RTT measurement exchange. If 4253 * NL80211_EXT_FEATURE_SECURE_RTT is set, 4254 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored. 4255 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP 4256 * mode supports secure RTT measurement exchange. If 4257 * NL80211_EXT_FEATURE_SECURE_RTT is set, 4258 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored. 4259 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that 4260 * the device in station mode supports protection of range negotiation and 4261 * measurement management frames. If 4262 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 4263 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored. 4264 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that 4265 * the device in AP mode supports protection of range negotiation and 4266 * measurement management frames. If 4267 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 4268 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored. 4269 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits 4270 */ 4271 enum qca_wlan_vendor_features { 4272 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, 4273 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, 4274 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, 4275 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, 4276 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, 4277 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, 4278 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, 4279 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, 4280 QCA_WLAN_VENDOR_FEATURE_TWT = 8, 4281 QCA_WLAN_VENDOR_FEATURE_11AX = 9, 4282 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10, 4283 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11, 4284 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12, 4285 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13, 4286 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14, 4287 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15, 4288 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16, 4289 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17, 4290 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18, 4291 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19, 4292 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20, 4293 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21, 4294 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ 4295 }; 4296 4297 /** 4298 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP 4299 * conditional channel switch 4300 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial 4301 * value 4302 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based 4303 * frequency list (an array of u32 values in host byte order) 4304 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the 4305 * conditional switch (u32)- 0: Success, Non-zero: Failure 4306 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last 4307 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max 4308 */ 4309 enum qca_wlan_vendor_attr_sap_conditional_chan_switch { 4310 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, 4311 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, 4312 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, 4313 4314 /* Keep Last */ 4315 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, 4316 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = 4317 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, 4318 }; 4319 4320 /** 4321 * enum wifi_logger_supported_features - values for supported logger features 4322 * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW 4323 * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics 4324 * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events 4325 * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver 4326 * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver 4327 * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health 4328 * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump 4329 * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate 4330 */ 4331 enum wifi_logger_supported_features { 4332 WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)), 4333 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)), 4334 WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)), 4335 WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)), 4336 WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)), 4337 WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)), 4338 WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)), 4339 WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)), 4340 WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8)) 4341 }; 4342 4343 /** 4344 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with 4345 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 4346 * 4347 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8). 4348 * Used with event to notify the primary channel number selected in ACS 4349 * operation. 4350 * Note: If both the driver and user-space application supports the 6 GHz band, 4351 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use 4352 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead. 4353 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 4354 * is still used if either of the driver or user space application doesn't 4355 * support the 6 GHz band. 4356 * 4357 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8). 4358 * Used with event to notify the secondary channel number selected in ACS 4359 * operation. 4360 * Note: If both the driver and user-space application supports the 6 GHz band, 4361 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use 4362 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead. 4363 * To maintain backward compatibility, 4364 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of 4365 * the driver or user space application doesn't support 6 GHz band. 4366 * 4367 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8). 4368 * (a) Used with command to configure hw_mode from 4369 * enum qca_wlan_vendor_acs_hw_mode for ACS operation. 4370 * (b) Also used with event to notify the hw_mode of selected primary channel 4371 * in ACS operation. 4372 * 4373 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute. 4374 * Used with command to configure ACS operation for HT mode. 4375 * Disable (flag attribute not present) - HT disabled and 4376 * Enable (flag attribute present) - HT enabled. 4377 * 4378 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute. 4379 * Used with command to configure ACS operation for HT40 mode. 4380 * Disable (flag attribute not present) - HT40 disabled and 4381 * Enable (flag attribute present) - HT40 enabled. 4382 * 4383 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute. 4384 * Used with command to configure ACS operation for VHT mode. 4385 * Disable (flag attribute not present) - VHT disabled and 4386 * Enable (flag attribute present) - VHT enabled. 4387 * 4388 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and 4389 * mandatory with event. 4390 * If specified in command path, ACS operation is configured with the given 4391 * channel width (in MHz). 4392 * In event path, specifies the channel width of the primary channel selected. 4393 * 4394 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC. 4395 * Used with command to configure channel list using an array of 4396 * channel numbers (u8). 4397 * Note: If both the driver and user-space application supports the 6 GHz band, 4398 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas 4399 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional. 4400 * 4401 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8). 4402 * Used with event to notify the VHT segment 0 center channel number selected in 4403 * ACS operation. 4404 * Note: If both the driver and user-space application supports the 6 GHz band, 4405 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use 4406 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead. 4407 * To maintain backward compatibility, 4408 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of 4409 * the driver or user space application doesn't support the 6 GHz band. 4410 * 4411 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8). 4412 * Used with event to notify the VHT segment 1 center channel number selected in 4413 * ACS operation. 4414 * Note: If both the driver and user-space application supports the 6 GHz band, 4415 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use 4416 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead. 4417 * To maintain backward compatibility, 4418 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of 4419 * the driver or user space application doesn't support the 6 GHz band. 4420 * 4421 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC. 4422 * Used with command to configure the channel list using an array of channel 4423 * center frequencies in MHz (u32). 4424 * Note: If both the driver and user-space application supports the 6 GHz band, 4425 * the driver first parses the frequency list and if it fails to get a frequency 4426 * list, parses the channel list specified using 4427 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in 4428 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST). 4429 * 4430 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32). 4431 * Used with event to notify the primary channel center frequency (MHz) selected 4432 * in ACS operation. 4433 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4434 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL. 4435 * 4436 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32). 4437 * Used with event to notify the secondary channel center frequency (MHz) 4438 * selected in ACS operation. 4439 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4440 * includes this attribute along with 4441 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL. 4442 * 4443 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32). 4444 * Used with event to notify the VHT segment 0 center channel frequency (MHz) 4445 * selected in ACS operation. 4446 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4447 * includes this attribute along with 4448 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL. 4449 * 4450 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32). 4451 * Used with event to notify the VHT segment 1 center channel frequency (MHz) 4452 * selected in ACS operation. 4453 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4454 * includes this attribute along with 4455 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL. 4456 * 4457 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute. 4458 * Used with command to notify the driver of EDMG request for ACS 4459 * operation. 4460 * 4461 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8). 4462 * Used with event to notify the EDMG channel number selected in ACS 4463 * operation. 4464 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 4465 * 4466 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16). 4467 * Used with event to notify the puncture pattern selected in ACS operation. 4468 * Encoding for this attribute will follow the convention used in the Disabled 4469 * Subchannel Bitmap field of the EHT Operation IE. 4470 * 4471 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute. 4472 * Used with command to configure ACS operation for EHT mode. 4473 * Disable (flag attribute not present) - EHT disabled and 4474 * Enable (flag attribute present) - EHT enabled. 4475 * 4476 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32). 4477 * Used with command to configure how older scan can be considered for ACS 4478 * scoring. In case scan was performed on partial set of channels configured 4479 * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME 4480 * (in ms), then scan only remaining channels. 4481 */ 4482 enum qca_wlan_vendor_attr_acs_offload { 4483 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, 4484 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1, 4485 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2, 4486 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3, 4487 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4, 4488 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5, 4489 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6, 4490 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7, 4491 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8, 4492 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9, 4493 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10, 4494 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11, 4495 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12, 4496 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13, 4497 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14, 4498 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15, 4499 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16, 4500 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17, 4501 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, 4502 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, 4503 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20, 4504 4505 /* keep last */ 4506 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, 4507 QCA_WLAN_VENDOR_ATTR_ACS_MAX = 4508 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 4509 }; 4510 4511 /** 4512 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the 4513 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 4514 * 4515 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode 4516 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode 4517 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode 4518 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode 4519 * @QCA_ACS_MODE_IEEE80211ANY: all modes 4520 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode 4521 */ 4522 enum qca_wlan_vendor_acs_hw_mode { 4523 QCA_ACS_MODE_IEEE80211B, 4524 QCA_ACS_MODE_IEEE80211G, 4525 QCA_ACS_MODE_IEEE80211A, 4526 QCA_ACS_MODE_IEEE80211AD, 4527 QCA_ACS_MODE_IEEE80211ANY, 4528 QCA_ACS_MODE_IEEE80211AX, 4529 }; 4530 4531 /** 4532 * enum qca_access_policy - access control policy 4533 * 4534 * Access control policy is applied on the configured IE 4535 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). 4536 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. 4537 * 4538 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match 4539 *» with the specific configuration (IE) set, i.e. allow all the 4540 *» connections which do not match the configuration. 4541 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match 4542 *» with the specific configuration (IE) set, i.e. deny all the 4543 *» connections which do not match the configuration. 4544 */ 4545 enum qca_access_policy { 4546 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, 4547 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, 4548 }; 4549 4550 /** 4551 * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values 4552 * 4553 * The valid values for the ignore assoc disallowed 4554 * 4555 * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed 4556 * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed 4557 * 4558 */ 4559 enum qca_ignore_assoc_disallowed { 4560 QCA_IGNORE_ASSOC_DISALLOWED_DISABLE, 4561 QCA_IGNORE_ASSOC_DISALLOWED_ENABLE 4562 }; 4563 4564 /* Attributes for data used by 4565 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and 4566 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. 4567 */ 4568 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\ 4569 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES 4570 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\ 4571 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL 4572 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\ 4573 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON 4574 enum qca_wlan_vendor_attr_config { 4575 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, 4576 /* 4577 * Unsigned 32-bit value to set the DTIM period. 4578 * Whether the wifi chipset wakes at every dtim beacon or a multiple of 4579 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 4580 * DTIM beacons. 4581 */ 4582 QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1, 4583 /* 4584 * Unsigned 32-bit value to set the wifi_iface stats averaging factor 4585 * used to calculate statistics like average the TSF offset or average 4586 * number of frame leaked. 4587 * For instance, upon Beacon frame reception: 4588 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 4589 * For instance, when evaluating leaky APs: 4590 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 4591 */ 4592 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, 4593 /* 4594 * Unsigned 32-bit value to configure guard time, i.e., when 4595 * implementing IEEE power management based on frame control PM bit, how 4596 * long the driver waits before shutting down the radio and after 4597 * receiving an ACK frame for a Data frame with PM bit set. 4598 */ 4599 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, 4600 /* Unsigned 32-bit value to change the FTM capability dynamically */ 4601 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, 4602 /* Unsigned 16-bit value to configure maximum TX rate dynamically */ 4603 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, 4604 /* 4605 * Unsigned 32-bit value to configure the number of continuous 4606 * Beacon Miss which shall be used by the firmware to penalize 4607 * the RSSI. 4608 */ 4609 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, 4610 /* 4611 * Unsigned 8-bit value to configure the channel avoidance indication 4612 * behavior. Firmware to send only one indication and ignore duplicate 4613 * indications when set to avoid multiple Apps wakeups. 4614 */ 4615 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, 4616 /* 4617 * 8-bit unsigned value to configure the maximum TX MPDU for 4618 * aggregation. 4619 */ 4620 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, 4621 /* 4622 * 8-bit unsigned value to configure the maximum RX MPDU for 4623 * aggregation. 4624 */ 4625 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, 4626 /* 4627 * 8-bit unsigned value to configure the Non aggregrate/11g sw 4628 * retry threshold (0 disable, 31 max). 4629 */ 4630 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, 4631 /* 4632 * 8-bit unsigned value to configure the aggregrate sw 4633 * retry threshold (0 disable, 31 max). 4634 */ 4635 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, 4636 /* 4637 * 8-bit unsigned value to configure the MGMT frame 4638 * retry threshold (0 disable, 31 max). 4639 */ 4640 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, 4641 /* 4642 * 8-bit unsigned value to configure the CTRL frame 4643 * retry threshold (0 disable, 31 max). 4644 */ 4645 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, 4646 /* 4647 * 8-bit unsigned value to configure the propagation delay for 4648 * 2G/5G band (0~63, units in us) 4649 */ 4650 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, 4651 /* 4652 * Unsigned 32-bit value to configure the number of unicast TX fail 4653 * packet count. The peer is disconnected once this threshold is 4654 * reached. 4655 */ 4656 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, 4657 /* 4658 * Attribute used to set scan default IEs to the driver. 4659 * 4660 * These IEs can be used by scan operations that will be initiated by 4661 * the driver/firmware. 4662 * 4663 * For further scan requests coming to the driver, these IEs should be 4664 * merged with the IEs received along with scan request coming to the 4665 * driver. If a particular IE is present in the scan default IEs but not 4666 * present in the scan request, then that IE should be added to the IEs 4667 * sent in the Probe Request frames for that scan request. 4668 */ 4669 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, 4670 /* Unsigned 32-bit attribute for generic commands */ 4671 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, 4672 /* Unsigned 32-bit value attribute for generic commands */ 4673 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, 4674 /* Unsigned 32-bit data attribute for generic command response */ 4675 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, 4676 /* 4677 * Unsigned 32-bit length attribute for 4678 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 4679 */ 4680 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, 4681 /* 4682 * Unsigned 32-bit flags attribute for 4683 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 4684 */ 4685 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, 4686 /* 4687 * Unsigned 32-bit, defining the access policy. 4688 * See enum qca_access_policy. Used with 4689 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. 4690 */ 4691 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, 4692 /* 4693 * Sets the list of full set of IEs for which a specific access policy 4694 * has to be applied. Used along with 4695 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. 4696 * Zero length payload can be used to clear this access constraint. 4697 */ 4698 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, 4699 /* 4700 * Unsigned 32-bit, specifies the interface index (netdev) for which the 4701 * corresponding configurations are applied. If the interface index is 4702 * not specified, the configurations are attributed to the respective 4703 * wiphy. 4704 */ 4705 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, 4706 /* 4707 * 8-bit unsigned value to trigger QPower: 4708 * 1-Enable, 0-Disable 4709 */ 4710 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, 4711 /* 4712 * 8-bit unsigned value to configure the driver and below layers to 4713 * ignore the assoc disallowed set by APs while connecting 4714 * 1-Ignore, 0-Don't ignore 4715 */ 4716 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, 4717 /* 4718 * 32-bit unsigned value to trigger antenna diversity features: 4719 * 1-Enable, 0-Disable 4720 */ 4721 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, 4722 /* 32-bit unsigned value to configure specific chain antenna */ 4723 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, 4724 /* 4725 * 32-bit unsigned value to trigger cycle selftest 4726 * 1-Enable, 0-Disable 4727 */ 4728 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, 4729 /* 4730 * 32-bit unsigned to configure the cycle time of selftest 4731 * the unit is micro-second 4732 */ 4733 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, 4734 /* 32-bit unsigned value to set reorder timeout for AC_VO */ 4735 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, 4736 /* 32-bit unsigned value to set reorder timeout for AC_VI */ 4737 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, 4738 /* 32-bit unsigned value to set reorder timeout for AC_BE */ 4739 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, 4740 /* 32-bit unsigned value to set reorder timeout for AC_BK */ 4741 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, 4742 /* 6-byte MAC address to point out the specific peer */ 4743 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35, 4744 /* 32-bit unsigned value to set window size for specific peer */ 4745 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, 4746 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ 4747 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, 4748 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ 4749 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, 4750 /* 4751 * 32-bit unsigned value to configure 5 or 10 MHz channel width for 4752 * station device while in disconnect state. The attribute use the 4753 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, 4754 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or 4755 * 10 MHz channel width, the station will not connect to a BSS using 20 4756 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to 4757 * clear this constraint. 4758 */ 4759 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, 4760 /* 4761 * 32-bit unsigned value to configure the propagation absolute delay 4762 * for 2G/5G band (units in us) 4763 */ 4764 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, 4765 /* 32-bit unsigned value to set probe period */ 4766 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, 4767 /* 32-bit unsigned value to set stay period */ 4768 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, 4769 /* 32-bit unsigned value to set snr diff */ 4770 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, 4771 /* 32-bit unsigned value to set probe dwell time */ 4772 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, 4773 /* 32-bit unsigned value to set mgmt snr weight */ 4774 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, 4775 /* 32-bit unsigned value to set data snr weight */ 4776 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, 4777 /* 32-bit unsigned value to set ack snr weight */ 4778 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, 4779 /* 4780 * 32-bit unsigned value to configure the listen interval. 4781 * This is in units of beacon intervals. This configuration alters 4782 * the negotiated listen interval with the AP during the connection. 4783 * It is highly recommended to configure a value less than or equal to 4784 * the one negotiated during the association. Configuring any greater 4785 * value can have adverse effects (frame loss, AP disassociating STA, 4786 * etc.). 4787 */ 4788 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, 4789 /* 4790 * 8 bit unsigned value that is set on an AP/GO virtual interface to 4791 * disable operations that would cause the AP/GO to leave its operating 4792 * channel. 4793 * 4794 * This will restrict the scans to the AP/GO operating channel and the 4795 * channels of the other band, if DBS is supported.A STA/CLI interface 4796 * brought up after this setting is enabled, will be restricted to 4797 * connecting to devices only on the AP/GO interface's operating channel 4798 * or on the other band in DBS case. P2P supported channel list is 4799 * modified, to only include AP interface's operating-channel and the 4800 * channels of the other band if DBS is supported. 4801 * 4802 * These restrictions are only applicable as long as the AP/GO interface 4803 * is alive. If the AP/GO interface is brought down then this 4804 * setting/restriction is forgotten. 4805 * 4806 * If this variable is set on an AP/GO interface while a multi-channel 4807 * concurrent session is active, it has no effect on the operation of 4808 * the current interfaces, other than restricting the scan to the AP/GO 4809 * operating channel and the other band channels if DBS is supported. 4810 * However, if the STA is brought down and restarted then the new STA 4811 * connection will either be formed on the AP/GO channel or on the 4812 * other band in a DBS case. This is because of the scan being 4813 * restricted on these channels as mentioned above. 4814 * 4815 * 1-Disable offchannel operations, 0-Enable offchannel operations. 4816 */ 4817 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, 4818 4819 /* 4820 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) 4821 * on an interface. 4822 * 1 - Enable , 0 - Disable. 4823 */ 4824 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, 4825 4826 /* 4827 * 8 bit unsigned value to globally enable/disable scan 4828 * 1 - Enable, 0 - Disable. 4829 */ 4830 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, 4831 4832 /* 8-bit unsigned value to set the total beacon miss count */ 4833 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, 4834 4835 /* 4836 * Unsigned 32-bit value to configure the number of continuous 4837 * Beacon Miss which shall be used by the firmware to penalize 4838 * the RSSI for BTC. 4839 */ 4840 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, 4841 4842 /* 4843 * 8-bit unsigned value to configure the driver and below layers to 4844 * enable/disable all fils features. 4845 * 0-enable, 1-disable 4846 */ 4847 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, 4848 4849 /* 16-bit unsigned value to configure the level of WLAN latency 4850 * module. See enum qca_wlan_vendor_attr_config_latency_level. 4851 */ 4852 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, 4853 4854 /* 4855 * 8-bit unsigned value indicating the driver to use the RSNE as-is from 4856 * the connect interface. Exclusively used for the scenarios where the 4857 * device is used as a test bed device with special functionality and 4858 * not recommended for production. This helps driver to not validate the 4859 * RSNE passed from user space and thus allow arbitrary IE data to be 4860 * used for testing purposes. 4861 * 1-enable, 0-disable. 4862 * Applications set/reset this configuration. If not reset, this 4863 * parameter remains in use until the driver is unloaded. 4864 */ 4865 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, 4866 4867 /* 4868 * 8-bit unsigned value to trigger green Tx power saving. 4869 * 1-Enable, 0-Disable 4870 */ 4871 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, 4872 4873 /* 4874 * Attribute to configure disconnect IEs to the driver. 4875 * This carries an array of unsigned 8-bit characters. 4876 * 4877 * If this is configured, driver shall fill the IEs in disassoc/deauth 4878 * frame. 4879 * These IEs are expected to be considered only for the next 4880 * immediate disconnection (disassoc/deauth frame) originated by 4881 * the DUT, irrespective of the entity (user space/driver/firmware) 4882 * triggering the disconnection. 4883 * The host drivers are not expected to use the IEs set through 4884 * this interface for further disconnections after the first immediate 4885 * disconnection initiated post the configuration. 4886 * If the IEs are also updated through cfg80211 interface (after the 4887 * enhancement to cfg80211_disconnect), host driver is expected to 4888 * take the union of IEs from both of these interfaces and send in 4889 * further disassoc/deauth frames. 4890 */ 4891 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58, 4892 4893 /* 8-bit unsigned value for ELNA bypass. 4894 * 0 - Disable eLNA bypass. 4895 * 1 - Enable eLNA bypass. 4896 * 2 - Reset eLNA bypass configuration, the driver should 4897 * revert to the default configuration of eLNA bypass. 4898 */ 4899 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59, 4900 4901 /* 8-bit unsigned value. This attribute enables/disables the host driver 4902 * to send the Beacon Report response with failure reason for the 4903 * scenarios where STA cannot honor the Beacon report request from AP. 4904 * 1-Enable, 0-Disable. 4905 */ 4906 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60, 4907 4908 /* 8-bit unsigned value. This attribute enables/disables the host driver 4909 * to send roam reason information in the reassociation request to the 4910 * AP. 1-Enable, 0-Disable. 4911 */ 4912 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61, 4913 4914 /* 32-bit unsigned value to configure different PHY modes to the 4915 * driver/firmware. The possible values are defined in 4916 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to 4917 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting 4918 * the driver. 4919 */ 4920 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62, 4921 4922 /* 8-bit unsigned value to configure the maximum supported channel width 4923 * for STA mode. If this value is configured when STA is in connected 4924 * state, it should not exceed the negotiated channel width. If it is 4925 * configured when STA is in disconnected state, the configured value 4926 * will take effect for the next immediate connection. 4927 * Possible values are: 4928 * NL80211_CHAN_WIDTH_20 4929 * NL80211_CHAN_WIDTH_40 4930 * NL80211_CHAN_WIDTH_80 4931 * NL80211_CHAN_WIDTH_80P80 4932 * NL80211_CHAN_WIDTH_160 4933 */ 4934 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63, 4935 4936 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment. 4937 * This attribute is only applicable for STA mode. When dynamic 4938 * bandwidth adjustment is disabled, STA will use static channel width 4939 * the value of which is negotiated during connection. 4940 * 1-enable (default), 0-disable 4941 */ 4942 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64, 4943 4944 /* 8-bit unsigned value to configure the maximum number of subframes of 4945 * TX MSDU for aggregation. Possible values are 0-31. When set to 0, 4946 * it is decided by hardware. 4947 */ 4948 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65, 4949 4950 /* 8-bit unsigned value to configure the maximum number of subframes of 4951 * RX MSDU for aggregation. Possible values are 0-31. When set to 0, 4952 * it is decided by hardware. 4953 */ 4954 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66, 4955 4956 /* 8-bit unsigned value. This attribute is used to dynamically 4957 * enable/disable the LDPC capability of the device. When configured in 4958 * the disconnected state, the updated configuration will be considered 4959 * for the immediately following connection attempt. If this 4960 * configuration is modified while the device is in the connected state, 4961 * the LDPC TX will be updated with this configuration immediately, 4962 * while the LDPC RX configuration update will take place starting from 4963 * the subsequent association attempt. 4964 * 1-Enable, 0-Disable. 4965 */ 4966 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67, 4967 4968 /* 8-bit unsigned value. This attribute is used to dynamically 4969 * enable/disable the TX STBC capability of the device. When configured 4970 * in the disconnected state, the updated configuration will be 4971 * considered for the immediately following connection attempt. If the 4972 * connection is formed with TX STBC enabled and if this configuration 4973 * is disabled during that association, the TX will be impacted 4974 * immediately. Further connection attempts will disable TX STBC. 4975 * However, enabling the TX STBC for a connected session with disabled 4976 * capability is not allowed and will fail. 4977 * 1-Enable, 0-Disable. 4978 */ 4979 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68, 4980 4981 /* 8-bit unsigned value. This attribute is used to dynamically 4982 * enable/disable the RX STBC capability of the device. When configured 4983 * in the disconnected state, the updated configuration will be 4984 * considered for the immediately following connection attempt. If the 4985 * configuration is modified in the connected state, there will be no 4986 * impact for the current association, but further connection attempts 4987 * will use the updated configuration. 4988 * 1-Enable, 0-Disable. 4989 */ 4990 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69, 4991 4992 /* 8-bit unsigned value. This attribute is used to dynamically configure 4993 * the number of spatial streams. When configured in the disconnected 4994 * state, the updated configuration will be considered for the 4995 * immediately following connection attempt. If the NSS is updated after 4996 * the connection, the updated NSS value is notified to the peer using 4997 * the Operating Mode Notification/Spatial Multiplexing Power Save 4998 * frame. The updated NSS value after the connection shall not be 4999 * greater than the one negotiated during the connection. Any such 5000 * higher value configuration shall be returned with a failure. 5001 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done 5002 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and 5003 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to 5004 * configure the asymmetric NSS configuration (such as 1X2). 5005 */ 5006 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70, 5007 5008 /* 5009 * 8-bit unsigned value to trigger Optimized Power Management: 5010 * 1-Enable, 0-Disable 5011 */ 5012 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71, 5013 5014 /* 8-bit unsigned value. This attribute takes the QOS/access category 5015 * value represented by the enum qca_wlan_ac_type and expects the driver 5016 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL 5017 * is invalid for this attribute. This will override the DSCP value 5018 * configured in the frame with the intention to only upgrade the QOS. 5019 * That said, it is not intended to downgrade the QOS for the frames. 5020 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs 5021 * to disable. 5022 */ 5023 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72, 5024 5025 /* 8-bit unsigned value. This attribute is used to dynamically configure 5026 * the number of chains to be used for transmitting data. This 5027 * configuration is allowed only when in connected state and will be 5028 * effective until disconnected. The driver rejects this configuration 5029 * if the number of spatial streams being used in the current connection 5030 * cannot be supported by this configuration. 5031 */ 5032 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73, 5033 5034 /* 8-bit unsigned value. This attribute is used to dynamically configure 5035 * the number of chains to be used for receiving data. This 5036 * configuration is allowed only when in connected state and will be 5037 * effective until disconnected. The driver rejects this configuration 5038 * if the number of spatial streams being used in the current connection 5039 * cannot be supported by this configuration. 5040 */ 5041 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74, 5042 5043 /* 8-bit unsigned value to configure ANI setting type. 5044 * See &enum qca_wlan_ani_setting for possible values. 5045 */ 5046 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75, 5047 /* 32-bit signed value to configure ANI level. This is used when 5048 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED. 5049 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO 5050 * is invalid, the driver will return a failure. 5051 */ 5052 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76, 5053 5054 /* 8-bit unsigned value. This attribute is used to dynamically configure 5055 * the number of spatial streams used for transmitting the data. When 5056 * configured in the disconnected state, the configured value will 5057 * be considered for the following connection attempt. 5058 * If the NSS is updated after the connection, the updated NSS value 5059 * is notified to the peer using the Operating Mode Notification/Spatial 5060 * Multiplexing Power Save frame. 5061 * The TX NSS value configured after the connection shall not be greater 5062 * than the value negotiated during the connection. Any such higher 5063 * value configuration shall be treated as invalid configuration by 5064 * the driver. This attribute shall be configured along with 5065 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric 5066 * configuration (such as 2X2 or 1X1) or the asymmetric 5067 * configuration (such as 1X2). 5068 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 5069 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver 5070 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS. 5071 */ 5072 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77, 5073 5074 /* 8-bit unsigned value. This attribute is used to dynamically configure 5075 * the number of spatial streams used for receiving the data. When 5076 * configured in the disconnected state, the configured value will 5077 * be considered for the following connection attempt. 5078 * If the NSS is updated after the connection, the updated NSS value 5079 * is notified to the peer using the Operating Mode Notification/Spatial 5080 * Multiplexing Power Save frame. 5081 * The RX NSS value configured after the connection shall not be greater 5082 * than the value negotiated during the connection. Any such higher 5083 * value configuration shall be treated as invalid configuration by 5084 * the driver. This attribute shall be configured along with 5085 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric 5086 * configuration (such as 2X2 or 1X1) or the asymmetric 5087 * configuration (such as 1X2). 5088 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 5089 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver 5090 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS. 5091 */ 5092 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78, 5093 5094 /* 5095 * 8-bit unsigned value. This attribute, when set, indicates whether the 5096 * specified interface is the primary STA interface when there are more 5097 * than one STA interfaces concurrently active. 5098 * 5099 * This configuration helps the firmware/hardware to support certain 5100 * features (e.g., roaming) on this primary interface, if the same 5101 * cannot be supported on the concurrent STA interfaces simultaneously. 5102 * 5103 * This configuration is only applicable for a single STA interface on 5104 * a device and gives the priority for it only over other concurrent STA 5105 * interfaces. 5106 * 5107 * If the device is a multi wiphy/soc, this configuration applies to a 5108 * single STA interface across the wiphys. 5109 * 5110 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA) 5111 */ 5112 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79, 5113 5114 /* 5115 * 8-bit unsigned value. This attribute can be used to configure the 5116 * driver to enable/disable FT-over-DS feature. Possible values for 5117 * this attribute are 1-Enable and 0-Disable. 5118 */ 5119 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80, 5120 5121 /* 5122 * 8-bit unsigned value. This attribute can be used to configure the 5123 * firmware to enable/disable ARP/NS offload feature. Possible values 5124 * for this attribute are 0-Disable and 1-Enable. 5125 * 5126 * This attribute is only applicable for STA/P2P-Client interface, 5127 * and is optional, default behavior is APR/NS offload Enable. 5128 * 5129 * This attribute can be set in disconncted and connected state, and 5130 * will restore to default behavior if interface is closed. 5131 */ 5132 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81, 5133 5134 /* 5135 * 8-bit unsigned value. This attribute can be used to configure the 5136 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values 5137 * for this attribute are defined in the enum qca_dbam_config. 5138 */ 5139 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83, 5140 5141 /* keep last */ 5142 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, 5143 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = 5144 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, 5145 }; 5146 5147 /** 5148 * enum qca_dbam_config - Specifies DBAM config mode 5149 * @QCA_DBAM_DISABLE: Firmware disables DBAM 5150 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when 5151 * internal criteria are met. 5152 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully. 5153 */ 5154 enum qca_dbam_config { 5155 QCA_DBAM_DISABLE = 0, 5156 QCA_DBAM_ENABLE = 1, 5157 QCA_DBAM_FORCE_ENABLE = 2, 5158 }; 5159 5160 /** 5161 * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting 5162 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute 5163 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID 5164 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level 5165 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag 5166 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value 5167 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value 5168 */ 5169 enum qca_wlan_vendor_attr_wifi_logger_start { 5170 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, 5171 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, 5172 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, 5173 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, 5174 /* keep last */ 5175 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, 5176 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX = 5177 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, 5178 }; 5179 5180 /* 5181 * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data 5182 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute 5183 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID 5184 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value 5185 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value 5186 */ 5187 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data { 5188 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0, 5189 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1, 5190 /* keep last */ 5191 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST, 5192 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX = 5193 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1, 5194 }; 5195 5196 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS 5197 /** 5198 * enum wlan_offloaded_packets_control - control commands 5199 * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets 5200 * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets 5201 * 5202 */ 5203 enum wlan_offloaded_packets_control { 5204 WLAN_START_OFFLOADED_PACKETS = 1, 5205 WLAN_STOP_OFFLOADED_PACKETS = 2 5206 }; 5207 5208 /** 5209 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication 5210 * 5211 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to 5212 * the offloaded data. 5213 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded 5214 * data. 5215 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload 5216 * indication. 5217 */ 5218 enum qca_wlan_vendor_attr_data_offload_ind { 5219 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, 5220 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, 5221 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, 5222 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, 5223 5224 /* keep last */ 5225 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, 5226 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = 5227 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 5228 }; 5229 5230 /** 5231 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command 5232 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. 5233 */ 5234 enum qca_wlan_vendor_attr_offloaded_packets { 5235 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, 5236 /* Takes valid value from the enum 5237 * qca_wlan_offloaded_packets_sending_control 5238 * Unsigned 32-bit value 5239 */ 5240 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, 5241 /* Unsigned 32-bit value */ 5242 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, 5243 /* array of u8 len: Max packet size */ 5244 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, 5245 /* 6-byte MAC address used to represent source MAC address */ 5246 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, 5247 /* 6-byte MAC address used to represent destination MAC address */ 5248 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, 5249 /* Unsigned 32-bit value, in milli seconds */ 5250 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, 5251 /* This optional unsigned 16-bit attribute is used for specifying 5252 * ethernet protocol type. If not specified ethertype defaults to IPv4. 5253 */ 5254 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, 5255 5256 /* keep last */ 5257 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, 5258 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = 5259 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, 5260 }; 5261 5262 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */ 5263 5264 /** 5265 * enum qca_wlan_rssi_monitoring_control - rssi control commands 5266 * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid 5267 * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start 5268 * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop 5269 */ 5270 enum qca_wlan_rssi_monitoring_control { 5271 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, 5272 QCA_WLAN_RSSI_MONITORING_START, 5273 QCA_WLAN_RSSI_MONITORING_STOP, 5274 }; 5275 5276 /** 5277 * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring 5278 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid 5279 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control 5280 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi 5281 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi 5282 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid 5283 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi 5284 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last 5285 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max 5286 */ 5287 enum qca_wlan_vendor_attr_rssi_monitoring { 5288 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, 5289 5290 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, 5291 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, 5292 5293 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, 5294 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, 5295 5296 /* attributes to be used/received in callback */ 5297 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, 5298 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, 5299 5300 /* keep last */ 5301 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, 5302 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = 5303 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, 5304 }; 5305 5306 /** 5307 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command 5308 * QCA_NL80211_VENDOR_SUBCMD_NDP. 5309 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID 5310 * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd 5311 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID: 5312 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info 5313 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz 5314 * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC 5315 * address 5316 * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being 5317 * created 5318 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use 5319 * NCS_SK_TYPE/PMK/SCID instead 5320 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS 5321 * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info 5322 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id 5323 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids 5324 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response 5325 * code: accept/reject 5326 * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address 5327 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by 5328 * driver 5329 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by 5330 * driver 5331 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration 5332 * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type 5333 * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO 5334 * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the 5335 * PMKID 5336 * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase 5337 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name 5338 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule 5339 * update: 5340 * BIT_0: NSS Update 5341 * BIT_1: Channel list update 5342 * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss 5343 * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL 5344 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH: 5345 * 0:20 MHz, 5346 * 1:40 MHz, 5347 * 2:80 MHz, 5348 * 3:160 MHz 5349 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width 5350 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute 5351 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type 5352 * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array 5353 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating 5354 * transport port used by NDP. 5355 * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating 5356 * protocol used by NDP and assigned by the Internet Assigned Numbers Authority 5357 * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml 5358 * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if 5359 * NDP remote peer supports NAN NDPE. 1:support 0:not support 5360 * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2 5361 * Service Id is the first 48 bits of the SHA-256 hash of the Service Name. 5362 * A lower-case representation of the Service Name shall be used to 5363 * calculate the Service ID. 5364 * Array of u8: length is 6 bytes 5365 * This attribute is used and optional for ndp indication. 5366 */ 5367 enum qca_wlan_vendor_attr_ndp_params { 5368 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, 5369 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1, 5370 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2, 5371 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3, 5372 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4, 5373 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5, 5374 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6, 5375 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7, 5376 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8, 5377 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9, 5378 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10, 5379 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11, 5380 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12, 5381 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13, 5382 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14, 5383 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15, 5384 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16, 5385 QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17, 5386 QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18, 5387 QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19, 5388 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20, 5389 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21, 5390 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22, 5391 QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23, 5392 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24, 5393 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25, 5394 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26, 5395 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, 5396 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, 5397 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, 5398 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30, 5399 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31, 5400 5401 /* keep last */ 5402 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, 5403 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = 5404 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, 5405 }; 5406 5407 /** 5408 * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for 5409 * QCA_NL80211_VENDOR_SUBCMD_NDP. 5410 * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value 5411 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN 5412 * data path interface. 5413 * This command was initially designed to both create and start a NAN 5414 * data path interface. However, changes to Linux 5.12 no longer allow 5415 * interface creation via vendor commands. When the driver advertises 5416 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 5417 * userspace must explicitly first create the interface using 5418 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command 5419 * to start the interface. 5420 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN 5421 * data path interface. 5422 * This command was initially designed to both stop and delete a NAN 5423 * data path interface. However, changes to Linux 5.12 no longer allow 5424 * interface deletion via vendor commands. When the driver advertises 5425 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 5426 * userspace must explicitly delete the interface using 5427 * NL80211_CMD_DEL_INTERFACE after calling this command. 5428 * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above 5429 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session 5430 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above 5431 * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end 5432 * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above 5433 * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request 5434 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete 5435 * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request 5436 * being received 5437 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule 5438 * update 5439 */ 5440 enum qca_wlan_ndp_sub_cmd { 5441 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, 5442 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, 5443 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, 5444 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, 5445 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, 5446 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, 5447 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, 5448 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, 5449 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, 5450 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, 5451 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, 5452 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, 5453 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 5454 }; 5455 5456 /** 5457 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel 5458 * information. These attributes are sent as part of 5459 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following 5460 * attributes correspond to a single channel. 5461 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16) 5462 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. 5463 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16) 5464 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. 5465 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency 5466 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum 5467 * regulatory transmission power 5468 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum 5469 * transmission power 5470 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum 5471 * transmission power 5472 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory 5473 * class id 5474 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum 5475 * antenna gain in dbm 5476 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0 5477 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1 5478 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht 5479 * segment 0 in center freq in MHz. 5480 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht 5481 * segment 1 in center freq in MHz. 5482 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits 5483 * flag indicating the AP power modes supported by the channel, as given by 5484 * enum qca_wlan_vendor_external_acs_chan_power_level. 5485 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested 5486 * attributes for each power mode. It takes attr as defined in enum 5487 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 5488 * 5489 */ 5490 enum qca_wlan_vendor_external_acs_event_chan_info_attr { 5491 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, 5492 5493 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, 5494 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, 5495 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, 5496 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, 5497 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, 5498 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, 5499 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, 5500 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, 5501 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, 5502 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, 5503 /* 5504 * A bitmask (u32) with flags specified in 5505 * enum qca_wlan_vendor_channel_prop_flags_2. 5506 */ 5507 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, 5508 5509 /* 5510 * VHT segment 0 in MHz (u32) and the attribute is mandatory. 5511 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 5512 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 5513 * along with 5514 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0. 5515 * 5516 * If both the driver and user-space application supports the 6 GHz 5517 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 5518 * is deprecated and 5519 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 5520 * should be used. 5521 * 5522 * To maintain backward compatibility, 5523 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 5524 * is still used if either of the driver or user space application 5525 * doesn't support the 6 GHz band. 5526 */ 5527 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12, 5528 5529 /* 5530 * VHT segment 1 in MHz (u32) and the attribute is mandatory. 5531 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 5532 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 5533 * along with 5534 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1. 5535 * 5536 * If both the driver and user-space application supports the 6 GHz 5537 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 5538 * is deprecated and 5539 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 5540 * should be considered. 5541 * 5542 * To maintain backward compatibility, 5543 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 5544 * is still used if either of the driver or user space application 5545 * doesn't support the 6 GHz band. 5546 */ 5547 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13, 5548 /* 5549 * 16-bit attribute of bits indicating the AP power modes supported by 5550 * the channel (u16). 5551 * Note: Currently, only 3 bits are used in the attribute and each bit 5552 * corresponds to the power mode mentioned in enum 5553 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is 5554 * set if the associated mode is supported. 5555 */ 5556 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES 5557 = 14, 5558 /* Array of nested attributes for each power mode. It takes attr as 5559 * defined in enum 5560 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 5561 */ 5562 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15, 5563 5564 /* keep last */ 5565 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, 5566 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = 5567 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, 5568 }; 5569 5570 /** 5571 * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid 5572 * values that the vendor external ACS channel power attribute 5573 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can 5574 * take. 5575 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode 5576 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode 5577 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode 5578 */ 5579 enum qca_wlan_vendor_external_acs_chan_power_level { 5580 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0, 5581 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1, 5582 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2, 5583 }; 5584 5585 /** 5586 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested 5587 * attributes for power mode type and power values corresponding to that. 5588 * These attributes are sent as part of 5589 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR. 5590 */ 5591 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr { 5592 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0, 5593 /* 5594 * Power mode (u8) takes the values defined in enum 5595 * qca_wlan_vendor_external_acs_chan_power_mode 5596 */ 5597 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE 5598 = 1, 5599 /* 5600 * Indicates if power value is a PSD/EIRP value (flag). If flag is 5601 * present, it indicates a PSD value. 5602 */ 5603 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2, 5604 /* 5605 * Power value (u32) PSD/EIRP as indicated by 5606 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG, 5607 * for power mode corresponding to the 5608 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE. 5609 * Units for PSD - dBm/MHz 5610 * Units for EIRP - dBm 5611 */ 5612 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE 5613 = 3, 5614 /* keep last */ 5615 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST, 5616 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX = 5617 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1, 5618 }; 5619 5620 /** 5621 * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command 5622 * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host 5623 * driver. 5624 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to 5625 * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why 5626 * ACS need to be started 5627 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does 5628 * driver supports spectral scanning or not 5629 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is 5630 * offloaded to firmware. 5631 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver 5632 * provides additional channel capability as part of scan operation. 5633 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate 5634 * interface status is UP 5635 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of 5636 * interface. It takes one of nl80211_iftype values. 5637 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound 5638 * of chan width. ACS logic should try to get a channel with specified width 5639 * if not found then look for lower values. 5640 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands 5641 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as 5642 * a/b/g/n/ac. 5643 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list 5644 * among which ACS should choose best frequency. 5645 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the 5646 * driver which will have <channel(u8), weight(u8)> format as array of 5647 * nested values. 5648 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute 5649 * for each channel. It takes attr as defined in 5650 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as 5651 * PCL mandatory, PCL preferred, etc.It uses values defined in enum 5652 * qca_wlan_vendor_attr_external_acs_policy. 5653 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF 5654 * Operating Parameter (RROP) availability information (u16). It uses values 5655 * defined in enum qca_wlan_vendor_attr_rropavail_info. 5656 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to 5657 * indicate if driver supports 6 GHz AFC trigger for External ACS. 5658 */ 5659 enum qca_wlan_vendor_attr_external_acs_event { 5660 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, 5661 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, 5662 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, 5663 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, 5664 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, 5665 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, 5666 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, 5667 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, 5668 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, 5669 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, 5670 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, 5671 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, 5672 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, 5673 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, 5674 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, 5675 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15, 5676 5677 /* keep last */ 5678 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, 5679 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = 5680 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, 5681 }; 5682 5683 enum qca_iface_type { 5684 QCA_IFACE_TYPE_STA, 5685 QCA_IFACE_TYPE_AP, 5686 QCA_IFACE_TYPE_P2P_CLIENT, 5687 QCA_IFACE_TYPE_P2P_GO, 5688 QCA_IFACE_TYPE_IBSS, 5689 QCA_IFACE_TYPE_TDLS, 5690 }; 5691 5692 /** 5693 * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command 5694 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and 5695 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. 5696 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value 5697 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number 5698 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight 5699 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency 5700 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask 5701 */ 5702 enum qca_wlan_vendor_attr_pcl_config { 5703 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, 5704 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, 5705 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, 5706 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, 5707 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, 5708 }; 5709 5710 enum qca_set_band { 5711 QCA_SETBAND_AUTO = 0, 5712 QCA_SETBAND_5G = BIT(0), 5713 QCA_SETBAND_2G = BIT(1), 5714 QCA_SETBAND_6G = BIT(2), 5715 }; 5716 5717 /** 5718 * enum set_reset_packet_filter - set packet filter control commands 5719 * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter 5720 * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter 5721 * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data 5722 * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data 5723 * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter 5724 * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter 5725 */ 5726 enum set_reset_packet_filter { 5727 QCA_WLAN_SET_PACKET_FILTER = 1, 5728 QCA_WLAN_GET_PACKET_FILTER = 2, 5729 QCA_WLAN_WRITE_PACKET_FILTER = 3, 5730 QCA_WLAN_READ_PACKET_FILTER = 4, 5731 QCA_WLAN_ENABLE_PACKET_FILTER = 5, 5732 QCA_WLAN_DISABLE_PACKET_FILTER = 6, 5733 }; 5734 5735 /** 5736 * enum qca_wlan_vendor_attr_packet_filter - APF control commands 5737 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid 5738 * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID 5739 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version 5740 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length 5741 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset 5742 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions 5743 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program 5744 * section in packet filter buffer 5745 */ 5746 enum qca_wlan_vendor_attr_packet_filter { 5747 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, 5748 QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER, 5749 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, 5750 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, 5751 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, 5752 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, 5753 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, 5754 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH, 5755 5756 /* keep last */ 5757 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, 5758 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = 5759 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, 5760 }; 5761 5762 /** 5763 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor 5764 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS. 5765 */ 5766 enum qca_wlan_vendor_attr_wake_stats { 5767 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0, 5768 /* Unsigned 32-bit value indicating the total count of wake event */ 5769 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE, 5770 /* Array of individual wake count, each index representing wake reason 5771 */ 5772 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR, 5773 /* Unsigned 32-bit value representing wake count array */ 5774 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ, 5775 /* Unsigned 32-bit total wake count value of driver/fw */ 5776 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE, 5777 /* Array of wake stats of driver/fw */ 5778 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR, 5779 /* Unsigned 32-bit total wake count value of driver/fw */ 5780 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ, 5781 /* Unsigned 32-bit total wake count value of packets received */ 5782 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE, 5783 /* Unsigned 32-bit wake count value unicast packets received */ 5784 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT, 5785 /* Unsigned 32-bit wake count value multicast packets received */ 5786 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT, 5787 /* Unsigned 32-bit wake count value broadcast packets received */ 5788 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT, 5789 /* Unsigned 32-bit wake count value of ICMP packets */ 5790 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT, 5791 /* Unsigned 32-bit wake count value of ICMP6 packets */ 5792 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT, 5793 /* Unsigned 32-bit value ICMP6 router advertisement */ 5794 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA, 5795 /* Unsigned 32-bit value ICMP6 neighbor advertisement */ 5796 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA, 5797 /* Unsigned 32-bit value ICMP6 neighbor solicitation */ 5798 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS, 5799 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */ 5800 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT, 5801 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */ 5802 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT, 5803 /* Unsigned 32-bit wake count value of receive side multicast */ 5804 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT, 5805 /* Unsigned 32-bit wake count value of a given RSSI breach */ 5806 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT, 5807 /* Unsigned 32-bit wake count value of low RSSI */ 5808 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT, 5809 /* Unsigned 32-bit value GSCAN count */ 5810 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT, 5811 /* Unsigned 32-bit value PNO complete count */ 5812 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT, 5813 /* Unsigned 32-bit value PNO match count */ 5814 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT, 5815 /* keep last */ 5816 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, 5817 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = 5818 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, 5819 }; 5820 5821 /** 5822 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels 5823 * configured by userspace to the driver/firmware. The values will be 5824 * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute. 5825 * The driver/firmware takes necessary actions requested by userspace 5826 * such as throttling wifi tx etc. in order to mitigate high temperature. 5827 * 5828 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions. 5829 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly. 5830 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately. 5831 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely. 5832 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached. 5833 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached. 5834 */ 5835 enum qca_wlan_vendor_thermal_level { 5836 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0, 5837 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1, 5838 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2, 5839 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3, 5840 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4, 5841 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5, 5842 }; 5843 5844 /** 5845 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set 5846 * cmd value. Used for NL attributes for data used by 5847 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 5848 */ 5849 enum qca_wlan_vendor_attr_thermal_cmd { 5850 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0, 5851 /* The value of command, driver will implement different operations 5852 * according to this value. It uses values defined in 5853 * enum qca_wlan_vendor_attr_thermal_cmd_type. 5854 * u32 attribute. 5855 */ 5856 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1, 5857 /* Userspace uses this attribute to configure thermal level to the 5858 * driver/firmware, or get thermal level from the driver/firmware. 5859 * Used in request or response, u32 attribute, 5860 * possible values are defined in enum qca_wlan_vendor_thermal_level. 5861 */ 5862 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2, 5863 /* Userspace uses this attribute to configure the time in which the 5864 * driver/firmware should complete applying settings it received from 5865 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL 5866 * command type. Used in request, u32 attribute, value is in 5867 * milliseconds. A value of zero indicates to apply the settings 5868 * immediately. The driver/firmware can delay applying the configured 5869 * thermal settings within the time specified in this attribute if 5870 * there is any critical ongoing operation. 5871 */ 5872 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3, 5873 /* Nested attribute, driver/firmware uses this attribute to report 5874 * thermal stats of different thermal levels to userspace when requested 5875 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command 5876 * type. This attribute contains nested array of records of thermal 5877 * statistics of multiple levels. The attributes used inside this nested 5878 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats. 5879 */ 5880 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4, 5881 5882 /* keep last */ 5883 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST, 5884 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX = 5885 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1 5886 }; 5887 5888 /** 5889 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for 5890 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd 5891 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the 5892 * thermal command types sent to driver. 5893 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to 5894 * get thermal shutdown configuration parameters for display. Parameters 5895 * responded from driver are defined in 5896 * enum qca_wlan_vendor_attr_get_thermal_params_rsp. 5897 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to 5898 * get temperature. Host should respond with a temperature data. It is defined 5899 * in enum qca_wlan_vendor_attr_thermal_get_temperature. 5900 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal 5901 * suspend action. 5902 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal 5903 * resume action. 5904 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to 5905 * the driver/firmware. 5906 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current 5907 * thermal level from the driver/firmware. The driver should respond with a 5908 * thermal level defined in enum qca_wlan_vendor_thermal_level. 5909 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the 5910 * current thermal stats from the driver/firmware. The driver should respond 5911 * with stats of all thermal levels encapsulated in attribute 5912 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS. 5913 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear 5914 * the current thermal stats all thermal levels maintained in the 5915 * driver/firmware and start counting from zero again. 5916 */ 5917 enum qca_wlan_vendor_attr_thermal_cmd_type { 5918 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS, 5919 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE, 5920 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND, 5921 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME, 5922 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL, 5923 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL, 5924 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS, 5925 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS, 5926 }; 5927 5928 /** 5929 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes 5930 * to get chip temperature by user. 5931 * enum values are used for NL attributes for data used by 5932 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used 5933 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 5934 */ 5935 enum qca_wlan_vendor_attr_thermal_get_temperature { 5936 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0, 5937 /* Temperature value (degree Celsius) from driver. 5938 * u32 attribute. 5939 */ 5940 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA, 5941 5942 /* keep last */ 5943 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST, 5944 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX = 5945 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1, 5946 }; 5947 5948 /** 5949 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to 5950 * report thermal events from driver to user space. 5951 * enum values are used for NL attributes for data used by 5952 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command. 5953 */ 5954 enum qca_wlan_vendor_attr_thermal_event { 5955 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0, 5956 /* Temperature value (degree Celsius) from driver. 5957 * u32 attribute. 5958 */ 5959 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE, 5960 /* Indication of resume completion from power save mode. 5961 * NLA_FLAG attribute. 5962 */ 5963 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE, 5964 /* Thermal level from the driver. 5965 * u32 attribute. Possible values are defined in 5966 * enum qca_wlan_vendor_thermal_level. 5967 */ 5968 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3, 5969 5970 /* keep last */ 5971 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST, 5972 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX = 5973 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1, 5974 }; 5975 5976 /** 5977 * enum qca_vendor_element_id - QCA Vendor Specific element types 5978 * 5979 * These values are used to identify QCA Vendor Specific elements. The 5980 * payload of the element starts with the three octet OUI (OUI_QCA) and 5981 * is followed by a single octet type which is defined by this enum. 5982 * 5983 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. 5984 * This element can be used to specify preference order for supported 5985 * channels. The channels in this list are in preference order (the first 5986 * one has the highest preference) and are described as a pair of 5987 * (global) Operating Class and Channel Number (each one octet) fields. 5988 * 5989 * This extends the standard P2P functionality by providing option to have 5990 * more than one preferred operating channel. When this element is present, 5991 * it replaces the preference indicated in the Operating Channel attribute. 5992 * For supporting other implementations, the Operating Channel attribute is 5993 * expected to be used with the highest preference channel. Similarly, all 5994 * the channels included in this Preferred channel list element are 5995 * expected to be included in the Channel List attribute. 5996 * 5997 * This vendor element may be included in GO Negotiation Request, P2P 5998 * Invitation Request, and Provision Discovery Request frames. 5999 * 6000 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. 6001 * This element can be used for pre-standard publication testing of HE 6002 * before P802.11ax draft assigns the element ID. The payload of this 6003 * vendor specific element is defined by the latest P802.11ax draft. 6004 * Please note that the draft is still work in progress and this element 6005 * payload is subject to change. 6006 * 6007 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. 6008 * This element can be used for pre-standard publication testing of HE 6009 * before P802.11ax draft assigns the element ID. The payload of this 6010 * vendor specific element is defined by the latest P802.11ax draft. 6011 * Please note that the draft is still work in progress and this element 6012 * payload is subject to change. 6013 * 6014 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set 6015 * element). 6016 * This element can be used for pre-standard publication testing of HE 6017 * before P802.11ax draft assigns the element ID extension. The payload of 6018 * this vendor specific element is defined by the latest P802.11ax draft 6019 * (not including the Element ID Extension field). Please note that the 6020 * draft is still work in progress and this element payload is subject to 6021 * change. 6022 * 6023 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. 6024 * This element can be used for pre-standard publication testing of HE 6025 * before P802.11ax draft assigns the element ID extension. The payload of 6026 * this vendor specific element is defined by the latest P802.11ax draft 6027 * (not including the Element ID Extension field). Please note that the 6028 * draft is still work in progress and this element payload is subject to 6029 * change. 6030 * 6031 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. 6032 * This element can be used for pre-standard publication testing of HE 6033 * before P802.11ax draft assigns the element ID extension. The payload of 6034 * this vendor specific element is defined by the latest P802.11ax draft 6035 * (not including the Element ID Extension field). Please note that the 6036 * draft is still work in progress and this element payload is subject to 6037 * change. 6038 */ 6039 enum qca_vendor_element_id { 6040 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, 6041 QCA_VENDOR_ELEM_HE_CAPAB = 1, 6042 QCA_VENDOR_ELEM_HE_OPER = 2, 6043 QCA_VENDOR_ELEM_RAPS = 3, 6044 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, 6045 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, 6046 }; 6047 6048 /** 6049 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture 6050 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32) 6051 * Specify the TSF command. Possible values are defined in 6052 * &enum qca_tsf_cmd. 6053 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64) 6054 * This attribute contains TSF timer value. This attribute is only available 6055 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 6056 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64) 6057 * This attribute contains SOC timer value at TSF capture. This attribute is 6058 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 6059 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32) 6060 * This attribute is used to provide TSF sync interval and only applicable when 6061 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the 6062 * driver will use the default value. Time unit is in milliseconds. 6063 */ 6064 enum qca_vendor_attr_tsf_cmd { 6065 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, 6066 QCA_WLAN_VENDOR_ATTR_TSF_CMD, 6067 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, 6068 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, 6069 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL, 6070 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, 6071 QCA_WLAN_VENDOR_ATTR_TSF_MAX = 6072 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 6073 }; 6074 6075 /** 6076 * enum qca_tsf_cmd: TSF driver commands 6077 * @QCA_TSF_CAPTURE: Initiate TSF Capture 6078 * @QCA_TSF_GET: Get TSF capture value 6079 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value 6080 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target 6081 * will automatically send TSF report to the host. To query 6082 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be 6083 * initiated first. 6084 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target 6085 * will not automatically send TSF report to the host. If 6086 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and 6087 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this 6088 * operation needs to be initiated. 6089 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically 6090 * fetches TSF and host time mapping from the firmware with interval configured 6091 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the 6092 * interval value is not provided the driver will use the default value. The 6093 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET 6094 * command. 6095 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature. 6096 */ 6097 enum qca_tsf_cmd { 6098 QCA_TSF_CAPTURE, 6099 QCA_TSF_GET, 6100 QCA_TSF_SYNC_GET, 6101 QCA_TSF_AUTO_REPORT_ENABLE, 6102 QCA_TSF_AUTO_REPORT_DISABLE, 6103 QCA_TSF_SYNC_START, 6104 QCA_TSF_SYNC_STOP, 6105 }; 6106 6107 /** 6108 * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list 6109 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value 6110 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type 6111 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list 6112 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight 6113 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last 6114 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max 6115 */ 6116 enum qca_vendor_attr_get_preferred_freq_list { 6117 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, 6118 /* A 32-unsigned value; the interface type/mode for which the preferred 6119 * frequency list is requested (see enum qca_iface_type for possible 6120 * values); used in both south- and north-bound. 6121 */ 6122 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, 6123 /* An array of 32-unsigned values; values are frequency (MHz); used 6124 * in north-bound only. 6125 */ 6126 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, 6127 /* An array of nested values as per enum 6128 * qca_wlan_vendor_attr_pcl_config attribute. 6129 * Each element contains frequency (MHz), weight, and flag 6130 * bit mask indicating how the frequency should be used in P2P 6131 * negotiation. 6132 */ 6133 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, 6134 /* keep last */ 6135 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, 6136 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = 6137 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 6138 }; 6139 6140 /** 6141 * enum qca_vendor_attr_probable_oper_channel - channel hint 6142 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value 6143 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type 6144 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value 6145 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last 6146 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max 6147 */ 6148 enum qca_vendor_attr_probable_oper_channel { 6149 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, 6150 /* 32-bit unsigned value; indicates the connection/iface type likely to 6151 * come on this channel (see enum qca_iface_type). 6152 */ 6153 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, 6154 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ 6155 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, 6156 /* keep last */ 6157 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, 6158 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = 6159 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 6160 }; 6161 6162 /** 6163 * enum qca_wlan_vendor_attr_gw_param_config - gateway param config 6164 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid 6165 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr 6166 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr 6167 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr 6168 */ 6169 enum qca_wlan_vendor_attr_gw_param_config { 6170 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0, 6171 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR, 6172 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR, 6173 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR, 6174 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST, 6175 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX = 6176 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1, 6177 }; 6178 6179 /** 6180 * enum drv_dbs_capability - DBS capability 6181 * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled 6182 * @DRV_DBS_CAPABILITY_1X1: 1x1 6183 * @DRV_DBS_CAPABILITY_2X2: 2x2 6184 */ 6185 enum drv_dbs_capability { 6186 DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */ 6187 DRV_DBS_CAPABILITY_1X1, 6188 DRV_DBS_CAPABILITY_2X2, 6189 }; 6190 6191 /** 6192 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease 6193 * 6194 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. 6195 */ 6196 enum qca_vendor_attr_txpower_decr_db { 6197 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, 6198 /* 6199 * 8-bit unsigned value to indicate the reduction of TX power in dB for 6200 * a virtual interface. 6201 */ 6202 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, 6203 /* keep last */ 6204 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, 6205 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = 6206 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 6207 }; 6208 6209 /** 6210 * enum qca_vendor_attr_ota_test - Enable OTA test 6211 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value 6212 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test 6213 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last 6214 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max 6215 */ 6216 enum qca_vendor_attr_ota_test { 6217 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, 6218 /* 8-bit unsigned value to indicate if OTA test is enabled */ 6219 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, 6220 /* keep last */ 6221 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, 6222 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = 6223 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 6224 }; 6225 6226 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index 6227 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value 6228 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value 6229 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value 6230 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value 6231 */ 6232 enum qca_vendor_attr_txpower_scale { 6233 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, 6234 /* 8-bit unsigned value to indicate the scaling of tx power */ 6235 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, 6236 /* keep last */ 6237 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, 6238 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = 6239 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 6240 }; 6241 6242 /** 6243 * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index 6244 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value 6245 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value 6246 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value 6247 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value 6248 */ 6249 enum qca_vendor_attr_txpower_scale_decr_db { 6250 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID, 6251 /* 8-bit unsigned value to indicate the scaling of tx power */ 6252 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB, 6253 /* keep last */ 6254 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST, 6255 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX = 6256 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1 6257 }; 6258 6259 /** 6260 * enum dfs_mode - state of DFS mode 6261 * @DFS_MODE_NONE: DFS mode attribute is none 6262 * @DFS_MODE_ENABLE: DFS mode is enabled 6263 * @DFS_MODE_DISABLE: DFS mode is disabled 6264 * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning 6265 */ 6266 enum dfs_mode { 6267 DFS_MODE_NONE, 6268 DFS_MODE_ENABLE, 6269 DFS_MODE_DISABLE, 6270 DFS_MODE_DEPRIORITIZE 6271 }; 6272 6273 /** 6274 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes 6275 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY. 6276 * 6277 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8) 6278 * DFS mode for ACS operation from enum qca_acs_dfs_mode. 6279 * 6280 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8) 6281 * channel number hint for ACS operation, if valid channel is specified then 6282 * ACS operation gives priority to this channel. 6283 * Note: If both the driver and user space application supports the 6 GHz band, 6284 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT 6285 * should be used. 6286 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT 6287 * is still used if either of the driver or user space application doesn't 6288 * support the 6 GHz band. 6289 * 6290 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32). 6291 * Channel center frequency (MHz) hint for ACS operation, if a valid center 6292 * frequency is specified, ACS operation gives priority to this channel. 6293 */ 6294 enum qca_wlan_vendor_attr_acs_config { 6295 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0, 6296 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1, 6297 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2, 6298 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3, 6299 6300 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST, 6301 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX = 6302 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1, 6303 }; 6304 6305 /** 6306 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability 6307 */ 6308 enum qca_wlan_vendor_attr_get_hw_capability { 6309 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, 6310 /* 6311 * Antenna isolation 6312 * An attribute used in the response. 6313 * The content of this attribute is encoded in a byte array. Each byte 6314 * value is an antenna isolation value. The array length is the number 6315 * of antennas. 6316 */ 6317 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, 6318 /* 6319 * Request HW capability 6320 * An attribute used in the request. 6321 * The content of this attribute is a u32 array for one or more of 6322 * hardware capabilities (attribute IDs) that are being requested. Each 6323 * u32 value has a value from this 6324 * enum qca_wlan_vendor_attr_get_hw_capability 6325 * identifying which capabilities are requested. 6326 */ 6327 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, 6328 6329 /* keep last */ 6330 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, 6331 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = 6332 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, 6333 }; 6334 6335 /** 6336 * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config - 6337 * config params for sta roam policy 6338 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid 6339 * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels 6340 * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL: 6341 * If sta should skip unsafe channels or not in scanning 6342 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST: 6343 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute 6344 */ 6345 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config { 6346 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0, 6347 QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE, 6348 QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL, 6349 6350 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST, 6351 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX = 6352 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1, 6353 }; 6354 6355 /* Attributes for FTM commands and events */ 6356 6357 /** 6358 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities 6359 * 6360 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See 6361 * enum qca_wlan_vendor_attr_loc_capa_flags. 6362 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number 6363 * of measurement sessions that can run concurrently. 6364 * Default is one session (no session concurrency). 6365 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique 6366 * peers that are supported in running sessions. For example, 6367 * if the value is 8 and maximum number of sessions is 2, you can 6368 * have one session with 8 unique peers, or 2 sessions with 4 unique 6369 * peers each, and so on. 6370 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number 6371 * of bursts per peer, as an exponent (2^value). Default is 0, 6372 * meaning no multi-burst support. 6373 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number 6374 * of measurement exchanges allowed in a single burst. 6375 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement 6376 * types. A bit mask (unsigned 32 bit value), each bit corresponds 6377 * to an AOA type as defined by enum qca_vendor_attr_aoa_type. 6378 */ 6379 enum qca_wlan_vendor_attr_loc_capa { 6380 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, 6381 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, 6382 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, 6383 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, 6384 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, 6385 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, 6386 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, 6387 /* keep last */ 6388 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, 6389 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = 6390 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, 6391 }; 6392 6393 /** 6394 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags 6395 * 6396 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver 6397 * can be configured as an FTM responder (for example, an AP that 6398 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 6399 * will be supported if set. 6400 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver 6401 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION 6402 * will be supported if set. 6403 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder 6404 * supports immediate (ASAP) response. 6405 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone 6406 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. 6407 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports 6408 * requesting AOA measurements as part of an FTM session. 6409 */ 6410 enum qca_wlan_vendor_attr_loc_capa_flags { 6411 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, 6412 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, 6413 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, 6414 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, 6415 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, 6416 }; 6417 6418 /** 6419 * enum qca_wlan_ani_setting - ANI setting type 6420 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level 6421 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter 6422 */ 6423 enum qca_wlan_ani_setting { 6424 QCA_WLAN_ANI_SETTING_AUTO = 0, 6425 QCA_WLAN_ANI_SETTING_FIXED = 1, 6426 }; 6427 6428 /** 6429 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration 6430 * 6431 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8) 6432 * Channel number on which Access Point should restart. 6433 * Note: If both the driver and user space application supports the 6 GHz band, 6434 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY 6435 * should be used. 6436 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL 6437 * is still used if either of the driver or user space application doesn't 6438 * support the 6 GHz band. 6439 * 6440 * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required 6441 * Nested attribute to hold list of center frequencies on which AP is 6442 * expected to operate. This is irrespective of ACS configuration. 6443 * This list is a priority based one and is looked for before the AP is 6444 * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC) 6445 * co-exist in the system. 6446 * 6447 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32) 6448 * Channel center frequency (MHz) on which the access point should restart. 6449 */ 6450 enum qca_wlan_vendor_attr_sap_config { 6451 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, 6452 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1, 6453 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, 6454 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3, 6455 6456 /* Keep last */ 6457 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, 6458 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = 6459 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, 6460 }; 6461 6462 /** 6463 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about 6464 * a single peer in a measurement session. 6465 * 6466 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. 6467 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related 6468 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. 6469 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of 6470 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 6471 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for 6472 * list of supported attributes. 6473 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for 6474 * secure measurement. 6475 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA 6476 * measurement every <value> bursts. If 0 or not specified, 6477 * AOA measurements will be disabled for this peer. 6478 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where 6479 * the measurement frames are exchanged. Optional; if not 6480 * specified, try to locate the peer in the kernel scan 6481 * results cache and use frequency from there. 6482 */ 6483 enum qca_wlan_vendor_attr_ftm_peer_info { 6484 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, 6485 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, 6486 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, 6487 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, 6488 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, 6489 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, 6490 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, 6491 /* keep last */ 6492 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, 6493 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = 6494 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, 6495 }; 6496 6497 /** 6498 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, 6499 * per-peer 6500 * 6501 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request 6502 * immediate (ASAP) response from peer. 6503 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request 6504 * LCI report from peer. The LCI report includes the absolute 6505 * location of the peer in "official" coordinates (similar to GPS). 6506 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. 6507 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request 6508 * Location civic report from peer. The LCR includes the location 6509 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, 6510 * 11.24.6.7 for more information. 6511 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, 6512 * request a secure measurement. 6513 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. 6514 */ 6515 enum qca_wlan_vendor_attr_ftm_peer_meas_flags { 6516 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, 6517 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, 6518 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, 6519 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, 6520 }; 6521 6522 /** 6523 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters 6524 * 6525 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements 6526 * to perform in a single burst. 6527 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to 6528 * perform, specified as an exponent (2^value). 6529 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst 6530 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. 6531 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, 6532 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must 6533 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. 6534 */ 6535 enum qca_wlan_vendor_attr_ftm_meas_param { 6536 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, 6537 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, 6538 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, 6539 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, 6540 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, 6541 /* keep last */ 6542 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, 6543 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = 6544 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, 6545 }; 6546 6547 /** 6548 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results 6549 * 6550 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported 6551 * peer. 6552 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement 6553 * request for this peer. 6554 * See enum qca_wlan_vendor_attr_ftm_peer_result_status. 6555 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related 6556 * to measurement results for this peer. 6557 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. 6558 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when 6559 * request failed and peer requested not to send an additional request 6560 * for this number of seconds. 6561 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received 6562 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 6563 * 9.4.2.22.10. 6564 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when 6565 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 6566 * 9.4.2.22.13. 6567 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer 6568 * overridden some measurement request parameters. See 6569 * enum qca_wlan_vendor_attr_ftm_meas_param. 6570 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement 6571 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 6572 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement 6573 * results. Each entry is a nested attribute defined 6574 * by enum qca_wlan_vendor_attr_ftm_meas. 6575 */ 6576 enum qca_wlan_vendor_attr_ftm_peer_result { 6577 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, 6578 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, 6579 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, 6580 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, 6581 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, 6582 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, 6583 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, 6584 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, 6585 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, 6586 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, 6587 /* keep last */ 6588 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, 6589 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = 6590 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, 6591 }; 6592 6593 /** 6594 * enum qca_wlan_vendor_attr_ftm_peer_result_status 6595 * 6596 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results 6597 * will be provided. Peer may have overridden some measurement parameters, 6598 * in which case overridden parameters will be report by 6599 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. 6600 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable 6601 * of performing the measurement request. No more results will be sent 6602 * for this peer in this session. 6603 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request 6604 * failed, and requested not to send an additional request for number 6605 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS 6606 * attribute. 6607 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation 6608 * failed. Request was not sent over the air. 6609 */ 6610 enum qca_wlan_vendor_attr_ftm_peer_result_status { 6611 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, 6612 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, 6613 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, 6614 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, 6615 }; 6616 6617 /** 6618 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags 6619 * for measurement result, per-peer 6620 * 6621 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, 6622 * measurement completed for this peer. No more results will be reported 6623 * for this peer in this session. 6624 */ 6625 enum qca_wlan_vendor_attr_ftm_peer_result_flags { 6626 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, 6627 }; 6628 6629 /** 6630 * enum qca_vendor_attr_loc_session_status: Session completion status code 6631 * 6632 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed 6633 * successfully. 6634 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted 6635 * by request. 6636 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request 6637 * was invalid and was not started. 6638 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error 6639 * and did not complete normally (for example out of resources). 6640 */ 6641 enum qca_vendor_attr_loc_session_status { 6642 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, 6643 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, 6644 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, 6645 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, 6646 }; 6647 6648 /** 6649 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data 6650 * 6651 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as 6652 * recorded by responder, in picoseconds. 6653 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 6654 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at 6655 * initiator, in picoseconds. 6656 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 6657 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by 6658 * initiator, in picoseconds. 6659 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 6660 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at 6661 * responder, in picoseconds. 6662 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 6663 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded 6664 * during this measurement exchange. Optional and will be provided if 6665 * the hardware can measure it. 6666 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by 6667 * responder. Not always provided. 6668 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 6669 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by 6670 * responder. Not always provided. 6671 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 6672 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by 6673 * initiator. Not always provided. 6674 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 6675 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by 6676 * initiator. Not always provided. 6677 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 6678 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding. 6679 */ 6680 enum qca_wlan_vendor_attr_ftm_meas { 6681 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, 6682 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, 6683 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, 6684 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, 6685 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, 6686 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, 6687 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, 6688 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, 6689 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, 6690 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, 6691 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, 6692 /* keep last */ 6693 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, 6694 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = 6695 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, 6696 }; 6697 6698 /** 6699 * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index 6700 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value 6701 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL: 6702 * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one 6703 * of the social channels. 6704 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period 6705 * A 32-bit unsigned value; the P2P listen offload period (ms). 6706 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL: 6707 * A 32-bit unsigned value; the P2P listen interval duration (ms). 6708 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT: 6709 * A 32-bit unsigned value; number of interval times the Firmware needs 6710 * to run the offloaded P2P listen operation before it stops. 6711 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types 6712 * An array of unsigned 8-bit characters; vendor information elements. 6713 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs 6714 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW 6715 * A 32-bit unsigned value; a control flag to indicate whether listen 6716 * results need to be flushed to wpa_supplicant. 6717 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason 6718 * A 8-bit unsigned value; reason code for P2P listen offload stop 6719 * event. 6720 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value 6721 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value 6722 */ 6723 enum qca_wlan_vendor_attr_p2p_listen_offload { 6724 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, 6725 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, 6726 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, 6727 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, 6728 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, 6729 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, 6730 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, 6731 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, 6732 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, 6733 /* keep last */ 6734 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, 6735 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = 6736 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 6737 }; 6738 6739 /** 6740 * enum qca_wlan_vendor_drv_info - WLAN driver info 6741 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid 6742 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info 6743 * between Firmware & Host. 6744 */ 6745 enum qca_wlan_vendor_drv_info { 6746 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, 6747 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, 6748 6749 /* keep last */ 6750 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, 6751 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = 6752 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, 6753 }; 6754 6755 /** 6756 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type 6757 * 6758 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest 6759 * CIR (channel impulse response) path for each antenna. 6760 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude 6761 * of the strongest CIR path for each antenna. 6762 */ 6763 enum qca_wlan_vendor_attr_aoa_type { 6764 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, 6765 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, 6766 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX 6767 }; 6768 6769 /** 6770 * enum qca_wlan_vendor_attr_encryption_test - Attributes to 6771 * validate encryption engine 6772 * 6773 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. 6774 * This will be included if the request is for decryption; if not included, 6775 * the request is treated as a request for encryption by default. 6776 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value 6777 * indicating the key cipher suite. Takes same values as 6778 * NL80211_ATTR_KEY_CIPHER. 6779 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value 6780 * Key Id to be used for encryption 6781 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. 6782 * Key (TK) to be used for encryption/decryption 6783 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. 6784 * Packet number to be specified for encryption/decryption 6785 * 6 bytes for TKIP/CCMP/GCMP. 6786 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values 6787 * representing the 802.11 packet (header + payload + FCS) that 6788 * needs to be encrypted/decrypted. 6789 * Encrypted/decrypted response from the driver will also be sent 6790 * to userspace with the same attribute. 6791 */ 6792 enum qca_wlan_vendor_attr_encryption_test { 6793 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, 6794 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, 6795 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, 6796 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, 6797 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, 6798 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, 6799 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, 6800 6801 /* keep last */ 6802 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, 6803 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = 6804 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 6805 }; 6806 6807 /** 6808 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of 6809 * sector for DMG RF sector operations. 6810 * 6811 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector 6812 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector 6813 */ 6814 enum qca_wlan_vendor_attr_dmg_rf_sector_type { 6815 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, 6816 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, 6817 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX 6818 }; 6819 6820 /** 6821 * enum qca_wlan_vendor_attr_fw_state - State of firmware 6822 * 6823 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state 6824 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active 6825 */ 6826 enum qca_wlan_vendor_attr_fw_state { 6827 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR, 6828 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE, 6829 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX 6830 }; 6831 6832 /** 6833 * BRP antenna limit mode 6834 * 6835 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force 6836 * antenna limit, BRP will be performed as usual. 6837 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal 6838 * antennas limit. the hardware may use less antennas than the 6839 * maximum limit. 6840 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will 6841 * use exactly the specified number of antennas for BRP. 6842 */ 6843 enum qca_wlan_vendor_attr_brp_ant_limit_mode { 6844 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, 6845 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, 6846 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, 6847 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX 6848 }; 6849 6850 /** 6851 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for 6852 * DMG RF sector configuration for a single RF module. 6853 * The values are defined in a compact way which closely matches 6854 * the way it is stored in HW registers. 6855 * The configuration provides values for 32 antennas and 8 distribution 6856 * amplifiers, and together describes the characteristics of the RF 6857 * sector - such as a beam in some direction with some gain. 6858 * 6859 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index 6860 * of RF module for this configuration. 6861 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge 6862 * amplifier gain index. Unsigned 32 bit number containing 6863 * bits for all 32 antennas. 6864 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge 6865 * amplifier gain index. Unsigned 32 bit number containing 6866 * bits for all 32 antennas. 6867 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge 6868 * amplifier gain index. Unsigned 32 bit number containing 6869 * bits for all 32 antennas. 6870 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values 6871 * for first 16 antennas, 2 bits per antenna. 6872 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values 6873 * for last 16 antennas, 2 bits per antenna. 6874 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains 6875 * DTYPE values (3 bits) for each distribution amplifier, followed 6876 * by X16 switch bits for each distribution amplifier. There are 6877 * total of 8 distribution amplifiers. 6878 */ 6879 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { 6880 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, 6881 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, 6882 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, 6883 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, 6884 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, 6885 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, 6886 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, 6887 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, 6888 6889 /* keep last */ 6890 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, 6891 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = 6892 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 6893 }; 6894 6895 /** 6896 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for 6897 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver. 6898 * 6899 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger 6900 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode 6901 * represents the different TDLS trigger modes. 6902 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within 6903 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number 6904 * of packets shall meet the criteria for implicit TDLS setup. 6905 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx 6906 * packets within a duration. 6907 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate 6908 * a TDLS setup. 6909 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate 6910 * a TDLS Discovery to the Peer. 6911 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of 6912 * discovery attempts to know the TDLS capability of the peer. A peer is 6913 * marked as TDLS not capable if there is no response for all the attempts. 6914 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) 6915 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD 6916 * number of TX / RX frames meet the criteria for TDLS teardown. 6917 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number 6918 * (u32) of Tx/Rx packets within a duration 6919 * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link 6920 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold 6921 * corresponding to the RSSI of the peer below which a TDLS 6922 * setup is triggered. 6923 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold 6924 * corresponding to the RSSI of the peer above which 6925 * a TDLS teardown is triggered. 6926 */ 6927 enum qca_wlan_vendor_attr_tdls_configuration { 6928 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, 6929 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, 6930 6931 /* Attributes configuring the TDLS Implicit Trigger */ 6932 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, 6933 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, 6934 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, 6935 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, 6936 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, 6937 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, 6938 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, 6939 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, 6940 6941 /* keep last */ 6942 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, 6943 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = 6944 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 6945 }; 6946 6947 /** 6948 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in 6949 * the driver. 6950 * 6951 * The following are the different values for 6952 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. 6953 * 6954 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to 6955 * initiate/teardown the TDLS connection to a respective peer comes 6956 * from the user space. wpa_supplicant provides the commands 6957 * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this. 6958 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS 6959 * setup/teardown to the eligible peer once the configured criteria 6960 * (such as TX/RX threshold, RSSI) is met. The attributes 6961 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to 6962 * the different configuration criteria for the TDLS trigger from the 6963 * host driver. 6964 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger 6965 * the TDLS setup / teardown through the implicit mode, only to the 6966 * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1, 6967 * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands). 6968 * External mode works on top of the implicit mode, thus the host Driver 6969 * is expected to be configured in TDLS Implicit mode too to operate in 6970 * External mode. Configuring External mode alone without Implicit 6971 * mode is invalid. 6972 * 6973 * All the above implementations work as expected only when the host driver 6974 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - 6975 * representing that the TDLS message exchange is not internal to the host 6976 * driver, but depends on wpa_supplicant to do the message exchange. 6977 */ 6978 enum qca_wlan_vendor_tdls_trigger_mode { 6979 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, 6980 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, 6981 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, 6982 }; 6983 6984 /** 6985 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits 6986 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 6987 * that is hard-coded in the Board Data File (BDF). 6988 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 6989 * that is hard-coded in the Board Data File (BDF). 6990 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 6991 * that is hard-coded in the Board Data File (BDF). 6992 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 6993 * that is hard-coded in the Board Data File (BDF). 6994 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 6995 * that is hard-coded in the Board Data File (BDF). 6996 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any 6997 * source of SAR power limits, thereby disabling the SAR power 6998 * limit feature. 6999 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power 7000 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 7001 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power 7002 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 7003 * 7004 * This enumerates the valid set of values that may be supplied for 7005 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of 7006 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in 7007 * the response to an instance of the 7008 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 7009 */ 7010 enum qca_vendor_attr_sar_limits_selections { 7011 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, 7012 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, 7013 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, 7014 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, 7015 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, 7016 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, 7017 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, 7018 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, 7019 }; 7020 7021 /** 7022 * enum qca_vendor_attr_sar_limits_spec_modulations - 7023 * SAR limits specification modulation 7024 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - 7025 * CCK modulation 7026 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - 7027 * OFDM modulation 7028 * 7029 * This enumerates the valid set of values that may be supplied for 7030 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an 7031 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an 7032 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor 7033 * command or in the response to an instance of the 7034 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 7035 */ 7036 enum qca_vendor_attr_sar_limits_spec_modulations { 7037 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, 7038 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, 7039 }; 7040 7041 /** 7042 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits 7043 * 7044 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to 7045 * select which SAR power limit table should be used. Valid 7046 * values are enumerated in enum 7047 * %qca_vendor_attr_sar_limits_selections. The existing SAR 7048 * power limit selection is unchanged if this attribute is not 7049 * present. 7050 * 7051 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value 7052 * which specifies the number of SAR power limit specifications 7053 * which will follow. 7054 * 7055 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power 7056 * limit specifications. The number of specifications is 7057 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each 7058 * specification contains a set of 7059 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A 7060 * specification is uniquely identified by the attributes 7061 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, 7062 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and 7063 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always 7064 * contains as a payload the attribute 7065 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT. 7066 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. 7067 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or 7068 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is 7069 * needed based upon the value of 7070 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. 7071 * 7072 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to 7073 * indicate for which band this specification applies. Valid 7074 * values are enumerated in enum %nl80211_band (although not all 7075 * bands may be supported by a given device). If the attribute is 7076 * not supplied then the specification will be applied to all 7077 * supported bands. 7078 * 7079 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value 7080 * to indicate for which antenna chain this specification 7081 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the 7082 * attribute is not supplied then the specification will be 7083 * applied to all chains. 7084 * 7085 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) 7086 * value to indicate for which modulation scheme this 7087 * specification applies. Valid values are enumerated in enum 7088 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute 7089 * is not supplied then the specification will be applied to all 7090 * modulation schemes. 7091 * 7092 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) 7093 * value to specify the actual power limit value in units of 0.5 7094 * dBm (i.e., a value of 11 represents 5.5 dBm). 7095 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 7096 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. 7097 * 7098 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) 7099 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. 7100 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 7101 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. 7102 * 7103 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS 7104 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. 7105 */ 7106 enum qca_vendor_attr_sar_limits { 7107 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, 7108 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, 7109 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, 7110 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, 7111 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, 7112 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, 7113 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, 7114 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, 7115 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, 7116 7117 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, 7118 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = 7119 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 7120 }; 7121 7122 /** 7123 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring 7124 * offload which is an extension for LL_STATS. 7125 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. 7126 * If MAC counters do not exceed the threshold, FW will report monitored 7127 * link layer counters periodically as this setting. The first report is 7128 * always triggered by this timer. 7129 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). 7130 * For each MAC layer counter, FW holds two copies. One is the current value. 7131 * The other is the last report. Once a current counter's increment is larger 7132 * than the threshold, FW will indicate that counter to host even if the 7133 * monitoring timer does not expire. 7134 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change 7135 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU 7136 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same 7137 * failure code. 7138 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code 7139 * 1: TX packet discarded 7140 * 2: No ACK 7141 * 3: Postpone 7142 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address 7143 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state 7144 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. 7145 * Threshold for all monitored parameters. If per counter dedicated threshold 7146 * is not enabled, this threshold will take effect. 7147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this 7148 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. 7149 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID 7150 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID 7151 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters 7152 * Bit0: TX counter unit in MSDU 7153 * Bit1: TX counter unit in MPDU 7154 * Bit2: TX counter unit in PPDU 7155 * Bit3: TX counter unit in byte 7156 * Bit4: Dropped MSDUs 7157 * Bit5: Dropped Bytes 7158 * Bit6: MPDU retry counter 7159 * Bit7: MPDU failure counter 7160 * Bit8: PPDU failure counter 7161 * Bit9: MPDU aggregation counter 7162 * Bit10: MCS counter for ACKed MPDUs 7163 * Bit11: MCS counter for Failed MPDUs 7164 * Bit12: TX Delay counter 7165 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters 7166 * Bit0: MAC RX counter unit in MPDU 7167 * Bit1: MAC RX counter unit in byte 7168 * Bit2: PHY RX counter unit in PPDU 7169 * Bit3: PHY RX counter unit in byte 7170 * Bit4: Disorder counter 7171 * Bit5: Retry counter 7172 * Bit6: Duplication counter 7173 * Bit7: Discard counter 7174 * Bit8: MPDU aggregation size counter 7175 * Bit9: MCS counter 7176 * Bit10: Peer STA power state change (wake to sleep) counter 7177 * Bit11: Peer STA power save counter, total time in PS mode 7178 * Bit12: Probe request counter 7179 * Bit13: Other management frames counter 7180 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA 7181 * Bit0: Idle time 7182 * Bit1: TX time 7183 * Bit2: time RX in current bss 7184 * Bit3: Out of current bss time 7185 * Bit4: Wireless medium busy time 7186 * Bit5: RX in bad condition time 7187 * Bit6: TX in bad condition time 7188 * Bit7: time wlan card not available 7189 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal 7190 * Bit0: Per channel SNR counter 7191 * Bit1: Per channel noise floor counter 7192 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers 7193 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels 7194 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats 7195 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats 7196 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats 7197 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs 7198 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs 7199 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs 7200 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data 7201 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets 7202 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped 7203 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK 7204 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed 7205 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed 7206 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: 7207 * aggregation stats buffer length 7208 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats 7209 * buffer for ACKed MPDUs. 7210 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats 7211 * buffer for failed MPDUs. 7212 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: 7213 * length of delay stats array. 7214 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats 7215 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs 7216 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs 7217 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats 7218 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received 7219 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received 7220 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received 7221 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received 7222 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost 7223 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets 7224 * flagged as retransmissions 7225 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets 7226 * flagged as duplicated 7227 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX 7228 * packets discarded 7229 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation 7230 * stats buffer. 7231 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs 7232 * stats buffer. 7233 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer 7234 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer 7235 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep 7236 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time 7237 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe 7238 * requests received 7239 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt 7240 * frames received 7241 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time 7242 * there is no TX, nor RX, nor interference. 7243 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time 7244 * transmitting packets. 7245 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time 7246 * for receiving. 7247 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time 7248 * interference detected. 7249 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time 7250 * receiving packets with errors. 7251 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time 7252 * TX no-ACK. 7253 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time 7254 * the chip is unable to work in normal conditions. 7255 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time 7256 * receiving packets in current BSS. 7257 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time 7258 * receiving packets not in current BSS. 7259 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas 7260 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: 7261 * This is a container for per antenna signal stats. 7262 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value 7263 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value 7264 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon 7265 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon 7266 */ 7267 enum qca_wlan_vendor_attr_ll_stats_ext { 7268 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, 7269 7270 /* Attributes for configurations */ 7271 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, 7272 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, 7273 7274 /* Peer STA power state change */ 7275 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, 7276 7277 /* TX failure event */ 7278 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, 7279 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, 7280 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, 7281 7282 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, 7283 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, 7284 7285 /* MAC counters */ 7286 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, 7287 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, 7288 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, 7289 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, 7290 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, 7291 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, 7292 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, 7293 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, 7294 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, 7295 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, 7296 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, 7297 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, 7298 7299 /* Sub-attributes for PEER_AC_TX */ 7300 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, 7301 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, 7302 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, 7303 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, 7304 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, 7305 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, 7306 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, 7307 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, 7308 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, 7309 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, 7310 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, 7311 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, 7312 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, 7313 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, 7314 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, 7315 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, 7316 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, 7317 7318 /* Sub-attributes for PEER_AC_RX */ 7319 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, 7320 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, 7321 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, 7322 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, 7323 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, 7324 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, 7325 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, 7326 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, 7327 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, 7328 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, 7329 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, 7330 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, 7331 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, 7332 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, 7333 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, 7334 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, 7335 7336 /* Sub-attributes for CCA_BSS */ 7337 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, 7338 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, 7339 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, 7340 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, 7341 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, 7342 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, 7343 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, 7344 7345 /* sub-attribute for BSS_RX_TIME */ 7346 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, 7347 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, 7348 7349 /* Sub-attributes for PEER_SIGNAL */ 7350 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, 7351 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, 7352 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, 7353 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, 7354 7355 /* Sub-attributes for IFACE_BSS */ 7356 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, 7357 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, 7358 7359 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, 7360 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = 7361 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 7362 }; 7363 7364 /** 7365 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd 7366 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels 7367 * in priority order as decided after ACS operation in userspace. 7368 * 7369 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8). 7370 * One of reason code from enum qca_wlan_vendor_acs_select_reason. 7371 * 7372 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required 7373 * Array of nested values for each channel with following attributes: 7374 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 7375 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 7376 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 7377 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 7378 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7379 * Note: If both the driver and user-space application supports the 6 GHz band, 7380 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use 7381 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST. 7382 * To maintain backward compatibility, 7383 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST 7384 * is still used if either of the driver or user space application doesn't 7385 * support the 6 GHz band. 7386 * 7387 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8). 7388 * Primary channel number 7389 * Note: If both the driver and user-space application supports the 6 GHz band, 7390 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use 7391 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY. 7392 * To maintain backward compatibility, 7393 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY 7394 * is still used if either of the driver or user space application doesn't 7395 * support the 6 GHz band. 7396 * 7397 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8). 7398 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths. 7399 * Note: If both the driver and user-space application supports the 6 GHz band, 7400 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use 7401 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY. 7402 * To maintain backward compatibility, 7403 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY 7404 * is still used if either of the driver or user space application 7405 * doesn't support the 6 GHz band. 7406 * 7407 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8). 7408 * VHT seg0 channel number 7409 * Note: If both the driver and user-space application supports the 6 GHz band, 7410 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use 7411 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0. 7412 * To maintain backward compatibility, 7413 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 7414 * is still used if either of the driver or user space application 7415 * doesn't support the 6 GHz band. 7416 * 7417 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8). 7418 * VHT seg1 channel number 7419 * Note: If both the driver and user-space application supports the 6 GHz band, 7420 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use 7421 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1. 7422 * To maintain backward compatibility, 7423 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 7424 * is still used if either of the driver or user space application 7425 * doesn't support the 6 GHz band. 7426 * 7427 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8). 7428 * Takes one of enum nl80211_chan_width values. 7429 * 7430 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required 7431 * Array of nested values for each channel with following attributes: 7432 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32), 7433 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32), 7434 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32), 7435 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32), 7436 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7437 * Note: If user-space application has no support of the 6 GHz band, this 7438 * attribute is optional. 7439 * 7440 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32) 7441 * Primary channel frequency in MHz 7442 * Note: If user-space application has no support of the 6 GHz band, this 7443 * attribute is optional. 7444 * 7445 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32) 7446 * Secondary channel frequency in MHz used for HT 40 MHz channels. 7447 * Note: If user-space application has no support of the 6 GHz band, this 7448 * attribute is optional. 7449 * 7450 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32) 7451 * VHT seg0 channel frequency in MHz 7452 * Note: If user-space application has no support of the 6GHz band, this 7453 * attribute is optional. 7454 * 7455 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32) 7456 * VHT seg1 channel frequency in MHz 7457 * Note: If user-space application has no support of the 6 GHz band, this 7458 * attribute is optional. 7459 */ 7460 enum qca_wlan_vendor_attr_external_acs_channels { 7461 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, 7462 7463 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason 7464 */ 7465 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, 7466 7467 /* Array of nested values for each channel with following attributes: 7468 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, 7469 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 7470 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 7471 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 7472 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 7473 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7474 */ 7475 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, 7476 /* This (u8) will hold values of one of enum nl80211_bands */ 7477 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, 7478 /* Primary channel (u8) */ 7479 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, 7480 /* Secondary channel (u8) used for HT 40 MHz channels */ 7481 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, 7482 /* VHT seg0 channel (u8) */ 7483 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, 7484 /* VHT seg1 channel (u8) */ 7485 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, 7486 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ 7487 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, 7488 7489 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9, 7490 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10, 7491 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11, 7492 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12, 7493 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13, 7494 7495 /* keep last */ 7496 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, 7497 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = 7498 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 7499 }; 7500 7501 /** 7502 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why 7503 * the ACS has to be triggered. These values are used by 7504 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and 7505 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON 7506 */ 7507 enum qca_wlan_vendor_acs_select_reason { 7508 /* Represents the reason that the ACS triggered during the AP start */ 7509 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, 7510 /* Represents the reason that DFS found with the current channel */ 7511 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, 7512 /* Represents the reason that LTE co-exist in the current band. */ 7513 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, 7514 /* Represents the reason that generic, uncategorized interference has 7515 * been found in the current channel. 7516 */ 7517 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, 7518 /* Represents the reason that excessive 802.11 interference has been 7519 * found in the current channel. 7520 */ 7521 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, 7522 /* Represents the reason that generic Continuous Wave (CW) interference 7523 * has been found in the current channel. 7524 */ 7525 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, 7526 /* Represents the reason that Microwave Oven (MWO) interference has been 7527 * found in the current channel. 7528 */ 7529 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, 7530 /* Represents the reason that generic Frequency-Hopping Spread Spectrum 7531 * (FHSS) interference has been found in the current channel. This may 7532 * include 802.11 waveforms. 7533 */ 7534 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, 7535 /* Represents the reason that non-802.11 generic Frequency-Hopping 7536 * Spread Spectrum (FHSS) interference has been found in the current 7537 * channel. 7538 */ 7539 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, 7540 /* Represents the reason that generic Wideband (WB) interference has 7541 * been found in the current channel. This may include 802.11 waveforms. 7542 */ 7543 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, 7544 /* Represents the reason that non-802.11 generic Wideband (WB) 7545 * interference has been found in the current channel. 7546 */ 7547 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, 7548 /* Represents the reason that Jammer interference has been found in the 7549 * current channel. 7550 */ 7551 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, 7552 /* Represents the reason that ACS triggered by AFC */ 7553 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER, 7554 }; 7555 7556 /** 7557 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration 7558 * 7559 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32) 7560 * value to specify the gpio command, please refer to enum qca_gpio_cmd_type 7561 * to get the available value that this item can use. 7562 * 7563 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32) 7564 * value to specify the gpio number. 7565 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7566 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT. 7567 * 7568 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32) 7569 * value to specify the gpio output level, please refer to enum qca_gpio_value 7570 * to get the available value that this item can use. 7571 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7572 * %QCA_WLAN_VENDOR_GPIO_OUTPUT. 7573 * 7574 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32) 7575 * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type 7576 * to get the available value that this item can use. 7577 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7578 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 7579 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 7580 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 7581 * attribute is present. 7582 * 7583 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32) 7584 * value to specify the gpio interrupt mode, please refer to enum 7585 * qca_gpio_interrupt_mode to get the available value that this item can use. 7586 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7587 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 7588 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 7589 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 7590 * attribute is present. 7591 * 7592 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32) 7593 * value to specify the gpio direction, please refer to enum qca_gpio_direction 7594 * to get the available value that this item can use. 7595 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7596 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 7597 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 7598 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 7599 * attribute is present. 7600 * 7601 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32) 7602 * Value to specify the mux config. Meaning of a given value is dependent 7603 * on the target chipset and gpio pin. Must be of the range 0-15. 7604 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7605 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0. 7606 * 7607 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32) 7608 * Value to specify the drive, Refer to enum qca_gpio_drive. 7609 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7610 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0). 7611 * 7612 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag) 7613 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7614 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all 7615 * other parameters for the given GPIO will be obtained from internal 7616 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be 7617 * specified to indicate the GPIO pin being configured. 7618 */ 7619 enum qca_wlan_gpio_attr { 7620 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, 7621 /* Unsigned 32-bit attribute for GPIO command */ 7622 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1, 7623 /* Unsigned 32-bit attribute for GPIO PIN number to configure */ 7624 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2, 7625 /* Unsigned 32-bit attribute for GPIO value to configure */ 7626 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3, 7627 /* Unsigned 32-bit attribute for GPIO pull type */ 7628 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4, 7629 /* Unsigned 32-bit attribute for GPIO interrupt mode */ 7630 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5, 7631 /* Unsigned 32-bit attribute for GPIO direction to configure */ 7632 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6, 7633 /* Unsigned 32-bit attribute for GPIO mux config */ 7634 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7, 7635 /* Unsigned 32-bit attribute for GPIO drive */ 7636 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8, 7637 /* Flag attribute for using internal gpio configuration */ 7638 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9, 7639 7640 /* keep last */ 7641 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, 7642 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = 7643 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1, 7644 }; 7645 7646 /** 7647 * enum gpio_cmd_type - GPIO configuration command type 7648 * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info 7649 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level 7650 */ 7651 enum qca_gpio_cmd_type { 7652 QCA_WLAN_VENDOR_GPIO_CONFIG = 0, 7653 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1, 7654 }; 7655 7656 /** 7657 * enum qca_gpio_pull_type - GPIO pull type 7658 * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none 7659 * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up 7660 * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down 7661 */ 7662 enum qca_gpio_pull_type { 7663 QCA_WLAN_GPIO_PULL_NONE = 0, 7664 QCA_WLAN_GPIO_PULL_UP = 1, 7665 QCA_WLAN_GPIO_PULL_DOWN = 2, 7666 QCA_WLAN_GPIO_PULL_MAX, 7667 }; 7668 7669 /** 7670 * enum qca_gpio_direction - GPIO direction 7671 * @QCA_WLAN_GPIO_INPUT: set gpio as input mode 7672 * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode 7673 * @QCA_WLAN_GPIO_VALUE_MAX: invalid value 7674 */ 7675 enum qca_gpio_direction { 7676 QCA_WLAN_GPIO_INPUT = 0, 7677 QCA_WLAN_GPIO_OUTPUT = 1, 7678 QCA_WLAN_GPIO_DIR_MAX, 7679 }; 7680 7681 /** 7682 * enum qca_gpio_value - GPIO Value 7683 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low 7684 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high 7685 * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value 7686 */ 7687 enum qca_gpio_value { 7688 QCA_WLAN_GPIO_LEVEL_LOW = 0, 7689 QCA_WLAN_GPIO_LEVEL_HIGH = 1, 7690 QCA_WLAN_GPIO_LEVEL_MAX, 7691 }; 7692 7693 /** 7694 * enum gpio_interrupt_mode - GPIO interrupt mode 7695 * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger 7696 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger 7697 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger 7698 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger 7699 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger 7700 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger 7701 * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value 7702 */ 7703 enum qca_gpio_interrupt_mode { 7704 QCA_WLAN_GPIO_INTMODE_DISABLE = 0, 7705 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1, 7706 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2, 7707 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3, 7708 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4, 7709 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5, 7710 QCA_WLAN_GPIO_INTMODE_MAX, 7711 }; 7712 7713 /** 7714 * enum gpio_drive - GPIO drive 7715 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA 7716 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA 7717 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA 7718 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA 7719 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA 7720 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA 7721 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA 7722 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA 7723 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive 7724 */ 7725 enum qca_gpio_drive { 7726 QCA_WLAN_GPIO_DRIVE_2MA = 0, 7727 QCA_WLAN_GPIO_DRIVE_4MA = 1, 7728 QCA_WLAN_GPIO_DRIVE_6MA = 2, 7729 QCA_WLAN_GPIO_DRIVE_8MA = 3, 7730 QCA_WLAN_GPIO_DRIVE_10MA = 4, 7731 QCA_WLAN_GPIO_DRIVE_12MA = 5, 7732 QCA_WLAN_GPIO_DRIVE_14MA = 6, 7733 QCA_WLAN_GPIO_DRIVE_16MA = 7, 7734 QCA_WLAN_GPIO_DRIVE_MAX, 7735 }; 7736 7737 /** 7738 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting 7739 * MSDUQ depth threshold per peer per tid in the target 7740 * 7741 * Associated Vendor Command: 7742 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH 7743 */ 7744 enum qca_wlan_set_qdepth_thresh_attr { 7745 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, 7746 /* 6-byte MAC address */ 7747 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, 7748 /* Unsigned 32-bit attribute for holding the TID */ 7749 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, 7750 /* Unsigned 32-bit attribute for holding the update mask 7751 * bit 0 - Update high priority msdu qdepth threshold 7752 * bit 1 - Update low priority msdu qdepth threshold 7753 * bit 2 - Update UDP msdu qdepth threshold 7754 * bit 3 - Update Non UDP msdu qdepth threshold 7755 * rest of bits are reserved 7756 */ 7757 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, 7758 /* Unsigned 32-bit attribute for holding the threshold value */ 7759 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, 7760 7761 /* keep last */ 7762 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, 7763 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = 7764 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, 7765 }; 7766 7767 /** 7768 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for 7769 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd 7770 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the 7771 * external ACS policies to select the channels w.r.t. the PCL weights. 7772 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and 7773 * their PCL weights.) 7774 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to 7775 * select a channel with non-zero PCL weight. 7776 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a 7777 * channel with non-zero PCL weight. 7778 * 7779 */ 7780 enum qca_wlan_vendor_attr_external_acs_policy { 7781 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, 7782 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, 7783 }; 7784 7785 /** 7786 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters 7787 */ 7788 enum qca_wlan_vendor_attr_spectral_scan { 7789 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, 7790 /* 7791 * Number of times the chip enters spectral scan mode before 7792 * deactivating spectral scans. When set to 0, chip will enter spectral 7793 * scan mode continuously. u32 attribute. 7794 */ 7795 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, 7796 /* 7797 * Spectral scan period. Period increment resolution is 256*Tclk, 7798 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. 7799 */ 7800 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, 7801 /* Spectral scan priority. u32 attribute. */ 7802 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, 7803 /* Number of FFT data points to compute. u32 attribute. */ 7804 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, 7805 /* 7806 * Enable targeted gain change before starting the spectral scan FFT. 7807 * u32 attribute. 7808 */ 7809 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, 7810 /* Restart a queued spectral scan. u32 attribute. */ 7811 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, 7812 /* 7813 * Noise floor reference number for the calculation of bin power. 7814 * u32 attribute. 7815 */ 7816 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, 7817 /* 7818 * Disallow spectral scan triggers after TX/RX packets by setting 7819 * this delay value to roughly SIFS time period or greater. 7820 * u32 attribute. 7821 */ 7822 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, 7823 /* 7824 * Number of strong bins (inclusive) per sub-channel, below 7825 * which a signal is declared a narrow band tone. u32 attribute. 7826 */ 7827 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, 7828 /* 7829 * Specify the threshold over which a bin is declared strong (for 7830 * scan bandwidth analysis). u32 attribute. 7831 */ 7832 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, 7833 /* Spectral scan report mode. u32 attribute. */ 7834 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, 7835 /* 7836 * RSSI report mode, if the ADC RSSI is below 7837 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, 7838 * then FFTs will not trigger, but timestamps and summaries get 7839 * reported. u32 attribute. 7840 */ 7841 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, 7842 /* 7843 * ADC RSSI must be greater than or equal to this threshold (signed dB) 7844 * to ensure spectral scan reporting with normal error code. 7845 * u32 attribute. 7846 */ 7847 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, 7848 /* 7849 * Format of frequency bin magnitude for spectral scan triggered FFTs: 7850 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). 7851 * u32 attribute. 7852 */ 7853 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, 7854 /* 7855 * Format of FFT report to software for spectral scan triggered FFTs. 7856 * 0: No FFT report (only spectral scan summary report) 7857 * 1: 2-dword summary of metrics for each completed FFT + spectral scan 7858 * report 7859 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled 7860 * bins (in-band) per FFT + spectral scan summary report 7861 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled 7862 * bins (all) per FFT + spectral scan summary report 7863 * u32 attribute. 7864 */ 7865 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, 7866 /* 7867 * Number of LSBs to shift out in order to scale the FFT bins. 7868 * u32 attribute. 7869 */ 7870 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, 7871 /* 7872 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes 7873 * in dBm power. u32 attribute. 7874 */ 7875 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, 7876 /* 7877 * Per chain enable mask to select input ADC for search FFT. 7878 * u32 attribute. 7879 */ 7880 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, 7881 /* 7882 * An unsigned 64-bit integer provided by host driver to identify the 7883 * spectral scan request. This attribute is included in the scan 7884 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START 7885 * and used as an attribute in 7886 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the 7887 * specific scan to be stopped. 7888 */ 7889 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, 7890 /* Skip interval for FFT reports. u32 attribute */ 7891 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, 7892 /* Set to report only one set of FFT results. 7893 * u32 attribute. 7894 */ 7895 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, 7896 /* Debug level for spectral module in driver. 7897 * 0 : Verbosity level 0 7898 * 1 : Verbosity level 1 7899 * 2 : Verbosity level 2 7900 * 3 : Matched filterID display 7901 * 4 : One time dump of FFT report 7902 * u32 attribute. 7903 */ 7904 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, 7905 /* Type of spectral scan request. u32 attribute. 7906 * It uses values defined in enum 7907 * qca_wlan_vendor_attr_spectral_scan_request_type. 7908 */ 7909 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, 7910 /* This specifies the frequency span over which spectral 7911 * scan would be carried out. Its value depends on the 7912 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and 7913 * the relation is as follows. 7914 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 7915 * Not applicable. Spectral scan would happen in the 7916 * operating span. 7917 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 7918 * Center frequency (in MHz) of the span of interest or 7919 * for convenience, center frequency (in MHz) of any channel 7920 * in the span of interest. For 80+80 MHz agile spectral scan 7921 * request it represents center frequency (in MHz) of the primary 7922 * 80 MHz span or for convenience, center frequency (in MHz) of any 7923 * channel in the primary 80 MHz span. If agile spectral scan is 7924 * initiated without setting a valid frequency it returns the 7925 * error code 7926 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED). 7927 * u32 attribute. 7928 */ 7929 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24, 7930 /* Spectral scan mode. u32 attribute. 7931 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 7932 * If this attribute is not present, it is assumed to be 7933 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL). 7934 */ 7935 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25, 7936 /* Spectral scan error code. u32 attribute. 7937 * It uses values defined in enum 7938 * qca_wlan_vendor_spectral_scan_error_code. 7939 * This attribute is included only in failure scenarios. 7940 */ 7941 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26, 7942 /* 8-bit unsigned value to enable/disable debug of the 7943 * Spectral DMA ring. 7944 * 1-enable, 0-disable 7945 */ 7946 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27, 7947 /* 8-bit unsigned value to enable/disable debug of the 7948 * Spectral DMA buffers. 7949 * 1-enable, 0-disable 7950 */ 7951 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28, 7952 /* This specifies the frequency span over which spectral scan would be 7953 * carried out. Its value depends on the value of 7954 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as 7955 * follows. 7956 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 7957 * Not applicable. Spectral scan would happen in the operating span. 7958 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 7959 * This attribute is applicable only for agile spectral scan 7960 * requests in 80+80 MHz mode. It represents center frequency (in 7961 * MHz) of the secondary 80 MHz span or for convenience, center 7962 * frequency (in MHz) of any channel in the secondary 80 MHz span. 7963 * u32 attribute. 7964 */ 7965 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29, 7966 /* This attribute specifies the bandwidth to be used for Spectral scan 7967 * operation. This is an u8 attribute and uses the values in enum 7968 * nl80211_chan_width. This is an optional attribute. 7969 * If this attribute is not populated, the driver should configure the 7970 * Spectral scan bandwidth to the maximum value supported by the target 7971 * for the current operating bandwidth. 7972 */ 7973 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30, 7974 /* Spectral FFT recapture flag attribute, to enable/disable FFT 7975 * recapture. Recapture can only be enabled for Scan period greater 7976 * than 52us. 7977 * If this attribute is enabled, re-triggers will be enabled in uCode 7978 * when AGC gain changes. 7979 */ 7980 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31, 7981 7982 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, 7983 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = 7984 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, 7985 }; 7986 7987 /** 7988 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command 7989 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. 7990 */ 7991 enum qca_wlan_vendor_attr_spectral_diag_stats { 7992 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, 7993 /* Number of spectral TLV signature mismatches. 7994 * u64 attribute. 7995 */ 7996 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, 7997 /* Number of spectral phyerror events with insufficient length when 7998 * parsing for secondary 80 search FFT report. u64 attribute. 7999 */ 8000 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, 8001 /* Number of spectral phyerror events without secondary 80 8002 * search FFT report. u64 attribute. 8003 */ 8004 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, 8005 /* Number of spectral phyerror events with vht operation segment 1 id 8006 * mismatches in search fft report. u64 attribute. 8007 */ 8008 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, 8009 /* Number of spectral phyerror events with vht operation segment 2 id 8010 * mismatches in search fft report. u64 attribute. 8011 */ 8012 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, 8013 8014 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, 8015 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = 8016 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, 8017 }; 8018 8019 /** 8020 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command 8021 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. 8022 */ 8023 enum qca_wlan_vendor_attr_spectral_cap { 8024 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, 8025 /* Flag attribute to indicate phydiag capability */ 8026 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, 8027 /* Flag attribute to indicate radar detection capability */ 8028 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, 8029 /* Flag attribute to indicate spectral capability */ 8030 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, 8031 /* Flag attribute to indicate advanced spectral capability */ 8032 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, 8033 /* Spectral hardware generation. u32 attribute. 8034 * It uses values defined in enum 8035 * qca_wlan_vendor_spectral_scan_cap_hw_gen. 8036 */ 8037 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, 8038 /* Spectral bin scaling formula ID. u16 attribute. 8039 * It uses values defined in enum 8040 * qca_wlan_vendor_spectral_scan_cap_formula_id. 8041 */ 8042 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6, 8043 /* Spectral bin scaling param - low level offset. 8044 * s16 attribute. 8045 */ 8046 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7, 8047 /* Spectral bin scaling param - high level offset. 8048 * s16 attribute. 8049 */ 8050 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8, 8051 /* Spectral bin scaling param - RSSI threshold. 8052 * s16 attribute. 8053 */ 8054 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9, 8055 /* Spectral bin scaling param - default AGC max gain. 8056 * u8 attribute. 8057 */ 8058 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10, 8059 /* Flag attribute to indicate agile spectral scan capability 8060 * for 20/40/80 MHz modes. 8061 */ 8062 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11, 8063 /* Flag attribute to indicate agile spectral scan capability 8064 * for 160 MHz mode. 8065 */ 8066 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12, 8067 /* Flag attribute to indicate agile spectral scan capability 8068 * for 80+80 MHz mode. 8069 */ 8070 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13, 8071 /* Number of spectral detectors used for scan in 20 MHz. 8072 * u32 attribute. 8073 */ 8074 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14, 8075 /* Number of spectral detectors used for scan in 40 MHz. 8076 * u32 attribute. 8077 */ 8078 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15, 8079 /* Number of spectral detectors used for scan in 80 MHz. 8080 * u32 attribute. 8081 */ 8082 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16, 8083 /* Number of spectral detectors used for scan in 160 MHz. 8084 * u32 attribute. 8085 */ 8086 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17, 8087 /* Number of spectral detectors used for scan in 80+80 MHz. 8088 * u32 attribute. 8089 */ 8090 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18, 8091 /* Flag attribute to indicate agile spectral scan capability 8092 * for 320 MHz mode. 8093 */ 8094 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19, 8095 /* Number of spectral detectors used for scan in 320 MHz. 8096 * u32 attribute. 8097 */ 8098 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20, 8099 8100 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, 8101 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = 8102 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, 8103 }; 8104 8105 /** 8106 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command 8107 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. 8108 */ 8109 enum qca_wlan_vendor_attr_spectral_scan_status { 8110 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, 8111 /* Flag attribute to indicate whether spectral scan is enabled */ 8112 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, 8113 /* Flag attribute to indicate whether spectral scan is in progress*/ 8114 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, 8115 /* Spectral scan mode. u32 attribute. 8116 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8117 * If this attribute is not present, normal mode 8118 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be 8119 * requested. 8120 */ 8121 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3, 8122 8123 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, 8124 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = 8125 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, 8126 }; 8127 8128 /** 8129 * enum qca_wlan_vendor_attr_config_latency_level - Level for 8130 * wlan latency module. 8131 * 8132 * There will be various of Wi-Fi functionality like scan/roaming/adaptive 8133 * power saving which would causing data exchange out of service, this 8134 * would be a big impact on latency. For latency sensitive applications over 8135 * Wi-Fi are intolerant to such operations and thus would configure them 8136 * to meet their respective needs. It is well understood by such applications 8137 * that altering the default behavior would degrade the Wi-Fi functionality 8138 * w.r.t the above pointed WLAN operations. 8139 * 8140 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: 8141 * Default WLAN operation level which throughput orientated. 8142 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR: 8143 * Use XR level to benefit XR (extended reality) application to achieve 8144 * latency and power by via constraint scan/roaming/adaptive PS. 8145 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: 8146 * Use low latency level to benifit application like concurrent 8147 * downloading or video streaming via constraint scan/adaptive PS. 8148 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: 8149 * Use ultra low latency level to benefit for gaming/voice 8150 * application via constraint scan/roaming/adaptive PS. 8151 */ 8152 enum qca_wlan_vendor_attr_config_latency_level { 8153 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, 8154 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, 8155 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2, 8156 /* legacy name */ 8157 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 8158 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR, 8159 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, 8160 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, 8161 8162 /* keep last */ 8163 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, 8164 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = 8165 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, 8166 }; 8167 8168 /** 8169 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for 8170 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd 8171 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the 8172 * spectral scan request types. 8173 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to 8174 * set the spectral parameters and start scan. 8175 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to 8176 * only set the spectral parameters. 8177 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to 8178 * only start the spectral scan. 8179 */ 8180 enum qca_wlan_vendor_attr_spectral_scan_request_type { 8181 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, 8182 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, 8183 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, 8184 }; 8185 8186 /** 8187 * qca_wlan_vendor_spectral_scan_mode: Attribute values for 8188 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd 8189 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and 8190 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd 8191 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the 8192 * spectral scan modes. 8193 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan: 8194 * spectral scan in the current operating span. 8195 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan: 8196 * spectral scan in the configured agile span. 8197 */ 8198 enum qca_wlan_vendor_spectral_scan_mode { 8199 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0, 8200 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1, 8201 }; 8202 8203 /** 8204 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for 8205 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd 8206 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. 8207 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value 8208 * of a parameter is not supported. 8209 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan 8210 * mode is not supported. 8211 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter 8212 * has invalid value. 8213 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter 8214 * is not initialized. 8215 */ 8216 enum qca_wlan_vendor_spectral_scan_error_code { 8217 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0, 8218 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1, 8219 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2, 8220 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3, 8221 }; 8222 8223 /** 8224 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for 8225 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd 8226 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 8227 * spectral hardware generation. 8228 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 8229 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 8230 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 8231 */ 8232 enum qca_wlan_vendor_spectral_scan_cap_hw_gen { 8233 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, 8234 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, 8235 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, 8236 }; 8237 8238 /** 8239 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for 8240 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd 8241 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 8242 * Spectral bin scaling formula ID. 8243 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling 8244 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain 8245 * and RSSI threshold based formula. 8246 */ 8247 enum qca_wlan_vendor_spectral_scan_cap_formula_id { 8248 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0, 8249 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1, 8250 }; 8251 8252 /** 8253 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative 8254 * RF Operating Parameter (RROP) information is available, and if so, at which 8255 * point in the application-driver interaction sequence it can be retrieved by 8256 * the application from the driver. This point may vary by architecture and 8257 * other factors. This is a u16 value. 8258 */ 8259 enum qca_wlan_vendor_attr_rropavail_info { 8260 /* RROP information is unavailable. */ 8261 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, 8262 /* RROP information is available and the application can retrieve the 8263 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS 8264 * event from the driver. 8265 */ 8266 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, 8267 /* RROP information is available only after a vendor specific scan 8268 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has 8269 * successfully completed. The application can retrieve the information 8270 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from 8271 * the driver. 8272 */ 8273 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, 8274 }; 8275 8276 /** 8277 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific 8278 * Representative RF Operating Parameter (RROP) information. It is sent for the 8279 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is 8280 * intended for use by external Auto Channel Selection applications. It provides 8281 * guidance values for some RF parameters that are used by the system during 8282 * operation. These values could vary by channel, band, radio, and so on. 8283 */ 8284 enum qca_wlan_vendor_attr_rrop_info { 8285 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, 8286 8287 /* Representative Tx Power List (RTPL) which has an array of nested 8288 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. 8289 */ 8290 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, 8291 8292 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, 8293 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = 8294 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 8295 }; 8296 8297 /** 8298 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list 8299 * entry instances in the Representative Tx Power List (RTPL). It provides 8300 * simplified power values intended for helping external Auto channel Selection 8301 * applications compare potential Tx power performance between channels, other 8302 * operating conditions remaining identical. These values are not necessarily 8303 * the actual Tx power values that will be used by the system. They are also not 8304 * necessarily the max or average values that will be used. Instead, they are 8305 * relative, summarized keys for algorithmic use computed by the driver or 8306 * underlying firmware considering a number of vendor specific factors. 8307 */ 8308 enum qca_wlan_vendor_attr_rtplinst { 8309 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, 8310 8311 /* Primary channel number (u8). 8312 * Note: If both the driver and user space application support the 8313 * 6 GHz band, this attribute is deprecated and 8314 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To 8315 * maintain backward compatibility, 8316 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the 8317 * driver or user space application or both do not support the 6 GHz 8318 * band. 8319 */ 8320 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, 8321 /* Representative Tx power in dBm (s32) with emphasis on throughput. */ 8322 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, 8323 /* Representative Tx power in dBm (s32) with emphasis on range. */ 8324 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, 8325 /* Primary channel center frequency (u32) in MHz */ 8326 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4, 8327 8328 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, 8329 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = 8330 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, 8331 }; 8332 8333 /** 8334 * enum qca_wlan_vendor_attr_mac - Used by the vendor command 8335 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 8336 * 8337 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an 8338 * array of nested values as per attributes in 8339 * enum qca_wlan_vendor_attr_mac_mode_info. 8340 */ 8341 enum qca_wlan_vendor_attr_mac { 8342 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, 8343 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, 8344 8345 /* keep last */ 8346 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, 8347 QCA_WLAN_VENDOR_ATTR_MAC_MAX = 8348 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, 8349 }; 8350 8351 /** 8352 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected 8353 * WiFi netdev interface on a respective MAC. Used by the attribute 8354 * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. 8355 * 8356 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32). 8357 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of 8358 * the connected Wi-Fi interface(u32). 8359 */ 8360 enum qca_wlan_vendor_attr_mac_iface_info { 8361 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, 8362 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, 8363 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, 8364 8365 /* keep last */ 8366 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, 8367 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = 8368 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, 8369 }; 8370 8371 /** 8372 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. 8373 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the 8374 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 8375 * 8376 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the 8377 * MAC (u32) 8378 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC 8379 * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described 8380 * in enum nl80211_band. 8381 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev 8382 * interfaces associated with this MAC. Represented by enum 8383 * qca_wlan_vendor_attr_mac_iface_info. 8384 */ 8385 enum qca_wlan_vendor_attr_mac_info { 8386 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, 8387 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, 8388 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, 8389 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, 8390 8391 /* keep last */ 8392 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, 8393 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = 8394 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, 8395 8396 }; 8397 8398 /** 8399 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes 8400 * to get thermal status from driver/firmware. 8401 * enum values are used for NL attributes encapsulated inside 8402 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute. 8403 * 8404 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature 8405 * of a thermal level in Celsius. u32 size. 8406 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature 8407 * of a thermal level in Celsius. u32 size. 8408 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each 8409 * thermal level in milliseconds. u32 size. 8410 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number 8411 * of times the temperature crossed into the temperature range defined by the 8412 * thermal level from both higher and lower directions. u32 size. 8413 */ 8414 enum qca_wlan_vendor_attr_thermal_stats { 8415 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0, 8416 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE, 8417 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE, 8418 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME, 8419 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER, 8420 8421 /* keep last */ 8422 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST, 8423 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX = 8424 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1, 8425 }; 8426 8427 /** 8428 * enum he_fragmentation_val - HE fragmentation support values 8429 * Indicates level of dynamic fragmentation that is supported by 8430 * a STA as a recipient. 8431 * HE fragmentation values are defined as per 11ax spec and are used in 8432 * HE capability IE to advertise the support. These values are validated 8433 * in the driver to check the device capability and advertised in the HE 8434 * capability element. 8435 * 8436 * @HE_FRAG_DISABLE: no support for dynamic fragmentation 8437 * @HE_FRAG_LEVEL1: support for dynamic fragments that are 8438 * contained within an MPDU or S-MPDU, no support for dynamic fragments 8439 * within an A-MPDU that is not an S-MPDU. 8440 * @HE_FRAG_LEVEL2: support for dynamic fragments that are 8441 * contained within an MPDU or S-MPDU and support for up to one dynamic 8442 * fragment for each MSDU, each A-MSDU if supported by the recipient, and 8443 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an 8444 * MPDU or S-MPDU. 8445 * @HE_FRAG_LEVEL3: support for dynamic fragments that are 8446 * contained within an MPDU or S-MPDU and support for multiple dynamic 8447 * fragments for each MSDU and for each A-MSDU if supported by the 8448 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic 8449 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. 8450 */ 8451 enum he_fragmentation_val { 8452 HE_FRAG_DISABLE, 8453 HE_FRAG_LEVEL1, 8454 HE_FRAG_LEVEL2, 8455 HE_FRAG_LEVEL3, 8456 }; 8457 8458 /** 8459 * enum he_mcs_config - HE MCS support configuration 8460 * 8461 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. 8462 * These values are used in driver to configure the HE MCS map to advertise 8463 * Tx/Rx MCS map in HE capability and these values are applied for all the 8464 * streams supported by the device. To configure MCS for different bandwidths, 8465 * vendor command needs to be sent using this attribute with appropriate value. 8466 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS 8467 * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS 8468 * for HE_160_MCS0_11 send this command using HE MCS config attribute with 8469 * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11; 8470 * 8471 * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7 8472 * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9 8473 * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11 8474 * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7 8475 * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9 8476 * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11 8477 * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7 8478 * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9 8479 * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11 8480 */ 8481 enum he_mcs_config { 8482 HE_80_MCS0_7 = 0, 8483 HE_80_MCS0_9 = 1, 8484 HE_80_MCS0_11 = 2, 8485 HE_160_MCS0_7 = 4, 8486 HE_160_MCS0_9 = 5, 8487 HE_160_MCS0_11 = 6, 8488 HE_80p80_MCS0_7 = 8, 8489 HE_80p80_MCS0_9 = 9, 8490 HE_80p80_MCS0_11 = 10, 8491 }; 8492 8493 /** 8494 * enum qca_wlan_ba_session_config - BA session configuration 8495 * 8496 * Indicates the configuration values for BA session configuration attribute. 8497 * 8498 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. 8499 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. 8500 */ 8501 enum qca_wlan_ba_session_config { 8502 QCA_WLAN_ADD_BA = 1, 8503 QCA_WLAN_DELETE_BA = 2, 8504 }; 8505 8506 /** 8507 * enum qca_wlan_ac_type - access category type 8508 * 8509 * Indicates the access category type value. 8510 * 8511 * @QCA_WLAN_AC_BE: BE access category 8512 * @QCA_WLAN_AC_BK: BK access category 8513 * @QCA_WLAN_AC_VI: VI access category 8514 * @QCA_WLAN_AC_VO: VO access category 8515 * @QCA_WLAN_AC_ALL: All ACs 8516 */ 8517 enum qca_wlan_ac_type { 8518 QCA_WLAN_AC_BE = 0, 8519 QCA_WLAN_AC_BK = 1, 8520 QCA_WLAN_AC_VI = 2, 8521 QCA_WLAN_AC_VO = 3, 8522 QCA_WLAN_AC_ALL = 4, 8523 }; 8524 8525 /** 8526 * enum qca_wlan_he_ltf_cfg - HE LTF configuration 8527 * 8528 * Indicates the HE LTF configuration value. 8529 * 8530 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to 8531 * the mandatory HE-LTF based on the GI setting 8532 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF 8533 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF 8534 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF 8535 */ 8536 enum qca_wlan_he_ltf_cfg { 8537 QCA_WLAN_HE_LTF_AUTO = 0, 8538 QCA_WLAN_HE_LTF_1X = 1, 8539 QCA_WLAN_HE_LTF_2X = 2, 8540 QCA_WLAN_HE_LTF_4X = 3, 8541 }; 8542 8543 /** 8544 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration 8545 * 8546 * Indicates the HE trigger frame MAC padding duration value. 8547 * 8548 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to 8549 * process the trigger frame. 8550 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for 8551 * trigger frame. 8552 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for 8553 * trigger frame. 8554 */ 8555 enum qca_wlan_he_mac_padding_dur { 8556 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, 8557 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, 8558 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, 8559 }; 8560 8561 /** 8562 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration 8563 * 8564 * Indicates the HE Operating mode control channel width setting value. 8565 * 8566 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz 8567 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz 8568 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz 8569 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz 8570 */ 8571 enum qca_wlan_he_om_ctrl_ch_bw { 8572 QCA_WLAN_HE_OM_CTRL_BW_20M = 0, 8573 QCA_WLAN_HE_OM_CTRL_BW_40M = 1, 8574 QCA_WLAN_HE_OM_CTRL_BW_80M = 2, 8575 QCA_WLAN_HE_OM_CTRL_BW_160M = 3, 8576 }; 8577 8578 /** 8579 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration 8580 * 8581 * Indicates the frame types to use for keep alive data. 8582 * 8583 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive. 8584 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive. 8585 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive. 8586 */ 8587 enum qca_wlan_keep_alive_data_type { 8588 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0, 8589 QCA_WLAN_KEEP_ALIVE_DATA = 1, 8590 QCA_WLAN_KEEP_ALIVE_MGMT = 2, 8591 }; 8592 8593 /** 8594 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for 8595 * HE operating mode control transmit request. These attributes are 8596 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and 8597 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 8598 * 8599 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value 8600 * indicates the maximum number of spatial streams, NSS, that the STA 8601 * supports in reception for PPDU bandwidths less than or equal to 80 MHz 8602 * and is set to NSS - 1. 8603 * 8604 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value 8605 * indicates the operating channel width supported by the STA for both 8606 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values. 8607 * 8608 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value 8609 * indicates the all trigger based UL MU operations by the STA. 8610 * 0 - UL MU operations are enabled by the STA. 8611 * 1 - All triggered UL MU transmissions are suspended by the STA. 8612 * 8613 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value 8614 * indicates the maximum number of space-time streams, NSTS, that 8615 * the STA supports in transmission and is set to NSTS - 1. 8616 * 8617 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value 8618 * combined with the UL MU Disable subfield and the recipient's setting 8619 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC 8620 * capabilities to determine which HE TB PPDUs are possible by the 8621 * STA to transmit. 8622 * 0 - UL MU data operations are enabled by the STA. 8623 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable 8624 * bit is not set, else UL MU Tx is suspended. 8625 * 8626 */ 8627 enum qca_wlan_vendor_attr_he_omi_tx { 8628 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0, 8629 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1, 8630 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2, 8631 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3, 8632 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4, 8633 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5, 8634 8635 /* keep last */ 8636 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST, 8637 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX = 8638 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1, 8639 }; 8640 8641 /** 8642 * enum qca_wlan_vendor_phy_mode - Different PHY modes 8643 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE. 8644 * 8645 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect 8646 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect 8647 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect 8648 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM 8649 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK 8650 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM 8651 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz 8652 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20 8653 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1) 8654 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1) 8655 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40 8656 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20 8657 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1) 8658 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1) 8659 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40 8660 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20 8661 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1) 8662 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1) 8663 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40 8664 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80 8665 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80 8666 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160 8667 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20 8668 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40 8669 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1) 8670 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1) 8671 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80 8672 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80 8673 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160 8674 */ 8675 enum qca_wlan_vendor_phy_mode { 8676 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0, 8677 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1, 8678 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2, 8679 QCA_WLAN_VENDOR_PHY_MODE_11A = 3, 8680 QCA_WLAN_VENDOR_PHY_MODE_11B = 4, 8681 QCA_WLAN_VENDOR_PHY_MODE_11G = 5, 8682 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6, 8683 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7, 8684 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8, 8685 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9, 8686 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10, 8687 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11, 8688 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12, 8689 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13, 8690 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14, 8691 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15, 8692 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16, 8693 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17, 8694 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18, 8695 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19, 8696 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20, 8697 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21, 8698 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22, 8699 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23, 8700 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24, 8701 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25, 8702 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26, 8703 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27, 8704 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28, 8705 }; 8706 8707 /* Attributes for data used by 8708 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION 8709 */ 8710 enum qca_wlan_vendor_attr_wifi_test_config { 8711 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, 8712 /* 8-bit unsigned value to configure the driver to enable/disable 8713 * WMM feature. This attribute is used to configure testbed device. 8714 * 1-enable, 0-disable 8715 */ 8716 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, 8717 8718 /* 8-bit unsigned value to configure the driver to accept/reject 8719 * the addba request from peer. This attribute is used to configure 8720 * the testbed device. 8721 * 1-accept addba, 0-reject addba 8722 */ 8723 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, 8724 8725 /* 8-bit unsigned value to configure the driver to send or not to 8726 * send the addba request to peer. 8727 * This attribute is used to configure the testbed device. 8728 * 1-send addba, 0-do not send addba 8729 */ 8730 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, 8731 8732 /* 8-bit unsigned value to indicate the HE fragmentation support. 8733 * Uses enum he_fragmentation_val values. 8734 * This attribute is used to configure the testbed device to 8735 * allow the advertised hardware capabilities to be downgraded 8736 * for testing purposes. 8737 */ 8738 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, 8739 8740 /* 8-bit unsigned value to indicate the HE MCS support. 8741 * Uses enum he_mcs_config values. 8742 * This attribute is used to configure the testbed device to 8743 * allow the advertised hardware capabilities to be downgraded 8744 * for testing purposes. 8745 */ 8746 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, 8747 8748 /* 8-bit unsigned value to configure the driver to allow or not to 8749 * allow the connection with WEP/TKIP in HT/VHT/HE modes. 8750 * This attribute is used to configure the testbed device. 8751 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip 8752 */ 8753 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, 8754 8755 /* 8-bit unsigned value to configure the driver to add a 8756 * new BA session or delete the existing BA session for 8757 * given TID. ADDBA command uses the buffer size and tid 8758 * configuration if user specifies the values else default 8759 * value for buffer size is used for all tids if the tid 8760 * also not specified. For DEL_BA command TID value is 8761 * required to process the command. 8762 * Uses enum qca_wlan_ba_session_config values. 8763 * This attribute is used to configure the testbed device. 8764 */ 8765 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, 8766 8767 /* 16-bit unsigned value to configure the buffer size in addba 8768 * request and response frames. 8769 * This attribute is used to configure the testbed device. 8770 * The range of the value is 0 to 256. 8771 */ 8772 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, 8773 8774 /* 8-bit unsigned value to configure the buffer size in addba 8775 * request and response frames. 8776 * This attribute is used to configure the testbed device. 8777 */ 8778 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, 8779 8780 /* 8-bit unsigned value to configure the no ack policy. 8781 * To configure no ack policy, access category value 8782 * is required to process the command. 8783 * This attribute is used to configure the testbed device. 8784 * 1 - enable no ack, 0 - disable no ack 8785 */ 8786 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, 8787 8788 /* 8-bit unsigned value to configure the AC for no ack policy 8789 * This attribute is used to configure the testbed device. 8790 * uses the enum qca_wlan_ac_type values 8791 */ 8792 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, 8793 8794 /* 8-bit unsigned value to configure the HE LTF 8795 * This attribute is used to configure the testbed device. 8796 * Uses the enum qca_wlan_he_ltf_cfg values. 8797 */ 8798 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, 8799 8800 /* 8-bit unsigned value to configure the tx beamformee. 8801 * This attribute is used to configure the testbed device. 8802 * 1 - enable, 0 - disable. 8803 */ 8804 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, 8805 8806 /* 8-bit unsigned value to configure the tx beamformee number of 8807 * space-time streams. 8808 * This attribute is used to configure the testbed device. 8809 * The range of the value is 0 to 8 8810 */ 8811 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, 8812 8813 /* 8-bit unsigned value to configure the MU EDCA params for given AC 8814 * This attribute is used to configure the testbed device. 8815 * Uses the enum qca_wlan_ac_type values. 8816 */ 8817 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, 8818 8819 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC 8820 * To configure MU EDCA AIFSN value, MU EDCA access category value 8821 * is required to process the command. 8822 * This attribute is used to configure the testbed device. 8823 */ 8824 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, 8825 8826 /* 8-bit unsigned value to configure the MU EDCA ECW min value for 8827 * given AC. 8828 * To configure MU EDCA ECW min value, MU EDCA access category value 8829 * is required to process the command. 8830 * This attribute is used to configure the testbed device. 8831 */ 8832 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, 8833 8834 /* 8-bit unsigned value to configure the MU EDCA ECW max value for 8835 * given AC. 8836 * To configure MU EDCA ECW max value, MU EDCA access category value 8837 * is required to process the command. 8838 * This attribute is used to configure the testbed device. 8839 */ 8840 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, 8841 8842 /* 8-bit unsigned value to configure the MU EDCA timer for given AC 8843 * To configure MU EDCA timer value, MU EDCA access category value 8844 * is required to process the command. 8845 * This attribute is used to configure the testbed device. 8846 */ 8847 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, 8848 8849 /* 8-bit unsigned value to configure the HE trigger frame MAC padding 8850 * duration. 8851 * This attribute is used to configure the testbed device. 8852 * Uses the enum qca_wlan_he_mac_padding_dur values. 8853 */ 8854 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, 8855 8856 /* 8-bit unsigned value to override the MU EDCA params to defaults 8857 * regardless of the AP beacon MU EDCA params. If it is enabled use 8858 * the default values else use the MU EDCA params from AP beacon. 8859 * This attribute is used to configure the testbed device. 8860 * 1 - enable override, 0 - disable. 8861 */ 8862 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, 8863 8864 /* 8-bit unsigned value to configure the support for receiving 8865 * an MPDU that contains an operating mode control subfield. 8866 * This attribute is used to configure the testbed device. 8867 * 1-enable, 0-disable. 8868 */ 8869 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, 8870 8871 /* Nested attribute values required to setup the TWT session. 8872 * enum qca_wlan_vendor_attr_twt_setup provides the necessary 8873 * information to set up the session. It contains broadcast flags, 8874 * set_up flags, trigger value, flow type, flow ID, wake interval 8875 * exponent, protection, target wake time, wake duration, wake interval 8876 * mantissa. These nested attributes are used to setup a host triggered 8877 * TWT session. 8878 */ 8879 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, 8880 8881 /* This nested attribute is used to terminate the current TWT session. 8882 * It does not currently carry any attributes. 8883 */ 8884 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, 8885 8886 /* This nested attribute is used to suspend the current TWT session. 8887 * It does not currently carry any attributes. 8888 */ 8889 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, 8890 8891 /* Nested attribute values to indicate the request for resume. 8892 * This attribute is used to resume the TWT session. 8893 * enum qca_wlan_vendor_attr_twt_resume provides the necessary 8894 * parameters required to resume the TWT session. 8895 */ 8896 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, 8897 8898 /* 8-bit unsigned value to set the HE operating mode control 8899 * (OM CTRL) Channel Width subfield. 8900 * The Channel Width subfield indicates the operating channel width 8901 * supported by the STA for both reception and transmission. 8902 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. 8903 * This setting is cleared with the 8904 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 8905 * flag attribute to reset defaults. 8906 * This attribute is used to configure the testbed device. 8907 */ 8908 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, 8909 8910 /* 8-bit unsigned value to configure the number of spatial 8911 * streams in HE operating mode control field. 8912 * This setting is cleared with the 8913 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 8914 * flag attribute to reset defaults. 8915 * This attribute is used to configure the testbed device. 8916 */ 8917 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, 8918 8919 /* Flag attribute to configure the UL MU disable bit in 8920 * HE operating mode control field. 8921 * This setting is cleared with the 8922 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 8923 * flag attribute to reset defaults. 8924 * This attribute is used to configure the testbed device. 8925 */ 8926 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, 8927 8928 /* Flag attribute to clear the previously set HE operating mode 8929 * control field configuration. 8930 * This attribute is used to configure the testbed device to reset 8931 * defaults to clear any previously set HE operating mode control 8932 * field configuration. 8933 */ 8934 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, 8935 8936 /* 8-bit unsigned value to configure HE single user PPDU 8937 * transmission. By default this setting is disabled and it 8938 * is disabled in the reset defaults of the device configuration. 8939 * This attribute is used to configure the testbed device. 8940 * 1-enable, 0-disable 8941 */ 8942 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, 8943 8944 /* 8-bit unsigned value to configure action frame transmission 8945 * in HE trigger based PPDU transmission. 8946 * By default this setting is disabled and it is disabled in 8947 * the reset defaults of the device configuration. 8948 * This attribute is used to configure the testbed device. 8949 * 1-enable, 0-disable 8950 */ 8951 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, 8952 8953 /* Nested attribute to indicate HE operating mode control field 8954 * transmission. It contains operating mode control field Nss, 8955 * channel bandwidth, Tx Nsts and UL MU disable attributes. 8956 * These nested attributes are used to send HE operating mode control 8957 * with configured values. 8958 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes. 8959 * This attribute is used to configure the testbed device. 8960 */ 8961 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33, 8962 8963 /* 8-bit unsigned value to configure +HTC_HE support to indicate the 8964 * support for the reception of a frame that carries an HE variant 8965 * HT Control field. 8966 * This attribute is used to configure the testbed device. 8967 * 1-enable, 0-disable 8968 */ 8969 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34, 8970 8971 /* 8-bit unsigned value to configure VHT support in 2.4G band. 8972 * This attribute is used to configure the testbed device. 8973 * 1-enable, 0-disable 8974 */ 8975 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35, 8976 8977 /* 8-bit unsigned value to configure HE testbed defaults. 8978 * This attribute is used to configure the testbed device. 8979 * 1-set the device HE capabilities to testbed defaults. 8980 * 0-reset the device HE capabilities to supported config. 8981 */ 8982 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36, 8983 8984 /* 8-bit unsigned value to configure twt request support. 8985 * This attribute is used to configure the testbed device. 8986 * 1-enable, 0-disable. 8987 */ 8988 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37, 8989 8990 /* 8-bit unsigned value to configure protection for Management 8991 * frames when PMF is enabled for the association. 8992 * This attribute is used to configure the testbed device. 8993 * 0-use the correct key, 1-use an incorrect key, 2-disable protection. 8994 */ 8995 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38, 8996 8997 /* Flag attribute to inject Disassociation frame to the connected AP. 8998 * This attribute is used to configure the testbed device. 8999 */ 9000 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39, 9001 9002 /* 8-bit unsigned value to configure an override for the RSNXE Used 9003 * subfield in the MIC control field of the FTE in FT Reassociation 9004 * Request frame. 9005 * 0 - Default behavior, 1 - override with 1, 2 - override with 0. 9006 * This attribute is used to configure the testbed device. 9007 * This attribute can be configured when STA is in disconnected or 9008 * associated state and the configuration is valid until the next 9009 * disconnection. 9010 */ 9011 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40, 9012 9013 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel 9014 * Switch Announcement) when STA is in connected state. 9015 * 0 - Default behavior, 1 - Ignore CSA. 9016 * This attribute is used to configure the testbed device. 9017 * This attribute can be configured when STA is in disconnected or 9018 * associated state and the configuration is valid until the next 9019 * disconnection. 9020 */ 9021 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41, 9022 9023 /* Nested attribute values required to configure OCI (Operating Channel 9024 * Information). Attributes defined in enum 9025 * qca_wlan_vendor_attr_oci_override are nested within this attribute. 9026 * This attribute is used to configure the testbed device. 9027 * This attribute can be configured when STA is in disconnected or 9028 * associated state and the configuration is valid until the next 9029 * disconnection. 9030 */ 9031 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42, 9032 9033 /* 8-bit unsigned value to configure the driver/firmware to ignore SA 9034 * Query timeout. If this configuration is enabled STA shall not send 9035 * Deauthentication frmae when SA Query times out (mainly, after a 9036 * channel switch when OCV is enabled). 9037 * 0 - Default behavior, 1 - Ignore SA Query timeout. 9038 * This attribute is used to configure the testbed device. 9039 * This attribute can be configured only when STA is in associated state 9040 * and the configuration is valid until the disconnection. 9041 */ 9042 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43, 9043 9044 /* 8-bit unsigned value to configure the driver/firmware to start or 9045 * stop transmitting FILS discovery frames. 9046 * 0 - Stop transmitting FILS discovery frames 9047 * 1 - Start transmitting FILS discovery frames 9048 * This attribute is used to configure the testbed device. 9049 * This attribute can be configured only in AP mode and the 9050 * configuration is valid until AP restart. 9051 */ 9052 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44, 9053 9054 /* 8-bit unsigned value to configure the driver/firmware to enable or 9055 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities 9056 * information field. 9057 * 0 - Disable full bandwidth UL MU-MIMO subfield 9058 * 1 - Enable full bandwidth UL MU-MIMO subfield 9059 * This attribute is used to configure the testbed device. 9060 */ 9061 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45, 9062 9063 /* 16-bit unsigned value to configure the driver with a specific BSS 9064 * max idle period to advertise in the BSS Max Idle Period element 9065 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames. 9066 * This attribute is used to configure the testbed device. 9067 */ 9068 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46, 9069 9070 /* 8-bit unsigned value to configure the driver to use only RU 242 tone 9071 * for data transmission. 9072 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx. 9073 * This attribute is used to configure the testbed device. 9074 */ 9075 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47, 9076 9077 /* 8-bit unsigned value to configure the driver to disable data and 9078 * management response frame transmission to test the BSS max idle 9079 * feature. 9080 * 0 - Default behavior, 1 - Disable data and management response Tx. 9081 * This attribute is used to configure the testbed device. 9082 */ 9083 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48, 9084 9085 /* 8-bit unsigned value to configure the driver/firmware to enable or 9086 * disable Punctured Preamble Rx subfield in the HE PHY capabilities 9087 * information field. 9088 * 0 - Disable Punctured Preamble Rx subfield 9089 * 1 - Enable Punctured Preamble Rx subfield 9090 * This attribute is used to configure the testbed device. 9091 */ 9092 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49, 9093 9094 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E 9095 * requirement mismatch for 6 GHz connection. 9096 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch. 9097 * This attribute is used to configure the testbed device. 9098 */ 9099 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50, 9100 9101 /* 8-bit unsigned value to configure the driver to allow 6 GHz 9102 * connection with all security modes. 9103 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security 9104 * modes. 9105 * This attribute is used for testing purposes. 9106 */ 9107 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51, 9108 9109 /* 8-bit unsigned value to configure the driver to transmit data with 9110 * ER SU PPDU type. 9111 * 9112 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX. 9113 * This attribute is used for testing purposes. 9114 */ 9115 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52, 9116 9117 /* 8-bit unsigned value to configure the driver to use Data or 9118 * Management frame type for keep alive data. 9119 * Uses enum qca_wlan_keep_alive_data_type values. 9120 * 9121 * This attribute is used for testing purposes. 9122 */ 9123 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53, 9124 9125 /* 8-bit unsigned value to configure the driver to use scan request 9126 * BSSID value in Probe Request frame RA(A1) during the scan. The 9127 * driver saves this configuration and applies this setting to all user 9128 * space scan requests until the setting is cleared. If this 9129 * configuration is set, the driver uses the BSSID value from the scan 9130 * request to set the RA(A1) in the Probe Request frames during the 9131 * scan. 9132 * 9133 * 0 - Default behavior uses the broadcast RA in Probe Request frames. 9134 * 1 - Uses the scan request BSSID in RA in Probe Request frames. 9135 * This attribute is used for testing purposes. 9136 */ 9137 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54, 9138 9139 /* 8-bit unsigned value to configure the driver to enable/disable the 9140 * BSS max idle period support. 9141 * 9142 * 0 - Disable the BSS max idle support. 9143 * 1 - Enable the BSS max idle support. 9144 * This attribute is used for testing purposes. 9145 */ 9146 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55, 9147 9148 /* 8-bit unsigned value to configure the driver/firmware to enable or 9149 * disable Rx control frame to MultiBSS subfield in the HE MAC 9150 * capabilities information field. 9151 * 0 - Disable Rx control frame to MultiBSS subfield 9152 * 1 - Enable Rx control frame to MultiBSS subfield 9153 * This attribute is used to configure the testbed device. 9154 */ 9155 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56, 9156 9157 /* 8-bit unsigned value to configure the driver/firmware to enable or 9158 * disable Broadcast TWT support subfield in the HE MAC capabilities 9159 * information field. 9160 * 0 - Disable Broadcast TWT support subfield 9161 * 1 - Enable Broadcast TWT support subfield 9162 * This attribute is used to configure the testbed device. 9163 */ 9164 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57, 9165 9166 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR 9167 * mode for 802.11be MLO capable devices. If the attribute is set to 1, 9168 * and if the FW supports this capability too, then the STA host 9169 * advertises this capability to AP over assoc request frame. This 9170 * attribute will not have any effect on legacy devices with no 802.11be 9171 * support. 9172 * 0 - Default behavior 9173 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode 9174 * This attribute is used to configure the testbed device. 9175 */ 9176 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58, 9177 9178 /* 8-bit unsigned value to configure the driver to enable/disable the 9179 * periodic sounding for Tx beamformer functionality. The default 9180 * behavior uses algorithm to do sounding based on packet stats. 9181 * 9182 * 0 - Default behavior. 9183 * 1 - Enable the periodic sounding for Tx beamformer. 9184 * This attribute is used for testing purposes. 9185 */ 9186 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59, 9187 9188 /* keep last */ 9189 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, 9190 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = 9191 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, 9192 }; 9193 9194 /** 9195 * enum qca_wlan_twt_operation - Operation of the config TWT request 9196 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION. 9197 * The response for the respective operations can be either synchronous or 9198 * asynchronous (wherever specified). If synchronous, the response to this 9199 * operation is obtained in the corresponding vendor command reply to the user 9200 * space. For the asynchronous case the response is obtained as an event with 9201 * the same operation type. 9202 * 9203 * Drivers shall support either of these modes but not both simultaneously. 9204 * This support for asynchronous mode is advertised through the flag 9205 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised, 9206 * the driver shall support synchronous mode. 9207 * 9208 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured 9209 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 9210 * qca_wlan_vendor_attr_twt_setup. Depending upon the 9211 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a 9212 * synchronous or asynchronous operation. 9213 * 9214 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are 9215 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 9216 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation. 9217 * 9218 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are 9219 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 9220 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 9221 * This terminate can either get triggered by the user space or can as well be 9222 * a notification from the firmware if it initiates a terminate. 9223 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 9224 * the request from user space can either be a synchronous or asynchronous 9225 * operation. 9226 * 9227 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are 9228 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 9229 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 9230 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 9231 * this is either a synchronous or asynchronous operation. 9232 * 9233 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are 9234 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 9235 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup. 9236 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE 9237 * request. 9238 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 9239 * capability, this is either a synchronous or asynchronous operation. 9240 * 9241 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a 9242 * combination of suspend and resume in a single request. Required parameters 9243 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the 9244 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is 9245 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 9246 * capability, this is either a synchronous or asynchronous operation. 9247 * 9248 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information. 9249 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT 9250 * session is setup. It's a synchronous operation. 9251 * 9252 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information. 9253 * Valid only after the TWT session is setup. It's a synchronous operation. 9254 * 9255 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its 9256 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous 9257 * operation. 9258 * 9259 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is 9260 * ready for a new TWT session setup after it issued a twt teardown. 9261 * 9262 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required 9263 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer 9264 * the enum qca_wlan_vendor_attr_twt_set_param. 9265 * 9266 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT 9267 * related information for example TWT required bit in AP capabilities etc. 9268 * The reason for the notification is sent using 9269 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS. 9270 */ 9271 enum qca_wlan_twt_operation { 9272 QCA_WLAN_TWT_SET = 0, 9273 QCA_WLAN_TWT_GET = 1, 9274 QCA_WLAN_TWT_TERMINATE = 2, 9275 QCA_WLAN_TWT_SUSPEND = 3, 9276 QCA_WLAN_TWT_RESUME = 4, 9277 QCA_WLAN_TWT_NUDGE = 5, 9278 QCA_WLAN_TWT_GET_STATS = 6, 9279 QCA_WLAN_TWT_CLEAR_STATS = 7, 9280 QCA_WLAN_TWT_GET_CAPABILITIES = 8, 9281 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9, 9282 QCA_WLAN_TWT_SET_PARAM = 10, 9283 QCA_WLAN_TWT_NOTIFY = 11, 9284 }; 9285 9286 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by 9287 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT 9288 * 9289 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: 9290 * u8 attribute. Specify the TWT operation of this request. Possible values 9291 * are defined in enum qca_wlan_twt_operation. The parameters for the 9292 * respective operation is specified through 9293 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. 9294 * 9295 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the 9296 * parameters configured for TWT. These parameters are represented by 9297 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume, 9298 * enum qca_wlan_vendor_attr_twt_set_param or 9299 * enum qca_wlan_vendor_attr_twt_stats based on the operation. 9300 * 9301 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when 9302 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY. 9303 * The values used by this attribute are defined in 9304 * enum qca_wlan_vendor_twt_status. 9305 */ 9306 enum qca_wlan_vendor_attr_config_twt { 9307 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0, 9308 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1, 9309 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2, 9310 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3, 9311 9312 /* keep last */ 9313 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST, 9314 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX = 9315 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1, 9316 }; 9317 9318 /** 9319 * qca_wlan_twt_setup_state: Represents the TWT session states. 9320 * 9321 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established. 9322 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active. 9323 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state. 9324 */ 9325 enum qca_wlan_twt_setup_state { 9326 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0, 9327 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1, 9328 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2, 9329 }; 9330 9331 /** 9332 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for 9333 * TWT (Target Wake Time) setup request. These attributes are sent as part of 9334 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and 9335 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 9336 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 9337 * 9338 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. 9339 * Disable (flag attribute not present) - Individual TWT 9340 * Enable (flag attribute present) - Broadcast TWT. 9341 * Individual means the session is between the STA and the AP. 9342 * This session is established using a separate negotiation between 9343 * STA and AP. 9344 * Broadcast means the session is across multiple STAs and an AP. The 9345 * configuration parameters are announced in Beacon frames by the AP. 9346 * This is used in 9347 * 1. TWT SET Request and Response 9348 * 2. TWT GET Response 9349 * 9350 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). 9351 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to 9352 * specify the TWT request type. This is used in TWT SET operation. 9353 * 9354 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute 9355 * Enable (flag attribute present) - TWT with trigger support. 9356 * Disable (flag attribute not present) - TWT without trigger support. 9357 * Trigger means the AP will send the trigger frame to allow STA to send data. 9358 * Without trigger, the STA will wait for the MU EDCA timer before 9359 * transmitting the data. 9360 * This is used in 9361 * 1. TWT SET Request and Response 9362 * 2. TWT GET Response 9363 * 9364 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) 9365 * 0 - Announced TWT - In this mode, STA may skip few service periods to 9366 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS 9367 * NULL frame to AP. 9368 * 1 - Unannounced TWT - The STA will wakeup during every SP. 9369 * This is a required parameter for 9370 * 1. TWT SET Request and Response 9371 * 2. TWT GET Response 9372 * 9373 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) 9374 * Flow ID is the unique identifier for each TWT session. 9375 * If not provided then dialog ID will be set to zero. 9376 * This is an optional parameter for 9377 * 1. TWT SET Request and Response 9378 * 2. TWT GET Request and Response 9379 * 3. TWT TERMINATE Request and Response 9380 * 4. TWT SUSPEND Request and Response 9381 * Flow Id values from 0 to 254 represent a single TWT session 9382 * Flow ID value of 255 represents all twt sessions for the following 9383 * 1. TWT TERMINATE Request and Response 9384 * 2. TWT SUSPEND Request and Response 9385 * 4. TWT CLEAR STATISTICS request 9386 * 5. TWT GET STATISTICS request and response 9387 * If an invalid dialog id is provided, status 9388 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 9389 * 9390 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) 9391 * This attribute (exp) is used along with the mantissa to derive the 9392 * wake interval using the following formula: 9393 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis 9394 * Wake interval is the interval between 2 successive SP. 9395 * This is a required parameter for 9396 * 1. TWT SET Request and Response 9397 * 2. TWT GET Response 9398 * 9399 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute 9400 * Enable (flag attribute present) - Protection required. 9401 * Disable (flag attribute not present) - Protection not required. 9402 * If protection is enabled, then the AP will use protection 9403 * mechanism using RTS/CTS to self to reserve the airtime. 9404 * This is used in 9405 * 1. TWT SET Request and Response 9406 * 2. TWT GET Response 9407 * 9408 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) 9409 * This attribute is used as the SP offset which is the offset from 9410 * TSF after which the wake happens. The units are in microseconds. If 9411 * this attribute is not provided, then the value will be set to zero. 9412 * This is an optional parameter for 9413 * 1. TWT SET Request and Response 9414 * 2. TWT GET Response 9415 * 9416 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) 9417 * This is the duration of the service period. This is specified as 9418 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF. 9419 * This is a required parameter for 9420 * 1. TWT SET Request and Response 9421 * 2. TWT GET Response 9422 * 9423 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) 9424 * This attribute is used to configure wake interval mantissa. 9425 * The units are in TU. 9426 * This is a required parameter for 9427 * 1. TWT SET Request and Response 9428 * 2. TWT GET Response 9429 * 9430 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8) 9431 * This field is applicable for TWT response only. 9432 * This contains status values in enum qca_wlan_vendor_twt_status 9433 * and is passed to the userspace. This is used in TWT SET operation. 9434 * This is a required parameter for 9435 * 1. TWT SET Response 9436 * 2. TWT TERMINATE Response 9437 * 3. TWT SUSPEND Response 9438 * 4. TWT RESUME Response 9439 * 5. TWT NUDGE Response 9440 * 9441 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8) 9442 * This field is applicable for TWT response only. 9443 * This field contains response type from the TWT responder and is 9444 * passed to the userspace. The values for this field are defined in 9445 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET 9446 * response. 9447 * 9448 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64) 9449 * In TWT setup command this field contains absolute TSF that will 9450 * be used by TWT requester during setup. 9451 * In TWT response this field contains absolute TSF value of the 9452 * wake time received from the TWT responder and is passed to 9453 * the userspace. 9454 * This is an optional parameter for 9455 * 1. TWT SET Request 9456 * This is a required parameter for 9457 * 1. TWT SET Response 9458 * 2. TWT GET Response 9459 * 9460 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute. 9461 * Enable (flag attribute present) - Indicates that the TWT responder 9462 * supports reception of TWT information frame from the TWT requestor. 9463 * Disable (flag attribute not present) - Indicates that the responder 9464 * doesn't support reception of TWT information frame from requestor. 9465 * This is used in 9466 * 1. TWT SET Response 9467 * 2. TWT GET Response 9468 * 9469 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address 9470 * Represents the MAC address of the peer for which the TWT session 9471 * is being configured. This is used in AP mode to represent the respective 9472 * client 9473 * In AP mode, this is a required parameter in response for 9474 * 1. TWT SET 9475 * 2. TWT GET 9476 * 3. TWT TERMINATE 9477 * 4. TWT SUSPEND 9478 * In STA mode, this is an optional parameter in request and response for 9479 * the above four TWT operations. 9480 * In AP mode, this is a required parameter in request for 9481 * 1. TWT GET 9482 * 2. TWT TERMINATE 9483 * 9484 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32) 9485 * Minimum tolerance limit of wake interval parameter in microseconds. 9486 * 9487 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32) 9488 * Maximum tolerance limit of wake interval parameter in microseconds. 9489 * 9490 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32) 9491 * Minimum tolerance limit of wake duration parameter in microseconds. 9492 * 9493 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32) 9494 * Maximum tolerance limit of wake duration parameter in microseconds. 9495 * 9496 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32) 9497 * TWT state for the given dialog id. The values for this are represented 9498 * by enum qca_wlan_twt_setup_state. 9499 * This is obtained through TWT GET operation. 9500 * 9501 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32) 9502 * This attribute is used to configure wake interval mantissa. 9503 * The unit is microseconds. This attribute, when specified, takes 9504 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA. 9505 * This parameter is used for 9506 * 1. TWT SET Request and Response 9507 * 2. TWT GET Response 9508 * 9509 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8) 9510 * This attribute is used to configure Broadcast TWT ID. 9511 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the 9512 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31. 9513 * This parameter is used for 9514 * 1. TWT SET Request 9515 * 2. TWT TERMINATE Request 9516 * 9517 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8) 9518 * This attribute is used to configure Broadcast TWT recommendation. 9519 * The Broadcast TWT Recommendation subfield contains a value that indicates 9520 * recommendations on the types of frames that are transmitted by TWT 9521 * scheduled STAs and scheduling AP during the broadcast TWT SP. 9522 * The allowed values are 0 - 3. 9523 * This parameter is used for 9524 * 1. TWT SET Request 9525 * 9526 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8) 9527 * This attribute is used to configure Broadcast TWT Persistence. 9528 * The Broadcast TWT Persistence subfield indicates the number of 9529 * TBTTs during which the Broadcast TWT SPs corresponding to this 9530 * broadcast TWT Parameter set are present. The number of beacon intervals 9531 * during which the Broadcast TWT SPs are present is equal to the value in the 9532 * Broadcast TWT Persistence subfield plus 1 except that the value 255 9533 * indicates that the Broadcast TWT SPs are present until explicitly terminated. 9534 * This parameter is used for 9535 * 1. TWT SET Request 9536 * 9537 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8) 9538 * This attribute contains the value of the Responder PM Mode subfield (0 or 1) 9539 * from TWT response frame. 9540 * This parameter is used for 9541 * 1. TWT SET Response 9542 * 2. TWT GET Response 9543 * 9544 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32) 9545 * This attribute is used to configure the announce timeout value (in us) in 9546 * firmware. This timeout value is only applicable for announced TWT. If 9547 * timeout value is non-zero then firmware waits upto timeout value to use 9548 * data frame as announcement frame. If timeout value is 0 then firmware sends 9549 * explicit QoS NULL frame as announcement frame on SP start. Default value in 9550 * firmware is 0. 9551 * This parameter is used for 9552 * 1. TWT SET Request 9553 */ 9554 enum qca_wlan_vendor_attr_twt_setup { 9555 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, 9556 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, 9557 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, 9558 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, 9559 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, 9560 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, 9561 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, 9562 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, 9563 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, 9564 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, 9565 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, 9566 9567 /* TWT Response only attributes */ 9568 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11, 9569 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12, 9570 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13, 9571 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14, 9572 9573 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15, 9574 9575 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16, 9576 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17, 9577 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18, 9578 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19, 9579 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20, 9580 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21, 9581 9582 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22, 9583 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23, 9584 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24, 9585 9586 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25, 9587 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26, 9588 9589 /* keep last */ 9590 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, 9591 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = 9592 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, 9593 }; 9594 9595 /** 9596 * enum qca_wlan_vendor_twt_status - Represents the status of the requested 9597 * TWT operation 9598 * 9599 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed 9600 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled 9601 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used 9602 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy 9603 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist 9604 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state 9605 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters 9606 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready 9607 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted 9608 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the 9609 * request/response frame 9610 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response 9611 * frame 9612 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request 9613 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an 9614 * unknown reason 9615 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in 9616 * suspend state 9617 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to 9618 * invalid IE in the received TWT frame 9619 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from 9620 * the responder are not in the specified range 9621 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT 9622 * session due to request from the responder. Used on the TWT_TERMINATE 9623 * notification from the firmware. 9624 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT 9625 * session due to roaming. Used on the TWT_TERMINATE notification from the 9626 * firmware. 9627 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the 9628 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel) 9629 * Concurrency). Used on the TWT_TERMINATE notification from the firmware. 9630 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup 9631 * request due to roaming in progress. 9632 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT 9633 * setup request due to channel switch in progress. 9634 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup 9635 * request due to scan in progress. 9636 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to 9637 * terminate an existing TWT session on power save exit request from userspace. 9638 * Used on the TWT_TERMINATE notification from the driver/firmware. 9639 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT 9640 * required bit in its capabilities. 9641 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared 9642 * the TWT required bit(1->0) in its capabilities. 9643 */ 9644 enum qca_wlan_vendor_twt_status { 9645 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0, 9646 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1, 9647 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2, 9648 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3, 9649 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4, 9650 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5, 9651 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6, 9652 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7, 9653 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8, 9654 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9, 9655 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10, 9656 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11, 9657 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12, 9658 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13, 9659 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14, 9660 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15, 9661 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16, 9662 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17, 9663 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18, 9664 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19, 9665 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20, 9666 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21, 9667 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22, 9668 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23, 9669 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24, 9670 }; 9671 9672 /** 9673 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for 9674 * TWT (Target Wake Time) resume request. These attributes are sent as part of 9675 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and 9676 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 9677 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 9678 * 9679 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) 9680 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32) 9681 * These attributes are used as the SP offset which is the offset from TSF after 9682 * which the wake happens. The units are in microseconds. Please note that 9683 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data. 9684 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation 9685 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value 9686 * will be set to zero. 9687 * 9688 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) 9689 * This attribute represents the next TWT subfield size. 9690 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 9691 * and 4 for 64 bits. 9692 * 9693 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8). 9694 * Flow ID is the unique identifier for each TWT session. This attribute 9695 * represents the respective TWT session to resume. 9696 * Flow Id values from 0 to 254 represent a single TWT session 9697 * Flow ID value of 255 represents all TWT sessions. 9698 * If an invalid dialog id is provided, status 9699 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 9700 * 9701 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address 9702 * Represents the MAC address of the peer to which TWT Resume is 9703 * being sent. This is used in AP mode to represent the respective 9704 * client and is a required parameter. In STA mode, this is an optional 9705 * parameter 9706 * 9707 */ 9708 enum qca_wlan_vendor_attr_twt_resume { 9709 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, 9710 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, 9711 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, 9712 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3, 9713 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4, 9714 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5, 9715 9716 /* keep last */ 9717 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, 9718 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = 9719 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, 9720 }; 9721 9722 /** 9723 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for 9724 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend 9725 * and resume in a single request. These attributes are sent as part of 9726 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 9727 * 9728 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 9729 * Flow ID is the unique identifier for each TWT session. This attribute 9730 * represents the respective TWT session to suspend and resume. 9731 * 9732 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 9733 * Flow ID is the unique identifier for each TWT session. This attribute 9734 * represents the respective TWT session to suspend and resume. 9735 * Flow Id values from 0 to 254 represent a single TWT session 9736 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request 9737 * and response. 9738 * If an invalid dialog id is provided, status 9739 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 9740 * 9741 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32) 9742 * This attribute is used as the SP offset which is the offset from 9743 * TSF after which the wake happens. The units are in microseconds. 9744 * 9745 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32) 9746 * This attribute represents the next TWT subfield size. 9747 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 9748 * and 4 for 64 bits. 9749 * 9750 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address 9751 * Represents the MAC address of the peer to which TWT Suspend and Resume is 9752 * being sent. This is used in AP mode to represent the respective 9753 * client and is a required parameter. In STA mode, this is an optional 9754 * parameter. 9755 * 9756 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64) 9757 * This field contains absolute TSF value of the time at which twt 9758 * sesion will be resumed. 9759 * 9760 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32) 9761 * This field will be used when device supports Flexible TWT. 9762 * This field contains an offset value by which to shift the starting time 9763 * of the next service period. The value of offset can be negative or positive. 9764 * If provided, this attribute will override 9765 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds. 9766 */ 9767 enum qca_wlan_vendor_attr_twt_nudge { 9768 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0, 9769 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1, 9770 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2, 9771 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3, 9772 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4, 9773 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5, 9774 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6, 9775 9776 /* keep last */ 9777 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST, 9778 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX = 9779 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1, 9780 }; 9781 9782 /** 9783 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for 9784 * TWT (Target Wake Time) get statistics and clear statistics request. 9785 * These attributes are sent as part of 9786 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 9787 * 9788 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8) 9789 * Flow ID is the unique identifier for each TWT session. This attribute 9790 * represents the respective TWT session for get and clear TWT statistics. 9791 * Flow Id values from 0 to 254 represent a single TWT session 9792 * Flow ID value of 255 represents all TWT sessions in 9793 * 1) TWT GET STATISTICS request and response 9794 * 2) TWT CLEAR STATISTICS request 9795 * 9796 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address 9797 * Represents the MAC address of the peer for which TWT Statistics 9798 * is required. 9799 * In AP mode this is used to represent the respective 9800 * client and is a required parameter for 9801 * 1) TWT GET STATISTICS request and response 9802 * 2) TWT CLEAR STATISTICS request and response 9803 * In STA mode, this is an optional parameter. 9804 * 9805 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32) 9806 * This is the duration of the service period in microseconds. 9807 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9808 * 9809 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32) 9810 * Average of actual wake duration observed so far. Unit is microseconds. 9811 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9812 * 9813 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32) 9814 * Number of TWT service period elapsed so far. 9815 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9816 * 9817 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 9818 * This is the minimum value of wake duration observed across 9819 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 9820 * microseconds. 9821 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9822 * 9823 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 9824 * This is the maximum value of wake duration observed across 9825 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 9826 * microseconds. 9827 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9828 * 9829 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32) 9830 * Average number of MPDU's transmitted successfully across 9831 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 9832 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9833 * 9834 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32) 9835 * Average number of MPDU's received successfully across 9836 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 9837 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9838 * 9839 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32) 9840 * Average number of bytes transmitted successfully across 9841 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 9842 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9843 * 9844 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32) 9845 * Average number of bytes received successfully across 9846 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 9847 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9848 * 9849 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32) 9850 * Status of the TWT GET STATISTICS request. 9851 * This contains status values in enum qca_wlan_vendor_twt_status 9852 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9853 */ 9854 enum qca_wlan_vendor_attr_twt_stats { 9855 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0, 9856 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1, 9857 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2, 9858 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3, 9859 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4, 9860 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5, 9861 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6, 9862 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7, 9863 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8, 9864 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9, 9865 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10, 9866 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11, 9867 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12, 9868 9869 /* keep last */ 9870 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST, 9871 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX = 9872 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1, 9873 }; 9874 9875 /** 9876 * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities 9877 * supported by the device and peer. 9878 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES 9879 * 9880 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by 9881 * TWT non-scheduling STA. This capability is advertised in the HE 9882 * capability/Extended capabilities information element in the 9883 * Association request frame by the device. 9884 * 9885 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised 9886 * by the TWT scheduling AP. This capability is advertised in the extended 9887 * capabilities/HE capabilities information element. 9888 * 9889 * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support 9890 * for the broadcast TWT functionality. On responder side, this indicates 9891 * support for the role of broadcast TWT scheduling functionality. This 9892 * capability is advertised in the HE capabilities information element. 9893 * 9894 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule. 9895 * This capability is advertised in the HE capabilities information element. 9896 * 9897 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate 9898 * that it mandates the associated HE STAs to support TWT. This capability is 9899 * advertised by AP in the HE Operation Parameters field of the HE operation 9900 * information element. 9901 */ 9902 enum qca_wlan_twt_capa { 9903 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0), 9904 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1), 9905 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2), 9906 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3), 9907 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4), 9908 9909 }; 9910 9911 /** 9912 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT 9913 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT 9914 * operation. 9915 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address 9916 * Represents the MAC address of the peer for which the TWT capabilities 9917 * are being queried. This is used in AP mode to represent the respective 9918 * client. In STA mode, this is an optional parameter. 9919 * 9920 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16). 9921 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in 9922 * enum qca_wlan_twt_capa. 9923 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16). 9924 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in 9925 * enum qca_wlan_twt_capa. 9926 */ 9927 enum qca_wlan_vendor_attr_twt_capability { 9928 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0, 9929 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1, 9930 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2, 9931 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3, 9932 9933 /* keep last */ 9934 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST, 9935 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX = 9936 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1, 9937 }; 9938 9939 /** 9940 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for 9941 * TWT (Target Wake Time) related parameters. It is used when 9942 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM. 9943 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 9944 * 9945 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8) 9946 * This attribute configures AC parameters to be used for all TWT 9947 * sessions in AP mode. 9948 * Uses the enum qca_wlan_ac_type values. 9949 */ 9950 enum qca_wlan_vendor_attr_twt_set_param { 9951 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0, 9952 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1, 9953 9954 /* keep last */ 9955 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST, 9956 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX = 9957 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1, 9958 }; 9959 9960 /** 9961 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by 9962 * the TWT responder 9963 * 9964 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT 9965 * parameters that are different from TWT requesting STA suggested 9966 * or demanded TWT parameters 9967 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT 9968 * parameters that are different from TWT requesting STA TWT suggested 9969 * or demanded parameters 9970 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT 9971 * setup 9972 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT 9973 * setup. 9974 */ 9975 enum qca_wlan_vendor_twt_setup_resp_type { 9976 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1, 9977 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2, 9978 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3, 9979 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4, 9980 }; 9981 9982 /** 9983 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) 9984 * Represents the setup type being requested for TWT. 9985 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT 9986 * parameters but relying on AP to fill the parameters during the negotiation. 9987 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested 9988 * values which the AP may accept or AP may provide alternative parameters 9989 * which the STA may accept. 9990 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any 9991 * alternate parameters than the requested ones. 9992 */ 9993 enum qca_wlan_vendor_twt_setup_req_type { 9994 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, 9995 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, 9996 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, 9997 }; 9998 9999 /** 10000 * enum qca_wlan_throughput_level - Current throughput level 10001 * 10002 * Indicates the current level of throughput calculated by driver. The driver 10003 * may choose different thresholds to decide whether the throughput level is 10004 * low or medium or high based on variety of parameters like physical link 10005 * capacity of current connection, number of pakcets being dispatched per 10006 * second etc. The throughput level events might not be consistent with the 10007 * actual current throughput value being observed. 10008 * 10009 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput 10010 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput 10011 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput 10012 */ 10013 enum qca_wlan_throughput_level { 10014 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, 10015 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, 10016 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, 10017 }; 10018 10019 /** 10020 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to 10021 * report throughput changes from driver to user space. enum values are used 10022 * for NL attributes sent with 10023 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. 10024 */ 10025 enum qca_wlan_vendor_attr_throughput_change { 10026 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, 10027 /* 10028 * Indicates the direction of throughput in which the change is being 10029 * reported. u8 attribute. Value is 0 for TX and 1 for RX. 10030 */ 10031 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, 10032 10033 /* 10034 * Indicates the newly observed throughput level. 10035 * qca_wlan_throughput_level describes the possible range of values. 10036 * u8 attribute. 10037 */ 10038 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, 10039 10040 /* 10041 * Indicates the driver's guidance on the new value to be set to 10042 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver 10043 * may optionally include this attribute. 10044 */ 10045 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, 10046 10047 /* 10048 * Indicates the driver's guidance on the new value to be set to 10049 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible 10050 * values are from -31 to 31. Driver may optionally include this 10051 * attribute. 10052 */ 10053 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, 10054 10055 /* 10056 * Indicates the driver's guidance on the new value to be set to 10057 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may 10058 * optionally include this attribute. 10059 */ 10060 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, 10061 10062 /* keep last */ 10063 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, 10064 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = 10065 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, 10066 }; 10067 10068 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute 10069 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command 10070 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 10071 */ 10072 enum qca_wlan_nan_ext_subcmd_type { 10073 /* Subcmd of type NAN Enable Request */ 10074 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, 10075 /* Subcmd of type NAN Disable Request */ 10076 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, 10077 }; 10078 10079 /** 10080 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command 10081 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 10082 */ 10083 enum qca_wlan_vendor_attr_nan_params { 10084 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, 10085 /* Carries NAN command for firmware component. Every vendor command 10086 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a 10087 * payload containing the NAN command. NLA_BINARY attribute. 10088 */ 10089 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, 10090 /* Indicates the type of NAN command sent with 10091 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type 10092 * describes the possible range of values. This attribute is mandatory 10093 * if the command being issued is either 10094 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or 10095 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. 10096 */ 10097 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, 10098 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz 10099 * band. This attribute is mandatory when command type is 10100 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. 10101 */ 10102 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, 10103 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz 10104 * band. This attribute is optional and should be included when command 10105 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery 10106 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. 10107 */ 10108 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, 10109 10110 /* keep last */ 10111 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, 10112 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = 10113 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 10114 }; 10115 10116 /** 10117 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data 10118 * transport modes and is used by attribute 10119 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command 10120 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 10121 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data. 10122 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR 10123 * data. The data shall be encapsulated within 10124 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along withe vendor sub command 10125 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event. 10126 */ 10127 enum qca_wlan_vendor_cfr_data_transport_modes { 10128 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0, 10129 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1, 10130 }; 10131 10132 /** 10133 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by 10134 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor 10135 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 10136 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame. 10137 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame 10138 * with phase 10139 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame 10140 */ 10141 enum qca_wlan_vendor_cfr_method { 10142 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0, 10143 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1, 10144 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2, 10145 }; 10146 10147 /** 10148 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by 10149 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE. 10150 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames. 10151 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames. 10152 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames. 10153 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which 10154 * is provided by one or more of below attributes: 10155 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA 10156 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA 10157 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK 10158 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK 10159 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER 10160 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER 10161 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 10162 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets. 10163 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames. 10164 */ 10165 enum qca_wlan_vendor_cfr_capture_type { 10166 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0, 10167 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1, 10168 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2, 10169 QCA_WLAN_VENDOR_CFR_TA_RA = 3, 10170 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4, 10171 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5, 10172 }; 10173 10174 /** 10175 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command 10176 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer 10177 * Channel Frequency Response capture parameters and enable periodic CFR 10178 * capture. 10179 * 10180 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address) 10181 * MAC address of peer. This is for CFR version 1 only. 10182 * 10183 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag) 10184 * Enable peer CFR Capture. This attribute is mandatory to 10185 * enable peer CFR capture. If this attribute is not present, 10186 * peer CFR capture is disabled. 10187 * 10188 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8) 10189 * BW of measurement, attribute uses the values in enum nl80211_chan_width 10190 * Supported values: 20, 40, 80, 80+80, 160. 10191 * Note that all targets may not support all bandwidths. 10192 * This attribute is mandatory for version 1 if attribute 10193 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 10194 * 10195 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32) 10196 * Periodicity of CFR measurement in msec. 10197 * Periodicity should be a multiple of Base timer. 10198 * Current Base timer value supported is 10 msecs (default). 10199 * 0 for one shot capture. 10200 * This attribute is mandatory for version 1 if attribute 10201 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 10202 * 10203 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8) 10204 * Method used to capture Channel Frequency Response. 10205 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method. 10206 * This attribute is mandatory for version 1 if attribute 10207 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 10208 * 10209 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag) 10210 * Enable periodic CFR capture. 10211 * This attribute is mandatory for version 1 to enable Periodic CFR capture. 10212 * If this attribute is not present, periodic CFR capture is disabled. 10213 * 10214 * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8) 10215 * Value is 1 or 2 since there are two versions of CFR capture. Two versions 10216 * can't be enabled at same time. This attribute is mandatory if target 10217 * support both versions and use one of them. 10218 * 10219 * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32) 10220 * This attribute is mandatory for version 2 if 10221 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used. 10222 * Bits 15:0 Bit fields indicating which group to be enabled. 10223 * Bits 31:16 Reserved for future use. 10224 * 10225 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32) 10226 * CFR capture duration in microsecond. This attribute is mandatory for 10227 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used. 10228 * 10229 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32) 10230 * CFR capture interval in microsecond. This attribute is mandatory for 10231 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used. 10232 * 10233 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32) 10234 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type. 10235 * This attribute is mandatory for version 2. 10236 * 10237 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64) 10238 * Bit fields indicating which user in the current UL MU 10239 * transmissions are enabled for CFR capture. Bits 36 to 0 indicating 10240 * user indexes for 37 users in a UL MU transmission. If bit 0 is set, 10241 * then the CFR capture will happen for user index 0 in the current 10242 * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU 10243 * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use. 10244 * This is for CFR version 2 only. 10245 * 10246 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32) 10247 * Indicates the number of consecutive Rx packets to be skipped 10248 * before CFR capture is enabled again. 10249 * This is for CFR version 2 only. 10250 * 10251 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing 10252 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes. 10253 * 10254 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing 10255 * the following GROUP attributes: 10256 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER, 10257 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA, 10258 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA, 10259 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK, 10260 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK, 10261 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS, 10262 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW, 10263 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER, 10264 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER, 10265 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 10266 * 10267 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32) 10268 * Target support multiple groups for some configurations. Group number could be 10269 * any value between 0 and 15. This is for CFR version 2 only. 10270 * 10271 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address) 10272 * Transmitter address which is used to filter packets, this MAC address takes 10273 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. 10274 * This is for CFR version 2 only. 10275 * 10276 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address) 10277 * Receiver address which is used to filter packets, this MAC address takes 10278 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. 10279 * This is for CFR version 2 only. 10280 * 10281 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address) 10282 * Mask of transmitter address which is used to filter packets. 10283 * This is for CFR version 2 only. 10284 * 10285 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address) 10286 * Mask of receiver address which is used to filter packets. 10287 * This is for CFR version 2 only. 10288 * 10289 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32) 10290 * Indicates packets with a specific NSS will be filtered for CFR capture. 10291 * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will 10292 * be done for packets matching the NSS specified within this bitmask. 10293 * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS: 10294 * bit 0 : NSS 1 10295 * bit 1 : NSS 2 10296 * ... 10297 * bit 7 : NSS 8 10298 * 10299 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32) 10300 * Indicates packets with a specific BW will be filtered for CFR capture. 10301 * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture 10302 * will be done for packets matching the bandwidths specified within this 10303 * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth 10304 * numerated in enum nl80211_band (although not all bands may be supported 10305 * by a given device). 10306 * 10307 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32) 10308 * Management packets matching the subtype filter categories will be 10309 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 10310 * represents the corresponding mgmt subtype value as per 10311 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 10312 * For example, beacon frame control type is 8, its value is 1<<8 = 0x100. 10313 * This is for CFR version 2 only 10314 * 10315 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32) 10316 * Control packets matching the subtype filter categories will be 10317 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 10318 * represents the corresponding control subtype value as per 10319 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 10320 * This is for CFR version 2 only. 10321 * 10322 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32) 10323 * Data packets matching the subtype filter categories will be 10324 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 10325 * represents the corresponding data subtype value as per 10326 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 10327 * This is for CFR version 2 only. 10328 * 10329 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8) 10330 * Userspace can use this attribute to specify the driver about which transport 10331 * mode shall be used by the driver to send CFR data to userspace. Uses values 10332 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is 10333 * not present, driver shall choose the default transport mechanism which is 10334 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS. 10335 * 10336 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32) 10337 * Userspace can use this attribute to specify the nl port id of the application 10338 * which receives the CFR data and processes it further so that the drivers can 10339 * unicast the NL events to a specific application. Optionally included when 10340 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to 10341 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers 10342 * shall multicast the netlink events when this attribute is not included. 10343 * 10344 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY). 10345 * This attribute will be used by the driver to encapsulate and send CFR data 10346 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an 10347 * asynchronous event when the driver is configured to send CFR data using NL 10348 * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS 10349 * 10350 */ 10351 enum qca_wlan_vendor_peer_cfr_capture_attr { 10352 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0, 10353 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1, 10354 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2, 10355 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3, 10356 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4, 10357 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5, 10358 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6, 10359 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7, 10360 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8, 10361 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9, 10362 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10, 10363 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11, 10364 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12, 10365 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13, 10366 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14, 10367 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15, 10368 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16, 10369 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17, 10370 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18, 10371 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19, 10372 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20, 10373 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21, 10374 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22, 10375 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23, 10376 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24, 10377 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25, 10378 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26, 10379 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27, 10380 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28, 10381 10382 /* Keep last */ 10383 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST, 10384 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX = 10385 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1, 10386 }; 10387 10388 /** 10389 * enum qca_coex_config_profiles - This enum defines different types of 10390 * traffic streams that can be prioritized one over the other during coex 10391 * scenarios. 10392 * The types defined in this enum are categorized in the below manner. 10393 * 0 - 31 values corresponds to WLAN 10394 * 32 - 63 values corresponds to BT 10395 * 64 - 95 values corresponds to Zigbee 10396 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA 10397 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA 10398 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA 10399 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA 10400 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA 10401 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP 10402 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP 10403 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP 10404 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP 10405 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP 10406 * @QCA_BT_A2DP: Prioritize BT A2DP 10407 * @QCA_BT_BLE: Prioritize BT BLE 10408 * @QCA_BT_SCO: Prioritize BT SCO 10409 * @QCA_ZB_LOW: Prioritize Zigbee Low 10410 * @QCA_ZB_HIGH: Prioritize Zigbee High 10411 */ 10412 enum qca_coex_config_profiles { 10413 /* 0 - 31 corresponds to WLAN */ 10414 QCA_WIFI_STA_DISCOVERY = 0, 10415 QCA_WIFI_STA_CONNECTION = 1, 10416 QCA_WIFI_STA_CLASS_3_MGMT = 2, 10417 QCA_WIFI_STA_DATA = 3, 10418 QCA_WIFI_STA_ALL = 4, 10419 QCA_WIFI_SAP_DISCOVERY = 5, 10420 QCA_WIFI_SAP_CONNECTION = 6, 10421 QCA_WIFI_SAP_CLASS_3_MGMT = 7, 10422 QCA_WIFI_SAP_DATA = 8, 10423 QCA_WIFI_SAP_ALL = 9, 10424 QCA_WIFI_CASE_MAX = 31, 10425 /* 32 - 63 corresponds to BT */ 10426 QCA_BT_A2DP = 32, 10427 QCA_BT_BLE = 33, 10428 QCA_BT_SCO = 34, 10429 QCA_BT_CASE_MAX = 63, 10430 /* 64 - 95 corresponds to Zigbee */ 10431 QCA_ZB_LOW = 64, 10432 QCA_ZB_HIGH = 65, 10433 QCA_ZB_CASE_MAX = 95, 10434 /* 0xff is default value if the u8 profile value is not set. */ 10435 QCA_PROFILE_DEFAULT_VALUE = 255 10436 }; 10437 10438 /** 10439 * enum qca_vendor_attr_coex_config_types - Coex configurations types. 10440 * This enum defines the valid set of values of coex configuration types. These 10441 * values may used by attribute 10442 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE. 10443 * 10444 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the 10445 * weights to default values. 10446 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config 10447 * weights with configurability value. 10448 */ 10449 enum qca_vendor_attr_coex_config_types { 10450 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 10451 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1, 10452 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2, 10453 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX 10454 }; 10455 10456 /** 10457 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config 10458 * attributes 10459 * Attributes for data used by 10460 * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG 10461 * 10462 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute. 10463 * Indicate config type. 10464 * the config types are 32-bit values from qca_vendor_attr_coex_config_types 10465 * 10466 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute. 10467 * Indicate the Priority 1 profiles. 10468 * the profiles are 8-bit values from enum qca_coex_config_profiles 10469 * In same priority level, maximum to 4 profiles can be set here. 10470 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute. 10471 * Indicate the Priority 2 profiles. 10472 * the profiles are 8-bit values from enum qca_coex_config_profiles 10473 * In same priority level, maximum to 4 profiles can be set here. 10474 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute. 10475 * Indicate the Priority 3 profiles. 10476 * the profiles are 8-bit values from enum qca_coex_config_profiles 10477 * In same priority level, maximum to 4 profiles can be set here. 10478 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute. 10479 * Indicate the Priority 4 profiles. 10480 * the profiles are 8-bit values from enum qca_coex_config_profiles 10481 * In same priority level, maximum to 4 profiles can be set here. 10482 * NOTE: 10483 * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority 10484 * arrangement: 10485 * 1: In the same u32 attribute(priority x), the profiles enum values own 10486 * same priority level. 10487 * 2: 0xff is default value if the u8 profile value is not set. 10488 * 3: max to 4 rules/profiles in same priority level. 10489 * 4: max to 4 priority level (priority 1 - priority 4) 10490 * 5: one priority level only supports one scenario from WLAN/BT/ZB, 10491 * hybrid rules not support. 10492 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will 10493 * remain blank to reset all parameters. 10494 * For example: 10495 * 10496 * If the attributes as follow: 10497 * priority 1: 10498 * ------------------------------------ 10499 * | 0xff | 0 | 1 | 2 | 10500 * ------------------------------------ 10501 * priority 2: 10502 * ------------------------------------- 10503 * | 0xff | 0xff | 0xff | 32 | 10504 * ------------------------------------- 10505 * priority 3: 10506 * ------------------------------------- 10507 * | 0xff | 0xff | 0xff | 65 | 10508 * ------------------------------------- 10509 * then it means: 10510 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 10511 * owns same priority level. 10512 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 10513 * has priority over BT_A2DP and ZB_HIGH. 10514 * 3: BT_A2DP has priority over ZB_HIGH. 10515 */ 10516 10517 enum qca_vendor_attr_coex_config_three_way { 10518 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0, 10519 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1, 10520 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2, 10521 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3, 10522 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4, 10523 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5, 10524 10525 /* Keep last */ 10526 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST, 10527 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX = 10528 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1, 10529 }; 10530 10531 /** 10532 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type 10533 * This enum defines the valid set of values of peer stats cache types. These 10534 * values are used by attribute 10535 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID. 10536 * 10537 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics. 10538 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics. 10539 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn 10540 * statistics 10541 */ 10542 enum qca_vendor_attr_peer_stats_cache_type { 10543 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0, 10544 10545 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS, 10546 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS, 10547 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS, 10548 }; 10549 10550 /** 10551 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines 10552 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH 10553 * Attributes are required to flush peer rate statistics from driver to 10554 * user application. 10555 * 10556 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute 10557 * Indicate peer stats cache type. 10558 * The statistics types are 32-bit values from 10559 * qca_vendor_attr_peer_stats_cache_type 10560 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array 10561 * of size 6, representing peer mac address. 10562 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute 10563 * containing buffer of statistics to send event to application layer entity. 10564 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute 10565 * representing cookie for peer unique session. 10566 */ 10567 enum qca_wlan_vendor_attr_peer_stats_cache_params { 10568 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0, 10569 10570 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1, 10571 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2, 10572 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3, 10573 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4, 10574 10575 /* Keep last */ 10576 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST, 10577 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX = 10578 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1 10579 }; 10580 10581 /** 10582 * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee. 10583 * this enum defines all the possible state of zigbee, which can be 10584 * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE. 10585 * 10586 * @ZIGBEE_IDLE: zigbee in idle state 10587 * @ZIGBEE_FORM_NETWORK: zibee forming network 10588 * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network 10589 * @ZIGBEE_JOIN: zigbee joining network 10590 * @ZIGBEE_NETWORK_UP: zigbee network is up 10591 * @ZIGBEE_HMI: zigbee in HMI mode 10592 */ 10593 enum qca_mpta_helper_attr_zigbee_state { 10594 ZIGBEE_IDLE = 0, 10595 ZIGBEE_FORM_NETWORK = 1, 10596 ZIGBEE_WAIT_JOIN = 2, 10597 ZIGBEE_JOIN = 3, 10598 ZIGBEE_NETWORK_UP = 4, 10599 ZIGBEE_HMI = 5, 10600 }; 10601 10602 /** 10603 * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by 10604 * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG. 10605 */ 10606 enum qca_mpta_helper_vendor_attr { 10607 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0, 10608 /* Optional attribute used to update zigbee state. 10609 * enum qca_mpta_helper_attr_zigbee_state. 10610 * NLA_U32 attribute. 10611 */ 10612 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1, 10613 /* Optional attribute used to configure wlan duration for Shape-OCS 10614 * during interrupt. 10615 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION. 10616 * Value range 0 ~ 300 (ms). 10617 * NLA_U32 attribute. 10618 */ 10619 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2, 10620 /* Optional attribute used to configure non wlan duration for Shape-OCS 10621 * during interrupt. 10622 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION. 10623 * Value range 0 ~ 300 (ms). 10624 * NLA_U32 attribute. 10625 */ 10626 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3, 10627 /* Optional attribute used to configure wlan duration for Shape-OCS 10628 * monitor period. 10629 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION. 10630 * Value range 0 ~ 300 (ms) 10631 * NLA_U32 attribute 10632 */ 10633 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4, 10634 /* Optional attribute used to configure non wlan duration for Shape-OCS 10635 * monitor period. 10636 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION. 10637 * Value range 0 ~ 300 (ms) 10638 * NLA_U32 attribute 10639 */ 10640 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5, 10641 /* Optional attribute used to configure ocs interrupt duration. 10642 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION. 10643 * Value range 1000 ~ 20000 (ms) 10644 * NLA_U32 attribute 10645 */ 10646 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6, 10647 /* Optional attribute used to configure ocs monitor duration. 10648 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION. 10649 * Value range 1000 ~ 20000 (ms) 10650 * NLA_U32 attribute 10651 */ 10652 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7, 10653 /* Optional attribute used to notify wlan FW current zigbee channel. 10654 * Value range 11 ~ 26 10655 * NLA_U32 attribute 10656 */ 10657 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8, 10658 /* Optional attribute used to configure wlan mute duration. 10659 * Value range 0 ~ 400 (ms) 10660 * NLA_U32 attribute 10661 */ 10662 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9, 10663 10664 /* keep last */ 10665 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST, 10666 QCA_MPTA_HELPER_VENDOR_ATTR_MAX = 10667 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1 10668 }; 10669 10670 /** 10671 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of 10672 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be 10673 * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE. 10674 * 10675 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver 10676 * to request the driver to start reporting Beacon frames. 10677 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver 10678 * to request the driver to stop reporting Beacon frames. 10679 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to 10680 * userspace to report received Beacon frames. 10681 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace 10682 * to indicate that the driver is going to pause reporting Beacon frames. 10683 */ 10684 enum qca_wlan_vendor_beacon_reporting_op_types { 10685 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0, 10686 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1, 10687 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2, 10688 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3, 10689 }; 10690 10691 /** 10692 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different 10693 * types of reasons for which the driver is pausing reporting Beacon frames. 10694 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON. 10695 * 10696 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified 10697 * reasons. 10698 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the 10699 * driver/firmware is starting a scan. 10700 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the 10701 * driver/firmware disconnects from the ESS and indicates the disconnection to 10702 * userspace (non-seamless roaming case). This reason code will be used by the 10703 * driver/firmware to indicate stopping of beacon report events. Userspace 10704 * will need to start beacon reporting again (if desired) by sending vendor 10705 * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with 10706 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to 10707 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is 10708 * completed. 10709 */ 10710 enum qca_wlan_vendor_beacon_reporting_pause_reasons { 10711 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0, 10712 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1, 10713 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2, 10714 }; 10715 10716 /* 10717 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used 10718 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING. 10719 */ 10720 enum qca_wlan_vendor_attr_beacon_reporting_params { 10721 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0, 10722 /* Specifies the type of operation that the vendor command/event is 10723 * intended for. Possible values for this attribute are defined in 10724 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute. 10725 */ 10726 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1, 10727 /* Optionally set by userspace to request the driver to report Beacon 10728 * frames using asynchronous vendor events when the 10729 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10730 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 10731 * If this flag is not set, the driver will only update Beacon frames 10732 * in cfg80211 scan cache but not send any vendor events. 10733 */ 10734 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2, 10735 /* Optionally used by userspace to request the driver/firmware to 10736 * report Beacon frames periodically when the 10737 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10738 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. 10739 * u32 attribute, indicates the period of Beacon frames to be reported 10740 * and in the units of beacon interval. 10741 * If this attribute is missing in the command, then the default value 10742 * of 1 will be assumed by driver, i.e., to report every Beacon frame. 10743 * Zero is an invalid value. 10744 * If a valid value is received for this attribute, the driver will 10745 * update the cfg80211 scan cache periodically as per the value 10746 * received in this attribute in addition to updating the cfg80211 scan 10747 * cache when there is significant change in Beacon frame IEs. 10748 */ 10749 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3, 10750 /* Used by the driver to encapsulate the SSID when the 10751 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10752 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 10753 * u8 array with a maximum size of 32. 10754 * 10755 * When generating beacon report from non-MBSSID Beacon frame, the SSID 10756 * will be taken from the SSID element of the received Beacon frame. 10757 * 10758 * When generating beacon report from Multiple BSSID Beacon frame and 10759 * if the BSSID of the current connected BSS matches the BSSID of the 10760 * transmitting BSS, the SSID will be taken from the SSID element of 10761 * the received Beacon frame. 10762 * 10763 * When generating beacon report from Multiple BSSID Beacon frame and 10764 * if the BSSID of the current connected BSS matches the BSSID of one 10765 * of the* nontransmitting BSSs, the SSID will be taken from the SSID 10766 * field included in the nontransmitted BSS profile whose derived BSSI 10767 * is same as the BSSID of the current connected BSS. When there is no 10768 * nontransmitted BSS profile whose derived BSSID is same as the BSSID 10769 * of current connected* BSS, this attribute will not be present. 10770 */ 10771 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4, 10772 /* Used by the driver to encapsulate the BSSID of the AP to which STA 10773 * is currently connected to when the 10774 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10775 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a 10776 * fixed size of 6 bytes. 10777 * 10778 * When generating beacon report from a Multiple BSSID beacon and the 10779 * current connected BSSID matches one of the nontransmitted BSSIDs in 10780 * a Multiple BSSID set, this BSSID will be that particular 10781 * nontransmitted BSSID and not the transmitted BSSID (i.e., the 10782 * transmitting address of the Beacon frame). 10783 */ 10784 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5, 10785 /* Used by the driver to encapsulate the frequency in MHz on which 10786 * the Beacon frame was received when the 10787 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is 10788 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 10789 * u32 attribute. 10790 */ 10791 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6, 10792 /* Used by the driver to encapsulate the Beacon interval 10793 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10794 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 10795 * u16 attribute. The value will be copied from the Beacon frame and 10796 * the units are TUs. 10797 */ 10798 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7, 10799 /* Used by the driver to encapsulate the Timestamp field from the 10800 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE 10801 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 10802 * u64 attribute. 10803 */ 10804 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8, 10805 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this 10806 * Beacon frame is received in the driver when the 10807 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10808 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in 10809 * the units of nanoseconds. This value is expected to have accuracy of 10810 * about 10 ms. 10811 */ 10812 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9, 10813 /* Used by the driver to encapsulate the IEs of the Beacon frame from 10814 * which this event is generated when the 10815 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10816 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array. 10817 */ 10818 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10, 10819 /* Used by the driver to specify the reason for the driver/firmware to 10820 * pause sending beacons to userspace when the 10821 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10822 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are 10823 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32 10824 * attribute. 10825 */ 10826 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11, 10827 /* Used by the driver to specify whether the driver will automatically 10828 * resume reporting beacon events to userspace later (for example after 10829 * the ongoing off-channel activity is completed etc.) when the 10830 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10831 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute. 10832 */ 10833 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12, 10834 /* Optionally set by userspace to request the driver not to resume 10835 * beacon reporting after a pause is completed, when the 10836 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10837 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 10838 * If this flag is set, the driver will not resume beacon reporting 10839 * after any pause in beacon reporting is completed. Userspace has to 10840 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order 10841 * to initiate beacon reporting again. If this flag is set in the recent 10842 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the 10843 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any) 10844 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be 10845 * set by the driver. Setting this flag until and unless there is a 10846 * specific need is not recommended as there is a chance of some beacons 10847 * received after pause command and next start command being not 10848 * reported. 10849 */ 10850 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13, 10851 10852 /* Keep last */ 10853 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST, 10854 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX = 10855 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1 10856 }; 10857 10858 /** 10859 * enum qca_vendor_oem_device_type - Represents the target device in firmware. 10860 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO. 10861 * 10862 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for 10863 * a virtual device. 10864 * 10865 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for 10866 * a physical device. 10867 */ 10868 enum qca_vendor_oem_device_type { 10869 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0, 10870 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1, 10871 }; 10872 10873 /* 10874 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command 10875 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA. 10876 * 10877 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is 10878 * used to set/query the data to/from the firmware. On query, the same 10879 * attribute is used to carry the respective data in the reply sent by the 10880 * driver to userspace. The request to set/query the data and the format of the 10881 * respective data from the firmware are embedded in the attribute. The 10882 * maximum size of the attribute payload is 1024 bytes. 10883 * 10884 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed 10885 * based on this field. This optional attribute is included to specify whether 10886 * the device type is a virtual device or a physical device for the command. 10887 * This attribute can be omitted for a virtual device (default) command. 10888 * This u8 attribute is used to carry information for the device type using 10889 * values defined by enum qca_vendor_oem_device_type. 10890 * 10891 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED 10892 * attribute when the data is queried from the firmware. 10893 * 10894 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute 10895 * is set when the userspace queries data from the firmware. This attribute 10896 * should not be set when userspace sets the OEM data to the firmware. 10897 */ 10898 enum qca_wlan_vendor_attr_oem_data_params { 10899 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0, 10900 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1, 10901 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2, 10902 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3, 10903 10904 /* keep last */ 10905 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST, 10906 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX = 10907 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1 10908 }; 10909 10910 /** 10911 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be 10912 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT. 10913 * 10914 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required 10915 * Nested attribute containing multiple ranges with following attributes: 10916 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START, 10917 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and 10918 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM. 10919 * 10920 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32) 10921 * Starting center frequency in MHz. 10922 * 10923 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32) 10924 * Ending center frequency in MHz. 10925 * 10926 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM: 10927 * s32 attribute, optional. It is a per frequency range attribute. 10928 * The maximum TX power limit from user space is to be applied on an 10929 * unrestricted interface for corresponding frequency range. It is also 10930 * possible that the actual TX power may be even lower than this cap due to 10931 * other considerations such as regulatory compliance, SAR, etc. In absence of 10932 * this attribute the driver shall follow current behavior which means 10933 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX 10934 * power derived by the driver based on regulatory/SAR during interface up. 10935 * 10936 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK: 10937 * u32 attribute, optional. Indicates all the interface types which are 10938 * restricted for all frequency ranges provided in 10939 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and 10940 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END. 10941 * This attribute encapsulates bitmasks of interface types defined in 10942 * enum nl80211_iftype. If an interface is marked as restricted the driver must 10943 * move to a safe channel and if no safe channel is available the driver shall 10944 * terminate that interface functionality. In absence of this attribute, 10945 * interface (SAP/P2P) can still continue operating on an unsafe channel with 10946 * TX power limit derived from either 10947 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on 10948 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM 10949 * is not provided. 10950 */ 10951 enum qca_wlan_vendor_attr_avoid_frequency_ext { 10952 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0, 10953 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1, 10954 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2, 10955 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3, 10956 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4, 10957 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5, 10958 10959 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST, 10960 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX = 10961 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1 10962 }; 10963 10964 /* 10965 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command 10966 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE. 10967 */ 10968 enum qca_wlan_vendor_attr_add_sta_node_params { 10969 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0, 10970 /* 6 byte MAC address of STA */ 10971 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1, 10972 /* Authentication algorithm used by the station of size u16; 10973 * defined in enum nl80211_auth_type. 10974 */ 10975 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2, 10976 10977 /* keep last */ 10978 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST, 10979 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX = 10980 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1 10981 }; 10982 10983 /** 10984 * enum qca_btc_chain_mode - Specifies BT coex chain mode. 10985 * This enum defines the valid set of values of BT coex chain mode. 10986 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of 10987 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 10988 * 10989 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared. 10990 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are 10991 * separated, hybrid mode. 10992 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are 10993 * separated, fixed FDD mode. 10994 */ 10995 enum qca_btc_chain_mode { 10996 QCA_BTC_CHAIN_SHARED = 0, 10997 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1, 10998 QCA_BTC_CHAIN_SEPARATED_FDD = 2, 10999 }; 11000 11001 /* deprecated legacy name */ 11002 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID 11003 11004 /** 11005 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex 11006 * chain mode. 11007 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 11008 * 11009 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute. 11010 * Indicates the BT coex chain mode, are 32-bit values from 11011 * enum qca_btc_chain_mode. This attribute is mandatory. 11012 * 11013 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute. 11014 * If set, vdev should be restarted when BT coex chain mode is updated. 11015 * This attribute is optional. 11016 */ 11017 enum qca_vendor_attr_btc_chain_mode { 11018 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0, 11019 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1, 11020 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2, 11021 11022 /* Keep last */ 11023 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST, 11024 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX = 11025 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1, 11026 }; 11027 11028 /** 11029 * enum qca_vendor_wlan_sta_flags - Station feature flags 11030 * Bits will be set to 1 if the corresponding features are enabled. 11031 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station 11032 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled 11033 for the station 11034 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled 11035 for the station 11036 */ 11037 enum qca_vendor_wlan_sta_flags { 11038 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0), 11039 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1), 11040 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2), 11041 }; 11042 11043 /** 11044 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval 11045 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval 11046 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval 11047 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE 11048 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE 11049 */ 11050 enum qca_vendor_wlan_sta_guard_interval { 11051 QCA_VENDOR_WLAN_STA_GI_800_NS = 0, 11052 QCA_VENDOR_WLAN_STA_GI_400_NS = 1, 11053 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2, 11054 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3, 11055 }; 11056 11057 /** 11058 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes 11059 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. 11060 * 11061 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC: 11062 * Required attribute in request for AP mode only, 6-byte MAC address, 11063 * corresponding to the station's MAC address for which information is 11064 * requested. For STA mode this is not required as the info always correspond 11065 * to the self STA and the current/last association. 11066 * 11067 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS: 11068 * Optionally used in response, u32 attribute, contains a bitmap of different 11069 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only. 11070 * 11071 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL: 11072 * Optionally used in response, u32 attribute, possible values are defined in 11073 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only. 11074 * Guard interval used by the station. 11075 * 11076 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT: 11077 * Optionally used in response, u32 attribute, used in AP mode only. 11078 * Value indicates the number of data frames received from station with retry 11079 * bit set to 1 in FC. 11080 * 11081 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT: 11082 * Optionally used in response, u32 attribute, used in AP mode only. 11083 * Counter for number of data frames with broadcast or multicast address in 11084 * the destination address received from the station. 11085 * 11086 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED: 11087 * Optionally used in response, u32 attribute, used in both STA and AP modes. 11088 * Value indicates the number of data frames successfully transmitted only 11089 * after retrying the packets and for which the TX status has been updated 11090 * back to host from target. 11091 * 11092 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED: 11093 * Optionally used in response, u32 attribute, used in both STA and AP mode. 11094 * Value indicates the number of data frames not transmitted successfully even 11095 * after retrying the packets for the number of times equal to the total number 11096 * of retries allowed for that packet and for which the TX status has been 11097 * updated back to host from target. 11098 * 11099 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL: 11100 * Optionally used in response, u32 attribute, used in AP mode only. 11101 * Counter in the target for the number of data frames successfully transmitted 11102 * to the station. 11103 * 11104 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY: 11105 * Optionally used in response, u32 attribute, used in AP mode only. 11106 * Value indicates the number of data frames successfully transmitted only 11107 * after retrying the packets. 11108 * 11109 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED: 11110 * Optionally used in response, u32 attribute, used in both STA & AP mode. 11111 * Value indicates the number of data frames not transmitted successfully even 11112 * after retrying the packets for the number of times equal to the total number 11113 * of retries allowed for that packet. 11114 * 11115 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in 11116 * the STA mode only. Represent the number of probe requests sent by the STA 11117 * while attempting to roam on missing certain number of beacons from the 11118 * connected AP. If queried in the disconnected state, this represents the 11119 * count for the last connected state. 11120 * 11121 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in 11122 * the STA mode. Represent the number of probe responses received by the station 11123 * while attempting to roam on missing certain number of beacons from the 11124 * connected AP. When queried in the disconnected state, this represents the 11125 * count when in last connected state. 11126 * 11127 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the 11128 * STA mode only. Represents the total number of frames sent out by STA 11129 * including Data, ACK, RTS, CTS, Control Management. This data is maintained 11130 * only for the connect session. Represents the count of last connected session, 11131 * when queried in the disconnected state. 11132 * 11133 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode. 11134 * Total number of RTS sent out by the STA. This data is maintained per connect 11135 * session. Represents the count of last connected session, when queried in the 11136 * disconnected state. 11137 * 11138 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the 11139 * STA mode.Represent the number of RTS transmission failure that reach retry 11140 * limit. This data is maintained per connect session. Represents the count of 11141 * last connected session, when queried in the disconnected state. 11142 * 11143 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in 11144 * the STA mode. Represent the total number of non aggregated frames transmitted 11145 * by the STA. This data is maintained per connect session. Represents the count 11146 * of last connected session, when queried in the disconnected state. 11147 * 11148 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the 11149 * STA mode. Represent the total number of aggregated frames transmitted by the 11150 * STA. This data is maintained per connect session. Represents the count of 11151 * last connected session, when queried in the disconnected state. 11152 * 11153 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in 11154 * the STA mode. Represents the number of received frames with a good PLCP. This 11155 * data is maintained per connect session. Represents the count of last 11156 * connected session, when queried in the disconnected state. 11157 * 11158 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32, 11159 * used in the STA mode. Represents the number of occasions that no valid 11160 * delimiter is detected by A-MPDU parser. This data is maintained per connect 11161 * session. Represents the count of last connected session, when queried in the 11162 * disconnected state. 11163 * 11164 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the 11165 * STA mode. Represents the number of frames for which CRC check failed in the 11166 * MAC. This data is maintained per connect session. Represents the count of 11167 * last connected session, when queried in the disconnected state. 11168 * 11169 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the 11170 * STA mode. Represents the number of unicast ACKs received with good FCS. This 11171 * data is maintained per connect session. Represents the count of last 11172 * connected session, when queried in the disconnected state. 11173 * 11174 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA 11175 * mode. Represents the number of received Block Acks. This data is maintained 11176 * per connect session. Represents the count of last connected session, when 11177 * queried in the disconnected state. 11178 * 11179 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA 11180 * mode. Represents the number of beacons received from the connected BSS. This 11181 * data is maintained per connect session. Represents the count of last 11182 * connected session, when queried in the disconnected state. 11183 * 11184 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the 11185 * STA mode. Represents the number of beacons received by the other BSS when in 11186 * connected state (through the probes done by the STA). This data is maintained 11187 * per connect session. Represents the count of last connected session, when 11188 * queried in the disconnected state. 11189 * 11190 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in 11191 * the STA mode. Represents the number of received DATA frames with good FCS and 11192 * matching Receiver Address when in connected state. This data is maintained 11193 * per connect session. Represents the count of last connected session, when 11194 * queried in the disconnected state. 11195 * 11196 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the 11197 * STA mode. Represents the number of RX Data multicast frames dropped by the HW 11198 * when in the connected state. This data is maintained per connect session. 11199 * Represents the count of last connected session, when queried in the 11200 * disconnected state. 11201 * 11202 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the 11203 * STA mode. This represents the target power in dBm for the transmissions done 11204 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per 11205 * connect session. Represents the count of last connected session, when 11206 * queried in the disconnected state. 11207 * 11208 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the 11209 * STA mode. This represents the Target power in dBm for transmissions done to 11210 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 11211 * session. Represents the count of last connected session, when queried in the 11212 * disconnected state. 11213 * 11214 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the 11215 * STA mode. This represents the Target power in dBm for transmissions done to 11216 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session. 11217 * Represents the count of last connected session, when queried in the 11218 * disconnected state. 11219 * 11220 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the 11221 * STA mode. This represents the Target power in dBm for transmissions done to 11222 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 11223 * session. Represents the count of last connected session, when queried in 11224 * the disconnected state. 11225 * 11226 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the 11227 * STA mode. This represents the Target power in dBm for for transmissions done 11228 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session. 11229 * Represents the count of last connected session, when queried in the 11230 * disconnected state. 11231 * 11232 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used 11233 * in the STA mode. This represents the Nested attribute representing the 11234 * overflow counts of each receive buffer allocated to the hardware during the 11235 * STA's connection. The number of hw buffers might vary for each WLAN 11236 * solution and hence this attribute represents the nested array of all such 11237 * HW buffer count. This data is maintained per connect session. Represents 11238 * the count of last connected session, when queried in the disconnected state. 11239 * 11240 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm) 11241 * allowed as per the regulatory requirements for the current or last connected 11242 * session. Used in the STA mode. 11243 * 11244 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power 11245 * (dBm) used by the station in its latest unicast frame while communicating 11246 * to the AP in the connected state. When queried in the disconnected state, 11247 * this represents the TX power used by the STA with last AP communication 11248 * when in connected state. 11249 * 11250 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity 11251 * level used to adjust the RX sensitivity. Represents the current ANI level 11252 * when queried in the connected state. When queried in the disconnected 11253 * state, this corresponds to the latest ANI level at the instance of 11254 * disconnection. 11255 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode 11256 * only. This represents the number of group addressed robust management frames 11257 * received from this station with an invalid MIC or a missing MME when PMF is 11258 * enabled. 11259 * 11260 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode 11261 * only. This represents the number of group addressed robust management frames 11262 * received from this station with the packet number less than or equal to the 11263 * last received packet number when PMF is enabled. 11264 * 11265 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA 11266 * mode only. This represents the number of Beacon frames received from this 11267 * station with an invalid MIC or a missing MME when beacon protection is 11268 * enabled. 11269 * 11270 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode 11271 * only. This represents number of Beacon frames received from this station with 11272 * the packet number less than or equal to the last received packet number when 11273 * beacon protection is enabled. 11274 * 11275 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in 11276 * STA mode only. Driver uses this attribute to populate the connection failure 11277 * reason codes and the values are defined in 11278 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send 11279 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving 11280 * connection failure from driver. The driver shall not include this attribute 11281 * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no 11282 * connection failure observed in the last attempted connection. 11283 * 11284 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps) 11285 * used by the station in its last TX frame while communicating to the AP in the 11286 * connected state. When queried in the disconnected state, this represents the 11287 * rate used by the STA in the last TX frame to the AP when it was connected. 11288 * This attribute is used for STA mode only. 11289 * 11290 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only. 11291 * This represents the rate index used by the STA for the last TX frame to the 11292 * AP. When queried in the disconnected state, this gives the last RIX used by 11293 * the STA in the last TX frame to the AP when it was connected. 11294 * 11295 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA 11296 * mode only. This represents the number of times the STA TSF goes out of sync 11297 * from the AP after the connection. If queried in the disconnected state, this 11298 * gives the count of TSF out of sync for the last connection. 11299 * 11300 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA 11301 * mode only. This represents the roam trigger reason for the last roaming 11302 * attempted by the firmware. This can be queried either in connected state or 11303 * disconnected state. Each bit of this attribute represents the different 11304 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers. 11305 * 11306 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode 11307 * only. This represents the roam fail reason for the last failed roaming 11308 * attempt by the firmware. Different roam failure reason codes are specified 11309 * in enum qca_vendor_roam_fail_reasons. This can be queried either in 11310 * connected state or disconnected state. 11311 * 11312 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in 11313 * STA mode only. This represents the roam invoke fail reason for the last 11314 * failed roam invoke. Different roam invoke failure reason codes 11315 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be 11316 * queried either in connected state or disconnected state. 11317 * 11318 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only. 11319 * This represents the average congestion duration of uplink frames in MAC 11320 * queue in unit of ms. This can be queried either in connected state or 11321 * disconnected state. 11322 * 11323 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested 11324 * attribute, used in AP mode. This represents the MPDU packet count per MCS 11325 * rate value of TX packets. Every index of this nested attribute corresponds 11326 * to MCS index, for example Index 0 represents MCS0 TX rate. This can be 11327 * queried in connected state. 11328 * 11329 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested 11330 * attribute, used in AP mode. This represents the MPDU packet count per MCS 11331 * rate value of RX packets. Every index of this nested attribute corresponds 11332 * to MCS index, for example Index 0 represents MCS0 RX rate. This can be 11333 * queried in connected state. 11334 */ 11335 enum qca_wlan_vendor_attr_get_sta_info { 11336 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0, 11337 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1, 11338 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2, 11339 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3, 11340 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4, 11341 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5, 11342 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6, 11343 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7, 11344 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8, 11345 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9, 11346 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10, 11347 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11, 11348 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12, 11349 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13, 11350 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14, 11351 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15, 11352 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16, 11353 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17, 11354 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18, 11355 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19, 11356 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20, 11357 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21, 11358 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22, 11359 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23, 11360 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24, 11361 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25, 11362 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26, 11363 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27, 11364 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28, 11365 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29, 11366 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30, 11367 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31, 11368 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32, 11369 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33, 11370 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34, 11371 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35, 11372 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39, 11373 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40, 11374 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41, 11375 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42, 11376 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43, 11377 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44, 11378 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45, 11379 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46, 11380 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47, 11381 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48, 11382 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49, 11383 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50, 11384 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51, 11385 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52, 11386 11387 /* keep last */ 11388 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST, 11389 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX = 11390 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1, 11391 }; 11392 11393 /** 11394 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes. 11395 * Used when the driver triggers the STA to disconnect from the AP. 11396 * 11397 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the 11398 * disconnection with the AP due to unspecified reasons. 11399 * 11400 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the 11401 * disconnection with the AP due to a roaming failure. This roaming is triggered 11402 * internally (host driver/firmware). 11403 * 11404 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from 11405 * the AP when the user/external triggered roaming fails. 11406 * 11407 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used 11408 * by the host driver whenever gateway reachability failure is detected and the 11409 * driver disconnects with AP. 11410 * 11411 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from 11412 * the AP on a channel switch announcement from it with an unsupported channel. 11413 * 11414 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start 11415 * with indoor channels disabled and if the STA is connected on one of these 11416 * disabled channels, the host driver disconnected the STA with this reason 11417 * code. 11418 * 11419 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an 11420 * explicit request from the user to disable the current operating channel. 11421 * 11422 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to 11423 * the internal host driver/firmware recovery. 11424 * 11425 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on 11426 * a timeout for the key installations from the user space. 11427 * 11428 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the 11429 * STA on a band change request from the user space to a different band from the 11430 * current operation channel/band. 11431 * 11432 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an 11433 * interface down trigger from the user space. 11434 * 11435 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the 11436 * STA on getting continuous transmission failures for multiple Data frames. 11437 * 11438 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive 11439 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection 11440 * represents inactivity from AP on such transmissions. 11441 11442 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on 11443 * disconnection when SA Query times out (AP does not respond to SA Query). 11444 * 11445 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the 11446 * STA on missing the beacons continuously from the AP. 11447 * 11448 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not 11449 * able to move to the channel mentioned by the AP in CSA. 11450 * 11451 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection. 11452 */ 11453 enum qca_disconnect_reason_codes { 11454 QCA_DISCONNECT_REASON_UNSPECIFIED = 0, 11455 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1, 11456 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2, 11457 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3, 11458 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4, 11459 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5, 11460 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6, 11461 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7, 11462 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8, 11463 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9, 11464 QCA_DISCONNECT_REASON_IFACE_DOWN = 10, 11465 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11, 11466 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12, 11467 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13, 11468 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14, 11469 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15, 11470 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16, 11471 }; 11472 11473 /** 11474 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes 11475 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command. 11476 * 11477 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute. 11478 * This attribute represents the driver specific reason codes (local 11479 * driver/firmware initiated reasons for disconnection) defined 11480 * in enum qca_disconnect_reason_codes. 11481 */ 11482 enum qca_wlan_vendor_attr_driver_disconnect_reason { 11483 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0, 11484 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1, 11485 11486 /* keep last */ 11487 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST, 11488 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX = 11489 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1, 11490 }; 11491 11492 /** 11493 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request 11494 * 11495 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION. 11496 */ 11497 enum qca_wlan_tspec_operation { 11498 QCA_WLAN_TSPEC_ADD = 0, 11499 QCA_WLAN_TSPEC_DEL = 1, 11500 QCA_WLAN_TSPEC_GET = 2, 11501 }; 11502 11503 /** 11504 * enum qca_wlan_tspec_direction - Direction in TSPEC 11505 * As what is defined in IEEE Std 802.11-2016, Table 9-139. 11506 * 11507 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION. 11508 */ 11509 enum qca_wlan_tspec_direction { 11510 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0, 11511 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1, 11512 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2, 11513 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3, 11514 }; 11515 11516 /** 11517 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC 11518 * As what is defined in IEEE Std 802.11-2016, Table 9-141. 11519 * 11520 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY. 11521 */ 11522 enum qca_wlan_tspec_ack_policy { 11523 QCA_WLAN_TSPEC_NORMAL_ACK = 0, 11524 QCA_WLAN_TSPEC_NO_ACK = 1, 11525 /* Reserved */ 11526 QCA_WLAN_TSPEC_BLOCK_ACK = 3, 11527 }; 11528 11529 /** 11530 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes 11531 * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command. 11532 * 11533 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION: 11534 * u8 attribute. Specify the TSPEC operation of this request. Possible values 11535 * are defined in enum qca_wlan_tspec_operation. 11536 * Mandatory attribute for all kinds of config TSPEC requests. 11537 * 11538 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID: 11539 * u8 attribute. TS ID. Possible values are 0-7. 11540 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL, 11541 * QCA_WLAN_TSPEC_GET. A mandatory attribute. 11542 * 11543 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION: 11544 * u8 attribute. Direction of data carried by the TS. Possible values are 11545 * defined in enum qca_wlan_tspec_direction. 11546 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11547 * 11548 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD: 11549 * Flag attribute. Indicate whether APSD is enabled for the traffic associated 11550 * with the TS. set - enabled, not set - disabled. 11551 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11552 * 11553 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY: 11554 * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs 11555 * belonging to this TS. Possible values are 0-7. 11556 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11557 * 11558 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY: 11559 * u8 attribute. Indicate whether MAC acknowledgements are required for 11560 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements. 11561 * Possible values are defined in enum qca_wlan_tspec_ack_policy. 11562 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11563 * 11564 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE: 11565 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs 11566 * belonging to this TS. 11567 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11568 * 11569 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE: 11570 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs 11571 * belonging to this TS. 11572 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11573 * 11574 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL: 11575 * u32 attribute. Specify the minimum interval in microseconds between the 11576 * start of two successive SPs. 11577 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11578 * 11579 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL: 11580 * u32 attribute. Specify the maximum interval in microseconds between the 11581 * start of two successive SPs. 11582 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11583 * 11584 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL: 11585 * u32 attribute. Specify the minimum interval in microseconds that can elapse 11586 * without arrival or transfer of an MPDU belonging to the TS before this TS 11587 * is deleted by the MAC entity at the HC. 11588 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11589 * 11590 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL: 11591 * u32 attribute. Specify the minimum interval in microseconds that can elapse 11592 * without arrival or transfer of an MSDU belonging to the TS before the 11593 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of 11594 * 0xFFFFFFFF disables the suspension interval. The value of the suspension 11595 * interval is always less than or equal to the inactivity interval. 11596 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11597 * 11598 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE: 11599 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC 11600 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 11601 * bounds of this TSPEC. 11602 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11603 * 11604 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE: 11605 * u32 attribute. Indicate the average data rate in bps specified at the MAC 11606 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 11607 * bounds of this TSPEC. 11608 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11609 * 11610 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE: 11611 * u32 attribute. Indicate the maximum allowable data rate in bps specified at 11612 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within 11613 * the bounds of this TSPEC. 11614 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11615 * 11616 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE: 11617 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs 11618 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A 11619 * value of 0 indicates that there are no bursts. 11620 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11621 * 11622 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE: 11623 * u32 attribute. Indicate the minimum PHY rate in bps for transport of 11624 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC. 11625 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11626 * 11627 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE: 11628 * u16 attribute. Specify the excess allocation of time (and bandwidth) over 11629 * and above the stated application rates required to transport an MSDU/A-MSDU 11630 * belonging to the TS in this TSPEC. 11631 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11632 */ 11633 enum qca_wlan_vendor_attr_config_tspec { 11634 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0, 11635 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1, 11636 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2, 11637 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3, 11638 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4, 11639 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5, 11640 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6, 11641 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7, 11642 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8, 11643 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9, 11644 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10, 11645 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11, 11646 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12, 11647 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13, 11648 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14, 11649 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15, 11650 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16, 11651 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17, 11652 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18, 11653 11654 /* keep last */ 11655 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST, 11656 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX = 11657 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1, 11658 }; 11659 11660 /** 11661 * enum qca_wlan_medium_assess_type - Type of medium assess request 11662 * 11663 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE. 11664 */ 11665 enum qca_wlan_medium_assess_type { 11666 QCA_WLAN_MEDIUM_ASSESS_CCA = 0, 11667 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1, 11668 }; 11669 11670 /** 11671 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by 11672 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command. 11673 * 11674 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE: 11675 * u8 attribute. Mandatory in all kinds of medium assess requests/responses. 11676 * Specify the type of medium assess request and indicate its type in response. 11677 * Possible values are defined in enum qca_wlan_medium_assess_type. 11678 * 11679 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD: 11680 * u32 attribute. Mandatory in CCA request. 11681 * Specify the assessment period in terms of seconds. Assessment result will be 11682 * sent as the response to the CCA request after the assessment period. 11683 * 11684 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT: 11685 * u32 attribute. Mandatory in response to CCA request. 11686 * Total timer tick count of the assessment cycle. 11687 * 11688 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT: 11689 * u32 attribute. Mandatory in response to CCA request. 11690 * Timer tick count of idle time in the assessment cycle. 11691 * 11692 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT: 11693 * u32 attribute. Mandatory in response to CCA request. 11694 * Timer tick count of Intra BSS traffic RX time in the assessment cycle. 11695 * 11696 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT: 11697 * u32 attribute. Mandatory in response to CCA request. 11698 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle. 11699 * 11700 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI: 11701 * s32 attribute. Mandatory in response to CCA request. 11702 * Maximum RSSI of Intra BSS traffic in the assessment cycle. 11703 * 11704 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI: 11705 * s32 attribute. Mandatory in response to CCA request. 11706 * Minimum RSSI of Intra BSS traffic in the assessment cycle. 11707 * 11708 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE: 11709 * u8 attribute. Mandatory in congestion report request. 11710 * 1-enable 0-disable. 11711 * 11712 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD: 11713 * u8 attribute. Mandatory in congestion report enable request and will be 11714 * ignored if present in congestion report disable request. Possible values are 11715 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type 11716 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if 11717 * congestion percentage reaches the configured threshold. 11718 * 11719 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL: 11720 * u8 attribute. Optional in congestion report enable request and will be 11721 * ignored if present in congestion report disable request. 11722 * Specify the interval of congestion report event in terms of seconds. Possible 11723 * values are 1-255. Default value 1 will be used if this attribute is omitted 11724 * or using invalid values. 11725 * 11726 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE: 11727 * u8 attribute. Mandatory in congestion report event. 11728 * Indicate the actual congestion percentage. Possible values are 0-100. 11729 */ 11730 enum qca_wlan_vendor_attr_medium_assess { 11731 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0, 11732 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1, 11733 11734 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2, 11735 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3, 11736 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4, 11737 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5, 11738 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6, 11739 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7, 11740 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8, 11741 11742 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9, 11743 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10, 11744 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11, 11745 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12, 11746 11747 /* keep last */ 11748 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST, 11749 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX = 11750 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1, 11751 }; 11752 11753 /** 11754 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes 11755 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command. 11756 * 11757 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL: 11758 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1 11759 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV, 11760 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events. 11761 * 11762 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT: 11763 * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event. 11764 * 11765 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID: 11766 * u8 attribute, required. indicates group id of Tx VDEV 11767 * 11768 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO: 11769 * Nested attribute. This attribute shall be used by the driver to send 11770 * group information. The attributes defined in enum 11771 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info 11772 * are nested in this attribute. 11773 */ 11774 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status { 11775 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0, 11776 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1, 11777 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2, 11778 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3, 11779 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4, 11780 11781 /* keep last */ 11782 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST, 11783 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX = 11784 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1, 11785 }; 11786 11787 /** 11788 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used 11789 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute. 11790 * 11791 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX: 11792 * u32 attribute, required. contains interface index. 11793 * 11794 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS: 11795 * u8 attribute, required. 0 - means vdev is in down state. 11796 * 1- means vdev is in up state. 11797 */ 11798 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info { 11799 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0, 11800 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1, 11801 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2, 11802 11803 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST, 11804 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX = 11805 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1, 11806 }; 11807 11808 /** 11809 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type 11810 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame 11811 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame 11812 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request 11813 * frame 11814 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation 11815 * Request frame. 11816 */ 11817 enum qca_wlan_vendor_oci_override_frame_type { 11818 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1, 11819 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2, 11820 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3, 11821 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4, 11822 }; 11823 11824 /** 11825 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies 11826 * 11827 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary 11828 * STA interface has to be given while selecting the connection policies 11829 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface. 11830 * An interface is set as primary through the attribute 11831 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not 11832 * applicable if the primary interface has not been set earlier. 11833 * 11834 * The intention is not to downgrade the primary STA performance, such as: 11835 * - Do not reduce the number of TX/RX chains of primary connection. 11836 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of 11837 * chains. 11838 * - If using MCC, should set the MCC duty cycle of the primary connection to 11839 * be higher than the secondary connection. 11840 * 11841 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the 11842 * subsequent STA connection shall be chosen to balance with the existing 11843 * concurrent STA's performance. 11844 * Such as 11845 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware 11846 * capability. 11847 * - If using MCC, set the MCC duty cycle of the primary connection to be equal 11848 * to the secondary. 11849 * - Prefer BSSID candidates which will help provide the best "overall" 11850 * performance for all the STA connections. 11851 */ 11852 enum qca_wlan_concurrent_sta_policy_config { 11853 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0, 11854 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1, 11855 }; 11856 11857 /** 11858 * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes 11859 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command. 11860 * 11861 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG: 11862 * u8 attribute. Configures the concurrent STA policy configuration. 11863 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config. 11864 */ 11865 enum qca_wlan_vendor_attr_concurrent_sta_policy { 11866 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0, 11867 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1, 11868 11869 /* keep last */ 11870 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST, 11871 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX = 11872 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1, 11873 11874 }; 11875 11876 /** 11877 * enum qca_sta_connect_fail_reason_codes - Defines values carried 11878 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor 11879 * attribute. 11880 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received 11881 * for unicast probe request. 11882 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request. 11883 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for 11884 * ath request. 11885 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not 11886 * received from AP. 11887 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc 11888 * request. 11889 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for 11890 * assoc request. 11891 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not 11892 * received from AP. 11893 */ 11894 enum qca_sta_connect_fail_reason_codes { 11895 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1, 11896 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2, 11897 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3, 11898 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4, 11899 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5, 11900 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6, 11901 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7, 11902 }; 11903 11904 /** 11905 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for 11906 * OCI override request. These attributes are used inside nested attribute 11907 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command 11908 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 11909 * 11910 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8. 11911 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this 11912 * attribute to specify the frame type in which the OCI is to be overridden. 11913 * 11914 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32) 11915 * OCI frequency (in MHz) to override in the specified frame type. 11916 */ 11917 enum qca_wlan_vendor_attr_oci_override { 11918 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0, 11919 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1, 11920 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2, 11921 11922 /* keep last */ 11923 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST, 11924 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX = 11925 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1, 11926 }; 11927 11928 /** 11929 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different 11930 * filters defined in this enum are used in attribute 11931 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK. 11932 * 11933 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver 11934 * shall filter the channels which are not usable because of coexistence with 11935 * cellular radio. 11936 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver 11937 * shall filter the channels which are not usable because of existing active 11938 * interfaces in the driver and will result in Multi Channel Concurrency, etc. 11939 * 11940 */ 11941 enum qca_wlan_vendor_usable_channels_filter { 11942 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0, 11943 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1, 11944 }; 11945 11946 /** 11947 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside 11948 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute. 11949 * 11950 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ: 11951 * u32 attribute, required. Indicates the center frequency of the primary 11952 * channel in MHz. 11953 * 11954 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ: 11955 * u32 attribute. Indicates the center frequency of the primary segment of the 11956 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz, 11957 * 160 MHz, and 320 MHz channels. 11958 * 11959 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ: 11960 * u32 attribute. Indicates the center frequency of the secondary segment of 11961 * 80+80 channel in MHz. This attribute is required only when 11962 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80. 11963 * 11964 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH: 11965 * u32 attribute, required. Indicates the bandwidth of the channel, possible 11966 * values are defined in enum nl80211_chan_width. 11967 * 11968 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK: 11969 * u32 attribute, required. Indicates all the interface types for which this 11970 * channel is usable. This attribute encapsulates bitmasks of interface types 11971 * defined in enum nl80211_iftype. 11972 * 11973 */ 11974 enum qca_wlan_vendor_attr_chan_info { 11975 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0, 11976 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1, 11977 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2, 11978 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3, 11979 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4, 11980 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5, 11981 11982 /* keep last */ 11983 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST, 11984 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX = 11985 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1, 11986 }; 11987 11988 /** 11989 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by 11990 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command. 11991 * 11992 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK: 11993 * u32 attribute. Indicates the bands from which the channels should be reported 11994 * in response. This attribute encapsulates bit masks of bands defined in enum 11995 * nl80211_band. Optional attribute, if not present in the request the driver 11996 * shall return channels from all supported bands. 11997 * 11998 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK: 11999 * u32 attribute. Indicates all the interface types for which the usable 12000 * channels information is requested. This attribute encapsulates bitmasks of 12001 * interface types defined in enum nl80211_iftype. Optional attribute, if not 12002 * present in the request the driver shall send information of all supported 12003 * interface modes. 12004 * 12005 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK: 12006 * u32 attribute. This attribute carries information of all filters that shall 12007 * be applied while populating usable channels information by the driver. This 12008 * attribute carries bit masks of different filters defined in enum 12009 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present 12010 * in the request the driver shall send information of channels without applying 12011 * any of the filters that can be configured through this attribute. 12012 * 12013 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO: 12014 * Nested attribute. This attribute shall be used by the driver to send 12015 * usability information of each channel. The attributes defined in enum 12016 * qca_wlan_vendor_attr_chan_info are used inside this attribute. 12017 */ 12018 enum qca_wlan_vendor_attr_usable_channels { 12019 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0, 12020 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1, 12021 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2, 12022 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3, 12023 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4, 12024 12025 /* keep last */ 12026 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST, 12027 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX = 12028 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1, 12029 }; 12030 12031 /** 12032 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command 12033 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history. 12034 * 12035 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry 12036 * the list of radar history entries. 12037 * Each entry contains freq, timestamp, and radar signal detect flag. 12038 * The driver shall add an entry when CAC has finished, or radar signal 12039 * has been detected post AP beaconing. The driver shall maintain at least 12040 * 8 entries in order to save CAC result for a 160 MHz channel. 12041 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute. 12042 * Channel frequency in MHz. 12043 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds. 12044 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC 12045 * or radar detection. 12046 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute. 12047 * This flag indicates radar signal has been detected. 12048 */ 12049 enum qca_wlan_vendor_attr_radar_history { 12050 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0, 12051 12052 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1, 12053 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2, 12054 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3, 12055 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4, 12056 12057 /* keep last */ 12058 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST, 12059 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX = 12060 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1, 12061 }; 12062 12063 /** 12064 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type 12065 * 12066 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the 12067 * target exited MCC state and cleared the quota information. In the 12068 * command it clears MCC quota setting and restores adaptive scheduling. 12069 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and 12070 * will not be changed. 12071 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic 12072 * and the target may change the quota based on the data activity. 12073 */ 12074 enum qca_wlan_vendor_mcc_quota_type { 12075 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0, 12076 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1, 12077 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2, 12078 }; 12079 12080 /** 12081 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event 12082 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel 12083 * quota information or as a command to set the required MCC quota for an 12084 * interface. 12085 * 12086 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute. 12087 * The type is defined in enum qca_wlan_vendor_mcc_quota_type. 12088 * In a command this specifies the MCC quota type to be set for the interface. 12089 * In an event this provides the current quota type in force. 12090 * This is required in a command and an event. 12091 * 12092 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry 12093 * the list of channel quota entries. 12094 * In an event each entry contains the frequency and respective time quota for 12095 * all the MCC interfaces. 12096 * In a command it specifies the interface index and respective time quota. 12097 * In a command only one entry (ifindex, quota pair) may be specified. 12098 * 12099 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute. 12100 * Channel frequency in MHz. This is present only in an event. 12101 * 12102 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute. 12103 * Channel time quota expressed as percentage. 12104 * This is present in an event and a command. 12105 * In an command, the user shall specify the quota to be allocated for the 12106 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX. 12107 * In an event this provides the existing quota for the channel. 12108 * 12109 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute. 12110 * Specifies the interface index (netdev) for which the corresponding 12111 * configurations are applied. This is required in a command only. Only one 12112 * interface index may be specified. If not specified, the configuration is 12113 * rejected. 12114 */ 12115 enum qca_wlan_vendor_attr_mcc_quota { 12116 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0, 12117 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1, 12118 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2, 12119 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3, 12120 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4, 12121 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5, 12122 12123 /* keep last */ 12124 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST, 12125 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX = 12126 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1, 12127 }; 12128 12129 /** 12130 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for 12131 * radio configurations present in each radio combination. 12132 * 12133 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates 12134 * the band info in the radio configuration. Uses the enum qca_set_band values. 12135 * 12136 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates 12137 * the number of antennas info in the radio configuration. 12138 */ 12139 enum qca_wlan_vendor_attr_supported_radio_cfg { 12140 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0, 12141 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1, 12142 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2, 12143 12144 /* keep last */ 12145 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST, 12146 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX = 12147 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1, 12148 }; 12149 12150 /** 12151 * enum qca_wlan_vendor_attr_radio_combination - Attributes for 12152 * radio combinations supported by the device. 12153 * 12154 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute 12155 * provides the radio configurations present in the radio combination. 12156 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes. 12157 * This attribute provides the values for radio combination matrix. 12158 * For standalone config, the number of config values is one and the config 12159 * carries the band and antenna information for standalone configuration. For 12160 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode 12161 * configuration the number of config values is two and the config carries the 12162 * band and antenna information for each simultaneous radio. 12163 */ 12164 enum qca_wlan_vendor_attr_radio_combination { 12165 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0, 12166 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1, 12167 12168 /* keep last */ 12169 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST, 12170 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX = 12171 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1, 12172 }; 12173 12174 /** 12175 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by 12176 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX 12177 * 12178 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute 12179 * provides the radio combinations supported by the device. 12180 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes. 12181 * For example, in the radio combination matrix for a device which has two 12182 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is 12183 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio 12184 * combinations is 5 and the radio combinations are 12185 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz 12186 * {{5 GHz 2X2}}, //Standalone 5 GHz 12187 * {{6 GHz 2X2}}, //Standalone 6 GHz 12188 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS 12189 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS 12190 * The band and antenna info together as nested data provides one radio config. 12191 * Standalone configuration has one config with band and antenna nested data. 12192 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration 12193 * have two nested band and antenna info data. 12194 */ 12195 enum qca_wlan_vendor_attr_radio_combination_matrix { 12196 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0, 12197 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1, 12198 12199 /* keep last */ 12200 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST, 12201 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX = 12202 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1, 12203 }; 12204 12205 /** 12206 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by 12207 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command. 12208 * 12209 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag) 12210 * Enable mDNS offload. This attribute is mandatory to enable 12211 * mDNS offload feature. If this attribute is not present, mDNS offload 12212 * is disabled. 12213 * 12214 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing 12215 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This 12216 * attribute is mandatory when enabling the feature, and not required when 12217 * disabling the feature. 12218 * 12219 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing 12220 * the following attributes: 12221 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN 12222 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT 12223 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD 12224 * 12225 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute. 12226 * It consists of a hostname and ".local" as the domain name. The character 12227 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes. 12228 * It is used to compare the domain the in the "QU" query. Only 1 FQDN is 12229 * supported per vdev. 12230 * For example: myphone.local 12231 * 12232 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required 12233 * u16 attribute. It specifies the total number of resource records present 12234 * in the answer section of the answer payload. This attribute is needed by the 12235 * firmware to populate the mDNS response frame for mNDS queries without having 12236 * to parse the answer payload. 12237 * 12238 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob 12239 * attribute sent by the mdnsResponder from userspace. It contains resource 12240 * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This 12241 * payload is passed down to firmware and is transmitted in response to 12242 * mDNS queries. 12243 * The maximum size of the answer payload supported is 512 bytes. 12244 */ 12245 enum qca_wlan_vendor_attr_mdns_offload { 12246 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0, 12247 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1, 12248 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2, 12249 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3, 12250 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4, 12251 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5, 12252 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6, 12253 12254 /* keep last */ 12255 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST, 12256 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX = 12257 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1, 12258 }; 12259 12260 /** 12261 * enum qca_vendor_attr_diag_event_type - Attributes used by 12262 * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute. 12263 * 12264 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from 12265 * driver/firmware during Connection request from Userspace. Uses the 12266 * following attributes of enum qca_wlan_vendor_attr_diag: 12267 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12268 * QCA_WLAN_VENDOR_ATTR_DIAG_SSID, 12269 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12270 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT, 12271 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 12272 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT, 12273 * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE, 12274 * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE, 12275 * QCA_WLAN_VENDOR_ATTR_DIAG_AKM, 12276 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 12277 * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE, 12278 * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE, 12279 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12280 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12281 * 12282 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from 12283 * driver/firmware when a connection is failed. Uses the 12284 * following attributes of enum qca_wlan_vendor_attr_diag: 12285 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12286 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12287 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 12288 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12289 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 12290 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12291 * 12292 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from 12293 * driver/firmware during Authentication request from a device. Uses the 12294 * following attributes of enum qca_wlan_vendor_attr_diag: 12295 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12296 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12297 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12298 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 12299 * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE, 12300 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 12301 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 12302 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12303 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12304 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 12305 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12306 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12307 * 12308 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from 12309 * driver/firmware when device receives an authentication response. Uses the 12310 * following attributes of enum qca_wlan_vendor_attr_diag: 12311 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12312 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12313 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 12314 * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE, 12315 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 12316 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 12317 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12318 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 12319 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12320 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12321 * 12322 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from 12323 * driver/firmware when device sends an association request. Uses the 12324 * following attributes of enum qca_wlan_vendor_attr_diag: 12325 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12326 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12327 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12328 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 12329 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12330 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12331 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 12332 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12333 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12334 * 12335 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from 12336 * driver/firmware when device receives an association response. Uses the 12337 * following attributes of enum qca_wlan_vendor_attr_diag: 12338 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12339 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12340 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 12341 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 12342 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12343 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 12344 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12345 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 12346 * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID. 12347 * 12348 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from 12349 * driver/userspace when device receives a deauthentication response. Uses the 12350 * following attributes of enum qca_wlan_vendor_attr_diag: 12351 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12352 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12353 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12354 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 12355 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 12356 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12357 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 12358 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12359 * 12360 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from 12361 * driver/userspace when device sends a deauthentication request. Uses the 12362 * following attributes of enum qca_wlan_vendor_attr_diag: 12363 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12364 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12365 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12366 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 12367 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 12368 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12369 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 12370 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12371 * 12372 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from 12373 * driver/firmware when device receives a disassociation response. Uses the 12374 * following attributes of enum qca_wlan_vendor_attr_diag: 12375 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12376 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12377 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12378 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 12379 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 12380 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12381 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 12382 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12383 * 12384 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from 12385 * driver/firmware when device sends a disassociation request. Uses the 12386 * following attributes of enum qca_wlan_vendor_attr_diag: 12387 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12388 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12389 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12390 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 12391 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 12392 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12393 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 12394 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12395 * 12396 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from 12397 * driver/firmware when device did not receive beacon packets during connection. 12398 * Uses the following attributes of enum qca_wlan_vendor_attr_diag: 12399 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12400 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12401 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12402 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 12403 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12404 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12405 * 12406 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from 12407 * driver/firmware when Roaming scan is triggered. Uses the following 12408 * attributes of enum qca_wlan_vendor_attr_diag: 12409 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12410 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON, 12411 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON, 12412 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12413 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 12414 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE, 12415 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD, 12416 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12417 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12418 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12419 * 12420 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from 12421 * driver/firmware Roam scanning is processed. Uses the following 12422 * attributes of enum qca_wlan_vendor_attr_diag: 12423 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12424 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 12425 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST, 12426 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT, 12427 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 12428 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12429 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12430 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 12431 * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE. 12432 * 12433 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from 12434 * driver/firmware to provide Roam information of the current AP. Uses the 12435 * following attributes of enum qca_wlan_vendor_attr_diag: 12436 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12437 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12438 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12439 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 12440 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 12441 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE, 12442 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12443 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12444 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12445 * 12446 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from 12447 * driver/firmware to provide Roam information of the candid AP. Uses the 12448 * following attributes of enum qca_wlan_vendor_attr_diag: 12449 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12450 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12451 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12452 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 12453 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 12454 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE, 12455 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP, 12456 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 12457 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12458 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12459 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12460 * 12461 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from 12462 * driver/firmware to provide Roam result after selecting a candidate. Uses the 12463 * following attributes of enum qca_wlan_vendor_attr_diag: 12464 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12465 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL, 12466 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12467 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12468 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12469 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12470 * 12471 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from 12472 * driver/firmware to indicate Roam Cancellation due to higher priority events. 12473 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12474 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12475 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12476 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 12477 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12478 * 12479 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver 12480 * /firmware when STA sends a BTM request frame. Uses the following attributes 12481 * of enum qca_wlan_vendor_attr_diag: 12482 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12483 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 12484 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE, 12485 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER, 12486 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL, 12487 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT, 12488 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12489 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12490 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12491 * 12492 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from 12493 * driver/firmware when STA queries about BTM transition. Uses the following 12494 * attributes of enum qca_wlan_vendor_attr_diag: 12495 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12496 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 12497 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON, 12498 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12499 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12500 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12501 * 12502 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver 12503 * /firmware when STA receives BTM response frame. Uses the following 12504 * attributes of enum qca_wlan_vendor_attr_diag: 12505 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12506 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 12507 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE, 12508 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY, 12509 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID, 12510 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12511 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12512 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12513 * 12514 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from 12515 * driver/firmware to provide BTM request candidate information. Uses the 12516 * following attributes of enum qca_wlan_vendor_attr_diag: 12517 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12518 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12519 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE, 12520 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 12521 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12522 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12523 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12524 * 12525 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver 12526 * /firmware when ROAM WTC trigger happens. Uses the following attributes of 12527 * enum qca_wlan_vendor_attr_diag: 12528 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12529 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE, 12530 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 12531 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION, 12532 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12533 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12534 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12535 * 12536 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from 12537 * driver/firmware to indicate DHCP discovery to AP. Uses the following 12538 * attributes of enum qca_wlan_vendor_attr_diag: 12539 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12540 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12541 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12542 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12543 * 12544 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from 12545 * driver/firmware to indicate DHCP offering to AP. Uses the following 12546 * attributes of enum qca_wlan_vendor_attr_diag: 12547 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12548 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12549 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12550 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12551 * 12552 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from 12553 * driver/firmware to indicate driver sent DHCP packets. Uses the following 12554 * attributes of enum qca_wlan_vendor_attr_diag: 12555 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12556 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12557 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12558 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12559 * 12560 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver 12561 * /firmware to indicate acknowledgement of DHCP packets. Uses the following 12562 * attributes of enum qca_wlan_vendor_attr_diag: 12563 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12564 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12565 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12566 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12567 * 12568 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver 12569 * /firmware to indicate negative acknowledgement of DHCP packets. Uses the 12570 * following attributes of enum qca_wlan_vendor_attr_diag: 12571 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12572 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12573 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12574 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12575 * 12576 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver 12577 * /firmware to indicate EAPOL M1 message. Uses the following attributes of 12578 * enum qca_wlan_vendor_attr_diag: 12579 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12580 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12581 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12582 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12583 * 12584 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver 12585 * /firmware to indicate EAPOL M2 message. Uses the following attributes of 12586 * enum qca_wlan_vendor_attr_diag: 12587 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12588 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12589 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12590 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12591 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12592 * 12593 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver 12594 * /firmware to indicate EAPOL M3 message. Uses the following attributes of 12595 * enum qca_wlan_vendor_attr_diag: 12596 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12597 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12598 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12599 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12600 * 12601 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver 12602 * /firmware to indicate EAPOL M4 message. Uses the following attributes of 12603 * enum qca_wlan_vendor_attr_diag: 12604 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12605 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12606 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12607 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12608 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12609 * 12610 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver 12611 * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of 12612 * enum qca_wlan_vendor_attr_diag: 12613 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12614 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12615 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12616 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12617 * 12618 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver 12619 * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of 12620 * enum qca_wlan_vendor_attr_diag: 12621 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12622 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12623 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12624 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 12625 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12626 * 12627 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver 12628 * /firmware to indicate device sent EAP request. Uses the following attributes 12629 * of enum qca_wlan_vendor_attr_diag: 12630 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12631 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE, 12632 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN, 12633 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12634 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12635 * 12636 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver 12637 * /firmware to indicate device received EAP response. Uses the following 12638 * attributes of enum qca_wlan_vendor_attr_diag: 12639 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12640 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE, 12641 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN, 12642 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12643 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12644 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12645 * 12646 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver 12647 * /firmware to indicate EAP frame transmission is success. Uses the following 12648 * attributes of enum qca_wlan_vendor_attr_diag: 12649 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12650 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12651 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12652 * 12653 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver 12654 * /firmware to indicate EAP frame transmission is failed. Uses the following 12655 * attributes of enum qca_wlan_vendor_attr_diag: 12656 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 12657 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12658 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 12659 * 12660 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver 12661 * /firmware to indicate Reassocation request. Uses the following attributes 12662 * of enum qca_wlan_vendor_attr_diag: 12663 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 12664 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12665 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 12666 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 12667 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 12668 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12669 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 12670 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP. 12671 * 12672 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver 12673 * /firmware to indicate Reassocation response. Uses the following attributes 12674 * of enum qca_wlan_vendor_attr_diag: 12675 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 12676 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 12677 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 12678 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 12679 * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID, 12680 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 12681 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 12682 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP. 12683 */ 12684 enum qca_vendor_attr_diag_event_type { 12685 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0, 12686 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1, 12687 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2, 12688 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3, 12689 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4, 12690 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5, 12691 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6, 12692 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7, 12693 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8, 12694 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9, 12695 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10, 12696 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11, 12697 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12, 12698 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13, 12699 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14, 12700 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15, 12701 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16, 12702 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17, 12703 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18, 12704 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19, 12705 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20, 12706 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21, 12707 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22, 12708 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23, 12709 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24, 12710 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25, 12711 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26, 12712 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27, 12713 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28, 12714 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29, 12715 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30, 12716 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31, 12717 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32, 12718 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33, 12719 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34, 12720 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35, 12721 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36, 12722 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37, 12723 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38, 12724 12725 /* keep last */ 12726 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST, 12727 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX = 12728 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1, 12729 }; 12730 12731 /** 12732 * enum qca_wlan_vendor_tx_status - Used by attribute 12733 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status. 12734 * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air. 12735 * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement 12736 * is not received. 12737 * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and 12738 * acknowledged. 12739 */ 12740 enum qca_wlan_vendor_tx_status { 12741 QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1, 12742 QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2, 12743 QCA_WLAN_VENDOR_TX_STATUS_ACK = 3, 12744 }; 12745 12746 /** 12747 * enum qca_roam_sub_reason - Used by attribute 12748 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON 12749 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic 12750 * timer expiry 12751 * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due 12752 * to no candidate found during LOW RSSI trigger. 12753 * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc 12754 * Imminent timeout 12755 * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan 12756 * failure 12757 * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to 12758 * emergency like deauth/disassoc. 12759 * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to 12760 * BSS transition management request. 12761 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI: 12762 * Roam scan triggered due to Low RSSI periodic timer 12763 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU: 12764 * Roam trigger due to periodic timer after no candidate found during CU 12765 * inactivity timer scan. 12766 * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate 12767 * found in high CU roam trigger. 12768 */ 12769 enum qca_roam_sub_reason { 12770 QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1, 12771 QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2, 12772 QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3, 12773 QCA_ROAM_SUB_REASON_FULL_SCAN = 4, 12774 QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5, 12775 QCA_ROAM_SUB_REASON_CU_PERIODIC = 6, 12776 QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7, 12777 QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8, 12778 QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9, 12779 }; 12780 12781 /* 12782 * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver 12783 * to send diag data to the userspace. The attributes defined in this enum are 12784 * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA. 12785 * 12786 * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used 12787 * by driver/firmware to send diag data. Each instance of this nested attribute 12788 * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other 12789 * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the 12790 * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this 12791 * nested attribute can be sent with one vendor command 12792 * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA. 12793 * 12794 * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This 12795 * attribute indicates the type of the diag event from driver/firmware. Uses 12796 * values from enum qca_vendor_attr_diag_event_type. 12797 * 12798 * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This 12799 * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64() 12800 * API to send time of the day in microseconds to userspace. 12801 * 12802 * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute. 12803 * This attribute indicates firmware timestamp in microseconds. 12804 * 12805 * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute 12806 * indicates wlan interface index. 12807 * 12808 * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute 12809 * indicates 6-byte MAC address representing the BSSID of the AP. 12810 * 12811 * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute 12812 * indicates the 6-byte MAC address representing the BSSID hint sent in 12813 * the connect request. 12814 * 12815 * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute 12816 * indicates the SSID in u8 array with a maximum length of 32. 12817 * 12818 * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute 12819 * indicates the frequency of AP in MHz. 12820 * 12821 * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute 12822 * indicates frequency hint given in the connect request in MHz. 12823 * 12824 * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute. 12825 * This attribute indicates RSSI of the 802.11 frame in dBm. 12826 * 12827 * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute. 12828 * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020 12829 * Table 12-10—Integrity and key wrap algorithms. 12830 * 12831 * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute. 12832 * This attribute indicates Group cipher suite defined in IEEE 802.11 2020 12833 * Table 12-10—Integrity and key wrap algorithms. 12834 * 12835 * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This 12836 * attribute indicates Group management cipher suite defined in IEEE Std 12837 * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms. 12838 * 12839 * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute 12840 * indicates Auth key management suite defined in IEEE Std 802.11‐2020 12841 * Table 9-151—AKM suite selectors. 12842 * 12843 * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute 12844 * indicates authentication algorithm number defined in IEEE Std 802.11‐2020 12845 * Section 9.4.1.1 Authentication Algorithm Number field. 12846 * 12847 * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute 12848 * indicates bluetooth COEX is active or not. 12849 * 12850 * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This 12851 * attribute indicates SAE authentication frame type. The possible values are 12852 * 1 - SAE commit frame 12853 * 2 - SAE confirm frame 12854 * 12855 * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This 12856 * attribute indicates the reason codes defined in IEEE Std 802.11‐2020 12857 * Table 9-49—Reason codes. 12858 * 12859 * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This 12860 * attribute indicates sequence number of the frame defined in IEEE Std 12861 * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number 12862 * field. 12863 * 12864 * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This 12865 * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table 12866 * 9-50—Status codes. 12867 * 12868 * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute. 12869 * Uses enum qca_wlan_vendor_tx_status. 12870 * 12871 * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute 12872 * indicates if frame transmission is retried. 12873 * 12874 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute. 12875 * Uses enum qca_roam_reason. 12876 * 12877 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute. 12878 * Uses enum qca_roam_sub_reason. 12879 * 12880 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute 12881 * indicates channel utilization in percentage. 12882 * 12883 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This 12884 * attribute indicates scan type used. Uses enum qca_roam_scan_scheme. 12885 * 12886 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute. 12887 * This attribute indicates current RSSI threshold in dBm. 12888 * 12889 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute. 12890 * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE 12891 * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ. 12892 * 12893 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute. 12894 * This attribute indicates number of scanned candidate APs. 12895 * 12896 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This 12897 * attribute indicates roam AP rank computed based on connection preference. 12898 * 12899 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute. 12900 * This attribute indicates expected throughput in kbps. 12901 * 12902 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute. 12903 * This attribute indicates the preference value of candidate AP / connected AP 12904 * calculated in the firmware. 12905 * 12906 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute 12907 * indicates connection/roaming is successful or not. 12908 * 12909 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute. 12910 * This attribute indicates BTM WTC sub reason code in the WTC vendor specific 12911 * IE present in the BTM frame. 12912 * 12913 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute. 12914 * This attribute indicates BTM WTC duration in milliseconds. 12915 * 12916 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute 12917 * indicates dialog token value of BTM query/request/response frames. 12918 * 12919 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This 12920 * attribute indicates the Transition Reason field indicates the reason why 12921 * a transition attempt occurred and contains one of the values defined in IEEE 12922 * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons. 12923 * 12924 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute 12925 * indicates BTM mode defined in IEEE Std 802.11‐2020 12926 * Figure 9-924—Request Mode field format. 12927 * 12928 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute. 12929 * This attribute indicates the Disassociation Timer field which is the number 12930 * of beacon transmission times (TBTTs) until the serving AP will send a 12931 * Disassociation frame to this STA. 12932 * 12933 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute. 12934 * This attribute indicates BTM validity interval field in TBTTs defined in 12935 * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame 12936 * Action field format. 12937 * 12938 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute. 12939 * This attribute indicates BTM candidate list entries. 12940 * 12941 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute. 12942 * This attribute indicates network preference for BTM transition defined in 12943 * IEEE Std 802.11‐2020 Table 9-174—Preference field values. 12944 * 12945 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute. 12946 * This attribute indicates BTM transition status code defined in IEEE Std 12947 * 802.11‐2020 Table 9-428—BTM status code definitions. 12948 * 12949 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute. 12950 * This attribute indicates BSS termination delay defined in IEEE Std 12951 * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format. 12952 * 12953 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute. 12954 * This attribute indicates 6-byte MAC address representing the BSSID of the 12955 * BSS that the non-AP STA transitions to. 12956 * 12957 * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute 12958 * indicates EAP frame type. The methods are enumerated by IANA at 12959 * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml. 12960 * 12961 * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute 12962 * indicates EAP frame length. 12963 * 12964 * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This 12965 * attribute indicates the kernel timestamp. Driver uses ktime_get() API 12966 * (Time from boot but not the time spent in suspend) to send in microseconds 12967 * to userspace. 12968 * 12969 * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute 12970 * indicates the association id received in the (re)association response frame 12971 * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format. 12972 */ 12973 enum qca_wlan_vendor_attr_diag { 12974 QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0, 12975 QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1, 12976 QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2, 12977 QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3, 12978 QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4, 12979 QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5, 12980 QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6, 12981 QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7, 12982 QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8, 12983 QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9, 12984 QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10, 12985 QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11, 12986 QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12, 12987 QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13, 12988 QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14, 12989 QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15, 12990 QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16, 12991 QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17, 12992 QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18, 12993 QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19, 12994 QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20, 12995 QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21, 12996 QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22, 12997 QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23, 12998 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24, 12999 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25, 13000 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26, 13001 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27, 13002 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28, 13003 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29, 13004 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30, 13005 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31, 13006 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32, 13007 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33, 13008 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34, 13009 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35, 13010 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36, 13011 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37, 13012 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38, 13013 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39, 13014 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40, 13015 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41, 13016 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42, 13017 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43, 13018 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44, 13019 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45, 13020 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46, 13021 QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47, 13022 QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48, 13023 QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49, 13024 QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50, 13025 13026 /* keep last */ 13027 QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST, 13028 QCA_WLAN_VENDOR_ATTR_DIAG_MAX = 13029 QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1, 13030 }; 13031 13032 /** 13033 * qca_wlan_vendor_monitor_data_frame_type - Represent the various 13034 * data types to be sent over the monitor interface. 13035 */ 13036 enum qca_wlan_vendor_monitor_data_frame_type { 13037 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0), 13038 13039 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is 13040 not set */ 13041 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1), 13042 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2), 13043 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3), 13044 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4), 13045 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5), 13046 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6), 13047 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7), 13048 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8), 13049 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9), 13050 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10), 13051 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11), 13052 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12), 13053 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13), 13054 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14), 13055 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15), 13056 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16), 13057 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17), 13058 }; 13059 13060 /** 13061 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various 13062 * mgmt types to be sent over the monitor interface. 13063 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames. 13064 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames 13065 * except the Beacons. Valid only in the Connect state. 13066 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected 13067 * BSSID Beacons. Valid only in the Connect state. 13068 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents 13069 * the Beacons obtained during the scan (off channel and connected channel) 13070 * when in connected state. 13071 */ 13072 13073 enum qca_wlan_vendor_monitor_mgmt_frame_type { 13074 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0), 13075 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */ 13076 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1), 13077 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2), 13078 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3), 13079 }; 13080 13081 /** 13082 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various 13083 * ctrl types to be sent over the monitor interface. 13084 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames. 13085 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame. 13086 */ 13087 enum qca_wlan_vendor_monitor_ctrl_frame_type { 13088 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0), 13089 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */ 13090 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1), 13091 }; 13092 13093 /** 13094 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the 13095 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the 13096 * monitor mode. 13097 * 13098 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute, 13099 * Represents the tx data packet type to be monitored (u32). These data packets 13100 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 13101 * 13102 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute, 13103 * Represents the tx data packet type to be monitored (u32). These data packets 13104 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 13105 * 13106 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute, 13107 * Represents the tx data packet type to be monitored (u32). These mgmt packets 13108 * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type. 13109 * 13110 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute, 13111 * Represents the tx data packet type to be monitored (u32). These mgmt packets 13112 * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type. 13113 * 13114 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute, 13115 * Represents the tx data packet type to be monitored (u32). These ctrl packets 13116 * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 13117 * 13118 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute, 13119 * Represents the tx data packet type to be monitored (u32). These ctrl packets 13120 * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 13121 * 13122 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: 13123 * u32 attribute, An interval only for the connected beacon interval, which 13124 * expects that the connected BSSID's beacons shall be sent on the monitor 13125 * interface only on this specific interval. 13126 */ 13127 enum qca_wlan_vendor_attr_set_monitor_mode { 13128 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0, 13129 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1, 13130 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2, 13131 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3, 13132 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4, 13133 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5, 13134 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6, 13135 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7, 13136 13137 /* keep last */ 13138 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST, 13139 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX = 13140 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1, 13141 13142 }; 13143 13144 /** 13145 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags. 13146 * Bits will be set to 1 if the corresponding state is enabled. 13147 * 13148 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start. 13149 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end. 13150 */ 13151 enum qca_wlan_vendor_roam_scan_state { 13152 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0), 13153 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1), 13154 }; 13155 13156 /** 13157 * enum qca_wlan_vendor_roam_event_type - Roam event type flags. 13158 * Bits will be set to 1 if the corresponding event is notified. 13159 * 13160 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event 13161 * carries the trigger reason. When set, it is expected that the roam event 13162 * carries the respective reason via the attribute 13163 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries 13164 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted. 13165 * 13166 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event 13167 * carries the roam fail reason. When set, it is expected that the roam event 13168 * carries the respective reason via the attribute 13169 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the 13170 * BSSID, RSSI, frequency info of the AP to which the roam was attempted. 13171 * 13172 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam 13173 * event carries the roam invoke fail reason. When set, it is expected that 13174 * the roam event carries the respective reason via the attribute 13175 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON. 13176 * 13177 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event 13178 * carries the roam scan state. When set, it is expected that the roam event 13179 * carries the respective scan state via the attribute 13180 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding 13181 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST. 13182 */ 13183 enum qca_wlan_vendor_roam_event_type { 13184 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0), 13185 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1), 13186 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2), 13187 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3), 13188 }; 13189 13190 /** 13191 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info. 13192 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO. 13193 * 13194 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address 13195 * representing the BSSID of the AP to which the Roam is attempted. 13196 * 13197 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value 13198 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is 13199 * attempted. 13200 * 13201 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz 13202 * on which the roam is attempted. 13203 * 13204 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in 13205 * STA mode only. This represents the roam fail reason for the last failed 13206 * roaming attempt by the firmware for the specific BSSID. Different roam 13207 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons. 13208 */ 13209 enum qca_wlan_vendor_attr_roam_events_candidate_info { 13210 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0, 13211 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1, 13212 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2, 13213 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3, 13214 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4, 13215 13216 /* keep last */ 13217 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST, 13218 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX = 13219 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1, 13220 }; 13221 13222 /** 13223 * enum qca_wlan_vendor_attr_roam_events - Used by the 13224 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the 13225 * roam events to the driver or notify these events from the driver. 13226 * 13227 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the 13228 * driver/firmware to enable/disable the notification of roam events. It's a 13229 * mandatory attribute and used only in the request from the userspace to the 13230 * host driver. 1-Enable, 0-Disable. 13231 * If the roaming is totally offloaded to the firmware, this request when 13232 * enabled shall mandate the firmware to notify all the relevant roam events 13233 * represented by the below attributes. If the host is in the suspend mode, 13234 * the behavior of the firmware to notify these events is guided by 13235 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get 13236 * these events in the suspend state, the firmware is expected to wake up the 13237 * host before the respective events are notified. Please note that such a 13238 * request to get the events in the suspend state will have a definite power 13239 * implication. 13240 * 13241 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents 13242 * that the roam events need to be notified in the suspend state too. By 13243 * default, these roam events are notified in the resume state. With this flag, 13244 * the roam events are notified in both resume and suspend states. 13245 * This attribute is used in the request from the userspace to the host driver. 13246 * 13247 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only. 13248 * Represents the different roam event types, signified by the enum 13249 * qca_wlan_vendor_roam_event_type. 13250 * Each bit of this attribute represents the different roam even types reported 13251 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 13252 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 13253 * 13254 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA 13255 * mode only. This represents the roam trigger reason for the last roaming 13256 * attempted by the firmware. Each bit of this attribute represents the 13257 * different roam trigger reason code which are defined in enum 13258 * qca_vendor_roam_triggers. 13259 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 13260 * 13261 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in 13262 * STA mode only. This represents the roam invoke fail reason for the last 13263 * failed roam invoke. Different roam invoke failure reason codes 13264 * are specified in enum qca_vendor_roam_invoke_fail_reasons. 13265 * 13266 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info 13267 * for which the roam is attempted. Each entry is a nested attribute defined 13268 * by enum qca_wlan_vendor_attr_roam_events_candidate_info. 13269 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 13270 * 13271 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents 13272 * the scan state on which the roam events need to be notified. The values for 13273 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state. 13274 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 13275 * 13276 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of 13277 * u32 values. List of frequencies in MHz considered for a roam scan. 13278 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 13279 */ 13280 13281 enum qca_wlan_vendor_attr_roam_events { 13282 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0, 13283 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1, 13284 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2, 13285 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3, 13286 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4, 13287 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5, 13288 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6, 13289 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7, 13290 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8, 13291 13292 /* keep last */ 13293 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST, 13294 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX = 13295 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1, 13296 }; 13297 13298 /* 13299 * enum qca_wlan_ratemask_params_type - Rate mask config type. 13300 * 13301 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config 13302 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config 13303 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config 13304 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config 13305 */ 13306 enum qca_wlan_ratemask_params_type { 13307 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0, 13308 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1, 13309 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2, 13310 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3, 13311 }; 13312 13313 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the 13314 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG. 13315 * This is used to set the rate mask value to be used in rate selection. 13316 * 13317 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST: 13318 * Array of nested containing attributes 13319 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and 13320 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP. 13321 * 13322 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents 13323 * the different phy types to which the rate mask config is to be applied. 13324 * The values for this attribute are referred from enum 13325 * qca_wlan_vendor_ratemask_params_type. 13326 * 13327 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap. 13328 * A bit value of 1 represents rate is enabled and a value of 0 13329 * represents rate is disabled. 13330 * For HE targets, 12 bits correpond to one NSS setting. 13331 * b0-13 => NSS1, MCS 0-13 13332 * b14-27 => NSS2, MCS 0-13 and so on for other NSS. 13333 * For VHT targets, 10 bits correspond to one NSS setting. 13334 * b0-9 => NSS1, MCS 0-9 13335 * b10-19 => NSS2, MCS 0-9 and so on for other NSS. 13336 * For HT targets, 8 bits correspond to one NSS setting. 13337 * b0-7 => NSS1, MCS 0-7 13338 * b8-15 => NSS2, MCS 0-7 and so on for other NSS. 13339 * For OFDM/CCK targets, 8 bits correspond to one NSS setting. 13340 */ 13341 13342 enum qca_wlan_vendor_attr_ratemask_params { 13343 QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0, 13344 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1, 13345 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2, 13346 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3, 13347 13348 /* keep last */ 13349 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST, 13350 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX = 13351 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1, 13352 }; 13353 13354 /** 13355 * enum qca_wlan_vendor_flush_pending_policy: Represents values for 13356 * the policy to flush pending frames, configured via 13357 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the 13358 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY. 13359 * 13360 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all 13361 * the flush policy configured before. This command basically disables the 13362 * flush config set by the user. 13363 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures 13364 * the flush policy to be immediate. All pending packets for the peer/TID are 13365 * flushed when this command/policy is received. 13366 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures 13367 * the flush policy to the end of TWT SP. All pending packets for the peer/TID 13368 * are flushed when the end of TWT SP is reached. 13369 */ 13370 enum qca_wlan_vendor_flush_pending_policy { 13371 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0, 13372 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1, 13373 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2, 13374 }; 13375 13376 /** 13377 * enum qca_wlan_vendor_attr_flush_pending - Attributes for 13378 * flushing pending traffic in firmware. 13379 * 13380 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address. 13381 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending 13382 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK, 13383 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to 13384 * flush packets with access category. This is optional. See below. 13385 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets. 13386 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding 13387 * bit to 1 to act upon the TID. This is optional. Either this attribute or 13388 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided, 13389 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided 13390 * it is an error. 13391 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending 13392 * packets corresponding to the peer/TID provided. It is a u32 value, 13393 * represented by %enum qca_wlan_vendor_flush_pending_policy. This 13394 * value is honored only when TID mask is provided. This is not honored when AC 13395 * mask is provided. 13396 */ 13397 enum qca_wlan_vendor_attr_flush_pending { 13398 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0, 13399 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1, 13400 QCA_WLAN_VENDOR_ATTR_AC = 2, 13401 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3, 13402 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4, 13403 /* keep last */ 13404 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST, 13405 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX = 13406 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1, 13407 }; 13408 13409 /** 13410 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys 13411 * for) or drop existing PASN security association for the listed the 13412 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver 13413 * to userspace. 13414 * 13415 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer 13416 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR. 13417 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from 13418 * the driver to userspace to inform that the existing PASN keys of the 13419 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are 13420 * not valid anymore. 13421 */ 13422 enum qca_wlan_vendor_pasn_action { 13423 QCA_WLAN_VENDOR_PASN_ACTION_AUTH, 13424 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT, 13425 }; 13426 13427 /** 13428 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in 13429 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS. 13430 * 13431 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the 13432 * event from the driver to userspace and represents the local MAC address 13433 * to be used for PASN handshake. When this attribute is present, userspace 13434 * shall use the source address specified in this attribute by the driver 13435 * for PASN handshake with peer device. 13436 * This attribute is required in a command response from userspace to the 13437 * driver and represents the MAC address that was used in PASN handshake 13438 * with the peer device. 13439 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the 13440 * peer device to which PASN handshake is requested in an event from the 13441 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 13442 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH. 13443 * Indicates the MAC address of the peer device for which the keys are to 13444 * be invalidated in an event from the driver to userspace when 13445 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 13446 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT. 13447 * Indicates the MAC address of the peer device for which the status is 13448 * being sent in a status report from userspace to the driver. 13449 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used 13450 * in the event from the driver to userspace. When set, userspace is 13451 * required to derive LTF key seed from KDK and set it to the driver. 13452 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This 13453 * attribute is used in the command response from userspace to the driver. 13454 * If present, it indicates the successful PASN handshake with the peer. If 13455 * this flag is not present, it indicates that the PASN handshake with the 13456 * peer device failed. 13457 */ 13458 enum qca_wlan_vendor_attr_pasn_peer { 13459 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0, 13460 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1, 13461 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2, 13462 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3, 13463 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4, 13464 13465 /* keep last */ 13466 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST, 13467 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX = 13468 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1, 13469 }; 13470 13471 /** 13472 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the 13473 * QCA_NL80211_VENDOR_SUBCMD_PASN command. 13474 * 13475 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are 13476 * defined in enum qca_wlan_vendor_pasn_action and used only in an event 13477 * from the driver to userspace. 13478 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer 13479 * details for each peer and used in both an event and a command response. 13480 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are 13481 * defined in enum qca_wlan_vendor_attr_pasn_peer. 13482 */ 13483 enum qca_wlan_vendor_attr_pasn { 13484 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0, 13485 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1, 13486 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2, 13487 13488 /* keep last */ 13489 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST, 13490 QCA_WLAN_VENDOR_ATTR_PASN_MAX = 13491 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1, 13492 }; 13493 13494 /** 13495 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete 13496 * the ranging security context derived from PASN for each peer. Used in 13497 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION. 13498 * 13499 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging 13500 * context for the peer. 13501 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging 13502 * context for the peer. 13503 */ 13504 enum qca_wlan_vendor_secure_ranging_ctx_action { 13505 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD, 13506 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE, 13507 }; 13508 13509 /** 13510 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type 13511 * used for deriving PASN keys to the driver. Used in 13512 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE 13513 * @QCA_WLAN_VENDOR_SHA_256: SHA-256 13514 * @QCA_WLAN_VENDOR_SHA_384: SHA-384 13515 */ 13516 enum qca_wlan_vendor_sha_type { 13517 QCA_WLAN_VENDOR_SHA_256, 13518 QCA_WLAN_VENDOR_SHA_384, 13519 }; 13520 13521 /** 13522 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used 13523 * to set security context for the PASN peer from userspace to the driver. 13524 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT. 13525 * 13526 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible 13527 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action 13528 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that 13529 * was used during the PASN handshake. 13530 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of 13531 * the peer device for which secure ranging context is being configured. 13532 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the 13533 * hash algorithm to be used, possible values are defined in enum 13534 * qca_wlan_vendor_sha_type. 13535 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds 13536 * the temporal key generated from the PASN handshake. The length of this 13537 * attribute is dependent on the value of 13538 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER. 13539 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the 13540 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites) 13541 * (e.g., 0x000FAC04). 13542 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length 13543 * attribute, holds the LTF keyseed derived from KDK of PASN handshake. 13544 * The length of this attribute is dependent on the value of 13545 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE. 13546 * 13547 */ 13548 enum qca_wlan_vendor_attr_secure_ranging_ctx { 13549 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0, 13550 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1, 13551 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2, 13552 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3, 13553 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4, 13554 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5, 13555 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6, 13556 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7, 13557 13558 /* keep last */ 13559 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST, 13560 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX = 13561 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1, 13562 }; 13563 13564 /** 13565 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used 13566 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER 13567 * nested attribute. The packets that match a filter will be replied with 13568 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY. 13569 * 13570 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4: 13571 * u32 attribute. Destination IPv4 address in network byte order, the 13572 * IPv4 packets with different address will be filtered out. 13573 * This attribute is optional. 13574 * 13575 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC: 13576 * Flag attribute. If it's present, indicates that 13577 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast 13578 * address; while if not, indicates that the address is a unicast/multicast 13579 * address. 13580 * This attribute is optional. 13581 * 13582 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6: 13583 * NLA_BINARY attribute, length is 16 bytes. 13584 * Destination IPv6 address in network byte order, the IPv6 packets 13585 * with different destination address will be filtered out. 13586 * This attribute is optional. 13587 * 13588 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and 13589 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured. 13590 * Packets on both IPv4 and IPv6 will be processed if both are configured. 13591 * 13592 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT: 13593 * u16 attribute. Destination UDP port, the packets with different destination 13594 * UDP port will be filtered out. 13595 * This attribute is mandatory. 13596 * 13597 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET: 13598 * u32 attribute. Represents the offset (in UDP payload) of the data 13599 * to be matched. 13600 * This attribute is mandatory. 13601 * 13602 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA: 13603 * NLA_BINARY attribute, the maximum allowed size is 16 bytes. 13604 * Binary data that is compared bit-by-bit against the data (specified 13605 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP 13606 * payload, the packets don't match will be filtered out. 13607 * This attribute is mandatory. 13608 */ 13609 enum qca_wlan_vendor_attr_coap_offload_filter { 13610 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0, 13611 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1, 13612 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2, 13613 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3, 13614 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4, 13615 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5, 13616 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6, 13617 13618 /* keep last */ 13619 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST, 13620 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX = 13621 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1, 13622 }; 13623 13624 /** 13625 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used 13626 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute. 13627 * 13628 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4: 13629 * u32 attribute. Source address (in network byte order) for replying 13630 * the matching broadcast/multicast IPv4 packets. 13631 * This attribute is optional. 13632 * 13633 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6: 13634 * NLA_BINARY attribute, length is 16 bytes. 13635 * Source address (in network byte order) for replying the matching 13636 * multicast IPv6 packets. 13637 * This attribute is optional. 13638 * 13639 * For broadcast/multicast offload reply, one of 13640 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and 13641 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be 13642 * configured according to version of the IP address(es) configured in 13643 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER; 13644 * while for unicast case, firmware will take the destination IP address 13645 * in the received matching packet as the source address for replying. 13646 * 13647 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER: 13648 * Nested attribute. Filter for the received UDP packets, only the matching 13649 * packets will be replied and cached. 13650 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported 13651 * attributes. 13652 * This attribute is mandatory. 13653 * 13654 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG: 13655 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 13656 * CoAP message (UDP payload) to be sent upon receiving matching packets. 13657 * Firmware is responsible for adding any necessary protocol headers. 13658 * This attribute is mandatory. 13659 * 13660 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME: 13661 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages. 13662 * A cached message will be dropped by firmware if it's expired. 13663 * This attribute is optional. A default value of 40000 will be used in the 13664 * absence of it. 13665 */ 13666 enum qca_wlan_vendor_attr_coap_offload_reply { 13667 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0, 13668 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1, 13669 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2, 13670 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3, 13671 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4, 13672 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5, 13673 13674 /* keep last */ 13675 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST, 13676 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX = 13677 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1, 13678 }; 13679 13680 /** 13681 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for 13682 * CoAP message (UDP) transmitting on IPv4. 13683 * 13684 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR: 13685 * u32 attribute. Source address (in network byte order) for transmitting 13686 * packets on IPv4. 13687 * This attribute is mandatory. 13688 * 13689 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT: 13690 * u16 attribute. Source UDP port. 13691 * This attribute is optional, a random port is taken if it's not present. 13692 * 13693 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR: 13694 * u32 attribute. Destination IPv4 address (in network byte order). 13695 * This attribute is mandatory. 13696 * 13697 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC: 13698 * Flag attribute. If it's present, indicates that 13699 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast 13700 * address; while if not, indicates that the address is unicast/multicast 13701 * address. 13702 * This attribute is optional. 13703 * 13704 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT: 13705 * u16 attribute. Destination UDP port. 13706 * This attribute is mandatory. 13707 */ 13708 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 { 13709 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0, 13710 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1, 13711 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2, 13712 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3, 13713 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4, 13714 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5, 13715 13716 /* keep last */ 13717 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST, 13718 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX = 13719 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1, 13720 }; 13721 13722 /** 13723 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for 13724 * CoAP message (UDP) transmitting on IPv6. 13725 * 13726 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR: 13727 * NLA_BINARY attribute, length is 16 bytes. 13728 * Source address (in network byte order) for transmitting packets on IPv6. 13729 * This attribute is mandatory. 13730 * 13731 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT: 13732 * u16 attribute. Source UDP port. 13733 * This attribute is optional, a random port is taken if it's not present. 13734 * 13735 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR: 13736 * NLA_BINARY attribute, length is 16 bytes. 13737 * Destination IPv6 address (in network byte order). 13738 * This attribute is mandatory. 13739 * 13740 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT: 13741 * u16 attribute. Destination UDP port. 13742 * This attribute is mandatory. 13743 */ 13744 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 { 13745 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0, 13746 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1, 13747 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2, 13748 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3, 13749 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4, 13750 13751 /* keep last */ 13752 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST, 13753 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX = 13754 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1, 13755 }; 13756 13757 /** 13758 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used 13759 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute. 13760 * 13761 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4: 13762 * Nested attribute. The IPv4 source/destination address/port for offload 13763 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list 13764 * of supported attributes. 13765 * This attribute is optional. 13766 * 13767 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6: 13768 * Nested attribute. The IPv6 source/destination address/port for offload 13769 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list 13770 * of supported attributes. 13771 * This attribute is optional. 13772 * 13773 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and 13774 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured. 13775 * Firmware will transmit the packets on both IPv4 and IPv6 if both are 13776 * configured. 13777 * 13778 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD: 13779 * u32 attribute. Period in milliseconds for the periodic transmitting. 13780 * This attribute is mandatory. 13781 * 13782 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG: 13783 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 13784 * CoAP message (UDP payload) to be periodically transmitted. Firmware 13785 * is responsible for adding any necessary protocol headers. 13786 * This attribute is mandatory. 13787 */ 13788 enum qca_wlan_vendor_attr_coap_offload_periodic_tx { 13789 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0, 13790 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1, 13791 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2, 13792 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3, 13793 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4, 13794 13795 /* keep last */ 13796 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST, 13797 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX = 13798 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1, 13799 }; 13800 13801 /** 13802 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used 13803 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute. 13804 * 13805 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS: 13806 * u64 attribute. Received time (since system booted in microseconds) of 13807 * the cached CoAP message. 13808 * This attribute is mandatory. 13809 * 13810 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4: 13811 * u32 attribute. Source IPv4 address (in network byte order) of the cached 13812 * CoAP message. 13813 * This attribute is optional. 13814 * 13815 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6: 13816 * NLA_BINARY attribute, length is 16 bytes. 13817 * Source IPv6 address (in network byte order) of the cached CoAP message. 13818 * This attribute is optional. 13819 * 13820 * At most and at least one of 13821 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and 13822 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for 13823 * an entry. 13824 * 13825 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG: 13826 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 13827 * The cached CoAP message (UDP payload). If the actual message size is 13828 * greater than the maximum size, it will be truncated and leaving only 13829 * the first 1152 bytes. 13830 * This attribute is mandatory. 13831 */ 13832 enum qca_wlan_vendor_attr_coap_offload_cache_info { 13833 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0, 13834 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1, 13835 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2, 13836 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3, 13837 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4, 13838 13839 /* keep last */ 13840 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST, 13841 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX = 13842 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1, 13843 }; 13844 13845 /** 13846 * enum qca_wlan_vendor_coap_offload_action - Actions for 13847 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 13848 * 13849 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE: 13850 * Enable CoAP offload reply. 13851 * If it's enabled, firmware will start offload processing on each suspend 13852 * and stop on each resume. 13853 * 13854 * Offload reply on match works as follows: 13855 * Reply the packets that match the filter with the given CoAP 13856 * message (with necessary protocol headers), increase the CoAP message 13857 * ID in the given CoAP message by one for the next use after each successful 13858 * transmission, and try to store the information of the received packet, 13859 * including the received time, source IP address, and CoAP message (UDP 13860 * payload). 13861 * 13862 * Firmware has a limit to the maximum stored entries, it takes the source IP 13863 * address as the key of an entry, and keeps at most one entry for each key. 13864 * A packet won't be stored if no entry for the same key is present and the 13865 * total number of the existing unexpired entries reaches the maximum value. 13866 * 13867 * If any configured item is changed, user space should disable offload reply 13868 * first and then issue a new enable request. 13869 * 13870 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE: 13871 * Disable CoAP offload reply and return information of any cached CoAP 13872 * messages. 13873 * 13874 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE: 13875 * Enable CoAP offload periodic transmitting. 13876 * If it's enabled, firmware will start offload periodic transmitting on 13877 * each suspend and stop on each resume. 13878 * 13879 * Offload periodic transmitting works as follows: 13880 * Send the given CoAP message (with necessary protocol headers) with the given 13881 * source/destination IP address/UDP port periodically based on the given 13882 * period and increase the CoAP message ID in the given CoAP message by one 13883 * for the next use after each successful transmission. 13884 * 13885 * If any configured item is changed, user space should disable offload 13886 * periodic transmitting first and then issue a new enable request. 13887 * 13888 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE: 13889 * Disable CoAP offload periodic transmitting. 13890 * 13891 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET: 13892 * Get information of the CoAP messages cached during offload reply 13893 * processing. The cache is cleared after retrieval. 13894 */ 13895 enum qca_wlan_vendor_coap_offload_action { 13896 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0, 13897 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1, 13898 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2, 13899 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3, 13900 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4, 13901 }; 13902 13903 /** 13904 * enum qca_wlan_vendor_attr_coap_offload - Used by the 13905 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 13906 * This is used to set parameters for CoAP offload processing, or get 13907 * cached CoAP messages from firmware. 13908 * 13909 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION: 13910 * u32 attribute. Action to take in this vendor command. 13911 * See enum qca_wlan_vendor_coap_offload_action for supported actions. 13912 * This attribute is mandatory. 13913 * 13914 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID: 13915 * u32 attribute. Represents the Request ID for the CoAP offload 13916 * configuration, which can help to identify the user entity starting 13917 * the CoAP offload processing and accordingly stop the respective 13918 * ones/get the cached CoAP messages with the matching ID. 13919 * This attribute is mandatory. 13920 * 13921 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY: 13922 * Nested attribute. Parameters for offload reply. 13923 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of 13924 * supported attributes. 13925 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 13926 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored 13927 * otherwise. 13928 * 13929 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX: 13930 * Nested attribute. Parameters for offload periodic transmitting. 13931 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of 13932 * supported attributes. 13933 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is 13934 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored 13935 * otherwise. 13936 * 13937 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES: 13938 * Array of nested attributes. Information of the cached CoAP messages, 13939 * where each entry is taken from 13940 * enum qca_wlan_vendor_attr_coap_offload_cache_info. 13941 * This attribute is used for reporting the cached CoAP messages 13942 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 13943 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or 13944 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no 13945 * cached item if this attribute is not present. 13946 */ 13947 enum qca_wlan_vendor_attr_coap_offload { 13948 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0, 13949 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1, 13950 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2, 13951 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3, 13952 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4, 13953 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5, 13954 13955 /* keep last */ 13956 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST, 13957 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX = 13958 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1, 13959 }; 13960 13961 /** 13962 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command 13963 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification 13964 * Service (SCS) rule. 13965 * 13966 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute. 13967 * Represents the unique id of SCS rule to be configured. 13968 13969 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute. 13970 * Represents the request type: add, remove, or change. 13971 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request 13972 * Type definitions). 13973 * 13974 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute 13975 * in case of add/change request type. 13976 * Represents the output traffic identifier (TID) to be assigned to the flow 13977 * matching the rule. 13978 * 13979 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8 13980 * attribute in case of add/change request type. 13981 * Represents type of classifier parameters present in SCS rule. 13982 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type). 13983 * Only classifier types 4 and 10 are supported for SCS. 13984 * 13985 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute 13986 * in case of add/change request type when classifier type is TCLAS4. 13987 * Represents the IP version (4: IPv4, 6: IPv6) of the rule. 13988 * 13989 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional 13990 * attribute in case of add/change request type when classifier type is TCLAS4 13991 * and version attribute is IPv4. 13992 * Represents the source IPv4 address in the rule which is to be compared 13993 * against the source IP address in the IPv4 header. 13994 * 13995 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional 13996 * attribute in case of add/change request type when classifier type is TCLAS4 13997 * and version attribute is IPv4. 13998 * Represents the destination IPv4 address in the rule which is to be compared 13999 * against the destination IP address in the IPv4 header. 14000 * 14001 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional 14002 * attribute in case of add/change request type when classifier type is TCLAS4 14003 * and version attribute is IPv6. 14004 * Represents the source IPv6 address in the rule which is to be compared 14005 * against the source IP address in the IPv6 header. 14006 * 14007 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional 14008 * attribute in case of add/change request type when classifier type is TCLAS4 14009 * and version attribute is IPv6. 14010 * Represents the destination IPv6 address in the rule which is to be compared 14011 * against the destination IP address in the IPv6 header. 14012 * 14013 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute 14014 * in case of add/change request type when classifier type is TCLAS4. 14015 * Represents the source port number in the rule which is to be compared against 14016 * the source port number in the protocol header. 14017 * 14018 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute 14019 * in case of add/change request type when classifier type is TCLAS4. 14020 * Represents the destination port number in the rule which is to be compared 14021 * against the destination port number in the protocol header. 14022 * 14023 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute 14024 * in case of add/change request type when classifier type is TCLAS4. 14025 * Represents the DSCP value in the rule which is to be compared against the 14026 * DSCP field present in the IP header. 14027 * 14028 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8 14029 * attribute in case of add/change request type when classifier type is TCLAS4. 14030 * Represents the protocol/next header in the rule which is to be compared 14031 * against the protocol/next header field present in the IPv4/IPv6 header. 14032 * 14033 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional 14034 * attribute of size 3 bytes present in case of add/change request type 14035 * when classifier type is TCLAS4 and version is IPv6. 14036 * Represents the flow label value in the rule which is to be compared against 14037 * the flow label field present in the IPv6 header. 14038 * 14039 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8 14040 * attribute in case of add/change request type when classifier type is TCLAS10. 14041 * Represents the protocol instance number in the rule. 14042 * 14043 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8 14044 * attribute in case of add/change request type when classifier type is TCLAS10. 14045 * Represents the protocol/next header in the rule which is to be compared 14046 * against the protocol/next header field present in the IPv4/IPv6 header. 14047 * 14048 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional 14049 * attribute of variable length present when request type is add/change and 14050 * classifier type is TCLAS10. 14051 * Represents the mask to be used for masking the header contents of the header 14052 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER 14053 * attribute. 14054 * 14055 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional 14056 * attribute of variable length present when request type is add/change and 14057 * classifier type is TCLAS10. 14058 * Represents the value to be compared against after masking the header contents 14059 * of the header specified by the 14060 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the 14061 * filter mask specified by the 14062 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute. 14063 */ 14064 enum qca_wlan_vendor_attr_scs_rule_config { 14065 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0, 14066 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1, 14067 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2, 14068 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3, 14069 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4, 14070 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5, 14071 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6, 14072 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7, 14073 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8, 14074 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9, 14075 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10, 14076 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11, 14077 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12, 14078 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13, 14079 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14, 14080 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15, 14081 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16, 14082 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17, 14083 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18, 14084 14085 /* Keep last */ 14086 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST, 14087 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX = 14088 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1, 14089 }; 14090 14091 /** 14092 * enum qca_wlan_vendor_sar_version - This describes the current SAR version 14093 * used in the firmware. 14094 * 14095 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR. 14096 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits. 14097 * 14098 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2, 14099 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for 14100 * each CTL group. So user can select up to 6 SAR indexes from the current CTL 14101 * groups. 14102 * 14103 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3, 14104 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each 14105 * CTL group but user can choose up to 3 SAR set index only, as the top half 14106 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of 14107 * the SAR index (3 to 5) is used for DBS mode. 14108 */ 14109 enum qca_wlan_vendor_sar_version { 14110 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0, 14111 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1, 14112 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2, 14113 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3, 14114 }; 14115 14116 /** 14117 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether 14118 * CTL grouping is enabled or disabled in the firmware. 14119 * 14120 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping 14121 * is enabled in firmware. 14122 * 14123 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping 14124 * is disabled in firmware. 14125 * 14126 */ 14127 enum qca_wlan_vendor_sar_ctl_group_state { 14128 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0, 14129 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1, 14130 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2, 14131 }; 14132 14133 /** 14134 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command 14135 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities 14136 * supported by the firmware. 14137 14138 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION: 14139 * u32 attribute. This field describes current SAR version supported by the 14140 * firmware. 14141 * See enum qca_wlan_vendor_sar_version for more information. 14142 * This attribute is mandatory. 14143 14144 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE: 14145 * u32 attribute. This field describes whether CTL groups are enabled 14146 * or disabled in the firmware. 14147 * See enum qca_wlan_vendor_sar_ctl_group_state for more information. 14148 * This attribute is optional. 14149 */ 14150 14151 enum qca_wlan_vendor_attr_sar_capability { 14152 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0, 14153 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1, 14154 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2, 14155 14156 /* Keep last */ 14157 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST, 14158 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX = 14159 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1, 14160 }; 14161 14162 #endif 14163